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

Help With Screen GUIs?

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

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.

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

1 comment

0

Don't do it I messed up

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