menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripters
kick a player
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
kick a player
RoQuick
Join Date: 2013-05-12
Post Count: 595
#184130324
Monday, February 22, 2016 5:30 AM GMT
how would I kick a player off a game like game.Players.PlayerAdded:connect(function(p) --kick end)
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Aethex
Join Date: 2011-10-16
Post Count: 2193
#184130502
Monday, February 22, 2016 5:34 AM GMT
use the :Kick() method on their player object: game.Players.PlayerAdded:connect(function(plr) if plr.UserId ~= game.CreatorId then -- checks if player isn't game owner plr:Kick(); -- kicks all players who aren't game owner end end
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right