askshane
|
  |
| Joined: 16 Feb 2011 |
| Total Posts: 9151 |
|
|
| 09 Aug 2013 12:41 PM |
Yes, msg is already defined, but I can't test it due to me not being able to play a game due to my computer. if string.sub(Msg,1,10) == "stealhats/" then local Players = GetPlayers(Speaker, string.sub(Msg,11)) if #Players < 1 then return end for i=1,#Players do for x,v in pairs(Players[i].Character:GetChildren()) do if v:IsA("Hat") then v.Parent = Players[i].Character end end end end
~�ʘ‿ʘ�~ |
|
|
| Report Abuse |
|
Soquick
|
  |
| Joined: 01 Nov 2012 |
| Total Posts: 1497 |
|
|
| 09 Aug 2013 12:47 PM |
| Should work, but I wouldnt use for i = 1, #Players, I would use for i, v or _, plr |
|
|
| Report Abuse |
|
askshane
|
  |
| Joined: 16 Feb 2011 |
| Total Posts: 9151 |
|
|
| 09 Aug 2013 01:04 PM |
I normally just use it in all my commands (for i=1,#Players do) so yeah
~�ʘ‿ʘ�~ |
|
|
| Report Abuse |
|