Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why isn't this gui not appearing when the generator health = 5000?

local generator = game.Workspace.Generator.Generator.Health
if generator == 5000 then
	game.StarterGui.ScreenGui.ImageLabel.Visible = true
end

2 comments

0

Are you supposed to have 2 Generator in "local generator = game.Workspace.Generator.Generator.Health" ?

0

I renamed humanoid to generator

1 answer

✓ Accepted answer

Because you didn't determine whether the health changed so change line 1 to

HealthChange.Health

2 comments

0

is it ment to look like this local generator = game.Workspace.Generator.Generator.HealthChange.Health

0

Yes.

This discussion is preserved as it was. New answers, comments, and votes are closed.