I need help with my loading screen the percentage is finished even tho the tween is not I want the percentage to increase simultaneously with the tween.
game.ReplicatedFirst:RemoveDefaultLoadingScreen() local startergui = game.StarterGui startergui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false) startergui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false) local ContentProvider = game:GetService("ContentProvider") local Players = game:GetService("Players") local localPlayer = Players.LocalPlayer local Frame = script.ScreenGui.Frame local BarO = Frame.BarOutline local Bar = BarO.Bar local plrgui = script.Parent local Text = BarO.TextLabel local ImageLabel = Frame.ImageLabel local tycoon = game.Workspace:FindFirstChild("Ice Cream Fatory Tycoon") local Bans = game.Workspace:FindFirstChild("Bans") local leaderboard = game.Workspace:FindFirstChild("GlobalLeaderboard") local e = game.Workspace:FindFirstChild("Effects") local pb = game.Workspace:FindFirstChild("Premium Benifits") local scripts = game.Workspace:FindFirstChild("Script") local assets = { tycoon, Bans, leaderboard, e, pb, scripts } wait(3) for i = 1, #assets do local asset = assets[i] ContentProvider:PreloadAsync({asset}) local progress = i / #assets Bar:TweenSize(UDim2.new(progress,0,1,0),"Out","Sine",1,true) Text.Text = "Loading Assets: "..progress * 100 .." %" -- here wait(1) end Text.Text = "Loading Complete!" wait(3) for i = 0,1,0.1 do Frame.BackgroundTransparency = i Text.TextTransparency = i Text.TextStrokeTransparency = i BarO.BackgroundTransparency = i Bar.BackgroundTransparency = i ImageLabel.ImageTransparency = i wait(0.1) end wait(1) plrgui:WaitForChild("MainGui").Enabled = true startergui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, true) startergui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)