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

How do you change the TopSurfaceInput of a motor?

Asked by 6 years ago
Edited 6 years ago

Me and my friend are working on a light bar, but we cannot get some motor parts to spin? Here's the on script.

01local car = script.Parent.Parent.Parent.Car.Value
02local Lightbar = car.Lightbar
03 
04script.Parent.MouseButton1Click:connect(function()
05Lightbar.BA.Light.Enabled = true
06Lightbar.BA.Light1.Enabled = true  
07Lightbar.BB.Light.Enabled = true   
08Lightbar.BB.Light1.Enabled = true  
09Lightbar.RA.Light.Enabled = true   
10Lightbar.RA.Light1.Enabled = true  
11Lightbar.RB.Light.Enabled = true   
12Lightbar.RB.Light1.Enabled = true
13wait(0.5)
14Lightbar.BMotorA.TopSurfaceInput = Sin
15 
16 
17end)

and a picture of the light bar itself: https://gyazo.com/cda8bb6ba4ed5de2bda1729eafaaee5d

0
He ment to try and ask how to change the TopSurfaceInput via script, since if we do it via "=", then it just gets a blue underline. NewBuildmini 5 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

NEVER MIND! I SOLVED IT

Ad

Answer this question