How do i make an Intro GUI that only show up when i start the game? can somebody help me?
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 PlayerAdded
function works, but Replicated Storage
works better. An example code of what ReplicateFirst
could do for you is right here.
An Example Code Of ReplicatedFirst
This ReplicatedFirst
script 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
Closed as Too Broad by M39a9am3R and EzraNehemiah_TF2
This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.
Why was this question closed?