I’m trying to make a rideable shopping cart with suspension wheels that slowly accelerates forward and backwards. Even though I want to do this though, the car doesn’t really accelerate, the wheels are a bit stiff and they don’t really go forward, and they also just don’t really roll…
I’m not sure if this is because of my cylindrical constraints, or spring constraints, but anything that I can use to help me improve the cart itself is so that I can actually fix the cart…
print("s")
local seat = script.Parent
local shoppingCart = seat.Parent
local cart = shoppingCart:WaitForChild("Cart")
local linearVelocity = cart:WaitForChild("LinearVelocity")
local Rotation = cart:WaitForChild("Torque")
seat:GetPropertyChangedSignal("Throttle"):Connect(function()
if seat.Throttle == 1 then
linearVelocity.VectorVelocity = Vector3.new(0, 0, 5)
print(1)
elseif seat.Throttle == -1 then
linearVelocity.VectorVelocity = Vector3.new(0, 0, -5)
print(-1)
elseif seat.Throttle == 0 then
linearVelocity.VectorVelocity = Vector3.new(0, 0, 0)
end
end)
Constraints