I remaned the humanoid generator
local generator = game.Workspace.Generator.Generator.Health
if generator == 9000 then
game.StarterGui.ScreenGui.ImageLabel.Visible = true
end
I remaned the humanoid generator
local generator = game.Workspace.Generator.Generator.Health
if generator == 9000 then
game.StarterGui.ScreenGui.ImageLabel.Visible = true
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
9 comments
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
Thx
Write [SOLVED] in the question's name :D
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
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
Thx
Is this scirpt ment to be in the gui or is it ment to be elsewhere
It doesn't matter, just change PlayerVariable to player.
THX