Ad
Log in to vote
0

Simple: Torso vs HumanoidRootPart?

Asked by 19 days ago

Sorry If this question is dumb, I just can't decide which should I use when teleporting players, Is one better than the other?, are they EXACTLY the same?

As an example, let's say I want to teleport player A to player B

Should I change player A's Torso position to player B's ?

or Should I change player A's HumanoidRootPart position to player B's?

Which is better to use?

2 answers

Log in to vote
1
Answered by 18 days ago

Well, the humanoidrootpart is the primary part of the model, so if you wanted to teleport a player I would probably use that, The difference is that, one is primary part (which from my observations is there so that you can animate the torso and controls some things with character movement and stuff) and the other not, meaning it's just a normal part.

So my answer is teleport the HumanoidRootPart

0
I see, thank you! SharkRayMaster 81 — 12d
Ad
Log in to vote
1
Answered by
SuperPuiu 482 Moderation Voter
18 days ago

Should I change player A's Torso position to player B's ? or Should I change player A's HumanoidRootPart position to player B's?

No, and no. You won't achieve anything by changing HumanoidRootPart's/Torso's position to something new. It will only move the part, not the entire model.

Use :SetPrimaryPartCFrame() on the player model instead. It will auto position the other parts as well. (SetPrimaryPartCFrame documentation) Important fact: Both R6 and R15 have HumanoidRootPart. That means it doesn't mater what type of avatar they have, HumanoidRootPart always exists.

0
I don't think there's much of a point; they both do the same thing. moving HumanoidRootPart will return about the same result as :SetPrimaryPartCFrame() unless I'm misunderstanding something irid_leas 59 — 18d
0
Well I didn't test my theory, but you're right! I didn't know you can change the HumanoidRootPart and get the same result! SuperPuiu 482 — 17d
0
You're right, I didn't think about the R6 and R15 thing, thank you! SharkRayMaster 81 — 12d

Answer this question