generic image
Processing...
  • Games
  • Catalog
  • Develop
  • ROBUX
  • Search in People
  • 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 » Scripters
Home Search
 

Rotation

Previous Thread :: Next Thread 
caca50 is not online. caca50
Joined: 10 Jul 2011
Total Posts: 1542
15 Jul 2017 09:06 PM
How can I have one object rotate with another object?

Example:

I am trying to make a gear, so I've tried to use a cylinder with parts sticking out of it, and rotating the cylinder via CFrame and attaching the pieces with constraints, but the cylinder rotates while the part stays still


Roblox.Forum.Scripters:1: bad argument #1 to 'intellect' (number expected, got nil)
Report Abuse
caca50 is not online. caca50
Joined: 10 Jul 2011
Total Posts: 1542
15 Jul 2017 09:16 PM
Here's an example of using :SetPrimaryPartCFrame (which doesn't work)

goo.gl/bkpqxG



Roblox.Forum.Scripters:1: bad argument #1 to 'intellect' (number expected, got nil)
Report Abuse
Niveum is online. Niveum
Joined: 15 Aug 2009
Total Posts: 3228
15 Jul 2017 09:16 PM
use welds.

Unanchor the cylinders on the gear, weld them together, and they should act as 1 part while moving.


~ S P I C Y ~
Report Abuse
caca50 is not online. caca50
Joined: 10 Jul 2011
Total Posts: 1542
15 Jul 2017 09:26 PM
Using weld:

goo.gl/Wx5EbV

The central part rotates, and that's it.

Note: Central part is anchored


Roblox.Forum.Scripters:1: bad argument #1 to 'intellect' (number expected, got nil)
Report Abuse
samy22 is online. samy22
Joined: 28 Sep 2008
Total Posts: 2038
15 Jul 2017 10:07 PM
offset = Vector3.new(1,1,1)

Part.CFrame = CentralPart.CFrame*CFrame.new(offset)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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.

Thanks for playing ROBLOX

  • 1

    Click RobloxPlayer.exe to run the ROBLOX installer, which just downloaded via your web browser.

  • 2

    Click Run when prompted by your computer to begin the installation process.

  • 3

    Click Ok once you've successfully installed ROBLOX.

  • 4

    After installation, click Play below to join the action!

    Play
The ROBLOX installer should download shortly. If it doesn’t, start the download now.
generic image