So I have my own ragdoll script that only works on R15 players. I put ball socket joints on the upper limbs, lower torso and the head and they spin all the way around unrealistically. I want the head, lower torso and upper limbs to only spin 180 degrees in a Y axis. Is this possible?
COMMUNITY QUESTION
Can you restrict an axis on a ball socket constraint?
1 answer
You are looking for a Hinge constraint I believe.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
I haven't learned all these new LUA mumbo jumbo yet since I just got back to scripting, check out the wiki and try experimenting. When using Constraints, the PGS Physics Solver must be enabled.
Correct me if I'm wrong, I haven't worked with constraints before but I did some research. I'm pretty sure that you can use the LimitsEnabled property to set limits on the Ball Socket Constraint. http://wiki.roblox.com/index.php?title=API:Class/BallSocketConstraint/LimitsEnabled
That's only in a cone. I actually mean that the head is going backwards, the legs and lower torso are also going backwards too. It would look like a broken neck if the head turned all the way. I want the head, limbs and lower torso to rotate freely but the y axis is restricted to 180.
Please spell "Lua" right. It is "Lua", not "LUA". It looks ugly. see http://acronyms.thefreedictionary.com/lua and https://i.gyazo.com/00e893cbc450a25fce72bd251c3da1fe.png