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: Rotate a model?

Previous Thread :: Next Thread 
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
01 Mar 2014 08:45 AM
Okay I see people asking "How to move a model as a whole" and "How do you resize a model" but something I need, and I am not quite sure how, is that I need to rotate a whole model, so that when a main part in it moves, what is also in the model moves with it, I had the idea of putting the parts in a part instead of model, and rotate that, but would that work?


Thanks in advance!
Report Abuse
rangersmash is not online. rangersmash
Joined: 18 Nov 2009
Total Posts: 2891
01 Mar 2014 09:09 AM
You could try and look at CmdAlt's model rotation? I would post it here, but it's exetremly long. Just try it out yourself possibly?
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
01 Mar 2014 09:40 AM
I don't want a great big long script, I want something short, sweet, and simple. Any ideas? Maybe using Joints so when I move the main part others move with it?
Report Abuse
Voidition is not online. Voidition
Joined: 14 Jul 2012
Total Posts: 1849
01 Mar 2014 09:41 AM
[ Content Deleted ]
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
01 Mar 2014 04:31 PM
I need to rotate it within a script -_-
Report Abuse
trogyssy is not online. trogyssy
Joined: 29 Oct 2010
Total Posts: 2322
01 Mar 2014 04:42 PM
try welding everything to a part in the middle, then rotate that part with the script. The weld maintains the parts position relative to the part it's welded to, so this should work.
Report Abuse
Dralian is not online. Dralian
Joined: 21 Mar 2013
Total Posts: 7624
01 Mar 2014 04:53 PM
Model it and Vector3 + loop.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
01 Mar 2014 05:25 PM
I will sound completely noobish, but I have never used wields, could you explain how I would do this?
Report Abuse
DrAgonmoray is not online. DrAgonmoray
Joined: 29 Jul 2008
Total Posts: 17428
01 Mar 2014 05:33 PM
you can rotate a part by multiplying its cframe by another cframe

part.CFrame = part.CFrame * CFrame.new(0, math.pi / 2)

that would rotate a part by 90 degrees

you can put this in a recursive function that rotates all parts in a model
Report Abuse
DrAgonmoray is not online. DrAgonmoray
Joined: 29 Jul 2008
Total Posts: 17428
01 Mar 2014 05:34 PM
sorry should be 0, math.pi / 2, 0 lol
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
01 Mar 2014 05:38 PM
Dragon I am going to be using the rotation property, I just have to rotate a whole model, not just a part.
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