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

So why isn't this function working no errors or anything?

Asked by 3 years ago
game.Workspace:FindFirstChild(script.Parent.Parent.Parent.Name).Humanoid:GetPropertyChangedSignal("Health"):Connect(function()
    script.Parent.HealthFrame.NumberLabel2.Text = game.Workspace:FindFirstChild(script.Parent.Parent.Parent.Name).Humanoid.Health
end)

1
You are being so vague. What exactly isn't working? The text doesn't change? jundell 106 — 3y
0
And what are you trying to do exactly? A custom health gui? jundell 106 — 3y
0
Yes robot7866 36 — 3y
0
The text isnt changing robot7866 36 — 3y
0
I would put game.Workspace:WaitForChild() instead of FindFirstChild() when you're trying to display the health. SwiftyDeveloper 4 — 3y

Answer this question