generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Is it possible to manipulate motors with scripting?

Previous Thread :: Next Thread 
TheSuperTrader is not online. TheSuperTrader
Joined: 19 Aug 2012
Total Posts: 1036
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
TheSuperTrader is not online. TheSuperTrader
Joined: 19 Aug 2012
Total Posts: 1036
30 Aug 2012 09:22 PM
?

-TST
Report Abuse
WhoBloxedWho is not online. WhoBloxedWho
Joined: 25 Mar 2009
Total Posts: 4611
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
TheSuperTrader is not online. TheSuperTrader
Joined: 19 Aug 2012
Total Posts: 1036
30 Aug 2012 09:27 PM
WhoBloxedWho

There's a property of motor located in the part? What is it?

-TST
Report Abuse
WhoBloxedWho is not online. WhoBloxedWho
Joined: 25 Mar 2009
Total Posts: 4611
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
Vangtzuef123 is not online. Vangtzuef123
Joined: 13 Aug 2012
Total Posts: 16
30 Aug 2012 09:38 PM
Hi
Report Abuse
rayoma is not online. 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
TheSuperTrader is not online. TheSuperTrader
Joined: 19 Aug 2012
Total Posts: 1036
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
TheSuperTrader is not online. TheSuperTrader
Joined: 19 Aug 2012
Total Posts: 1036
30 Aug 2012 10:06 PM
Bump

-TST
Report Abuse
Krelinos is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image