Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can i clone my INTRO GUI to a player when they join?

Asked by 6 years ago

I have the intro gui all ready but, I don't know how to clone it to a player. Can someone provide a link or explain?

0
You should be able to just put the gui inside StarterGui where it will automatically be replicated to each player when they join. mattscy 3725 — 6y
0
All you have to do is put it in "StarterGui", and it will automatically be replicated in each player's "PlayerGui" when they join. IIApexGamerII 76 — 6y

1 answer

Log in to vote
0
Answered by
Nikkulaos 229 Moderation Voter
6 years ago

You can put it in StarterGui (this is the location for the players guis when they spawn)

Or you can do it the scriping way:

Local Script:

local gui = game.ReplicatedStorage.Gui:Clone()
gui.Parent = game.Players.LocalPlayer.PlayerGui

Server Script:

game.Players.PlayerAdded:connect(function(player)
local gui = game.ReplicatedStorage.Gui:Clone()
gui.Parent = player.PlayerGui
end)
Ad

Answer this question