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

Simple: Torso vs HumanoidRootPart?

Asked by 2 years 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 2 years 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 265 — 2y
Ad
Log in to vote
1
Answered by
SuperPuiu 497 Moderation Voter
2 years 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 97 — 2y
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 497 — 2y
0
You're right, I didn't think about the R6 and R15 thing, thank you! SharkRayMaster 265 — 2y

Answer this question