I want to add new statistics to the player, such as strength, speed, and those; as it is with health. Ex:
Health: 100 Max.Health: 100 Power: (Number) Speed ....
and the others. I'm trying to add them to Humanoid, but I don't know how to do it.
You could first, reference the humanoid, then use Instance.new
to create IntValues. Here is a sample code below
1 | local hum = --put reference to the humanoid here |
2 |
3 | local hp = Instance.new( "IntValue" , hum) |
4 | hp.Name = "Health" |
5 | hp.Value = hum.Health.Value |
6 |
7 | local power = Instance.new( "IntValue" , hum) |
8 | power.Name = "Power" |
9 | power.Value = --Insert the area to get to the players Power |
Hope I could help!