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.
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
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