I can't for the life of me figure out how to rotate relative to the object, rather than world, this is what I have, how could I change this to rotate relative to the fuselage block, rather than the world?

For this script, assume all variables are assigned.

local tf = ship.body.fuselage.turnForce
local frc = Vector3.new(0-(ship.stats.turnForce.Value),0,tf.angularvelocity.Z) * math.rad(360)
tf.angularvelocity = frc

2 comments

0

obj.CFrame = obj.CFrame * CFrame.new()

0

Goulstem, I know it's late, but CFrame and BodyVelocity are different. BV is smooth and has good collision while CF can be buggy and doesn't have physics