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: Building Health

Previous Thread :: Next Thread 
vendo88 is not online. vendo88
Joined: 11 Jan 2011
Total Posts: 769
18 Jan 2014 07:59 PM
if game.Workspace.Tower.Humanoid.Health == 0 then
game.Workspace.Tower.Spinny:Destroy()
game.Workspace.Tower.Top:Destroy()
game.Workspace.Tower ==GetChildren.Anchor =false
print ("Can't you hear that boom boom bedum boom baby")
Report Abuse
vendo88 is not online. vendo88
Joined: 11 Jan 2011
Total Posts: 769
18 Jan 2014 08:01 PM
Whats wrong with this?
Report Abuse
alexthemongolian is not online. alexthemongolian
Joined: 23 Mar 2011
Total Posts: 655
18 Jan 2014 08:03 PM
game.Workspace.Tower ==GetChildren.Anchor =false

Many problems with this line
replace with this


for i, v in pairs(game.Workspace.Tower:Getchildren()) do
v.Anchor = false
end

Report Abuse
vendo88 is not online. vendo88
Joined: 11 Jan 2011
Total Posts: 769
18 Jan 2014 08:21 PM
Tower won't blow.
New full script:

if game.Workspace.Tower.Humanoid.Health == 0 then
game.Workspace.Tower.Spinny:Destroy()
game.Workspace.Tower.Top:Destroy()
for i, v in pairs(game.Workspace.Tower:Getchildren()) do
v.Anchor = false
end
print ("Can't you hear that boom boom bedum boom baby")
end

Anyone have ideas why?
Report Abuse
alexthemongolian is not online. alexthemongolian
Joined: 23 Mar 2011
Total Posts: 655
18 Jan 2014 08:23 PM
Anchored not Anchor
Report Abuse
vendo88 is not online. vendo88
Joined: 11 Jan 2011
Total Posts: 769
18 Jan 2014 08:29 PM
if game.Workspace.Tower.Humanoid.Health == 0 then
game.Workspace.Tower.Spinny:Destroy()
game.Workspace.Tower.Top:Destroy()
for i, v in pairs(game.Workspace.Tower:Getchildren()) do
v.Anchored = false
end
print ("Can't you hear that boom boom bedum boom baby")
end

Anything else that you see?
It's still not working.
Report Abuse
alexthemongolian is not online. alexthemongolian
Joined: 23 Mar 2011
Total Posts: 655
18 Jan 2014 08:31 PM
if game.Workspace.Tower.Humanoid.Health == 0 then
game.Workspace.Tower.Spinny:Destroy()
game.Workspace.Tower.Top:Destroy()
for i, v in pairs(game.Workspace.Tower:GetChildren()) do
v.Anchored = false
end
print ("Can't you hear that boom boom bedum boom baby")
end

Make sure that the Humanoid actually exists and the health is actually 0.
And are Spinny & Top models or bricks?


Report Abuse
vendo88 is not online. vendo88
Joined: 11 Jan 2011
Total Posts: 769
18 Jan 2014 08:34 PM
Spinny and Top are both Bricks within the Tower Model.
Report Abuse
Thaeh is not online. Thaeh
Joined: 05 Feb 2011
Total Posts: 7685
18 Jan 2014 08:43 PM
Is this the full script? If not, this will only check once then never check again.
Report Abuse
suremark is not online. suremark
Joined: 13 Nov 2007
Total Posts: 6315
18 Jan 2014 08:46 PM
Tower.Humanoid.Died:connect(function()
    print 'ded'
end)
Report Abuse
vendo88 is not online. vendo88
Joined: 11 Jan 2011
Total Posts: 769
18 Jan 2014 08:47 PM
Its the full script. It just won't change fall apart (Un-anchored)
Report Abuse
alexthemongolian is not online. alexthemongolian
Joined: 23 Mar 2011
Total Posts: 655
18 Jan 2014 08:48 PM
make all surfaces smooth
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
18 Jan 2014 09:29 PM

game.Workspace.Tower.Humanoid.Died:connect(function()
game.Workspace.Tower.Spinny:Destroy()
game.Workspace.Tower.Top:Destroy()
for i, v in pairs(game.Workspace.Tower:GetChildren()) do
v.Anchored = false
end
print ("Can't you hear that boom boom bedum boom baby")
end
end)
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