Tried making a car but it will not move…
The values inside the HingeConstraints are changing but car says no.
Anchored is of course off
Heres the Script:
local seat = script.Parent.VehicleSeat
local wheels = script.Parent.Wheels
local back1 = script.Parent.HBr
local back2 = script.Parent.HBl
local for1 =script.Parent.HFr
local for2 = script.Parent.HFl
local steer = script.Parent.Steer
local speed = 80
for _, v in pairs(script.Parent:GetDescendants()) do
if v:IsA("BasePart") or v:IsA("MeshPart") or v:IsA("UnionOperation") then
local WeldConstraint = Instance.new("WeldConstraint", v)
WeldConstraint.Part0 = wheels.Body
WeldConstraint.Part1 = v
v.Anchored = false
end
end
seat.Changed:Connect(function(input)
back1.AngularVelocity = speed * -seat.Throttle
back2.AngularVelocity = speed * -seat.Throttle
for1.AngularVelocity = speed * seat.Throttle
for2.AngularVelocity = speed * seat.Throttle
steer.TargetAngle = 15 * seat.Steer
end)
Some pictures of workspace: