Ok so this tool functions like a speed coil (kinda) and I need the speed to be back to normal when the player unequips it but it's not working for some reason? Giving me an error which says:
"UnEquipped is not a valid member of Tool"
local tool = script.Parent.Parent
tool.Equipped:Connect(function() --Will listen for when the player equips the tool then connects to the enclosed function
local char = tool.Parent --When a tool is equipped it moves from the backpack to the character model
char.Humanoid.WalkSpeed = 14 --Sets the walkspeed by finding the humanoid that's under the character
end)
tool.UnEquipped:Connect(function() --Will listen for when the player equips the tool then connects to the enclosed function
local char = tool.Parent --When a tool is equipped it moves from the backpack to the character model
char.Humanoid.WalkSpeed = 12 --Sets the walkspeed by finding the humanoid that's under the character
end)

1 comment
I had to edit your script a bit but it works, thank you kind lad