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.
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
I just did and what im seeing is that the print stop when the assets are going inside folders.
It’s getting stuck here:
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
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.