working on a thing when u click with a tool out it gives u +_ walkspeed then goes away after _ seconds here is my script
(Nothing is printed in the output)
local plr = game.Players.LocalPlayer
local debounce = false
local Timeout = 10
local AddedRunSpeed = 4
local RunSpeed = plr.Character:WaitForChild("Humanoid").WalkSpeed
script.Parent.Activated:Connect(function()
plr:GetMouse().Button1Down:Connect(function()
if debounce == false then
debounce = true
plr.Character:FindFirstChild("Humanoid").WalkSpeed += AddedRunSpeed
wait(Timeout)
plr.Character:FindFirstChild("Humanoid").WalkSpeed = RunSpeed
print(AddedRunSpeed.."WalkSpeed Added!")
else
debounce = false
print("Plr Is On Cooldown")
return
end
end)
end)
here is what the parenting looks like