What do you want to achieve?
vehicle that moves like a tank, no hinge servos
What is the issue?
the vehicle doesn’t want to move forward or backward when rotating function is in the script and vice versa
-- local seat = script.Parent
local rightwheels = workspace.RightWheels
local leftwheels = workspace.LeftWheels
local runservice = game:GetService("RunService")
seat.Changed:Connect(function()
--front backward
for i,v in pairs(rightwheels:GetDescendants()) do
if v.Name == "Hinge" then
v.AngularVelocity = seat.Throttle * -20
end
end
for i,v in pairs(leftwheels:GetDescendants()) do
if v.Name == "Hinge" then
v.AngularVelocity = seat.Throttle * 20
end
end
--turning left right
for i,v in pairs(rightwheels:GetDescendants()) do
if v.Name == "Hinge" then
v.AngularVelocity = seat.Steer * 20
end
end
for i,v in pairs(leftwheels:GetDescendants()) do
if v.Name == "Hinge" then
v.AngularVelocity = seat.Steer * 20
end
end
end)