Hello developers!
So I am making Hover Car with psychics in Roblox and something isn’t right, I cannot control the car it is just going up and down. I think I put my car together with WeldConstraints wrongly because nothing else seems to be wrong. here some Screenshots

here is the script I used:
local RS = game:GetService("RunService")
local car = script.Parent
local seat = car.VehicleSeat
local base = car.Base
local hover = base.Hover
local thrust = base.Thrust
local inertialDampener = base.Dampener
local rotationalDampener = base.RotDampener
local turn = base.Turn
local fire = car.ThrusterFire.Value
local HOVER_HEIGHT = 30
local DETECT_RANGE = 50
local SPEED = 1000
local TURN_SPEED = 1000
local DAMP_MULTIPLIER = 10
local ROT_DAMP_MULTIPLIER = 1
local OFFSET_MULTIPLER = 0.01
RS.Stepped:Connect(function(totalTime, deltaTime)
local direction = Vector3.FromAxis(Enum.Axis.Y) * -DETECT_RANGE
local result = workspace:Raycast(base.Position, direction)
if result and result.Instance.CanCollide then
local distanceToGround = base.Position - result.Position
local offset = 1 + (HOVER_HEIGHT - distanceToGround.Magnitude) * OFFSET_MULTIPLER
hover.Force = Vector3.new(-base:GetMass() * workspace.Gravity * offset)
else
hover.Force = Vector3.new(0, 0, 0)
end
thrust.Force = Vector3.new(seat.Throttle * SPEED)
turn.Torque = Vector3.new(-seat.Steer * TURN_SPEED)
inertialDampener.Force = -base.Velocity * DAMP_MULTIPLIER
rotationalDampener.AngularVelocity = -base.RotVelocity * ROT_DAMP_MULTIPLIER
end)
local function SetMassless(model, massless)
for i, part in pairs(model:GetDescendants()) do
if part:IsA("BasePart") then
part.Massless = massless
end
end
end
local occupant = nil
seat:GetPropertyChangedSignal("Occupant"):Connect(function()
if seat.Occupant then
occupant = seat.Occupant
SetMassless(occupant.Parent, true)
else
SetMassless(occupant.Parent, false)
end
end)
Good day/night!