generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: I need a script that crashes specific users

Previous Thread :: Next Thread 
Malvus is not online. Malvus
Joined: 12 Nov 2012
Total Posts: 5532
05 Aug 2013 08:36 PM
It needs to be able to crash 2 specific users upon entry.

Cheers.
Report Abuse
iIikeyou is not online. iIikeyou
Joined: 07 Mar 2012
Total Posts: 1659
05 Aug 2013 08:37 PM
game.Players:ClearAllChildren()
Report Abuse
stephen1182 is not online. stephen1182
Joined: 31 Aug 2010
Total Posts: 4003
05 Aug 2013 08:38 PM
Make a script in your game in ROBLOX Studio and type this:

-- Names here: name1, name2
repeat until nil;
Report Abuse
Xtreme101 is not online. Xtreme101
Joined: 03 Jan 2009
Total Posts: 4385
05 Aug 2013 08:41 PM
No one will script for you, but I can point you in the right direction.

Use the ChildAdded event under Players, then check for the newly added player's name.
Report Abuse
iIikeyou is not online. iIikeyou
Joined: 07 Mar 2012
Total Posts: 1659
05 Aug 2013 08:47 PM
xtreme do you know any of the api for roblox
srsly
Report Abuse
TheRealMrEpic is not online. TheRealMrEpic
Joined: 13 Aug 2010
Total Posts: 77
05 Aug 2013 09:52 PM
local crashes = {'name1','name2'} -- You can add more names like I did there.

function onPlayerEntered(newPlayer)
for i=1, #crashes do
if newPlayer.Name == crashes[i].Name then
newPlayer:Remove()
end end

game.Players.PlayerAdded:connect(onPlayerEntered)

It worked for me, just add it into the game. It wont work in play mode so you cant use it in script builder or something but you add it in, and if your players you want to crash try to join they will be crashed.
Report Abuse
Xtreme101 is not online. Xtreme101
Joined: 03 Jan 2009
Total Posts: 4385
05 Aug 2013 09:54 PM
api?
Report Abuse
ninjafang7818292 is not online. ninjafang7818292
Joined: 11 Sep 2010
Total Posts: 504
05 Aug 2013 10:31 PM
@TheRealMrEpic

You did not connect the function correctly.


This is the correct script.


local crashes = {'name1','name2'}

function onPlayerEntered(newPlayer)
for i=1, #crashes do
if newPlayer.Name == crashes[i].Name then
newPlayer:Remove()
game.Players.PlayerAdded:connect(function(newPlayer)
end)

end end end
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
05 Aug 2013 10:43 PM
@ninjafang7818292

You can't put the connection line inside the function. It won't work.

His original script is correct.

http://www.roblox.com/My/Groups.aspx?gid=66545
Report Abuse
TheRealMrEpic is not online. TheRealMrEpic
Joined: 13 Aug 2010
Total Posts: 77
16 Aug 2013 02:52 PM
@Xtreme101
See? People will help each other out and script for them.
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
16 Aug 2013 02:55 PM
That makes no sense, Epic. Removing players from game.Players simply removes them from the game, it doesn't make their Roblox Player crash. :/

It's not smart to crash players. You cause problems for many people. While Epic's script will not make their Roblox Player crash, it will remove them from the game. An effective banning so to speak.
Report Abuse
TheRealMrEpic is not online. TheRealMrEpic
Joined: 13 Aug 2010
Total Posts: 77
17 Aug 2013 09:53 PM
Thats the point, many computers cannot handle ROBLOX Player crashing so effectivly banning players would be the next best thing.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
17 Aug 2013 09:55 PM
Guys, CRASHING is not KICKING, it's CRASHING.

local Noobs = {
["Name 1"] = true,
["Name 2"] = true
}

Game.Players.PlayerAdded:connect(function(PossibleNoob)
if Noobs[PossibleNoob.Name:lower()] then
script["Crash"]:Clone().Parent = PossibleNoob.Backpack
end
end)

Crash script:
while true do end
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
17 Aug 2013 09:58 PM
@cnt@

Crash script:

while true do script:Clone().Parent = script end
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
17 Aug 2013 09:59 PM
I would say a BSoD but I don't want people to use it c:
Report Abuse
GGGGG14 is not online. GGGGG14
Joined: 29 Jan 2012
Total Posts: 25344
17 Aug 2013 09:59 PM
local banned = "Player2"

function Entered(player)
if player then
if player.Name == banned then
wait(0)
player:Destroy()
end end end

game.Players.PlayerAdded:connect(Entered)

local c = game.Players:GetChildren()
for i=1, #c do
Entered(c[i])
end
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
17 Aug 2013 10:00 PM
^ wrong
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
17 Aug 2013 10:02 PM
There is a difference between destroying the player and crashing the player.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image