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 part script

Previous Thread :: Next Thread 
MysticalVibez is not online. MysticalVibez
Joined: 01 Aug 2011
Total Posts: 186
29 Jul 2017 12:11 AM
i need a script for a part that rotates pls


R$3,610 i need forum posts
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
29 Jul 2017 12:12 AM
part.CFrame = part.CFrame*CFrame.Angles(AngleX,AngleY,AngleZ)
Report Abuse
Briicks is online. Briicks
Joined: 03 Apr 2015
Total Posts: 1796
29 Jul 2017 12:12 AM
someone will prob give you one, but this is for helping not making free scripts, use CFrame for this, look it up.


Report Abuse
MysticalVibez is not online. MysticalVibez
Joined: 01 Aug 2011
Total Posts: 186
29 Jul 2017 12:15 AM
ty bb


R$3,610 i need forum posts
Report Abuse
MysticalVibez is not online. MysticalVibez
Joined: 01 Aug 2011
Total Posts: 186
29 Jul 2017 12:30 AM
Question, why do you multiply CFrame instead of add?


R$3,610 i need forum posts
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
29 Jul 2017 12:32 AM
Because linear algebra.
Report Abuse
MysticalVibez is not online. MysticalVibez
Joined: 01 Aug 2011
Total Posts: 186
29 Jul 2017 12:33 AM
I guess lol


R$3,610 i need forum posts
Report Abuse
ImperialThinking is not online. ImperialThinking
Joined: 16 Jun 2016
Total Posts: 144
29 Jul 2017 12:34 AM
CFrame is the position of said part.

CFrame.fromEulerAnglesXYZ is the rotation of said part.

Basically, you are telling Studio that take this part, place it here (by CFrame), and rotate the part from that CFrame by those angles.
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
29 Jul 2017 12:40 AM
Casualist is right, but to elaborate:

You CAN add the Vector3 components of CFrames. This is called a translation because you are shifting it.
Rotating a CFrame requires multiplication because it is a transformation (in particular, a linear transformation, hence Casualist's answer), which is a bit more complex than just shifting.
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
29 Jul 2017 12:50 AM
You can't really add a Vector3 and a CFrame as they aren't the same dimension. someCFrame+someVector3 from a maths perspective is really CFrame.new(someVector3)*someCFrame.
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