Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How to make this script do the opposite of what it is supposed to do?

Asked by 10 years ago

This script is supposed to make wheels turn.. I tried making the wheels on the back of a bus go the opposite way.. but I couldn't figure out how.. the game on my profile shows the bus I was trying to do it with.

local m = Instance.new("Motor")
m.MaxVelocity = 0.05
m.Part0 = script.Parent
m.Part1 = script.Parent.Parent.Part
m.Parent = script.Parent

local seat = script.Parent.Parent.Parent.VehicleSeat

seat.Changed:connect(function()
    if seat.Steer == 0 then
        m.DesiredAngle = 0
    elseif seat.Steer == 1 then
        m.DesiredAngle = -1/3
    elseif seat.Steer == -1 then
        m.DesiredAngle = 1/3
    end
end)

The bus is not finished..

1 answer

Log in to vote
1
Answered by
ZeroBits 142
10 years ago

set maxvelocity to -0.05.

1
Didn't work. robloxer8282 25 — 10y
Ad

Answer this question