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

Can you help me with Welcome GUI's?

Asked by 9 years ago

Hello everybody, Tixyscripter here again! So I have this following script.

-----------------
--Configuration--
-----------------

local GUI = script.Welcome


---------------------
--General Functions--
---------------------

Join = (function (Plyr)
    local GuiClone = GUI:Clone()
    if not Plyr.Character then 
        Plyr.CharacterAdded:wait()
    end
    GuiClone.Frame.Visible = false --Set visible to false to be handled by local script
    GuiClone.Parent = Plyr:findFirstChild"PlayerGui"
end)


--------
--Main--
--------
wait(1)

game.Players.PlayerAdded:connect(Join)
for _,v in next, game.Players:GetPlayers() do
    Join(v)
end

What this does is when someone joins a WelcomeGUI appears, then you hit play and then it goes away..... FOREVER. I tried to put a script in to make it come up every once in a while but it didn't work?! I was wondering if you could help me modify this script where it still comes on when you join but it also comes on during the game play, but not every time you re-spawn... Please halp!

Answer this question