|
| 30 Aug 2012 09:02 PM |
Like, is it possible to script motors, so when you click a button it turns on? Or is it possible to make motors faster by clicking a button?
-TST |
|
|
| Report Abuse |
|
|
| |
|
|
| 30 Aug 2012 09:26 PM |
Yup.
You could do a simple click detector script to change the Motor speed, which is a property of the part.
There fun to mess around with. |
|
|
| Report Abuse |
|
|
|
| 30 Aug 2012 09:27 PM |
WhoBloxedWho
There's a property of motor located in the part? What is it?
-TST |
|
|
| Report Abuse |
|
|
|
| 30 Aug 2012 09:33 PM |
(Side) refers to the side of the part the motor is on
Part.(Side)ParamA Part.(Side)ParamB Part.(Side)SurfaceInput
Not sure what ParamA does, but ParamB is the rotation speed
SurfaceInput allows for different rotation types, Sine, Constant, so on. |
|
|
| Report Abuse |
|
|
| |
|
rayoma
|
  |
| Joined: 13 Nov 2009 |
| Total Posts: 1911 |
|
|
| 30 Aug 2012 09:42 PM |
| You can also use the Motor object if you want to be able to control the angle it turns at however that takes a bit more work. |
|
|
| Report Abuse |
|
|
|
| 30 Aug 2012 09:58 PM |
p1 = script.Parent.Parent.Part1 p2 = script.Parent.Parent.Part2
function onClick() p1.RightParamB = 1 p2.LeftParamB = 1
end
script.Parent.ClickDetector.MouseClick.:connect(onClick) -- hmm, for some reason it's not working
-TST |
|
|
| Report Abuse |
|
|
| |
|
Krelinos
|
  |
| Joined: 09 Jan 2010 |
| Total Posts: 425 |
|
|
| 30 Aug 2012 10:37 PM |
| I believe the SurfaceInput must be Constant for it to rotate. |
|
|
| Report Abuse |
|
|