Why doesn't RemoveDefaultLoadingScreen() seem to work in my script?
Asked by
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:
01 | local PlayerGui = game.Players.LocalPlayer:WaitForChild( "PlayerGui" ) |
02 | local introgui = script.Parent.IntroGui:Clone() |
03 | local frame = introgui:WaitForChild( "Background" ) |
04 | local loadingbar = frame:WaitForChild( "LoadingBar" ) |
05 | local progress = loadingbar:WaitForChild( "Progress" ) |
06 | local loadingstatus = frame:WaitForChild( "LoadingStatus" ) |
07 | local lightfightlabel = frame:WaitForChild( "LightFightLabel" ) |
08 | local whiteleaflabel = frame:WaitForChild( "WhiteleafLabel" ) |
10 | 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!