--!strict


local RunService = game:GetService("RunService")

local model = script.Parent
local cloth = model:FindFirstChild("Plane")

local physicsParts = model:WaitForChild("Parts")
local A4P = physicsParts:FindFirstChild("A4")

local bones : {Bone} = {}

local function indexBones()
	for iterator, bone : Bone in cloth:GetDescendants() do
		if bone:IsA("Bone") then
			table.insert(bones, bone)
		end
		if iterator%50 == 0 then
			task.wait()
		end
	end
end
indexBones()
