How do you tween a part inside a tool?

All I have is a Handle part, and a second part inside my tool. And I motor6D the part to the handle.

And then I have this script that runs inside the part that is motor6D to the handle. But nothing happens. The script on it’s own outside a tool works fine though, but once it’s inside a part inside the tool. It doesn’t seem to work?

Screenshot of tool: https://gyazo.com/0024668fb00f1f9ed8bb262c9a9dcb35

task.wait(10)
print("rotating")
local partToRotate = script.Parent
local TweenService = game:GetService("TweenService")
local spininfo = TweenInfo.new(

2, -- Length
Enum.EasingStyle.Bounce, -- Easing Style
Enum.EasingDirection.Out, -- Easing Direction
8, -- Times repeated
true, -- Reverse
0 -- Delay)

Spin1 = TweenService:Create(partToRotate,spininfo,{CFrame = script.Parent.CFrame * CFrame.Angles(90,math.rad(120),90)})

You have to play the tween? Thrychrs

Sorry that part got deleted, still doesn’t work when I add :Play() at the end of the ‘Spin1’ variable

Edit: seems like tween doesn’t work when 2 objects are either welded together or connected via motor6D

Not sure how else to do this?

Weld tool and arm with motor6d when tool is equipped

I already did? lol
///////////////////

So basically like this?

local partToRotate = script.Parent

Spin1 = TweenService:Create(partToRotate,spininfo,{CFrame = partToRotate.CFrame * CFrame.Angles(90,math.rad(120),90)})
Spin1:Play()

I’ll go make a clone of yours and see if i can make it work. It just needs to spin right?

Yea, I’m literally just trying to make a constant spin of a part where a part is welded to a main part. And I want the main part to spin (and hopefully also spin the other parts Motor6D together) Inside a tool

Well I don’t know the theory of that but I was able to do it with just a rotating loop, but it should work with tweens. Although I can’t help now cause I’m in school.

I want to tween though lol, that’s the whole point of this. Loops aren’t smooth D:

Yeah, I get it lol I just forgot of how you wanted it so yeah. But like the main problem was the tween not playing?

Yea, a tween with multiple parts connected to the tween part in question doesn’t seem to work. Idk how ppl make these guns with tween sway and animations.

You can’t tween the item if it is welded. Tween the Motor6d instead.

Pretty sure they use animations with the tool thing.

Please read the posts…
//////////

But you can’t use more than 1 animation at a time right? But if I want to animate multiple things, like if I was to move left and sway left, but I’d also have to animate the guns parts moving. And also, if you move right suddenly, how does it transition from left to right. If it’s an animation, it will just suddenly jerk to the new animation. Idk, I wish there was better tutorials out there. I can’t find anything decent…

? Isn’t the question that he can’t tween the part and is looking for alternatives?

You can animate multiple things at the same time, just if they move the same body part (e.g. torso) it will interfere.

Not if you put it on a priority like “Action” or smth. You can play multiple animations.

Not exactly. Priority plays an animation over another. So if I have an animation with action priority, it will play over the animation with priority of, say, Core. However, if they are both “Action” then it won’t play either animation fully.