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: Problem rotating with Weld

Previous Thread :: Next Thread 
Egzekiel is online. Egzekiel
Joined: 10 Jan 2011
Total Posts: 1079
25 Nov 2014 09:47 AM
Yo guys, i have a little problem, i did a script to transform myself into a special form for my game, the transformation create a halo that goes on my head, everything is good except that if i try to rotate 180 degrees in x axis, the part turn AROUND the head when i only want it to rotate around itself.
Cant give the script right gotta wait tonight. But can someone help me to understand?(I think it has something to do with C0)
Report Abuse
CobyGresham is not online. CobyGresham
Joined: 20 Nov 2014
Total Posts: 14
25 Nov 2014 09:51 AM
Weld.C0 = Weld.C0 * CFrame.fromEulerAnglesXYZ(Vector3)
Use radians
so 3.1416 should be close enough to 180, even for large objects.
Report Abuse
Egzekiel is online. Egzekiel
Joined: 10 Jan 2011
Total Posts: 1079
25 Nov 2014 09:56 AM
Thanks, i understand now.

local p3=Instance.new("Weld")
p3.Parent=char.Head
p3.Part0=char.Head
p3.Part1=p1
p3.C0 = p3.C0 * CFrame.fromEulerAnglesXYZ(0,2.5,0)
p3.C1=CFrame.Angles(math.pi,0,0)

I'm gonna try this.
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