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: Heatlh = Maxhealth

Previous Thread :: Next Thread 
rockman5 is not online. rockman5
Joined: 17 Oct 2008
Total Posts: 2852
27 Jun 2012 04:17 PM
I createed a script that gives god health , 50 walkspeed, and a forcefield onSpawn and it works..but im having a problem changing my Heatlh to the same as my Maxhealth:


Workspace:FindFirstChild("rockman5"):BreakJoints()

game.Players.rockman5.CharacterAdded:connect(function(character)

if character.Name == "rockman5" then

character.Humanoid.MaxHealth = math.huge

Health = MaxHealth

character.Humanoid.WalkSpeed = 50

Instance.new("ForceField", character)

end

end)
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
27 Jun 2012 04:18 PM
character.Humanoid.Health = character.Humanoid.MaxHealth
Report Abuse
1pie23 is not online. 1pie23
Joined: 11 Jul 2010
Total Posts: 1865
27 Jun 2012 04:19 PM
character.Humanoid.Health = character.Humanoid.MaxHealth
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
27 Jun 2012 04:19 PM
"Health = MaxHealth "


character.Humanoid.Health = character.Humanoid.MaxHealth
Report Abuse
1pie23 is not online. 1pie23
Joined: 11 Jul 2010
Total Posts: 1865
27 Jun 2012 04:20 PM
STUPID FLOODCHECK
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
27 Jun 2012 04:21 PM
lol
Report Abuse
rockman5 is not online. rockman5
Joined: 17 Oct 2008
Total Posts: 2852
27 Jun 2012 04:26 PM
Still doesnt work....weird
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
27 Jun 2012 04:28 PM
It should work.
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
27 Jun 2012 04:29 PM
It should work.
Report Abuse
rockman5 is not online. rockman5
Joined: 17 Oct 2008
Total Posts: 2852
27 Jun 2012 04:38 PM
Try it....


Workspace:FindFirstChild("rockman5"):BreakJoints()

game.Players.rockman5.CharacterAdded:connect(function(character)

if character.Name == "rockman5" then

character.Humanoid.MaxHealth = math.huge

character.Humanoid.Health = character.Humanoid.MaxHealth

character.Humanoid.WalkSpeed = 50

Instance.new("ForceField", character)

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