A
local TweenService = game:GetService("TweenService")
local Up = TweenService:Create(script.Parnet, TweenInfo.new(), {
Position = Udim2.fromOffset()
})
local Down = TweenService:Create(script.Parnet, TweenInfo.new(), {
Position = Udim2.fromOffset()
})
while task.wait(2) do
Up:Play()
task.wait(2)
Down:Play()
end
B
local TweenService = game:GetService("TweenService")
while task.wait(2) do
TweenService:Create(script.Parnet, TweenInfo.new(), {
Position = Udim2.fromOffset()
}):Play()
task.wait(2)
TweenService:Create(script.Parnet, TweenInfo.new(), {
Position = Udim2.fromOffset()
}):Play()
end
Is there a difference here? if there is, which will work better in terms of performance?