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

How do I clone a GUI?

From the ServerStorage into a player's PlayerGui? I have tried:

game.Players.PlayerAdded:connect(function(player)
	    player.CharacterAdded:wait() --Waits until the CharacterAdded event has fired.
	    wait(1)
		local GUI= game.ServerStorage.PlayerGUI:Clone()
		GUI.parent=player.PlayerGui
	end)

to no prevail.

1 answer

✓ Accepted answer

The error is on Line 5. You attempt to set the parent of the GUI, when the correct syntax is actually Parent. The "P" has to capitalized.

2 comments

0

I'll check it out

0

Thanks.

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