Hello, this is my first time making a chassis, but it doesn’t work. The gravity is really weird, and
I have to set the body force to 1000 to make it move. How do I fix this?
Script:
local Seat = script.Parent
local BV = script.Parent.Parent.Base.BodyForce
local BAV = script.Parent.Parent.Base.BodyAngularVelocity
local val = 0
local function onChanged(property)
if property == "Steer" then
if Seat.Steer == 1 then
BAV.AngularVelocity = Vector3.new(0,-1,0)
elseif Seat.Steer == -1 then
BAV.AngularVelocity = Vector3.new(0,1,0)
elseif Seat.Steer == 0 then
BAV.AngularVelocity = Vector3.new(0,0,0)
end
elseif property == "Throttle" then
if Seat.Throttle == 1 then
BV.Force = script.Parent.Parent.Base.CFrame.LookVector * 1000
print(script.Parent.Parent.Base.BodyForce.Force)
elseif Seat.Throttle == 0 then
BV.Force = script.Parent.Parent.Base.CFrame.LookVector * 0
end
end
end
script.Parent.Changed:Connect(onChanged)
All help is appreciated