diddims4
|
  |
| Joined: 18 Feb 2010 |
| Total Posts: 884 |
|
|
| 25 Jul 2013 03:55 AM |
what capitals go where? :P
function KillPlayers() local P = game.Players:GetChildren() for i=1, #P do if P[i].Character ~= nil then P[i].Character:breakJoints() end end end
is that correct?
|
|
|
| Report Abuse |
|
|
andirja11
|
  |
| Joined: 11 Jul 2010 |
| Total Posts: 584 |
|
| |
|
|
| 25 Jul 2013 04:06 AM |
| Just look through item browser until u find it |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2013 04:18 AM |
| Idk about breakJoints() but everything else is fine. |
|
|
| Report Abuse |
|
|
baheeg
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 72846 |
|
| |
|
baheeg
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 72846 |
|
| |
|
|
| 25 Jul 2013 04:34 AM |
> "Please note case sensitivity is very important"
No, it's not in some cases. However, Roblox is not consistent, so you may as well be everything that they aren't by being consistent. |
|
|
| Report Abuse |
|
|
baheeg
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 72846 |
|
| |
|
|
| 25 Jul 2013 05:32 AM |
| No, it isn't actually, or at least it used to not be. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 25 Jul 2013 07:25 AM |
I always capitalize everything, even though it's not required.
Like: Game.Workspace Wait(X) GetService Destroy()
etc |
|
|
| Report Abuse |
|
|
mrmrluaa3
|
  |
| Joined: 25 Jun 2013 |
| Total Posts: 122 |
|
|
| 25 Jul 2013 09:25 AM |
function KillPlayers() local P = game.Players:GetChildren() local lol = game.Workspace:GetChildren()
local players={ } for i=1, #P do table.insert(players,P[i].Name) for i, v in pairs(lol) do if v.Name == P[i].Name then v:Destroy end end
end end end |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 25 Jul 2013 09:27 AM |
do: v.Character:BreakJoints()
Destroying them will remove their character and glitch them till they :LoadCharacter() |
|
|
| Report Abuse |
|
|
mrmrluaa3
|
  |
| Joined: 25 Jun 2013 |
| Total Posts: 122 |
|
|
| 25 Jul 2013 09:36 AM |
function KillPlayers() local P = game.Players:GetChildren() local lol = game.Workspace:GetChildren()
local players={ } for i=1, #P do table.insert(players,P[i].Name) for i, v in pairs(lol) do if v.Name == P[i].Name then v.Character:BreakJoints() end end
end end end |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2013 09:42 AM |
Capital B in 'breakJoints()'.
~RAT is a clan, now get in my van. ® |
|
|
| Report Abuse |
|
|
diddims4
|
  |
| Joined: 18 Feb 2010 |
| Total Posts: 884 |
|
|
| 26 Jul 2013 07:39 PM |
thanks, exactly the answer im looking for
not exactly why everyone is giving me script suggestions... |
|
|
| Report Abuse |
|
|