Im making a game right now and I need help figuring out how to kick the single player out of the server after 128 seconds. I have searched it up but all I found was /kick scripts. Anyone willing to help?
✓ ANSWER ACCEPTED
How do you make it so the player gets kicked after a certain amount of time?
2 answers
✓ Accepted answer
game.Players.PlayerAdded:Connect(function(plr)
wait(128)
plr:Kick("Kick message here")
end)
sorry my previous script didn't work when i tested it after i told you the answer, but this one 100% works (tested)
This one is simple! Hope it helps!
local t = 128 --// Seconds to wait
local reason = "Your Kick Reason Here" --// Reason for kick
game.Players.PlayerAdded:Connect(function(p)
wait(t)
p:Kick(reason)
end)
~~SpiralRBX
4 comments
0
Many change p to plr or player? It just looks kind of weird
1
i like p cuz its faster
0
i second that p is perfect
0
yep!
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Oh sorry didn't see you posted this. Mine is kinda similar lol