I have the perfect way to do this!
You will need to create a script and in it put the code:
repeat until nil
What this does is it creates a loop without waiting, therefore crashing. To get this to crash someone you will have to disable it first and clone it using something like:
crash = script:FindFirstChild("Script"):Clone()
Then if you disable it before you change the parent it will crash the WHOLE game, it will also do this if you don't disable it, so now what you need to do is set the parent. It needs to be in the TARGET's backpack, then enable it. So do it something like this:
crash.Parent = game.Players:FindFirstChild("TARGET'S NAME").Backpack
crash.Disabled = false
This will then crash the player and they will not be able to do anything but close the game! Hope this helps, if it works for you please leave a vote up, I would really appreciate that!
2 comments
If you don't mind me asking, why would you need to "crash" a player?
The last answer you gave me, if you kick a player, the player can still spy around and see everyone. I want it to just close their game.