Hello, I am trying to replace ROBLOX's loading screen with my loading screen. I am using a script I modified from the wiki to help me do this. The LocalScript is in the ReplicatedFirst service and the GUI is in the ReplicatedStorage service.
My problem is that my script will not transfer my loading screen to the player. I've used printing to see where the script stops, but it doesn't even print anything, nor do I get any errors in the output. What do I do?
LocalScript:
script.Parent:RemoveDefaultLoadingScreen() print("Removed default load screen") --Doesn't even pass this. local screen = game:GetService("ReplicatedStorage").PreloadGui:Clone() print("Cloned GUI") screen.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local textLabel = screen.Back.Loading print("Found text") local count = 0 print("Starting while loop") while game.ContentProvider.RequestQueueSize > 0 do textLabel.Text = "Loading " for i=1,count do textLabel.Text = textLabel.Text .. "." end count = (count + 1) % 4 wait(.3) end print("While loop done, for loop begin") for i = 0,1,0.1 do screen.Back.ImageLabel.ImageTransparency = i screen.Back.Loading.TextTransparency = i wait(0.1) end print("Complete, setting values.") game.Players.LocalPlayer:WaitForChild("LoadedGame").Value = true screen.Parent = nil
Any help is appreciated, thanks!
Currently, This feature is only available on GameTest1. According to the Wiki, instead of
script.Parent:RemoveDefaultLoadingScreen()
You should use
game.ReplicatedFirst:RemoveDefaultLoadingScreen()
Locked by Spongocardo, adark, and BlueTaslem
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?