Hi, Im trying to make a screen button where if you press it, the current gui becomes invisible and a different one becomes visible. Here is my script. The "mainMenu" gui becomes invisible, but the "WorldSelector" does not become visible.
Button = script.Parent
mainMenu = script.Parent.Parent
WorldSelector = game.StarterGui.WorldSelector.Frame
Button.MouseButton1Click:Connect(function()
WorldSelector.Visible = true
mainMenu.Visible = false
print("Button Pressed")
end)

2 comments
Maybe you forgot the name of it, or mentioned it in a variable incorrectly, check the world selector in the explorer again
Make sure its a local script, and change WorldSelector = game.Players.LocalPlayer.PlayerGui.WorldSelector.Frame