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

Why doesn't RemoveDefaultLoadingScreen() seem to work in my script?

Asked by
Klamman 220 Moderation Voter
8 years ago
Edited 8 years ago

I made a custom loading GUI that looks pretty neat, but my one problem is that the default loading screen stays. Here's a snippet of my code:

local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local introgui = script.Parent.IntroGui:Clone()
local frame = introgui:WaitForChild("Background")
local loadingbar = frame:WaitForChild("LoadingBar")
local progress = loadingbar:WaitForChild("Progress")
local loadingstatus = frame:WaitForChild("LoadingStatus")
local lightfightlabel = frame:WaitForChild("LightFightLabel")
local whiteleaflabel = frame:WaitForChild("WhiteleafLabel")

game.ReplicatedFirst:RemoveDefaultLoadingScreen()

I think I'm using the RemoveDefaultLoadingScreen function properly, so what's the problem? This is in a local script in ReplicatedFirst. Thanks in advance!

0
Is your script in ReplicatedFirst? ZarsBranchkin 885 — 8y

1 answer

Log in to vote
2
Answered by 8 years ago

Did you assign a parent for the GUI such as the playergui?

0
Yes, I did it right after using the RemoveDefaultLoadingScreen function, and moving it before that doesn't help, either. Remember, though, my problem isn't that my custom loading screen doesn't show up - that's fine - my problem is that the default loading screen doesn't disappear. Klamman 220 — 8y
Ad

Answer this question