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: Would this script work?

Previous Thread :: Next Thread 
XxAlloy12xX is not online. XxAlloy12xX
Joined: 28 Jan 2011
Total Posts: 49
02 Feb 2012 11:55 AM
If Humanoid.Health = 0
Then print ('You died... LOLFAIL')
Report Abuse
TheWhiteAngle is not online. TheWhiteAngle
Joined: 31 Dec 2011
Total Posts: 435
02 Feb 2012 11:59 AM
no, one you did't stat what humanoid and two is that you dont got an end.
Report Abuse
TheWhiteAngle is not online. TheWhiteAngle
Joined: 31 Dec 2011
Total Posts: 435
02 Feb 2012 11:59 AM
your script all wrong "Then" should be with the first function and not capitelised
Report Abuse
TheWhiteAngle is not online. TheWhiteAngle
Joined: 31 Dec 2011
Total Posts: 435
02 Feb 2012 12:00 PM
and it should be "==" not "="
Report Abuse
XxAlloy12xX is not online. XxAlloy12xX
Joined: 28 Jan 2011
Total Posts: 49
02 Feb 2012 05:17 PM
I meant to put a script something like that, not that specificly.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
02 Feb 2012 05:19 PM
Meh,

script.Parent.Humanoid.Died:connect(function()
--Stuff
end)

† KMXD †
Report Abuse
soccaboy17 is not online. soccaboy17
Joined: 22 Sep 2009
Total Posts: 3161
02 Feb 2012 05:39 PM
@Above

Your assuming the script is within the Character, they would need to PUT the script, within the character..
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
02 Feb 2012 05:40 PM
@^ Well I can't assume anything else, as the creator of the thread didn't specify.

† KMXD †
Report Abuse
RoboBlaster59 is not online. RoboBlaster59
Joined: 26 Feb 2011
Total Posts: 7116
02 Feb 2012 05:42 PM
Humanoid.MaxHealth=0
not Humanoid.Health=0
Report Abuse
XxAlloy12xX is not online. XxAlloy12xX
Joined: 28 Jan 2011
Total Posts: 49
02 Feb 2012 06:57 PM
I meant this as... Like a script in a brick that if you touch it, you're dead.
Report Abuse
mage11561 is not online. mage11561
Joined: 03 Sep 2008
Total Posts: 13217
02 Feb 2012 07:04 PM
function onTouched(p)
a = p.Parent.Humanoid
if a then
a.Health = 0
end
end
script.Parent.Touched:connect(onTouched)
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