I have a SurfaceGui with a TextButton inside it. I am stuck at a point where the button is clicked and a gui comes up for the player to interact with. I don't really have any supplementary scripts since I am very stuck on this topic. I've looked at the WIKI and the Forums and they say that it is not possible to see who clicked a SurfaceGui button unless it is in the StarterGui. Sorry again for not having much code to put in here. I don't want this to seem like a request, but I have really hit a wall. Here it is:
function onClicked()
-- Need to locate playerGui
-- PlayerGui.Screen.Frame.Visible = true
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
I'm trying to make the ScreenGui visible when a SurfaceGui Button is clicked.

3 comments
It says that there is an '=' Expected after player on line 4 (For Both Scripts) in the output, but it wouldn't make sense to put one there.
I actually just got it working. I could not have done it without a part from your code. Thank you!
oh cool :) no problem