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

3 comments

0

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

0

I'll try this out thank you

0

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