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: trying to rotate a model, wont work??

Previous Thread :: Next Thread 
DominusAstra is not online. DominusAstra
Joined: 23 Jun 2014
Total Posts: 12468
27 Jan 2015 01:27 PM
local model = script.Parent
model.PrimaryPart = model.Base

while wait() do
model:SetPrimaryPartCFrame(CFrame.new(0,0,math.pi()*2))
end
Report Abuse
DeviousDeviation is not online. DeviousDeviation
Joined: 28 Dec 2010
Total Posts: 9306
27 Jan 2015 01:28 PM
local model = script.Parent
model.PrimaryPart = model.Base

while wait() do
model:SetPrimaryPartCFrame(model.PrimaryPart.CFrame * CFrame.Angles(0, math.rad(10), 0))
end

⬡
Report Abuse
DominusAstra is not online. DominusAstra
Joined: 23 Jun 2014
Total Posts: 12468
27 Jan 2015 01:28 PM
can u explain that for me?
Report Abuse
DominusAstra is not online. DominusAstra
Joined: 23 Jun 2014
Total Posts: 12468
27 Jan 2015 01:32 PM
like the part you added

im bad at the math part so pls
Report Abuse
earthyreuben is not online. earthyreuben
Joined: 17 Jan 2010
Total Posts: 669
27 Jan 2015 01:35 PM
It has nothing to do with math (sort of), CFrame.Angles does the math need to obtain the degrees (in radians) specified with each axis. Read this: http://wiki.roblox.com/index.php?title=CFrame
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