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 » Scripters
Home Search
 

Re: Rotating model

Previous Thread :: Next Thread 
HaydenSpernato is not online. HaydenSpernato
Joined: 06 Dec 2012
Total Posts: 2004
19 Mar 2017 12:05 PM
So basically I have a model that when a button is clicked, it needs to rotate 45°. But, I want to see it rotating, haven't really used much CFrame so not sure if by default I do. How would I do this?
Report Abuse
HaydenSpernato is not online. HaydenSpernato
Joined: 06 Dec 2012
Total Posts: 2004
19 Mar 2017 12:39 PM
bump
Report Abuse
KapKing47 is not online. KapKing47
Joined: 09 Sep 2012
Total Posts: 5522
19 Mar 2017 01:00 PM
Assuming .PrimaryPart is set: local cf = Model.PrimaryPart.CFrame local rotated = cf * CFrame.Angle(0, math.rad(45), 0) --Change the axes if need-be for i = 1, 30 do ########################################### i / 30)) wait() end
Report Abuse
KapKing47 is not online. KapKing47
Joined: 09 Sep 2012
Total Posts: 5522
19 Mar 2017 01:01 PM
Argh! Roblox needs to calm the ham with the filter!

paste bin . com /aTrR6veY


Report Abuse
HaydenSpernato is not online. HaydenSpernato
Joined: 06 Dec 2012
Total Posts: 2004
19 Mar 2017 01:09 PM
"Attempt to call nil value "Angle""
Report Abuse
Real_Spooky is not online. Real_Spooky
Joined: 23 Oct 2013
Total Posts: 3149
19 Mar 2017 01:12 PM
.Angles
Report Abuse
HaydenSpernato is not online. HaydenSpernato
Joined: 06 Dec 2012
Total Posts: 2004
19 Mar 2017 01:16 PM
Thanks for help! Only one problem now, once they rotate once, they go back to beginning when I click again.
Report Abuse
HaydenSpernato is not online. HaydenSpernato
Joined: 06 Dec 2012
Total Posts: 2004
19 Mar 2017 01:24 PM
nvm it's fixed, thanks again
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.



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