I'm trying to make a script that can detect the status of a vehicle through the SeatPart for a racing game. I've been trying to the best of my ability for the past few months, but nothing's been working. I think I'm on the right track with this one, but I could use a nudge in the right direction.
script.Parent.Touched:Connect(function(hit)
while true do
if script.Parent.Humanoid.SeatPart.Steer == 1 then
print("TurnRight")
end
end
end)

1 comment
Sorry for the late response, that makes sense too, I was hoping to avoid writing separate scripts for joystick and keyboard support, but that'll just come later I suppose.