I wanna make a system where every 5 minutes or so, a script makes a player jump if they are in a certain zone of the map, though I’m not sure if that would reset the timer on being AFK
I’m pretty sure that would, because you get kicked or being idle, jumping stops the idle animation.
I don’t think so.
I think it checks only if any type of input was fired, (if no input) than it kicks you
1 Like
Something like this:
local maxmins = 1
local userinput = game:GetService("UserInputService")
local inp,t = false,tick()
userinput.InputBegan:Connect(function()
inp = true
t = tick()
end)
userinput.InputEnded:Connect(function()
inp = false
end)
while true do
wait()
print(tick() - t)
if tick() - t >= maxmins * 60 then
game.Players.LocalPlayer:Kick()
break
end
end
Wait, because this is a client script, can’t someone go in Roblox files to delete it?