I don’t know why its not working. When I click it nothing happens. I’ve tried multiple different scripts and the function doesn’t even happen so I don’t believe its the script. Its a surface gui using a text button parented to PlayerGui and Adorned to a part. In case it could be this is the relevant script:
local playButtonUI = workspace.MainMenu.Play.SurfaceGui
local playButton = workspace.MainMenu.Play.SurfaceGui.Frame.TextButton
playButtonUI.Parent = Players.LocalPlayer.PlayerGui
playButtonUI.Adornee = workspace.MainMenu.Play -- Here it is moved to the gui bit so thats not the problem
playButton.MouseButton1Click:Connect(playEntered)
I have also moved the player camera if that could be affecting it?
At this point I would post your entire script to the scripting section, and also list any errors it produces, as im sure your script is hanging up somewhere.