So I have made a simple script where if an IntValue is equal to 8 a GUI will be visible and if not, it will be invisible, however even though the visibility property is checked the GUI doesn’t show
( This is inside a regular script )
--Variables
local PumpkinValue = game.Workspace.PumpkinValue
local ScreenGui = game.StarterGui.ScreenGui
local PumpkinEndingGUI = ScreenGui.EndingFrame
--Loops the function so it checks every .5 seconds
while wait(.5) do
--Main function
if PumpkinValue.Value == 8 then
PumpkinEndingGUI.Visible = true
print("YES")
return
else
print("NO")
PumpkinEndingGUI.Visible = false
end
end
This is while running the game
You can see that the value is checked but the gui doesn’t show:
I have not seen any solutions to this any help would be appreciated!