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: Motor Problems - Help?

Previous Thread :: Next Thread 
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
11 Feb 2012 08:44 PM
local Monster = workspace.Boss
local Legs = Monster.Legs
local main = Monster.Head
local main2 = Legs.Hip

local w = Instance.new("Motor", main2)
w.Part0 = main2
w.Part1 = main
w.C1 = CFrame.new(0,-8.8,0)*CFrame.Angles(math.rad(90),0,0)
w.C0 = main2.CFrame:inverse()*w.Part1.CFrame*w.C1
w.MaxVelocity = 0.2

main.Anchored = false
main2.Anchored = false



The Motor positioning and rotation angle is PERFECT. There's only one problem. When I set the desired angle of the motor to something, the HEAD spins. I want the HIP to spin. I've tried all kinds of stuff, but I can't seem to get the HIPS to spin. Why is this?

I even put a BodyGyro object int he head, and that didn't do anything. >_<
Report Abuse
Phellem is not online. Phellem
Joined: 04 Aug 2011
Total Posts: 1984
11 Feb 2012 08:52 PM
w.Part0 = main2
w.Part1 = main

Did you try
w.Part0 = main
w.Part1 = main2
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
11 Feb 2012 09:06 PM
I've tried both. Same results.
Report Abuse
Phellem is not online. Phellem
Joined: 04 Aug 2011
Total Posts: 1984
11 Feb 2012 09:14 PM
>.< I'm not getting any results either.
Sorry.
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
11 Feb 2012 10:27 PM
> local w = Instance.new("Motor", main2)

Possibly try parenting it to main. I'm guessing that would be the problem. If it is, document it on the wiki for anyone else with similar problems pl0x.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
11 Feb 2012 10:51 PM
@SDuke

I tried both main and main2. Same problem on both.
Also, I wouldn't be able to edit the wiki anyway, as I still have yet to receive my information.
I've stopped caring.
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
11 Feb 2012 10:53 PM
 - Is the leg welded to more things than just the head?
 - Is the head welded to more things than just the leg?
 - Does the head weigh more than the leg?
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
11 Feb 2012 10:54 PM
Also I thought it was just Rensus and TheCap, I didn't know you hadn't either.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
11 Feb 2012 10:55 PM
- Is the leg welded to more things than just the head? Yes
- Is the head welded to more things than just the leg? Yes
- Does the head weigh more than the leg? No idea.

The head is 1 cubic stud. The hip is around 5x.2x2 or something.
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
11 Feb 2012 10:57 PM
Usually with motors it is which one has the least amount of weight behind them. Or at least in my experience with Motors, that's how it worked.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
11 Feb 2012 10:59 PM
I have TONS more parts welded to the head compared to the hip.
That means my experience contradicts your experience.

STUPID MOTORS!


C0 is the driving CFrame, so it would make sense for the Part1 to ALWAYS be rotated, but nooo.
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
11 Feb 2012 11:19 PM
I tried experimenting just using the Motor surface and it acted like I said. That shouldn't be different from the Motor object, should it?

Try :GetMass() to figure out which is heavier.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
11 Feb 2012 11:25 PM
I will post which is heavier tomorrow.
Thanks for the help. :)
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
12 Feb 2012 10:24 AM
I'll be darned.


> print( workspace.Boss.Head:GetMass(), workspace.Boss.Hip:GetMass() )
0.072000004351139 1.4000002145767


Turns out I named my desired head 'Torso' and my desired torso 'Head.' >_>
Thanks for the help, will see what happens :)
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
12 Feb 2012 10:25 AM
np, gordon says he sent out info to some of the writers. Did you get yours?
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
12 Feb 2012 10:30 AM
I did not.
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
12 Feb 2012 10:30 AM
Send him a PM saying you didn't. I think he just gave it to the guys he saw complaining on roblox wiki group.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
12 Feb 2012 10:35 AM
I just sent him a PM. :P

Another question. I have some joints in my boss that are the same size. If two parts are connected via motor, and the two parts have the exact same mass, which would move? Should I just make my desired joint smaller?
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
12 Feb 2012 10:35 AM
Should I just make my desired moving joint smaller?*
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