Categories > Coding > Lua >

why is the tool not working

Posts: 45

Threads: 18

Joined: Aug, 2022

Reputation: 2

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)
  • 0

Posts: 1430

Threads: 71

Joined: May, 2022

Reputation: 20

Replied

any errors? https://cdn.discordapp.com/attachments/978292534767919134/995354326954426488/funi.png

  • 0

i use arch btw

Posts: 45

Threads: 18

Joined: Aug, 2022

Reputation: 2

Replied

@Whoman
No, ive checked output while testing it, nothing comes up

  • 0

Added

  • 0

Added

@_realnickk
didnt work, game is in r6 if that makes a difference 

  • 0

Added

@_realnickk
are you in r6 tho

  • 0

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

  • 0

Added

@_realnickk
OH MY GOD I AM SO STUPID

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )