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: how do i rotate a full model

Previous Thread :: Next Thread 
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
03 Jan 2016 10:11 PM
would rotating the primarypart do it?


Report Abuse
LicePro is not online. LicePro
Joined: 08 Dec 2015
Total Posts: 467
03 Jan 2016 10:14 PM
Yes.
Report Abuse
LicePro is not online. LicePro
Joined: 08 Dec 2015
Total Posts: 467
03 Jan 2016 10:14 PM
game.Workspace.MiniModel:SetPrimaryPartCFrame ()
Report Abuse
LicePro is not online. LicePro
Joined: 08 Dec 2015
Total Posts: 467
03 Jan 2016 10:17 PM
Just an example:
repeat
game.Workspace.MiniModel:SetPrimaryPartCFrame () = CFrame.new (0,1,0)
until game.Workspace.MiniModel.CFrame = CFrame.new(0,900,0)
Report Abuse
LicePro is not online. LicePro
Joined: 08 Dec 2015
Total Posts: 467
03 Jan 2016 10:20 PM
game.Workspace.MiniModel.Part*
Report Abuse
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
03 Jan 2016 10:39 PM
k


Report Abuse
FlyNormal is not online. FlyNormal
Joined: 30 Sep 2015
Total Posts: 344
03 Jan 2016 11:16 PM
First set a primary part to the model. The part that will act as a rotation origin. Then simple use SetPrimaryPartCFrame to rotate the model.

model:SetPrimaryPartCFrame(model.PrimaryPart.CFrame * CFrame.Angles(0, math.rad(180), 0))

Will rotate the model in Y-Axis relative to PrimaryPart by 180 degrees.
Report Abuse
LicePro is not online. LicePro
Joined: 08 Dec 2015
Total Posts: 467
03 Jan 2016 11:20 PM
I just said that r3t@rd
Report Abuse
FlyNormal is not online. FlyNormal
Joined: 30 Sep 2015
Total Posts: 344
03 Jan 2016 11:22 PM
Your code will error and was not detailed enough. I merely gave a working code and more details.
Report Abuse
LicePro is not online. LicePro
Joined: 08 Dec 2015
Total Posts: 467
03 Jan 2016 11:23 PM
> I already corrected myself if you read, yet he asked for yes or no.
Report Abuse
FlyNormal is not online. FlyNormal
Joined: 30 Sep 2015
Total Posts: 344
03 Jan 2016 11:27 PM
Still it won't work. Learn coding and test your codes first before trying to help.
Report Abuse
AdvancedObjects is not online. AdvancedObjects
Joined: 11 Dec 2012
Total Posts: 3354
03 Jan 2016 11:28 PM
@FlyNormal. You appear to have already done it for him?



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