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

Previous Thread :: Next Thread 
BobGeorgenworn909 is not online. BobGeorgenworn909
Joined: 03 Apr 2008
Total Posts: 1161
05 Nov 2011 03:00 PM
script.Parent.Selected:connect(function(t)
t.KeyDown:connect(function(key)
if key == "r" then
--rotate a model
end
end)
end)

How would you rotate a whole model 90 degrees when you pressed R?
Report Abuse
BobGeorgenworn909 is not online. BobGeorgenworn909
Joined: 03 Apr 2008
Total Posts: 1161
05 Nov 2011 03:13 PM
bump
Report Abuse
31drake is not online. 31drake
Joined: 10 Dec 2010
Total Posts: 341
05 Nov 2011 03:24 PM
Do you mean while you're building, or for players to use?
Report Abuse
BobGeorgenworn909 is not online. BobGeorgenworn909
Joined: 03 Apr 2008
Total Posts: 1161
05 Nov 2011 03:32 PM
In my game, there's a hopperbin, I want it so you press R and then click a model, and it rotates the whole model. I want to add this to the rest of the hopperbin script I made.
Report Abuse
BobGeorgenworn909 is not online. BobGeorgenworn909
Joined: 03 Apr 2008
Total Posts: 1161
05 Nov 2011 03:45 PM
If it helps, all the bricks need to be rotated on the middle brick's axis. This brick is named, "bottom"

If no one knows how to do this (and it is possible)... then I will just make a different model for every direction the model needs to face and replace that model with a different one every time someone presses "R".
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