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

Howcome my gamepass more health script doesnt work properly? [closed]

Asked by 10 years ago

When you buy gamepass you have 100 more health, but when your in the game your health is half? How come?

gps = game:GetService("GamePassService");

id = script:WaitForChild("GamePassID"); EH = script:WaitForChild("ExtraHealthAmount");

game.Workspace.ChildAdded:connect(function(char) h=char:FindFirstChild("Humanoid") if h~=nil then plr=game.Players:FindFirstChild(char.Name) if gps:PlayerHasPass(plr, id.Value) then h.MaxHealth=EH.Value h.Health=EH.Value end end end)

I also placed two IntValues, that say ExtraHealthAmount, and GamePassID

Closed as Not Constructive by evaera

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?