Im trying to make it so the more strength you have in leaderstats the higher your max health. I also want the health regen to go up the more health you have. If anyone can kinda tell me how to dothis that would be appreciated because i have no idea how to even start and cant find anything online
COMMUNITY QUESTION
How do i go about making a script that give you more maxhealth based off of strength?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Maybe the script should count the numbers of the strength in the leaderboard buy using a if statement. If it is true then channel the local player, then channel the character (player.Character) then channel the humanoid (player.Character.Humanoid) then channel the max health (player.Character.Humanoid.MaxHealth = player.Humanoid.MaxHealth + yourValue
I'll try this out thank you
You need to get the players leaderstats and humanoid health. Once you got that you need to set humanoids health to leaderstats.Value, I'd recomment to run this run function on properties changed ("Value"). You can try Humanoid.MaxHealth = leaderstats.Value * 1.1. This is what I used on my health system based on stats. Also for the regen just grab the health script from your character copy and past