local player = game:GetService("Players").LocalPlayer
local oGUI = script:FindFirstChild("ScreenGui")
script.Parent.MouseClick:Connect(function()
local GUI = oGUI:Clone()
GUI.Parent = player.PlayerGui
end)
Im trying to make a button , where if you click it , a GUI pops up , but when i tested it , nothing happens and there are no errors , can anybody tell me what's happening ? (Local Script)

2 comments
It looks like your trying to clone the entire screen gui which isn't possible
i think you should use Activated and oGUI should be game:GetService("ScreenGui")