-
What do you want to achieve? I build a simple bike.
-
What is the issue? The bike works but when I have a steer hinge on the front wheel the driving on the front wheel doesn’t work nor the steer, but when I delete one of the hinges it works but without the benefits of the other, for example: when I delete the steer the bike can go fast because both back and front wheels rotate, but I can’t steer. When I delete the hinge for driving on the front wheel it can steer but it’s not fast because the front wheel doesn’t rotate too.
-
What solutions have you tried so far? Searched on devforum
Script for Driving:
local backwheel = script.Parent.Parent.BackWheel
local frontwheel = script.Parent.Parent.FrontWheel
local steer = script.Parent.Parent.Steer
local speed = script.Parent.CarSpeed.Value
script.Parent.Changed:Connect(function()
backwheel.AngularVelocity = speed * -script.Parent.Throttle
frontwheel.AngularVelocity = speed * -script.Parent.Throttle
steer.TargetAngle = -60 * script.Parent.Steer
end)