Wait doesn't wait, returns TweenStatus instead + tween callbacks don't work

Here’s a 100% repro related to tween callbacks that causes wait() to not actually wait, and it will return TweenStatuses instead of delta times.

Code with normal wait(); prints the delta time:

[code]local f1 = Instance.new(‘Frame’, workspace)

f1:TweenPosition(
UDim2.new(1, 1, 1, 1),
‘Out’,
‘Sine’,
0.3,
true
)

print(wait(1))[/code]

Code with broken wait(); prints Enum.TweenStatus.Completed whenever I run it:

[code]local f1 = Instance.new(‘Frame’, workspace)

f1:TweenPosition(
UDim2.new(1, 1, 1, 1),
‘Out’,
‘Sine’,
0.3,
true,
function()
print(‘finished’)
end
)

print(wait(1))[/code]

It should also be noted that the callback function never fires. Ever.

I hope someone can find the time to fix this ASAP or at least tell me what I’m doing so horribly wrong. Any help would be greatly appreciated.

Any word on this??

Not sure about wait(), but I’m having issues with the tween function callbacks too.

Here are some more details.

Plz fix plz fix plz fix :frowning: