"Custom Loading UI" are too slow

Hi,

I’v been starting to use custom loading screen in my game:
http://www.roblox.com/games/236741155/Martial-Heroes

When you created a character and clicked play, your screen will fade to white.
Then on the other server, you are suppose to start with a white screen.
Unfortunately this is not the case.

Instead, inbetween the two white screens you get a flimmer of roblox default loadingscreen and a flimmer of the sky.
This is almost causing epilepsy among my players. It’s really a disturbing sight.

The only script (which is a localscript) that I have in ReplicatedFirst is this:

[code]script.Parent:RemoveDefaultLoadingScreen()
game:GetService(“StarterGui”):SetCoreGuiEnabled(Enum.CoreGuiType.All, false)

local screen = Instance.new(“ScreenGui”)
local frame = Instance.new(“Frame”,screen)
frame.Size = UDim2.new(1,0,1,0)
frame.ZIndex = 10
screen.Parent = game.Players.LocalPlayer:WaitForChild(“PlayerGui”)
while game.ContentProvider.RequestQueueSize > 0 do
wait(.3)
end

for i = 1, 30 do
frame.BackgroundTransparency = i/30
wait()
end[/code]

Is it possible to fix this?

3 Likes

I’ve tried making a custom loading screen as well, and I hated everything about it, this was one of my biggest pet-peeves
Don’t wanna make a custom loading screen if I have to see the default for a second anyways.

1 Like

I think the reason you are seeing the skybox is that you call
script.Parent:RemoveDefaultLoadingScreen() before you call game.Players.LocalPlayer:WaitForChild(“PlayerGui”)

If you do it this way:

screen.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
script.Parent:RemoveDefaultLoadingScreen()

I believe you won’t see the skybox, unfortunately this does not help the default loading gui being shown.

3 Likes

I had that exact issue and I was wondering what the heck was going on. It turned out that I was hiding the default loading screen right off the bat, waiting for the playergui, and then parenting the custom, just as you said. Have to say though that the custom loading screen looks really nice – overwhelmed with joy that you guys added ReplicatedFirst :slight_smile:

As SolarCrane pointed out, a good piece of advice is to not hide the default loading screen before you have your gui setup, otherwise there will be flicker.

On the other point about the black screen, we should probably add some ability to customize this (especially for teleports!). It becomes a bit of a struggle to find a place to set the startup color, as we need to know this before we load your game (as the loading screen appears before we know any of this). I think the only logical place is under the game settings on the website.

Edit: Just an FYI, we will be modifying the loading screen to actually cover the entire screen, instead of letting things like topbar and the charbar peek thru.