So I do know Tween.Completed() detects if a tween is completed but it detects it is completed even when it wasnβt finished
Like if you are tweening a character and when it is halfway done you tween it to a different position Tween.Completed() will still fire even when it was not successful
Is there a way to make sure the tween succeeded?
tween.PlaybackState == Enum.PlaybackState.Completed
Do you know where I can put this?
how does your script workββββββββββββββββββββββββ
Click = tween:Play() basically
im asking how you plan to use this in your script
you could put that check inside of tween.Completed:Connect() although most people prefer to do :Wait()
local tween = game.TweenService:Create(game.Workspace.Baseplate, TweenInfo.new(1), {Transparency = 0})
tween:Play()
tween.Completed:Connect(function()
if tween.PlaybackState == Enum.PlaybackState.Completed then
print("completed yuh")
else
print("something unfortunate happened:", tween.PlaybackState.Name)
end
end)
task.wait(0.3)
tween:Cancel()