Vehicle seat steer not turning left/right?

  1. What do you want to achieve? A basic ship movement

  2. What is the issue? It wont go left and right.

  3. What solutions have you tried so far? Trying another method for this, looking online.

local seat = script.Parent
local speed = 0
local bv = script.Parent.BodyVelocity
local bg = script.Parent.BodyGyro

while true do
	wait()
	if seat.Throttle == 1 then
		if speed  < seat.MaxSpeed then
			speed = speed + 0.5
		end
		bv.Velocity = script.Parent.CFrame.LookVector * speed
	else if seat.Throttle == 0 then
		if speed  < seat.MaxSpeed then
			speed = 0
		end
		bv.Velocity = script.Parent.CFrame.LookVector * speed
	   end
	end
	if seat.Steer == 1 then --right
		print("Working")
		bg.CFrame = bg.CFrame * CFrame.fromEulerAnglesXYZ(0, math.rad(1), 0)
		print("Working 2")
	elseif seat.Steer == -1 then --left
		print("Working 3")
		bg.CFrame = bg.CFrame * CFrame.fromEulerAnglesXYZ(0, -math.rad(1), 0)
		print("Working 4")
	end
end

This is the control script

local seat = script.Parent

function checkSeatUser()
	if seat.Occupant ~= nil then
		local findPlayer = game.Players:FindFirstChild(seat.Occupant.Parent.Name)
		if findPlayer then
			script.Parent.Control.Disabled = false
		end
		elseif seat.Occupant == nil then
			script.Parent.Control.Disabled = true
	end
end

seat.Changed:Connect(function()
	checkSeatUser()
end)

This is the script that enables/disables the control script.

There are no errors so I don’t know why this is happening, also looked on youtube and there was a tutorial for the method I was using and it didn’t fix the issue.

Aswell as that, all the print statements print but it doesn’t steer.

1 Like

What is the strength of the Force in your BodyGyro?
Too small and it just won’t work. I’ve heard if you set it to math.huge there can be some issues there as well.

Also, try using Torque | Roblox Creator Documentation instead of BodyGyro.

1 Like