Afk script help

The event only fires in a real game (not Studio) also it only fires every 2 minutes.

Ii tried it i couldnt get it to work and maybe I messed something up so can you please try it in your game and if it works that means im doing something wrong and do you think the idled event is broken?

Try this as a local script in StarterPlayerScripts:

local Seconds = 120
--The seconds of idle to kick (event only fires every 2 minutes)
local Player = game.Players.LocalPlayer
Player.Idled:Connect(function(Time)
if Time>=Seconds then
Player:Kick()
end
end)

Wait a minute I think your code works! I will double check it tomorrow its early morning for me after further testing if it works I will make you soulution thanks so much :smiley:

1 Like

Thanks so much The script works! Your Awesome ! And thanks so much for the help I tried around 4 AFK scripts and none worked!

2 Likes