Tween does not work

Trying to tween rotation on a model but it doesn’t work whatsoever, I’ve tried other things (such as tweening the CFrame, using a value, etc) and they don’t work either.

	local tweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Back)
	local rotTween = TweenService:Create(model.Model.PartDrop.PrimaryPart, tweenInfo, {Orientation = Vector3.new(0, model.Model.PartDrop.PrimaryPart.Orientation.Y + 120, 0)})
	rotTween:Play()

Try tweening the CFrame and Use CFrame.Angles() and math.rad() to get the best results.

2 Likes

Did that and same result, I did make the Hitbox visible (that is the PrimaryPart) and it seems only that is moving in the tween despite the other objects being welded to it

local model = workspace:WaitForChild("Model")
local ts=game:GetService("TweenService")
task.wait(3) --to see the test

local tweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Back)
local primaryPart = model.PrimaryPart --model.Model.PartDrop.PrimaryPart ???
local targetOrientation = Vector3.new(0, primaryPart.Orientation.Y + 120, 0)
local rotTween = ts:Create(primaryPart, tweenInfo, {Orientation = targetOrientation})
rotTween:Play()
1 Like

I think with orientation being a Vector3 its adhering to the repositioning behavior that occurs when you change a parts Position vs CFrame

1 Like

Despite me changing to CFrame, it’s still only rotating specifically the PrimaryPart and nothing else despite the Welds attached.

	local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Back)
	local rotTween = TweenService:Create(model.Model.PartDrop.PrimaryPart, tweenInfo, {CFrame = model.Model.PartDrop.PrimaryPart.CFrame * CFrame.Angles(0, 0, math.rad(model.Model.PartDrop.PrimaryPart.CFrame.Z) + 120)})
	rotTween:Play()

image

1 Like

Fixed, forgot to unanchor the parts that aren’t the PrimaryPart. Completely forgot that was a thing I was supposed to do

Thanks everyone for the help regardless

Nevermind this doesn’t help, since now all the mesh parts are just disconnected when unanchored.
I tried a Weld Constraint and this causes another issue where the models are constantly facing upward when they’re supposed to be on the ground as objects to collect.