Loading screen working on studio but not in roblox player

Hello, I made a loading screen that loads each asset in the workspace and after that i hide the ui for the player, the problem im having is that in the studio everything works fine but when i publish it into roblox player, the loading screen get stuck in 6%, I see a difference while loading in studio and player that sometimes the change, the player console don’t show any errors.

Total assets in studio:
image

Total assets in roblox player:
image

You can see the Print statements that are done in the client by pressing F9 even outside studio, Print the name of whatever it’s getting stuck on, by what i’ve seen they tend to get stuck on things like services and workspace

2 Likes

I just did and what im seeing is that the print stop when the assets are going inside folders.
It’s getting stuck here:
image

Last print is asset VigilanceObjects
My code do this:

local assets = game:GetDescendants()

for i = 1, #assets do
	local asset = assets[i]
	local percentage = math.round(i/#assets * 100)
	--debug
	print(asset, " asset Name")
	contentProvider:PreloadAsync({asset})
	
	clonedLoadingScreen.Background.DisplayPercent.Text = percentage.."%"
	clonedLoadingScreen.Background.DisplayAssets.Text = "Loading Assets: "..i.."/"..#assets

	tweenService:Create(clonedLoadingScreen.Background.BarBackground.Bar, TweenInfo.new(.2,Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {Size = UDim2.fromScale(percentage/100, 1)}):Play()
	
	if i == #assets then
		task.wait(.5)
	end
end

That’s pretty weird, are there a load of descendant instances under the foler? it tries to load all the descendants of the folder, maybe see if skipping folders makes any change

Inside them i have more meshes and parts, but looks like it get stucked there.

It could be that in roblox studio the stuff loads different than the roblox player. As you know sometiems you load like a minute into the game and in studio lets say 20 seconds or something.