Hello everyone! I have a script which changes a player value's value (a player value) and a local script which detects when the value has been changed. If it was, it will make a UI visible.
local player = game.Players.LocalPlayer
local CODR = player:WaitForChild("CODR") -- a boolean value
CODR.Changed:Connect(function(val)
script.Parent.Visible = true
end)
But the UI was not turning visible. I decided to add a print statement in front of the line telling the UI to turn it visible saying "script.Parent.Visible". the Output printed 'true'
local player = game.Players.LocalPlayer
local CODR = player:WaitForChild("CODR") -- a boolean value
CODR.Changed:Connect(function(val)
script.Parent.Visible = true
print(script.Parent.Visible) -- output printing true
end)
Output = true but the UI is not turning visible By the way, the script thats changing the value is located in a model in the workspace

4 comments
is the screen gui enabled?
Yes
When I make it visible on the studio, it works
send pics of workspace while ur in game