Krosskode
|
  |
| Joined: 26 Aug 2010 |
| Total Posts: 11001 |
|
|
| 04 Jul 2014 07:52 PM |
for i,v in pairs (game.Players:GetPlayers()) do v.Character.Head:Destroy() end
It has no errors. Why? |
|
|
| Report Abuse |
|
|
0rka
|
  |
| Joined: 26 Dec 2013 |
| Total Posts: 1070 |
|
|
| 04 Jul 2014 07:53 PM |
A. Player arrived before character B. Destroy is obsolete. Use :Remove() |
|
|
| Report Abuse |
|
|
alij12
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1204 |
|
|
| 04 Jul 2014 08:00 PM |
B. Destroy is obsolete. Use :Remove()
No it isnt...Using :Remove() is frowned upon |
|
|
| Report Abuse |
|
|
0rka
|
  |
| Joined: 26 Dec 2013 |
| Total Posts: 1070 |
|
|
| 04 Jul 2014 08:02 PM |
| Lol, learn to Lua then come back. |
|
|
| Report Abuse |
|
|
| |
|
Krosskode
|
  |
| Joined: 26 Aug 2010 |
| Total Posts: 11001 |
|
|
| 04 Jul 2014 08:03 PM |
@0rka
Yes, because :destroy() is obviously obsolete when mosto f the advanced scripters on ROBLOX use it. |
|
|
| Report Abuse |
|
|
|
| 04 Jul 2014 08:03 PM |
| Although both have slightly differences, using it in basic scripts should not be a problem. |
|
|
| Report Abuse |
|
|
0rka
|
  |
| Joined: 26 Dec 2013 |
| Total Posts: 1070 |
|
| |
|
0rka
|
  |
| Joined: 26 Dec 2013 |
| Total Posts: 1070 |
|
|
| 04 Jul 2014 08:05 PM |
| I was actually citing an "advanced scripter" when I said to use :Remove. So I apologize that advanced scripters aren't advanced. |
|
|
| Report Abuse |
|
|
alij12
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1204 |
|
|
| 04 Jul 2014 08:07 PM |
http://wiki.roblox.com/index.php?title=Remove_(Function)
read the banner at the top |
|
|
| Report Abuse |
|
|
|
| 04 Jul 2014 08:07 PM |
| Either one still works, though, it's just a matter of choice and circumstances. |
|
|
| Report Abuse |
|
|
Krosskode
|
  |
| Joined: 26 Aug 2010 |
| Total Posts: 11001 |
|
|
| 04 Jul 2014 08:08 PM |
Still didn't work with :remove()
and no errors. |
|
|
| Report Abuse |
|
|
alij12
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1204 |
|
|
| 04 Jul 2014 08:09 PM |
wait(math.random(3,5)) for i,v in pairs (game.Players:GetPlayers()) do v.Character.Head:Destroy() end |
|
|
| Report Abuse |
|
|
Krosskode
|
  |
| Joined: 26 Aug 2010 |
| Total Posts: 11001 |
|
|
| 04 Jul 2014 08:10 PM |
@0rka
Thanks for calling Clonetrooper1019 a terrible scripter. |
|
|
| Report Abuse |
|
|
|
| 04 Jul 2014 08:16 PM |
| character isn't loaded yet probs |
|
|
| Report Abuse |
|
|
|
| 04 Jul 2014 08:20 PM |
for i,v in pairs (game.Players:GetPlayers()) do wait(3) v.Character.Head:Destroy() end |
|
|
| Report Abuse |
|
|
Krosskode
|
  |
| Joined: 26 Aug 2010 |
| Total Posts: 11001 |
|
|
| 04 Jul 2014 08:24 PM |
>Characters not loaded
>Event needs to be fired using the characters.
Okay then. |
|
|
| Report Abuse |
|
|