Loading screen ending fast / ReplicatedFirst:RemoveDefaultLoadingScreen() slow

I’m having problems with my loading screen, it’s fading fast or the default loading screen is slowly being removed.

local replicatedFirst = game:GetService('ReplicatedFirst')
local tweenService = game:GetService('TweenService')
local players = game:GetService('Players')

local localPlayer = players.LocalPlayer
local loadingScreen = script:WaitForChild('LoadingScreen')
local background = loadingScreen:WaitForChild('Background')
local LoadingIcon = background:WaitForChild('LoadingIcon')

replicatedFirst:RemoveDefaultLoadingScreen()
loadingScreen.Parent = localPlayer:WaitForChild('PlayerGui')

local loadingTween = tweenService:Create(LoadingIcon, TweenInfo.new(
	4,
	Enum.EasingStyle.Linear,
	Enum.EasingDirection.Out,
	-1,
	false,
	0
	), {Rotation = 360})

local finishingTween = tweenService:Create(background, TweenInfo.new(
	1,
	Enum.EasingStyle.Back,
	Enum.EasingDirection.Out,
	0,
	false,
	0
), {Position = UDim2.new(background.Position.X, -background.Size.Y)})

loadingTween:Play()

if not game:IsLoaded() then
	game.Loaded:Wait()
end
wait(5)

loadingTween:Cancel()
finishingTween:Play()
finishingTween.Completed:Wait()

loadingScreen:Destroy()

I tried to search something like that, but I didn’t find anything :pensive:.
I have this problem for days, I need help please.

Have you tried putting a script inside replicatedFirst:

game.ReplicatedFirst:RemoveDefaultLoadingScreen()

^^^
Works for me as a local script inside ReplicatedFirst (as a seperate script)

(What I mean is add the script with the loading script)

ReplicatedFirst takes a bit of time to load and when scripts runs it removes the loading screen(plus waiting for playergui) and becouse its just a baseplate with 2 or 3 parts, the game is then loading fast and so the loading screen. Btw i had this too(Unfixible problem i think)

Edit: Btw wath i use is:

repeat wait() until game:IsLoaded()

1 Like