I’m currently making a robotic cat arm that moves towards a button. Here’s my code:
local CatArm = script.Parent
local Primary = CatArm.PrimaryPart
local TweenInformationA = TweenInfo.new(0.3, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
local TweenInformationB = TweenInfo.new(0.3, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out, 0, false, 0)
local PositionA = TweenService:Create(Primary, TweenInformationA, {
CFrame = CFrame.new(Vector3.new(-19.3, 121.3, -334.65))
})
local OrientationA = TweenService:Create(Primary, TweenInformationA, {
CFrame = CFrame.Angles(math.rad(-65), 0, 0)
})
local PositionB = TweenService:Create(Primary, TweenInformationB, {
CFrame = CFrame.new(Vector3.new(-19.3, 121.3, -334.65))
})
local OrientationB = TweenService:Create(Primary, TweenInformationB, {
CFrame = CFrame.Angles(math.rad(0), 0, 0)
})
repeat
PositionA:Play()
OrientationA:Play()
wait(1)
PositionB:Play()
OrientationB:Play()
wait(1)
until nil
Note: Kinda new to using CFrame.