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

How Do I Make A Gui Play Once?

Asked by 10 years ago

I'm trying to make a Gui Intro that will always play once but not again when you reset. Kinda like clonetrooper1019's intro when he only puts it up once then it's gone. How do I do that that? Here's my first attempt of myself trying in a local script inside a StarterPack Folder:

local Gui = game.Lighting.ScreenGui

wait(1)
Gui:clone().Parent = game.Players.LocalPlayer.PlayerGui
wait()
print("loaded!")

The problem is how do I make the Gui go gone when you reset.

1 answer

Log in to vote
2
Answered by
Lacryma 548 Moderation Voter
10 years ago

Normal script in Workspace or the scriptservice.

local Gui = game.Lighting.ScreenGui

game.Players.PlayerAdded:connect(function(plr)
Gui:clone().Parent = plr:WaitForChild("PlayerGui")
end)
Ad

Answer this question