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: simple question about rotation

Previous Thread :: Next Thread 
Keltrin is not online. Keltrin
Joined: 01 Jan 2014
Total Posts: 2085
10 Feb 2017 05:31 PM
workspace.Part.CFrame = workspace.Part2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))

assuming the rotation of "Part2" isn't Vector3.new(0, 0, 0), this doesn't make the rotation of "Part" Vector3.new(0, 0, 0)

which is a problem because if I set the rotation AFTER setting the CFrame then I'll encounter an issue

wat do


Report Abuse
Treeecow is not online. Treeecow
Joined: 10 Jun 2011
Total Posts: 5161
10 Feb 2017 05:32 PM
localscript
Report Abuse
Keltrin is not online. Keltrin
Joined: 01 Jan 2014
Total Posts: 2085
10 Feb 2017 05:34 PM
what do u mean...


Report Abuse
TehIcyStar is not online. TehIcyStar
Joined: 07 Mar 2010
Total Posts: 1649
10 Feb 2017 05:35 PM
He might mean that "You can't rotate parts located in workspace using localscripts"?
Report Abuse
Keltrin is not online. Keltrin
Joined: 01 Jan 2014
Total Posts: 2085
10 Feb 2017 05:37 PM
im using the command bar for this code...
and im pretty sure u can, might be mistaken but i dont remember being unable to.


Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
10 Feb 2017 06:01 PM
if u want it set to 0

i think doing workspace.Part.Rotation = Vector3.new(0,0,0)

or you could do

workspace.Part.CFrame = CFrame.new(workspace.Part2.CFrame.p)


Report Abuse
Keltrin is not online. Keltrin
Joined: 01 Jan 2014
Total Posts: 2085
10 Feb 2017 09:44 PM
thanks!
sorry for the late reply


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