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:

game.ReplicatedFirst:RemoveDefaultLoadingScreen()
local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
PlayerGui:SetTopbarTransparency(0)
local GUI = game.ReplicatedFirst.Loading
GUI.Parent = PlayerGui
wait(8)
for i = 0, 1, .06 do
    GUI.Frame.BackgroundTransparency = i
    GUI.Frame.TextLabel.TextTransparency = i
    wait()
end
GUI: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