Tweening orientation of a tool

  1. What do you want to achieve? Keep it simple and clear!
    I want to be able to add an option to spin tools similar to how Star Wars does with the Inquisitor lightsabers.

  2. What is the issue? Include screenshots / videos if possible!
    I can’t get part of the tool to rotate on it’s axis.
    I’ve managed to get separate parts of the tool to rotate despite being welded together but they rotate on the world’s axis rather than around their own.
    I’ve tried using :ToWorldSpace but it only seems to work with CFrames which move the entire character rather than just the tool desired.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

The below rotates the “Part1” and all parts welded to it but does so the same direction no matter the original orientation of the part.

local TS = game:GetService("TweenService")
local Part = game.Workspace.Part1
local Goal = {}
Goal.Orientation = Part.Orientation + Vector3.new(0,90,0)
local TI = TweenInfo.new(5)
local Tween = TS:Create(Part,TI,Goal)
Tween:Play()
1 Like

You need to tween the tool handle’s CFrame, to rotate it according to its current orientation.

1 Like

Sorry for the late response, do you know how I could go about doing that?
I’ve tried tweening it with :ToWorldSpace but it’s not done anything.

1 Like