Its a pendulum that moves back and forth. Is there any way to make this smoother?
local Model = script.Parent
while true do
wait(0.06)
Model:PivotTo(Model:GetPivot() * CFrame.fromEulerAnglesXYZ(.03, 0, 0))
wait(0.06)
Model:PivotTo(Model:GetPivot() * CFrame.fromEulerAnglesXYZ(.02, 0, 0))
wait(0.1)
Model:PivotTo(Model:GetPivot() * CFrame.fromEulerAnglesXYZ(.02, 0, 0))
wait(0.9)
Model:PivotTo(Model:GetPivot() * CFrame.fromEulerAnglesXYZ(-.02, 0, 0))
wait(0.06)
Model:PivotTo(Model:GetPivot() * CFrame.fromEulerAnglesXYZ(-.03, 0, 0))
wait(0.06)
Model:PivotTo(Model:GetPivot() * CFrame.fromEulerAnglesXYZ(-.02, 0, 0))
wait(0.06)
Model:PivotTo(Model:GetPivot() * CFrame.fromEulerAnglesXYZ(-.02, 0, 0))
wait(0.06)
Model:PivotTo(Model:GetPivot() * CFrame.fromEulerAnglesXYZ(-.02, 0, 0))
wait(0.06)
Model:PivotTo(Model:GetPivot() * CFrame.fromEulerAnglesXYZ(-.03, 0, 0))
wait(0.9)
Model:PivotTo(Model:GetPivot() * CFrame.fromEulerAnglesXYZ(.02, 0, 0))
wait(.1)
Model:PivotTo(Model:GetPivot() * CFrame.fromEulerAnglesXYZ(.05, 0, 0))
end