Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I freely rotate limbs with a script?

Asked by
MuN8MuN 47
5 years ago

Hi! :D My question is: How can I freely rotate limbs with a script? I am not talking about animations right now. In my case, I need the character's arms to point at the mouse cursor with a gun, and that can't be animated. Any help on how I can do that? Thanks in advance, Muuuun

0
Where is your code, elaborate on your question, are you trying to make a ragdoll system? Are you trying to make the mouse icon a hand?? greatneil80 2647 — 5y
0
He's trying to make the character's gun aim at what the user's mouse cursor is pointing at in world. Roblox doesn't support procedural animation replicating normally, but it's in the works for 2020. Right now, doing this accurately via script is not easy. In fact, it's one of the most difficult things Roblox developers commonly attempt (and most fail). EmilyBendsSpace 1025 — 5y
0
The math is not terribly difficult if the character is rigid and it's just the arm moving. Where it gets nasty is when you want it to work on an animating character, at which point it becomes not just a full-on IK problem, but one which has to deal with working around Roblox replication and motor6d updating issues. You need some bits of arcane knowledge not on the developer hub. EmilyBendsSpace 1025 — 5y
0
Why can't I get an answer then? So much games have that and there's no way to learn it... MuN8MuN 47 — 5y

Answer this question