I’m making a “beanbag” that the player can get in and control. I’m having an issue though, steer will work all of the time, but throttle never does anything, I never go forward or backwards. It prints that I’m going forward and backwards, but it doesn’t make me go in that direction.
No Errors.
local seat = script.Parent.Parent:WaitForChild("VehicleSeat")
while task.wait(.1) do
if seat.Throttle == 1 then
print("seat is going forward")
script.Parent.Velocity = script.Parent.Position.Unit * Vector3.new(25, 0, 0)
elseif seat.Throttle == -1 then
print("seat is going backwards")
script.Parent.Velocity = script.Parent.Position.Unit * Vector3.new(-25, 0, 0)
else
script.Parent.Velocity = script.Parent.CFrame.lookVector * 0
end
if seat.Steer == 1 then
print("seat is going right")
script.Parent.Velocity = script.Parent.Position.Unit * Vector3.new(0, 0, 25)
elseif seat.Steer == -1 then
print("seat is going left")
script.Parent.Velocity = script.Parent.Position.Unit * Vector3.new(0, 0, -25)
else
script.Parent.Velocity = script.Parent.CFrame.lookVector * 0
end
end