Using a loading screen from CovertCode

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()


try setting its anchorpoint property to 0, 0.5

1 Like

That is so funny! It works, thanks so much!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.