i make a script that plays the tween when it hits the size of the GUI but it said that "expected ')' (to close ')' at column 24 got), got ','
the script
local tween = game:GetService("TweenService")
local white = script.Parent.white.Frame
local whiteb = script.Parent.white.Frame
local tickloading = script.Parent.LoadingScreen.Background.LoadingBackground.TickLoading
local tweeninfo = TweenInfo.new(
1,
Enum.EasingStyle.Sine,
Enum.EasingDirection.In,
0,
false,
3
)
local goal = {BackgroundTransparency = 0}
local goal2 = {BackgroundTransparency = 1}
local create = tween:Create(white,tweeninfo,goal)
local create2 = tween:Create(white,tweeninfo,goal2)
create.Completed:Connect(function()
wait(2)
create2:Play()
end)
if tickloading.Size == (0.781, 0, 1, 0) then -- its here
create:Play()
end
please help me, thank you
btw, the GUI is the bar of a loading screen so it moves to (1, 0, 1, 0) size

1 comment
it not work