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

Help With Screen GUIs?

Asked by 10 years ago

How do you make a screen GUI where it is only allowed to be seen on enter, and then it goes away. For example, I need a script that makes sure my screen GUI doesn't appear again after the player resets or dies.

3 answers

Log in to vote
0
Answered by 10 years ago

Simple make a script like this:

game.Players.PlayerAdded:connect(function(plr)
repeat wait() until plr.PlayerGui
a = script.guiname:clone()
a.Parent = plr.PlayerGui
end)

This clones a GUI inside of the script located in workspace, the even finds a plr being added and waits for their playergui then clones a GUI (On Enter GUI) to that player. It doesn't do it again as it only waits for a player enters.

Ad
Log in to vote
0
Answered by
acecateer 130
10 years ago

You could turn off ResetPlayerGuiOnSpawn and it will make it so that all GUI changes stay how they are once you die.

http://wiki.roblox.com/index.php?title=ResetPlayerGuiOnSpawn_(Property)

Log in to vote
0
Answered by 10 years ago
local NAME = lol --Set to GUIs name and make sure it's parent of this
game.Players.PlayerAdded:connect(function(CHEESE)
wait(0)
script.Parent.Parent = CHEESE.LocalPlayer.PlayerGui
wait(1)
CHEESE.Player.PlayerGui.NAME:Destroy()
end

Done

0
Don't do it I messed up User#5466 5 — 10y

Answer this question