Tween Won't Play after pausing

I don’t know if I’m doing something wrong or it could be a bug but the tween won’t resume after pausing.

Code:

local Part = game.Workspace.Part
local Tween = game:GetService("TweenService"):Create(Part, TweenInfo.new(3, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut), {Position = Vector3.new(50, 50, 50)})
Tween:Play()
wait(0.5)
Tween:Pause()
wait(1)
print("Resumed")
Part.Color = Color3.fromRGB(255,0,0)
Tween:Play()

the tween is playing, it’s just that the part is already at the destination.

Nope, i even increased the range, i also tried doing it with color too and its not working, and it should take 3 seconds for it to finish, it had enough time for pausing and playing which only took 1.5 seconds of the tween.

Can you explain to me what exactly you want the tween to do? Because the way your code is written it looks like it’s just using the same tween twice in hopes of getting a different result.

I’m trying to ask if it’s a bug. I’m not really gonna use it, but for some people they might have some use for it EX: Time Stopping Projectiles ETC. I was only experimenting with tweens and coming up with ideas then I ran into that.

Ah okay I see, it does look to be a bug then, my bad.

The code looks perfectly fine and when i tested it randomly work and sometimes doesn’t which is quite odd. I tried the Code in this Page : TweenBase | Roblox Creator Documentation and the same happened. Tried some debugging with Completed Event and the tween does not even complete. So I think its more of a roblox issue rather than yours.

2 Likes

I can reproduce this. Possibly a bug, lets see if more people face this or we get any update regarding TweenBase:Pause 's logs/changes

Yea this might cause an issue to other people if its a bug and they use tweening for projectiles, as I myself am considering to use tween for projectiles.

1 Like

I’m having a related issue with my gear turning animation tween, except that for some reason it seems to only play every 2nd time it’s supposed to:

Here is the only impactful code:

local GearTween = TweenService:Create(Button.ImageLabel, TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, -1), {Rotation = 90})
Button.MouseEnter:Connect(function()
	GearTween:Play()
	print("Entered")
end)
Button.MouseLeave:Connect(function()
	GearTween:Pause()
	print("Left")
end)

It might be something wrong with the tween itself but I doubt it considering the high amount of reports about bugs with tween pausing recently.

EDIT 7/4/2021: This seems to have fixed itself at some point, not sure when, confirming that it was a glitch. Thanks Roblox!

1 Like