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
01 | local PlayerGui = game.Players.LocalPlayer:WaitForChild( "PlayerGui" ) |
02 | PlayerGui:SetTopbarTransparency( 0 ) |
04 | local screen = Instance.new( "ScreenGui" ) |
05 | screen.Parent = PlayerGui |
07 | local textLabel = Instance.new( "TextLabel" ) |
08 | textLabel.Parent = screen |
09 | textLabel.Text = "Loading" |
10 | textLabel.Size = UDim 2. new( 1 , 0 , 1 , 0 ) |
11 | textLabel.FontSize = 'Size48' |
13 | script.Parent:RemoveDefaultLoadingScreen() |
17 | while tick() - start < 6 do |
18 | textLabel.Text = "Loading " .. string.rep( "." ,count) |
19 | count = (count + 1 ) % 4 |
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?