Sharksie
(Sharksie)
#1
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.
Ryan
(Ryan)
#3
Not sure about wait(), but I’m having issues with the tween function callbacks too.
Anaminus
(Anaminus)
#4
Here are some more details.