local tween_service = game:GetService("TweenService")
local run_service = game:GetService("RunService")
local player = game.Players.LocalPlayer
local playerGui = player.PlayerGui

local loadingGui = script:WaitForChild("LoadingGui")
loadingGui.Parent = playerGui

local offset = 6
if run_service:IsStudio() then offset = 2 end

local prop_name = {
	TextLabel = "TextTransparency",
	ImageLabel = "ImageTransparency",
	Frame = "BackgroundTransparency"
}
wait(1)
for _,item in pairs(loadingGui:GetChildren()) do
	local property = prop_name[item.ClassName]
	if not item:IsA("Frame") then
		local tween = tween_service:Create(item,TweenInfo.new(2,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false,0),{[property] = 0})
		tween:Play()
		tween.Completed:Once(function()
			local tween2 = tween_service:Create(item,TweenInfo.new(1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false,1),{[property] = 1})
			tween2:Play()
		end)
	else
		local tween2 = tween_service:Create(item,TweenInfo.new(1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false,offset),{[property] = 1})
		tween2:Play()
	end
end