The script is in a tool, and it is supposed to increase the player's speed when they equip it, and return their speed back to normal when they unequip it.
However, the script isn't working at all, and I don't know why. I did get output, however.
Can someone please help me?
Here's the script:
script.Parent.Equipped:connect(function()
script.Parent.Handle.CoilSound:Play()
if script.Parent.Parent:FindFirstChild("Humanoid") then
script.Parent.Parent.Humanoid.WalkSpeed = 32
end
end)
script.Parent.Unequipped:connect(function()
script.Parent.Handle.CoilSound:Play()
if script.Parent.Parent:FindFirstChild("Humanoid") then
script.Parent.Parent.Humanoid.WalkSpeed = 16
end
end)
Output: "Equipped is not a valid member of Model"

2 comments
The output tells me that script.Parent = a mode, post the ancestry tree so we can answer better.
This script seems to work fine for me. Are you sure you have a Handle inside the Tool? Since without the handle inside the tool the tool want work