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: CFrame?

Previous Thread :: Next Thread 
adammthomas2000 is not online. adammthomas2000
Joined: 24 Feb 2013
Total Posts: 454
13 Oct 2013 03:37 PM
Hey guys! I am making a gun, and I'm not sure how to do something. While the mouse button is held down, it is supposed to rapid-fire and rotate is barrel. My problem is that i don't know how to make multiple parts spin around an axis. I can do it to one part, but not seven. If you need to view the gun, visit my "Assault WIP". Help would be appreciated. Thanks!
Report Abuse
MHebes is not online. MHebes
Joined: 04 Jan 2013
Total Posts: 2278
13 Oct 2013 03:40 PM
Here's what I would recommend:
Weld all the parts to a part in the center (i.e. axis of rotation) - you could just use the front plate type thing.
Now, weld that plate to the base (non-moving) part of the gun. When you want to rotate the gun, you could do something along the lines of

while rotating do
wait()
Weld_Connecting_Plate_and_Base.C0 = Weld_Connecting_Plate_and_Base.C0*CFrame.Angles(0,0,math.pi/100)
end
Report Abuse
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
13 Oct 2013 03:41 PM
Weld the several parts to the main one.
Report Abuse
adammthomas2000 is not online. adammthomas2000
Joined: 24 Feb 2013
Total Posts: 454
13 Oct 2013 03:44 PM
Currently all of the parts of the gun are welded to the handle in order to prevent it from literally breaking. Would I reweld like this?

6 barrels > front plate

front plate > non-moving parts

non-moving parts > handle?
Report Abuse
adammthomas2000 is not online. adammthomas2000
Joined: 24 Feb 2013
Total Posts: 454
13 Oct 2013 03:55 PM
Bump
Report Abuse
08C is not online. 08C
Joined: 26 Jan 2013
Total Posts: 847
13 Oct 2013 03:56 PM
[ Content Deleted ]
Report Abuse
killmen89 is not online. killmen89
Joined: 11 Jul 2012
Total Posts: 2
13 Oct 2013 04:02 PM
Blah blah blah :P
Report Abuse
adammthomas2000 is not online. adammthomas2000
Joined: 24 Feb 2013
Total Posts: 454
13 Oct 2013 04:02 PM
^

I've only bumped this thread once. If you are not here to give me advice, please do not post on this thread.
Report Abuse
adammthomas2000 is not online. adammthomas2000
Joined: 24 Feb 2013
Total Posts: 454
13 Oct 2013 04:39 PM
Bump.
Report Abuse
MHebes is not online. MHebes
Joined: 04 Jan 2013
Total Posts: 2278
13 Oct 2013 05:16 PM
To answer your question, yes.
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