How would I Tween ManualWeld Orientation?

Hey! I am making something where a base is welded onto an arm using ManualWelds and the arm is welded to a part at the top of the structure to swing the arm and the seat base.

I want the seat base to spin around so I am using a ManualWeld to help me do this.

I want it to keep spinning at a speed, for example local spinSpeed = 1, but I want to do that using tween so it is nice and smooth. So I need a bit of help on how would I tween the C1’s orientation of a ManualWeld.

Thanks :slight_smile:

Use tween service, it provides what you need from reading your post.

I use tween service for a lot of things but for some reason don’t understand how to use it in this situation. I know I have to use it but how?

Like how would I do it with the welds orientation?

Thanks

Welds use CFrame, TweenService supports CFrame, CFrames have orientation.

TweenService:Create(stuff, stuff, stuff, stuff, {C1 = CFrame.new(X,Y,Z,O1,O2,O3)})

Could I do something like this?

local TweenService = game:GetService("TweenService")

local spinBase = script.Parent
local spinWeld = script.Parent.Weld

local spinSpeed = 1

local spinSeatsTweenPoint = {spinWeld.C1 == CFrame.new(0, 0, 15)}
local spinSeatsTweenInfo = TweenService:Create(
	nil,
	Enum.EasingStyle.Quad,
	Enum.EasingDirection.InOut,
	nil
)
local spinSeatsTween = TweenService:Create(spinBase, spinSeatsTweenInfo, spinSeatsTweenPoint)


while true do 
	spinSeatsTween:Play()
end

Yes but you would have to include the orientation data:

CFrame.new(0, 0, 15) * CFrame.Angles(0, 0, math.rad(15))

Sorry all of these tiny bits of code at a time doesn’t make sense to me.

Here:

local TweenService = game:GetService("TweenService")

local spinBase = script.Parent
local spinWeld = script.Parent.Weld

local spinSpeed = 1

local spinSeatsTweenPoint = {spinWeld.C1 == CFrame.new(0, 0, 15) * CFrame.Angles(0, 0, math.rad(15))}
local spinSeatsTweenInfo = TweenService:Create(
	nil,
	Enum.EasingStyle.Quad,
	Enum.EasingDirection.InOut,
	nil
)
local spinSeatsTween = TweenService:Create(spinBase, spinSeatsTweenInfo, spinSeatsTweenPoint)


while true do 
	spinSeatsTween:Play()
end

I have tried that and I get the error
image

Lol, you used TweenService instead of TweenInfo

Remove the == from spinSeatsTweenPoint, it’s not needed. Do =.

Just seen that. Just changing it now!