Hello, I have been working on a tool stacking system but I have some problems with it, When I activate the tool the cloned Handle just files up to the sky but I want it to go on top of the last cloned handle. Here is my script:
local tool = script.Parent
local rs = game:GetService('RunService')
local clonedHandles = {}
tool.Activated:Connect(function()
local clonedHandle = tool.Handle:Clone()
clonedHandle.Parent = workspace.Handles
clonedHandle.Name = 'StackedHandle'
clonedHandle.Anchored = true
table.insert(clonedHandles, clonedHandle)
rs.RenderStepped:Connect(function()
for _, handle in pairs(clonedHandles) do
handle.CFrame = clonedHandles[#clonedHandles].CFrame + Vector3.new(0,1,0)
end
end)
end)
How do I fix it?
Thank you!