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

How would I complete this code?

I essentially want this new instance to be located inside a added player. I am not sure how you would do this though. I started the script below

game.Players.PlayerAdded:connect(function(player)
	local s = Instance.new("ScreenGui")
	s.Parent = --this line is incomplete as I didn't know how to add it to the newly joined player

1 answer

✓ Accepted answer

Something like this:

game.Players.PlayerAdded:connect(function(player)
	local S = Instance.new("ScreenGui", player.PlayerGui) --The parent is the player in question.
	S.Name = "Your_Gui_Name"
end)

:)

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