I made a motorcycle, but can’t make the wheels move script.
So, I’m using Orientation to turn the wheels.
The script looks like this:
local drive = script.Parent
local tire1 = script.Parent.Parent.Tire1
local tire2 = script.Parent.Parent.Tire2
drive:GetPropertyChangedSignal("Throttle"):Connect(function()
if drive.Throttle == 1 then
tire1.Orientation += Vector3.new(0, 0, 5)
tire2.Orientation += Vector3.new(0, 0, 5)
end
if drive.Throttle == 0 then
tire1.Orientation += Vector3.new(0, 0, 0)
tire2.Orientation += Vector3.new(0, 0, 0)
end
if drive.Throttle == -1 then
tire1.Orientation -= Vector3.new(0, 0, 2)
tire2.Orientation -= Vector3.new(0, 0, 2)
end
end)
but idk why its not working.