Categories > Coding > Lua >
why is the tool not working
Posted
made a tool that'll change your walkspeed when activated then itll change it back after a little while, not sure why its not working
Debounce = false
tool = script.Parent
tool.Activated:Connect(function()
local player = game.Players:FindFirstChild(tool.Parent.Name)
if Debounce == false then
Debounce = true
player.Character.Humanoid.WalkSpeed = 40
wait(15)
player.Character.Humanoid.WalkSpeed = 23
wait(7)
Debounce = false
end
end)
Replied
Cancel
Post
i use arch btw
Added
@_realnickk
sorry i didnt specify this in the first place, i just realised your script needs a handle to work, any way you can make it work without a handle
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post