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 » Game Design
Home Search
 

Re: HELP Impossible Moter6D script problem

Previous Thread :: Next Thread 
austinfl is not online. austinfl
Joined: 14 Sep 2013
Total Posts: 191
19 Mar 2016 07:58 PM
--OK I'm gonna ask the impossible question can someone make this script work so it does X,Y,Z for a moter6D. It does work for a normal moter.

local Turns = game.Work-space.Base
local Base = game.Work-space.Part

local motor = Instance.new("Motor6D", game.Work-space.Part)
motor.Part0 = Turns
motor.Part1 = Base
motor.C0 = C-Frame.new(2,0,1) * C-Frame.Angles(math.rad(90),0,0)
motor.C1 = C-Frame.new(2,0,-1) * C-Frame.Angles(math.rad(90),0,0)

motor.Max-Velocity = math.rad(1)
motor.Desired-Angle = math.rad(100) -- I think this is where all the trouble is

--and yes I know there's no such thing as a script-able moter6d unless we do animations,but its just I feel so close.
Report Abuse
Xstarlight is not online. Xstarlight
Joined: 18 Oct 2012
Total Posts: 870
19 Mar 2016 08:03 PM
First of all, its Workspace, no dash, second in local motor = Instance.new("Motor6d", game.Workspace.Part) you can use Base unless you need to keep it a local variable and local variables cant go into a function its not in.
Report Abuse
Xstarlight is not online. Xstarlight
Joined: 18 Oct 2012
Total Posts: 870
19 Mar 2016 08:03 PM
After that I don't know since I don't usually use Motor6d.
Report Abuse
austinfl is not online. austinfl
Joined: 14 Sep 2013
Total Posts: 191
19 Mar 2016 08:26 PM
i added the - to a lot of stuff to make it readable. Oh BTW got a copy of the animation plug-in so ill learn from the masters! 14,778 lines of script baby!
Ha ha... ha...........
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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