Problem with HumanoidRootPart

Hello. Recently I wanted to recreate dead by daylight. I discovered the way of doing the movement however my problem is that I am not sure how to script it.
Basically what I need is the humanoidrootpart to go about 5-8 studs back from the upper torso position as shown in the image under:
image

I tried changing the Positions and CFrames of the humanoid rootpart in both global and local but didn’t succeed.
The only way I was able to do it was by moving it with the arrows.
I can’t find a solution neither in the forums nor in youtube or other websites.
Could somebody please help me? Thanks in advance.

just create a fake HumanoidRootPart
and then calculate the offset then apply that new offset to the fake HumanoidRootPart (i dont really know how to explain this)

How do I change the camera to move by that part though?

you can manipulate the camera
i dont know how to manipulate the camera tho so i recommend read the api doc about it

1 Like

Nevermind it is not related to the camera I have to change the whole humanoidrootpart to the new one.
I am not really sure how to do that though.

wdym by that
(character limit)

What do you mean by character limit?

I think you can just do this

local function Move(character, studs)
	if not (character:FindFirstChild("Humanoid") and character:FindFirstChild("HumanoidRootPart")) then return end
	local upperTorso = character:FindFirstChild("UpperTorso")
	if upperTorso then
		local hrp = character.HumanoidRootPart
		hrp.CFrame = upperTorso.CFrame * CFrame.new(0,0,studs)
	end
end

You will pass the character model, and how many studs to move.

Move(Character, 6)

I tried it however it didn’t work.


EDIT:
Tested it with localscript but same problem.

Nothing is changed.

You have to have atleast 3 0 characters in one reply so that why I write characters limit

I meant that the fake root part is not being manipulated by the camera sadly

i think the script didnt work because you cant seperate Humanoidrootpart from the body (if you try to teleport the humanoidrootpart, your character get teleport too)

Just create a part behind the player and set CameraSubject to that part.

Exactly what I was trying to do. Since the HumanoidRootPart is connected to every part, moving it basically moves every part with it.

Man do you read the comments above?
I’ve tried that. It doesn’t help.

If you want camera to be focused just behind the player instead on the player itself then that is the way to do it. You cant move HumanoidRootPart without moving the entire player.
image

can you please teach me how to do this fake root thing? my animator really needs it to animate for me

In case you’re still wondering, put the following into StartCharacterScripts. Of course changing the hrp’s CFrame once doesn’t do anything for two reasons: 1) did it only once 2) Moving the RP moves the torso withit.

wait(2)

local Ch 		= script.Parent
local ChLT	= Ch:WaitForChild("LowerTorso")	:: BasePart
local Root	= ChLT:FindFirstChildWhichIsA("Motor6D") 
Ch.PrimaryPart.Transparency = 0 

Root.C0	=	CFrame.new(0,-1,-6)