#Basic car throttle and steer problems
1 messages · Page 1 of 1 (latest)
did you mean to assign rs to ms.rmotor, do you mean local rs = ms.rservo?
Sometimes ya just need a new set of eyes
but throttle still isn't working
my car isnt meant to be tilted and it may be the reason the rear wheels arent powering
but they are all in one group and the frame that hinges to the wheels are welded
Yeah, I see. You're just trying to set AngularSpeed and doing that won't give torque unless you also apply Torque i think. So initialize the car with
lm.MaxTorque = math.huge
rm.MaxTorque = math.huge
and do the same for the servos too i guess
send your updated script?
try
local car = script.Parent
local main = car.VehicleSeat
local frame = car.chassis
local ms = car.muhAndSuh
-- motors
local lm = ms.lmotor
local rm = ms.rmotor
-- servos
local ls = ms.lservo
local rs = ms.rservo
-- torque
lm.MaxTorque = math.huge
rm.MaxTorque = math.huge
ls.MaxTorque = math.huge
rs.MaxTorque = math.huge
main:GetPropertyChangedSignal("Throttle"):Connect(function()
lm.AngularSpeed = 50 * main.Throttle
rm.AngularSpeed = 50 * main.Throttle
end)
main:GetPropertyChangedSignal("Steer"):Connect(function()
ls.TargetAngle = 25 * main.Steer
rs.TargetAngle = 25 * main.Steer
end)
Does that give you the high constraint?
hinge
im not sur
** You are now Level 6! **
let me try
also im a little bit reluctant on having essentially infinite torque because i kind of want to make a rally car out of this which is meant to struggle around rocky hills
You don't have to set it to math.huge you can adjust the variable as needed (3000-8000 perhaps? on the motors?)
Ah, hate to see ya coming i guess