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.

01local m = Instance.new("Motor")
02m.MaxVelocity = 0.05
03m.Part0 = script.Parent
04m.Part1 = script.Parent.Parent.Part
05m.Parent = script.Parent
06 
07local seat = script.Parent.Parent.Parent.VehicleSeat
08 
09seat.Changed:connect(function()
10    if seat.Steer == 0 then
11        m.DesiredAngle = 0
12    elseif seat.Steer == 1 then
13        m.DesiredAngle = -1/3
14    elseif seat.Steer == -1 then
15        m.DesiredAngle = 1/3
16    end
17end)

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