Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

SurfaceGUI not becoming visible?

This is a script designed so that when the player clicks this button it will make the frame not visible and make the frame inside the same SurfaceGui visible. However this script doesn't do anything. Can anyone help me? This is a LocalScript inside of a TextButton.

script.Parent.MouseButton1Click:connect(function()
	script.Parent.Parent.Visible = false
	script.Parent.Parent.Parent.Booking.Visible = true
end)

1 answer

✓ Accepted answer

The problem is that the script is a local script. Try using a server-sided script instead. Local scripts can only work if they are in a player's PlayerGui or Backpack, which a SurfaceGUI would not be, unless it should only be visible to one player.

This discussion is preserved as it was. New answers, comments, and votes are closed.