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

Is there a way to weld a humanoidRootPart to another object ONLY by position?

Asked by 5 years ago

I am trying to weld a players root part to a sphere, then do physics on the sphere to make smoother actions happen in game. The only problem is that when I add my weld, it changes the players orientation, which messes up the animation I set up for when that event happens. is there a way I can weld the root part and the player ONLY by position?

1 answer

Log in to vote
1
Answered by
DanzLua 2879 Moderation Voter Community Moderator
5 years ago
Edited 5 years ago

Welds are connected both by position and by orientation, you'll have to use the AlignPosition instance.

You can set one up by creating two Attachments, place one in the sphere and the other in the HumanoidRootPart, then you change the Attachment0 and Attachment1 properties of AlignPosition to those attachments and it will 'weld' by position only.

To change the offset, you can change the position property of either/both attachments.

Ad

Answer this question