I am trying to open a gui when a value is changed. My current code doesnt work

So, I am currently trying to make a gui show up when a value in the ReplicatedStorage is changed, but my current code shown below does not work and I am very confused. Also, if this is in the wrong category, please do not get mad at me! This is my first post on the Roblox Developer Forum.
Anyway, here’s my code:

game.ReplicatedStorage.InRound.Changed:Connect(function()
    	if game.ReplicatedStorage.InRound.Value == true then
    		game.StarterGui.TeamPickingGUI.Frame.Visible = true
    	else
    		game.StarterGui.TeamPickingGUI.Frame.Visible = false
    	end
end)
  1. What do you want to achieve? I want a team changing GUI to open when a value is changed.

  2. What is the issue? It really hasn’t done anything when I tested.

  3. What solutions have you tried so far? I have looked all over the developer forum.

If you can help, then it will mean the world to me!

You cant access StarterGui, you need to get the PlayerGui instead. Are you trying to get the TeamPickingUpGui frame to be visible to everyone in the server or only a specific person?

1 Like

I forgot about player gui. x( Thank you because i would have never realized this

1 Like