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

[solved]why is this gui not going visible when the generator reaches 9000?

Asked by 4 years ago
Edited 4 years ago

I remaned the humanoid generator


local generator = game.Workspace.Generator.Generator.Health if generator == 9000 then game.StarterGui.ScreenGui.ImageLabel.Visible = true end
0
This is because you are changing the startergui not the playergui. Did you make a variable for the player? If so, just change it to PlayerVariable.PlayerGui.ScreenGui.ImageLabel.Visible = true mixgingengerina10 223 — 4y
0
Thx FluffySheep46209 369 — 4y
0
Write [SOLVED] in the question's name :D mixgingengerina10 223 — 4y
0
It didn't work is this because the way i stored the variable was local player = game.Players.LocalPlayer. It's a 1 man server FluffySheep46209 369 — 4y
View all comments (5 more)
1
You need to make sure that it's in a LocalScript if it's changing a local players GUI, otherwise it wont work due to FE Zeluxis 100 — 4y
0
Thx FluffySheep46209 369 — 4y
0
Is this scirpt ment to be in the gui or is it ment to be elsewhere FluffySheep46209 369 — 4y
0
It doesn't matter, just change PlayerVariable to player. mixgingengerina10 223 — 4y
0
THX FluffySheep46209 369 — 4y

Answer this question