Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to clone ScreenGui into local PlayerGui?

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

2 comments

0

I think that you need to use a Remote Event.

0

If you are using a LocalScript inside workspace then it ain't gonna work. put the local script inside Starter player scripts or StarterGui and then run it. define where the UI you want to clone is with a different path. game > Workspace > Wherever it is.

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.