I’m using a script from CovertCode from this video but I can’t find out how to make my loading bar only move in 1 direction, meaning it’s been sizing in 2 directions. I’ve tried looking at various tutorials and thought of X to tween my GUI but it hasn’t worked.
local gui = script.Parent
local background = gui:WaitForChild("StartingFrame")
local bar = background:WaitForChild("LoadingBar")
local filler = bar:WaitForChild("LoadingProgress")
local percentage = bar:WaitForChild("Percent")
local player = game.Players.LocalPlayer
local plrgui = player.PlayerGui
plrgui:WaitForChild("InviteGui").Enabled = false
task.wait(1)
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
for i = 0, 100 do
task.wait(0.05)
percentage.Text = i.."%"
local formula = i/100
filler:TweenSize(UDim2.new(formula,0,1,0), Enum.EasingDirection.Out, Enum.EasingStyle.Linear, 0.1, true)
if i == 34 then
task.wait(1)
elseif i == 67 then
task.wait(1)
elseif i == 88 then
task.wait(2)
end
end
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, true)
task.wait(1)
plrgui:WaitForChild("InviteGui").Enabled = true
gui:Destroy()