Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you make it so the player gets kicked after a certain amount of time?

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?

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)

1 comment

0

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

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.