I’m trying to just tween an image label, and have the tween on a loop until the game is fully loaded… It has no errors at all, so I don’t understand what I did wrong.
local UI = script.Parent.ImageLabel2.ImageLabel
local isit = true
while isit == true do
GameStarting()
task.wait(2.1)
GoBack()
end
if game:IsLoaded() then
task.wait(4)
script.Parent:Destroy()
end
function GameStarting()
UI:TweenSize(UDim2.fromScale(0.197, 0,0.134, 0), Enum.EasingDirection.In, Enum.EasingStyle.Back, 2)
end
function GoBack()
UI:TweenSize(UDim2.fromScale(0.124, 0,0.084, 0), Enum.EasingDirection.In, Enum.EasingStyle.Back, 2)
end
local UI = script.Parent.ImageLabel2.ImageLabel
local TweenService = game:GetService('TweenService')
local tweenInfo = TweenInfo.new(2)
local tweensize1 = UDim2.new(0.153, 0, 0.107 , 0)
local tweensize2 = UDim2.new(0.124, 0,0.084, 0)
function loadingtween()
local tween1 = TweenService:Create(UI, tweenInfo, {Size = tweensize1})
local tween2 = TweenService:Create(UI, tweenInfo, {Size = tweensize2})
while true do
tween1:Play()
wait(2.1)
tween2:Play()
end
end