Hello there,
im trying to customize this tween function so when i tween something using it i could customize the length of the tween:
function:
local function tween(instance, properties, info)
info = info or TweenInfo.new()
local tweenObject = game:GetService("TweenService"):Create(instance, info, properties)
tweenObject:Play()
return tweenObject
end
local function tween(instance, properties, info)
info = info or TweenInfo.new() --it should replace this info with what i entered and not create a new tweeninfo
local tweenObject = game:GetService("TweenService"):Create(instance, info, properties)
tweenObject:Play()
return tweenObject
end