Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why my Custom Loading screen is not showing?

Asked by 5 years ago
Edited 5 years ago

Local script in ReplicatedFirst:

01game.ReplicatedFirst:RemoveDefaultLoadingScreen()
02local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
03PlayerGui:SetTopbarTransparency(0)
04local GUI = game.ReplicatedFirst.Loading
05GUI.Parent = PlayerGui
06wait(8)
07for i = 0, 1, .06 do
08    GUI.Frame.BackgroundTransparency = i
09    GUI.Frame.TextLabel.TextTransparency = i
10    wait()
11end
12GUI:Destroy()

The thing is I still see the default loading screen and when it loads up, I see my loading screen...

I am teleporting players to the private place with: Teleport:TeleportToPrivateServer(PLACE_ID, code, players,"SpawnLocation","", GUI)

GUI is in both situations ScreenGUI placed in ReplicatedFirst.

Here is a short clip of what is going on.

1 answer

Log in to vote
0
Answered by 5 years ago

It might be that your gui is not enabled or your frame is not visible.

Ad

Answer this question