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

How do I make an avatar that follows the player from behind, with the same orientation?

Asked by 4 years ago

So I have been trying to make a player-model(currently I'm just using a copy of my own player model, which will later be replaced with a model of whatever i need) float behind, and a bit above the player's height. I would need it to follow the player and stay in the air. I have tried a couple of things like body position(just a regular body position offset a bit from the player) which works pretty well, BUT the orientation the flying model is facing is not the same as the player, it's only the same when it spawns, as then the CFrames are set, but I didn't succeed in traslating the orientation to the movement. I've tried using CFrame.lookVector and other stuff, but none of them seems to work. I would post my code, but as it's went through a lot of trial and error, it's not only messy but different from the begging, so it wouldn't be of much help. So basically I'm using the player's humanoidrootpart CFrame and setting that to the dummy with an offset.(-5, 5 , 3), and the motion is continous, as in it's following me around, just not turning because body position uses, well, position and not CFrames. I would apreciate any help on this subject. Thank you in advance!

0
Is this a godsend? I was literally just searching for how to do this! ethersend 38 — 4y

1 answer

Log in to vote
0
Answered by
AizakkuZ 226 Moderation Voter
4 years ago

Lol, you must use both BodyGyro and BodyPosition to do what you're trying to achieve

0
Thanks man, it worked like a charm, cheers! tonije123 9 — 4y
Ad

Answer this question