Right now I am using this script:
local Player = game.Players.LocalPlayer script.Parent.MouseButton1Click:Connect(function() script.Parent.Parent.Parent.Parent.ScreenGui:Clone().Parent = Player.PlayerGui end)
I don't get any errors. As I think the problem might be that I am clicking the button inside SurfaceGui. Hope someone know how to fix this
I think you need to use a remote event. Here are some links: https://developer.roblox.com/en-us/articles/Remote-Functions-and-Events https://developer.roblox.com/en-us/api-reference/property/Workspace/FilteringEnabled