So I was trying to make a fishing simulator game. I tried making it so a rope appeared when I clicked with a tool, it all worked well until I got to the rope instance part of the code, it does not attach to my handle and it doesn't even appear in my world, this is my code:
tool = script.Parent
handle = tool:WaitForChild("Handle")
tool.Activated:Connect(function()
local newRope = Instance.new("RopeConstraint",game.StarterPack["Basic rod"])
newRope.Attachment0 = handle
print("Hello world!")
end)
and this is my error messages:
13:06:05.416 Expected Attachment got Tool for RopeConstraint:Attachment0. - Server - Script:7
13:06:05.416 Stack Begin - Studio
13:06:05.417 Script 'Players.Anderssc.Backpack.Basic rod.Script', Line 7 - Studio - Script:7
13:06:05.417 Stack End - Studio
Please help me so that I can keep on going
