I am trying to make my first vehicle, I got the rigging done and now I am scripting. I am trying to update the wheels, inside of the function the car is supposed to move. But I have no idea how to make it move. Or the math behind it all. I tried using angular velocity and motorMaxtorque but it didn’t make the car move a single bit. I am really confused on this.
Local script:
local car = game.Workspace.Car1
local seat = car.Chassis.MainSeat
--local AttachmentFL = car.Body.WheelFL.Attachment1
--local AttachmentFR = car.Body.WheelFR.Attachment1
local MotorFL = car.Chassis.Core.MotorFL
local MotorFR = car.Chassis.Core.MotorFR
local MotorRL = car.Chassis.Core.MotorRL
local MotorRR = car.Chassis.Core.MotorRR
local Torque = 1000
local velocity = 0
local function UpdateWheels()
end
while wait() do
if seat.Occupant ~= nil then
UpdateWheels()
else
print("No")
end
end