Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How do I fix this health script when a player with specific rank of group joins? [closed]

Asked by 6 years ago

function healthStart(player)

if player:GetRankInGroup(group) == 255 then humanoid.MaxHealth = 1000 humanoid.Health = 800

elseif player:GetRankInGroup(group) == 10 then humanoid.MaxHealth = 500 humanoid.Health = 500

elseif player.GetRankInGroup(group) <= 5 then humanoid.MaxHealth = 1 humanoid.Health = 0

end

local group = 3286803 local humanoid = player:findFirstChild("Humanoid")

game.Players.ChildAdded:connect(healthStart)

Closed as Non-Descriptive by cabbler and Shawnyg

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?