I recently turned on FE and it broke this script. I'm trying to have it copy 'TheMenu' from serverstorage to player gui when I click a startergui button. I know it needs a remote event but I'm not sure where or how to use it.
function click()
local player = script.Parent.Parent.Parent.Parent
game.ServerStorage.GUI.TheMenu:clone().Parent = player.PlayerGui
end
script.Parent.MouseButton1Down:connect(click)
The hierarchy of the script is script -> text button -> screen gui -> starter gui
I know someone else asked something similar but the answer wasn't too helpful to this script.

2 comments
Are you trying to make it where if you click the button it makes a frame popup?
It makes a screen gui that contains a frame pop up