generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Doesn't kill everyone?

Previous Thread :: Next Thread 
Krosskode is not online. 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 is not online. 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 is not online. 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 is not online. 0rka
Joined: 26 Dec 2013
Total Posts: 1070
04 Jul 2014 08:02 PM
Lol, learn to Lua then come back.
Report Abuse
Frostglacier is not online. Frostglacier
Joined: 28 Oct 2010
Total Posts: 4177
04 Jul 2014 08:02 PM
Doesn't matter, really.
Report Abuse
Krosskode is not online. 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
Frostglacier is not online. Frostglacier
Joined: 28 Oct 2010
Total Posts: 4177
04 Jul 2014 08:03 PM
Although both have slightly differences, using it in basic scripts should not be a problem.
Report Abuse
0rka is not online. 0rka
Joined: 26 Dec 2013
Total Posts: 1070
04 Jul 2014 08:04 PM
e.e nvm
Report Abuse
0rka is not online. 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 is not online. 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
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
04 Jul 2014 08:07 PM
Either one still works, though, it's just a matter of choice and circumstances.
Report Abuse
Krosskode is not online. 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 is not online. 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 is not online. Krosskode
Joined: 26 Aug 2010
Total Posts: 11001
04 Jul 2014 08:10 PM
@0rka

Thanks for calling Clonetrooper1019 a terrible scripter.
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
04 Jul 2014 08:16 PM
character isn't loaded yet probs
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image