It works when I set it to false but when I set it to true it doesn't work. No studio errors in output because technically there are none.
if game.StarterGui.Shop.Frame.Visible == true then
script.Parent.Buy.Disabled = false
print("something for testing")
end
--doesn't work
if game.StarterGui.Shop.Frame.Visible == false then
script.Parent.Buy.Disabled = false
print("something")
end
--works

7 comments
cuz ur using startergui NERD and it replicates to the players, just use script.Parents instead of game.StarterGui
k
and no need to be rude
also ur the idiot here it doesn't even work
I think its because both do the exact thing..
Okay, I don't think you understand me, there is a game.StarterGui, then there is a player.PlayerGui, if you change the game.StarterGui, it isn't the player.PlayerGui and the player won't see it. instead of using game.StarterGui, use script.Parents, make sure its a local script
Yeah I changed it to script.Parent and I used a local script