--THIS LOOPS THE JUMP HOW DO I MAKE IT JUMP ONCE EVERY 5 SECONDS?
AFK_ON.MouseButton1Down:connect(function()
AFK_OFF.Visible = false
AFK_ON.Visible = true
while true do
wait(5)
local plr = game.Players.LocalPlayer
local chr = plr.Character
chr:WaitForChild("Humanoid"):connect(function()
chr.Humanoid.Jump = true
end)
end
end)
--I TRIED THIS ALSO AND IT DOESN'T WORK
AFK_ON.MouseButton1Down:connect(function()
AFK_OFF.Visible = false
AFK_ON.Visible = true
while true do
wait(5)
game.Players.LocalPlayer.Humanoid.Jump = true
end
end)

3 comments
Is this a server script or local script?
Try using things like jump = false whenever the character jumps and wait (5) until jump = true again
Turn off your caps lock, Jesus.