Hi everyone.
I've made a custom loading screen to replace the default one.
The following code is inside ReplicatedFirst and is a LocalScript.
local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local gui = game.ReplicatedFirst:WaitForChild("Loading")
gui:Clone().Parent = PlayerGui
game:GetService("ReplicatedFirst"):RemoveDefaultLoadingScreen()
I also have code within a 'loading spinner' that removes the UI.
while game.IsLoaded == false do
wait(0.1)
script.Parent.Rotation = script.Parent.Rotation + 45
end
script.Parent.Parent.Parent:Destroy()
The problem is, the default loading screen actually stays now until the player has spawned. (This screen is the one that shows: http://imgur.com/VA0lBvH) After an abnormally long time the default screen fades. Can anyone help to get my custom loading screen showing?
