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: Script to rotate a model

Previous Thread :: Next Thread 
KZskychi is not online. KZskychi
Joined: 19 Apr 2012
Total Posts: 202
15 Jun 2017 04:23 AM
I know that if you want to move a model you use :MoveTo() but what do you use when you have to rotate a model?
Report Abuse
Naco88 is not online. Naco88
Joined: 30 Oct 2009
Total Posts: 665
15 Jun 2017 05:32 AM
You need to set a primary part for your model and then do.

model:SetPrimaryPartCFrame(put rotated cframe here)

I have done it before and when I get back to my pc I will paste the proper code.
Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
15 Jun 2017 05:38 AM
model:SetPrimaryPartCFrame(model:GetPrimaryPartCFrame() * CFrame.Angles(0,math.rad(90),0)

if you are using degrees you need to use math.rad(degrees)
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