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
 

How to set a part's rotation?

Previous Thread :: Next Thread 
jaghalkade is not online. jaghalkade
Joined: 29 Mar 2015
Total Posts: 96
05 Aug 2016 04:29 PM
For example:

game.Workspace.Part1.CFrame = game.Workspace.Part2.CFrame

Now how would i set the rotation to (0,0,0) ?

Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
05 Aug 2016 04:30 PM
CFrame.new() + game.Workspace.Part2.CFrame.p

Makes a new cframe with a position of the part but no rotation
Report Abuse
jaghalkade is not online. jaghalkade
Joined: 29 Mar 2015
Total Posts: 96
05 Aug 2016 04:38 PM
So it would be like this?

game.Workspace.Part1.CFrame = CFrame.new() + game.Workspace.Part2.CFrame.p

Also would this work?

game.Workspace.Part1.CFrame.r = CFrame.new(0,0,0)
Report Abuse
Nitro509 is not online. Nitro509
Joined: 27 Jun 2010
Total Posts: 11170
05 Aug 2016 05:25 PM
game.Workspace.Part1.Rotation = Vector3.new(x, y, z)


http://wiki.roblox.com/index.php?title=CFrame#Rotating_bricks


Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
05 Aug 2016 05:27 PM
^ No

That will break joints + make it rotate weirdly + move it on top of anything touching it
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