I am trying to make it so when you touch the tool it will give you it but also clones itself so that it will be in the same spot where you found it, just in case another player comes to get it.
My code:
local Tool = script.Parent.Parent local handle = script.Parent handle.Touched:Connect(function() Tool.Equipped:Connect(function() local TC = Tool:Clone() TC.Position = Vector3.new(47.909, 2075.744, 180.469) TC.Parent = workspace end) end)
The code was successful in:
Failures:
What I have tried:
i dont know If this will work. But try this
local Tool = script.Parent.Parent local handle = script.Parent handle.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then Tool.Equipped:Connect(function() local TC = Tool:Clone() TC.Position = Vector3.new(47.909, 2075.744, 180.469) TC.Parent = workspace script.Disabled = true wait(5) script.Disabled = false end end) end)
the reason it might work is cause. yes. you touch It and it clones. gives you the thing. blah. but then. maybe it thinks it keeps touching the ground so it keep cloning? also you might have to add another "end" cause I dont know, I didn't write this in roblox studio. just try it?