Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can you restrict an axis on a ball socket constraint?

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?

4 comments

0

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.

0

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

0

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.

0

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

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.