I am following the cookbook to scripting on the ROBLOX wikia. And I'm on chapter 5 at the beginning where you make a hopperbin that resets your character once you left click.. I can't seem to get it to do that.
I have a tool that is in StarterPack and the localscript is inside the tool.
This is the code:
script.Parent.Selected:connect(function(m)
m.Button1Down:connect(function()
if game.Players.LocalPlayer.Character then
game.Players.LocalPlayer.Character:BreakJoints()
end
end)
end)
This is the error: Selected is not a valid member of tool.
