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

0

cuz ur using startergui NERD and it replicates to the players, just use script.Parents instead of game.StarterGui

0

k

0

and no need to be rude

0

also ur the idiot here it doesn't even work

0

I think its because both do the exact thing..

0

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

0

Yeah I changed it to script.Parent and I used a local script