|
| 29 Aug 2015 03:33 PM |
elseif string.sub(msg,1,8):lower() == "kill>all" then local GetPlayers = game.Players:GetChildren() PlayerCount = #GetPlayers do GetPlayers[PlayerCount].Character.Humanoid.Health = 0 --kill everyone end why arent you working.. :(, no errors in console |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Aug 2015 03:45 PM |
so by the looks of it you are making an admin. is there any crashes before that certain piece starts? like a wait() to stop it crashing etc
:nbc me, omg |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Aug 2015 03:47 PM |
| Im actually the stupidest person on this forum and did something in a previous part of the script to edit some values so it wouldnt work... /thread, |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2015 03:48 PM |
| Nevermind, didnt fix the problem |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2015 04:31 PM |
elseif msg:sub(1,8):lower() == "kill>all" then for _,Player in pairs(game.Players:GetPlayers()) do Player.Character.Humanoid.Health = 0 end end |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Aug 2015 10:58 PM |
| Then it is a problem with another part of your code. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 29 Aug 2015 11:00 PM |
| Put if above the string.sub(blah, 1, 5):lower() == "kill>" :] |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2015 11:00 PM |
elseif msg:sub(1,8):lower() == "kill>all" then for _,Player in pairs(game.Players:GetPlayers()) do Player.Character:BreakJoints() end end
??? |
|
|
| Report Abuse |
|
|