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: barracade script

Previous Thread :: Next Thread 
AMDevelopment is not online. AMDevelopment
Joined: 09 Sep 2013
Total Posts: 84
05 Oct 2013 02:39 PM
for some reason, this script will not launch. no output.
please help.

function die()

local chil = script.Parent:Getchildren()
for i = 1, #chil do
if chil[i].Name == "Part" then
chil[i].Anchored = false
chil[i].CanColide = false
wait(0.5)
end
end
end
game.Workspace.Barracade.Humanoid.Died:connect(die)
Report Abuse
AMDevelopment is not online. AMDevelopment
Joined: 09 Sep 2013
Total Posts: 84
05 Oct 2013 02:43 PM
bump
Report Abuse
gansest is not online. gansest
Joined: 08 Apr 2010
Total Posts: 609
05 Oct 2013 02:44 PM
So that's what you want:

When you die, every part inside of script.Parent becomes unanchored and uncollidable. Right?
Report Abuse
AMDevelopment is not online. AMDevelopment
Joined: 09 Sep 2013
Total Posts: 84
05 Oct 2013 02:45 PM
yes.
Report Abuse
gansest is not online. gansest
Joined: 08 Apr 2010
Total Posts: 609
05 Oct 2013 02:51 PM
repeat wait() until workspace.AMDevelopment.Humanoid.Health == 0
--code
Report Abuse
AMDevelopment is not online. AMDevelopment
Joined: 09 Sep 2013
Total Posts: 84
05 Oct 2013 02:52 PM
pwease! i gtg soon
Report Abuse
AMDevelopment is not online. AMDevelopment
Joined: 09 Sep 2013
Total Posts: 84
05 Oct 2013 02:52 PM
oh ty.
Report Abuse
tuxedoman23 is not online. tuxedoman23
Joined: 24 Apr 2009
Total Posts: 4670
05 Oct 2013 03:16 PM
Functions were made so that we don't have to use iterations every thirtieth of a second.

..then again, the .Died event is pretty frustrating to get to work.
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