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 » Scripting Helpers
Home Search
 

Making someone's head spin?

Previous Thread :: Next Thread 
GiraffeRaging is not online. GiraffeRaging
Joined: 12 Sep 2010
Total Posts: 1861
31 Jul 2014 10:25 AM
I've no idea how to do it. When you just simply CFrame.Angles it, it makes the character jitter and the head doesn't rotate at all.
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
31 Jul 2014 10:28 AM
CFrame.Angles takes radians.
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
31 Jul 2014 10:28 AM
Look at Joints in the Torso, looking for neck.

Mess with DesiredAngle
Report Abuse
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
31 Jul 2014 10:29 AM
You need to edit the Neck joint, not the head rotation.

~The herp lerped a derp~
Report Abuse
GiraffeRaging is not online. GiraffeRaging
Joined: 12 Sep 2010
Total Posts: 1861
31 Jul 2014 10:38 AM
How do I edit the neck to do that? The only properties I see that would have to do with it is CurrentAngle and DesiredAngle. I have no idea what to do to these.
Report Abuse
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
31 Jul 2014 10:41 AM
There's a hidden property of Motor6Ds that is called C0. It is a CFrame value, I suggest checking this out:
http://wiki.roblox.com/index.php?title=Welds

~The herp lerped a derp~
Report Abuse
GiraffeRaging is not online. GiraffeRaging
Joined: 12 Sep 2010
Total Posts: 1861
31 Jul 2014 11:50 AM
Hazily understanding that Welds wiki, I tried this, and it did not work.

What should I have done?

while wait() do
p.Character.Torso.Neck.C0.CFrame = p.Character.Torso.Neck.C0.CFrame * CFrame.Angles(0,.1,0)
end
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
31 Jul 2014 11:52 AM
C0 is already a CFrame, no need to add CFrame after it.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
31 Jul 2014 11:53 AM
The new animations broke this


local character = Game.Players.Player1.Character
character.Torso.Neck.DesiredAngle = math.pi * 2
Report Abuse
GiraffeRaging is not online. GiraffeRaging
Joined: 12 Sep 2010
Total Posts: 1861
31 Jul 2014 12:04 PM
Thank you guys.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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