How do i make an Intro GUI that only show up when i start the game? can somebody help me?
How do i make an Intro Gui Script?
2 answers
You would use PlayerAdded for when they join, just put the Gui in the script and name it IntroGui or edit the script.
game.Players.PlayerAdded:connect(function(player)
script.IntroGui:Clone().Parent = player.PlayerGui
end)
What I think
I believe that you should look at this wiki article to help you with your problem here http://wiki.roblox.com/index.php/Beginner%27s_GUI_Tutorial.
I say PlayerAddedfunction works, but Replicated Storage works better. An example code of what ReplicateFirstcould do for you is right here.
An Example Code Of ReplicatedFirst
This ReplicatedFirstscript will show a loading page in ReplicatedFirst and will be in a local script to produce the loading screen. The parent of this local script, will be, and of course, ReplicatedFirst this will use some basic math and functions for it to work. I'll explain the script in the lines below
local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")--Access Player Gui Via Variable
PlayerGui:SetTopbarTransparency(0)--Turns the TopBar so that you can see it.
local screen = Instance.new("ScreenGui")--Inserts a new screenGui For us to work with.
screen.Parent = PlayerGui--Since We Defined PlayerGui as a Variable, It will automatically take us to PlayerGui.
local textLabel = Instance.new("TextLabel")--TextLabel is basically text inside the screenGui.
textLabel.Parent = screen--The ScreenGui is it's parent.
textLabel.Text = "Loading"--Changes the text from 'TextLabel' To 'Loading'
textLabel.Size = UDim2.new(1,0,1,0)--This is actually very interesting, if you put (1,0,1,0), it will cover the whole screen
textLabel.FontSize = 'Size48'--Changes the Size of the font to a huge fontsize.
script.Parent:RemoveDefaultLoadingScreen()--Removes The Original Roblox Loading Screen
local count = 0 -- So count will be treated as a number 0
local start = tick()--Tick is very complicated, you should read more about it.
while tick() - start < 6 do--Basic math to add '...'
textLabel.Text = "Loading " .. string.rep(".",count)--String.rep will add '..'
count = (count + 1) % 4-- so basically 0 = (0 + 1)% 4
wait(.3) --waits .3 of a second before becoming a nil object.
end--Since we called a function 'while tick()', we need this end
screen.Parent = nil--Nil is a fancy word for unknown, so we'll never see it again.
In Conclusion
I believe you should get better at scripting before do this however, I even had a hard time with this. I would recommend getting better at basic math and screenGui's before heading here with this code.
GreekGodOfMLG
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
ReplicatedFirst is better.