Problem with VehiceSeat

Whenever I enter the VehicleSeat, my camera moves up.

Here is a video of it:

What can I do to fix this?

1 Like

Is there any script that handles the VehicleSeat?

If yes, can you show that?

It happens with every VehicleSeat.

I don’t know if this is the script related to the camera, but I think this is the code.

local CameraForwards = -CoordinateFrame:vectorToWorldSpace(Vector3.new(0, 0, 1))
local CameraSideways = -CoordinateFrame:vectorToWorldSpace(Vector3.new(1, 0, 0))
local CameraRotation = -CoordinateFrame:vectorToWorldSpace(Vector3.new(0, 1, 0))

CameraForwards = CameraForwards * Vector3.new(1, 0, 1)
CameraSideways = CameraSideways * Vector3.new(1, 0, 1)

if CameraForwards:Dot(CameraForwards) < 0.1 or CameraSideways:Dot(CameraSideways) < 0.1 then
return
end

CameraForwards = CameraForwards.unit
CameraSideways = CameraSideways.unit

if math.abs(Velocity.X) < 2 and math.abs(Velocity.Z) < 2 then
BodyVelocity.velocity = Vector3.new(0, 0, 0)
else
BodyVelocity.velocity = Velocity
end
BodyGyro.cframe = CFrame.new(0, 0, 0) * CFrame.Angles(Velocity:Dot(Vector3.new(0, 0, 1)) * (math.pi / 320), 0, math.pi - Velocity:Dot(Vector3.new(1, 0, 0)) * (math.pi / 320))
if Controls.Forward.Mode and (not Controls.Backward.Mode) and Velocity:Dot(CameraForwards) < MaxVelocity then
Velocity = Velocity + Acceleration * CameraForwards
elseif Controls.Backward.Mode and (not Controls.Forward.Mode) and Velocity:Dot(CameraForwards) > MinVelocity then
Velocity = Velocity - Deceleration * CameraForwards
elseif (not Controls.Backward.Mode) and (not Controls.Forward.Mode) and Velocity:Dot(CameraForwards) > 0 then
Velocity = Velocity - AutoDeceleration * CameraForwards
elseif (not Controls.Backward.Mode) and (not Controls.Forward.Mode) and Velocity:Dot(CameraForwards) < 0 then
Velocity = Velocity + AutoDeceleration * CameraForwards
end

if Controls.Left.Mode and (not Controls.Right.Mode) and Velocity:Dot(CameraSideways) < MaxSideVelocity then
Velocity = Velocity + SideAcceleration * CameraSideways
elseif Controls.Right.Mode and (not Controls.Left.Mode) and Velocity:Dot(CameraSideways) > MinSideVelocity then
Velocity = Velocity - SideDeceleration * CameraSideways
elseif (not Controls.Right.Mode) and (not Controls.Left.Mode) and Velocity:Dot(CameraSideways) > 0 then
Velocity = Velocity - AutoSideDeceleration * CameraSideways
elseif (not Controls.Right.Mode) and (not Controls.Left.Mode) and Velocity:Dot(CameraSideways) < 0 then
Velocity = Velocity + AutoSideDeceleration * CameraSideways
end

if ForceLift then
RiseVelocity.velocity = Vector3.new(0, LiftOffSpeed, 0)
else
if Controls.Up.Mode and (not Controls.Down.Mode) then
RiseVelocity.velocity = Vector3.new(0, LiftSpeed, 0)
BodyPosition.maxForce = Vector3.new(0, 0, 0)
elseif Controls.Down.Mode and (not Controls.Up.Mode) then
RiseVelocity.velocity = Vector3.new(0, LowerSpeed, 0)
BodyPosition.maxForce = Vector3.new(0, 0, 0)
end
end

I think I know about what’s going on, recently, Roblox updated the camera for the Vehicle seats. This new update has broken some vehicle cameras.

Oh, ok, Do you know how to fix it?

Every vehicle that I enter in, the camera always goes up in that position.

Very strange. Did you make these vehicles or are they free models?

The U.F.O is made from ROBLOX, and others are the basic Jeep model.

This is probably because these Vehicles were made before the Vehicle camera update. Meaning that these models are outdated.

Ok, I will test with a new model, and let you know about it.

1 Like

The camera doesn’t go up with the new model, but the new model is not moving.

Here is a video:

I am pressing W, but It doesn’t move forward.

1 Like

Did you add a script to the Vehicle?

No, It was a free model from the “Resources” Section.

A lot of car free models don’t work correctly. I recommend checking out this tutorial on how to make a simple car.

The free car model worked in the place that I downloaded to get the free model, but I copied and pasted it to my game, but It won’t work.

It’s most likely because you renamed something on the car which causes it to error, or there is a missing asset from the car that you accidently removed.

I didn’t make any changes to the things in the free model.