I'm using a LocalScript to change a Player's GUI if an IntValue in a Player equals a number.
The point of the script is to make a GUI visible if a player has more than 0 of an item. My script is:
player = game.Players.LocalPlayer
watermelonvalue = player.Inventory.Seeds.Watermelon.Value
if watermelonvalue >= 1 then
print("Watermelonvalue was true")
script.Parent.Visible = true
elseif watermelonvalue == 0 then
script.Parent.Visible = false
The script shows the GUI if the IntValue is 1 or greater but if I change the value in the server the GUI doesn't change when the value is 0.

9 comments
I copied the code into my game and the GUI still shows after the Value is changed.
Are you changing the value on the Client or the Server?
On the Server
Oh wait I just tried it again and now it works! Thanks so much!
No problem.
Ok so when I play my game not in studio the guis don't show unless the value changes so is there anyway to to fix that?
Any code inside the GetPropertyChangedSignal function will only run when the value is changed. You'll need to put code outside of the function if you want it to open without having the value change.
Ok thanks again! Sorry for asking more question
No problem, if you have anymore questions feel free to ask.