#Loading screen glitch

1 messages · Page 1 of 1 (latest)

solid thistle
#

When im play testing my game my loading screen just freezes forever for some reason

sage kayakBOT
#

studio** You are now Level 4! **studio

jagged musk
#

do you mean a loadscreen gui or you mean just pressing test causes you to freeze?

jagged musk
#

hmmmmm interesting

#

ok, and have you tried loading without the loadscreen

#

on the surface i dont know why its doing this, you would probably need to show code for the screen

solid thistle
# jagged musk on the surface i dont know why its doing this, you would probably need to show c...

local ContentProvider = game:GetService("ContentProvider")
local Holder = script.Parent.Holder

local Assests = game:GetDescendants()

game.ReplicatedFirst:RemoveDefaultLoadingScreen()

local function start()
for i=1, #Assests do
ContentProvider:PreloadAsync({Assests[i]})

    local Percent = math.floor(i/#Assests * 100)
    
    Holder.BarFrame.Assests.Text = "Assests Loaded: "..i.."/"..#Assests
    Holder.BarFrame.Percentage.Text = Percent.."%"
    
    Holder.BarFrame.Bar:TweenSize(UDim2.fromScale(Percent/100, 1), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.1, true)
end

wait(1)

Holder:TweenPosition(UDim2.fromScale(0.5, -1.5), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 1)

end

start()

#

thats the code @jagged musk

#

@jagged musk

#

@jagged musk

#

@jagged musk