There are no errors
local RepFirst = game:GetService('ReplicatedFirst'); RepFirst:RemoveDefaultLoadingScreen()
local RepStorage = game:GetService('ReplicatedStorage')
local ContentProvider = game:GetService('ContentProvider')
local StarterGUI = game:GetService('StarterGui')
local Assets = game:GetDescendants()
local GUI = script.LoadingUI:Clone()
local Player = game.Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")
GUI.Parent = PlayerGui
PlayerGui:SetTopbarTransparency(1)
StarterGUI:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)
StarterGUI:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)
StarterGUI:SetCoreGuiEnabled(Enum.CoreGuiType.EmotesMenu, false)
StarterGUI:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)
StarterGUI:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
if not game:IsLoaded() then game.Loaded:Wait() end
for i =1, #Assets do
local Asset = Assets[i]
ContentProvider:PreloadAsync(
{Asset},
function(asset: string,assetFetchStatus: Enum.AssetFetchStatus)
print("Loading:",asset)
print("Status:",assetFetchStatus.Name)
end
)
local progress = i/#Assets
GUI.Background.Loading.Progress.Size = UDim2.new(progress,0 , 1,0)
end
StarterGUI:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)
StarterGUI:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
GUI:Destroy()
Made the loading script using this:
Any help would be very much appriecated