Hello There!
I am making my first game and I'm tackling the loading screen at this point in time. I need some help making my loading screen activate sooner. So far it uses the default loading screen for a couple seconds, removes it, shows the terrain loading, and then pulls up the loading screen for a few seconds. I did not script this (I got it from here: http://wiki.roblox.com/index.php?title=Custom_loading_screen ) and I have tried moving the script.Parent:RemoveDefaultLoadingScreen()
below the screen.Parent = nil
at the bottom and adding a wait (5)
on top of it, but nothing I have tried works. HELP!
local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui") PlayerGui:SetTopbarTransparency(0) local screen = Instance.new("ScreenGui") screen.Parent = PlayerGui local textLabel = Instance.new("TextLabel") textLabel.Parent = screen textLabel.Text = "Loading" textLabel.Size = UDim2.new(1,0,1,0) textLabel.FontSize = Enum.FontSize.Size14 script.Parent:RemoveDefaultLoadingScreen() local count = 0 local start = tick() while tick() - start < 6 do textLabel.Text = "Loading " .. string.rep(".",count) count = (count + 1) % 4 wait(.3) end screen.Parent = nil