#Basic car throttle and steer problems

1 messages · Page 1 of 1 (latest)

rapid sentinel
#

Servos and motors have high torque, i cant see why only front left wheel responds to steering (RWD car and throttle isnt working) Muh And Suh is motors and servos (abbreviated to ms)

lapis phoenix
#

did you mean to assign rs to ms.rmotor, do you mean local rs = ms.rservo?

rapid sentinel
#

well spotted

#

i was peeling my eyes at the script for the past 10 minutes

lapis phoenix
#

Sometimes ya just need a new set of eyes

rapid sentinel
#

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

lapis phoenix
#

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

rapid sentinel
#

the servos work now

#

wait a second

#

something isn't normal

lapis phoenix
#

send your updated script?

rapid sentinel
lapis phoenix
#

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

rapid sentinel
#

im not sur

hot peakBOT
#

studio** You are now Level 6! **studio

rapid sentinel
#

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

lapis phoenix
#

You don't have to set it to math.huge you can adjust the variable as needed (3000-8000 perhaps? on the motors?)

rapid sentinel
#

ok

#

roblox is not fond of me

#

i have perfectly stable connection

lapis phoenix
#

Ah, hate to see ya coming i guess

rapid sentinel
#

ok i reopened it and NOTHING WORKS

#

ffs