**What do you want to achieve?
so i was making a custom loading screen and want to remove the default one , the custom loading screen is for the teleport loading screen
**What is the issue?
the script doesn’t work
Local Script In Replicated First
local Players = game:GetService("Players")
local ReplicatedFirst = game:GetService("ReplicatedFirst")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = ReplicatedFirst:FindFirstChild("LoadingScreen")
screenGui.IgnoreGuiInset = true
screenGui.Parent = playerGui
-- Remove the default loading screen
ReplicatedFirst:RemoveDefaultLoadingScreen()
wait(5) -- Force screen to appear for a minimum number of seconds
if not game:IsLoaded() then
game.Loaded:Wait()
end
screenGui:Destroy()
this script is from the official roblox site but i don’t know why it doesn’t work , is there anything i miss ??
The default loading screen is hard coded into CoreScripts to wait 5 seconds before removing itself if you call RemoveDefaultLoadingScreen or have a non-zero number of children in ReplicatedFirst. You are required to have that visible at least for your start place.
If you want to make a teleport loading screen, those can completely bypass the need to have the default loading screen visible but only after a teleport has occurred. For that you need to use SetTeleportGui. Teleport Guis cannot be scripted in any way while a player is in transit, so ideally you should make a static Gui that you can apply affects to when the player’s teleport finishes (e.g. fading it) rather than one that has the expectation of constantly being in some state of motion.
It’s definitely not a bug because I use this in my experience right now. Things that don’t work aren’t necessarily representative of engine issues, it just has to do with the code setup.
SetTeleportGui will not show the default loading screen when used and when teleporting to a new place. I detailed that in my response above, which I hope wasn’t skipped over.
Correct. For the start place of any experience (the very first place you join), there is always a 5 second wait time if you remove the default loading screen or have children in ReplicatedFirst. In short, you’re basically only reducing the amount of time it shows for to its minimum, not completely removing it.
Usually not too noticeable because the website also has a loading screen to launch Roblox itself, on top of the loading screen you get when you’re actually in the place and loading up.