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 » Scripters
Home Search
 

Re: How come you can't set player health past 100?

Previous Thread :: Next Thread 
LegomasterNiko is not online. LegomasterNiko
Joined: 27 Feb 2013
Total Posts: 1176
03 Jul 2017 08:09 PM
I am making a health thing for myself sing I am the creator and I want to have 1000 health, while the other players only have 100, but anytime I set it I have less.

The question I am asking is, why can't you go past 100HP.
Report Abuse
LegomasterNiko is not online. LegomasterNiko
Joined: 27 Feb 2013
Total Posts: 1176
03 Jul 2017 08:09 PM
Since*
Report Abuse
Alimegacorn is online. Alimegacorn
Joined: 24 May 2013
Total Posts: 899
03 Jul 2017 08:18 PM
you have to set the maxhealth to the desired number (1000) before you can make any changes
Report Abuse
ViciousSilence is not online. ViciousSilence
Joined: 02 Jun 2013
Total Posts: 912
03 Jul 2017 08:19 PM
Set MaxHealth to 1000, then Health to 1000


#code if you then break end
Report Abuse
LegomasterNiko is not online. LegomasterNiko
Joined: 27 Feb 2013
Total Posts: 1176
05 Jul 2017 10:55 PM
But would n't allow the other users health to get that much?
Report Abuse
LegomasterNiko is not online. LegomasterNiko
Joined: 27 Feb 2013
Total Posts: 1176
05 Jul 2017 10:55 PM
Would it
Report Abuse
nullfeels is not online. nullfeels
Joined: 31 Mar 2017
Total Posts: 1215
05 Jul 2017 11:14 PM
It would need to be set per player.
Report Abuse
Spiik3yViinH is online. Spiik3yViinH
Joined: 11 Oct 2014
Total Posts: 557
05 Jul 2017 11:59 PM
maxhealth = 1000
health = 1000

game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(c)
local h = c.Humanoid
repeat
h = c.Humanoid
until h ~= nil
h.MaxHealth = 1000
h.Health = 1000
end)
end)


Professional script forum reviewer.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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