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

How do you crash a player?

Asked by 9 years ago

I'm working on my game again and i've seen clonetrooper's plugin and kohls admin able to crash players, but I couldn't find an answer in free models and I really need to be able to crash players.

I'm sorry that I have no code. Also, is there a :Crash() function? if not, please answer! Thanks for reading!

0
If you don't mind me asking, why would you need to "crash" a player? Spongocardo 1991 — 9y
0
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. TroytheDestroyer 75 — 9y

2 answers

Log in to vote
1
Answered by 9 years ago

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() -- Find the crash script and create a clone but make it a variable

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 -- Change the parent!
crash.Disabled = false -- Enable it!

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!

0
thanks, but I need to do a search for NBC/BC members. how would i do that in this script? TroytheDestroyer 75 — 9y
0
Do you want me to make something that does that? General_Scripter 425 — 9y
0
Here is the model, it works in the exact same way you wanted from your other post and this post: http://www.roblox.com/--item?id=187124767 General_Scripter 425 — 9y
0
I put the script in the workspace. When I tested as a guest, it did nothing. TroytheDestroyer 75 — 9y
Ad
Log in to vote
-2
Answered by 9 years ago

This method will work in a script or a localscript, I believe.

You need to use :Kick() to remove the player from the server.

A full line would look like this:

game.Players.Someone:Kick()

Hope this helped!

0
It says "you have lost connection" instead of saying "roblox has to quit" and then closing the game. TroytheDestroyer 75 — 9y
0
There is no possible way to display that message after the player has been kicked. Kicking is the most efficient method, and also prevents lag. Also, I do not believe it was nescessary to thumbs-down my answer. ChipioIndustries 454 — 9y

Answer this question