Problem with Dummy's CFrame

So here the dummy should face my direction at wherever I am.It works fine
Here is the video:
https://gyazo.com/434e62326fd44f4ef4bb6e833185c692
But the problem is this:(the problem can be seen in this video)
https://gyazo.com/0ae2bdb93501f489cdd0e453f9e99cf9

As you can see the dummy starts floating which is not really what I am looking for
My local script:


If there is a more efficient way and if I am doing it wrong I will be glad to know and learn.

You should add another parameter for the CFrame constructor. I worked with this for a camera system a while ago, and what I did worked. I assume you will have to make this:

CFrame.new(dummyheadpos,mycharacterheadpos,0)

For some reason when I am doing this the dummy is getting transferred to the middle of the baseplate I mean (0,0,0)

Just ignore the y component of the character’s head position

CFrame.lookAt(dummyheadpos, Vector3.new(mycharacterheadpos.X, dummyheadpos.Y, mycharacterheadpos.Z))
1 Like