Tweening a part's rotation

Hi, this is probably a stupid question, but how would I go about tweening a part to rotate to set positions?

2 Likes

You can use the TweenService.

local ts = game:GetService("TweenService")
lcoal ti = TweenInfo.new(2, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out) 
local propertyToTween = {Orientation = Vector3.new(180, 0, 0)}
local tween = ts:Create(part, ti, propertyToTween)

tween:Play()

The juicy thing about the TweenService is that you can choose from a wide variety of EasingStyles to animate your objects differently.

15 Likes

If you want to do that you would either use CFrame tweens or Tween service

4 Likes