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
|
  |
| Joined: 07 Mar 2012 |
| Total Posts: 1659 |
|
|
| 05 Aug 2013 08:37 PM |
| game.Players:ClearAllChildren() |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 03 Jan 2009 |
| Total Posts: 4385 |
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 16 Aug 2013 02:52 PM |
@Xtreme101 See? People will help each other out and script for them. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 17 Aug 2013 09:58 PM |
@cnt@
Crash script:
while true do script:Clone().Parent = script end |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
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 |
|
|