I don't know how to explain it really, but I have a script that should make the vehicleseat move in any direction I choose. So say I make the part rotate to the right on the X axis, if I press W, instead of going forward on that local axis, I go forward on the global orientation axis. I'm sorry if this is confusing, but I don't know the best way to explain it. Here's the code I have so far.
while wait(0.1) do
if script.Parent.Steer == 1 then ---Makes the Seat rotate on the Y Axis
script.Parent.BodyAngularVelocity.AngularVelocity = Vector3.new(0,-1,0)
elseif script.Parent.Steer == -1 then
script.Parent.BodyAngularVelocity.AngularVelocity = Vector3.new(0,1,0)
elseif script.Parent.Steer == 0 then
script.Parent.BodyAngularVelocity.AngularVelocity = Vector3.new(0,0,0)
if script.Parent.Throttle == 1 then ---Makes the Seat rotateon the Y Axis
script.Parent.BodyAngularVelocity.AngularVelocity = Vector3.new(100)
elseif script.Parent.Throttle == -1 then
script.Parent.BodyAngularVelocity.AngularVelocity = Vector3.new(-1,0,0)
elseif script.Parent.Throttle == 0 then
script.Parent.BodyAngularVelocity.AngularVelocity = Vector3.new(0,0,0)
end
end
end
