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: Rotating an entire model at once?

Previous Thread :: Next Thread 
vortexyamum is not online. vortexyamum
Joined: 31 Aug 2011
Total Posts: 1979
25 Dec 2014 02:36 AM
Is there a way to do this? Like, say I have a house, and I want it to rotate 10 radians whenever a button it pressed, how could I rotate the house all at once. I know it's possible to rotate each individual brick and then use some fancy math to place them in the right spot, but that seems like it would take a lot of calculations. Is there any other way?
Report Abuse
vortexyamum is not online. vortexyamum
Joined: 31 Aug 2011
Total Posts: 1979
25 Dec 2014 03:01 AM
bump
Report Abuse
vortexyamum is not online. vortexyamum
Joined: 31 Aug 2011
Total Posts: 1979
25 Dec 2014 03:07 AM
So no one knows how to rotate entire models?

(Insert sad face here)
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
25 Dec 2014 03:32 AM
Why does everyone have a problem with this.

local model = game.Workspace.Model
model.PrimaryPart = (model:GetChildren()[math.random(1,#model:GetChldren())])
model:SetPrimaryPartCFrame(mode.PrimaryPart.CFrame * CFrame.Angles(0,math.rad(90),0))
Report Abuse
vortexyamum is not online. vortexyamum
Joined: 31 Aug 2011
Total Posts: 1979
25 Dec 2014 03:37 AM
Because the wiki does explain it.
Report Abuse
vortexyamum is not online. vortexyamum
Joined: 31 Aug 2011
Total Posts: 1979
25 Dec 2014 03:43 AM
doesn't*
Report Abuse
vortexyamum is not online. vortexyamum
Joined: 31 Aug 2011
Total Posts: 1979
25 Dec 2014 03:45 AM
And that script breaks sometimes.
Report Abuse
vortexyamum is not online. vortexyamum
Joined: 31 Aug 2011
Total Posts: 1979
25 Dec 2014 03:47 AM
With the error "20:46:29.658 - std::bad_cast"
Report Abuse
vortexyamum is not online. vortexyamum
Joined: 31 Aug 2011
Total Posts: 1979
25 Dec 2014 03:52 AM
Now fixed with some minor adjustments
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