Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

Kicking player Help?

Asked by
iLegitus 130
10 years ago

So is there a possible way to kick the player out of the game literally? Not just like game.Players.LocalPlayer:remove(),Or removing his/her character i want him/her to be removed from the game as in she/he leaves. Any advice/help?

2 answers

Log in to vote
2
Answered by 10 years ago

Use the Kick() method in the player. It disconnects the player from the game and I believe it gives them the "The game has shut down" message on screen.

http://wiki.roblox.com/index.php?title=Kick_(Method)

Ad
Log in to vote
0
Answered by 10 years ago

In a server script :

game.Players.PLRNAMEHERE:Kick()

Answer this question