Moving a character's HRP doesn't move the whole character model anymore?

Hello,
I was messing around in studio and noticed when I move the HRP the rest of the body doesn’t move with it which I remember working until this day. This seems to only be happening on the server side though as client wise it still moves with the HRP (yes the moving is done on server side). The function MoveTo works on both client and server though which I would imagine moves the PrimaryPart but the HRP is the primary part so I don’t know what the difference is.

Are you saying that MoveTo function doesn’t work with the primary part?

If so that’s because the MoveTo function only works with the player’s Humanoid.

I’m saying that the MoveTo function does work and moves the whole character model on both server and client. Moving the HRP instead of using the MoveTo function only makes the whole character model move with it on client. MoveTo moves the primary part, when I move the HRP I am moving the primary part, doing the same thing basically but different results.

Hmmm that’s odd, what’s your script? There might be an error…

Edit: I tested this out and just realized the same thing happens to me too… In the process of researching further!

script.Parent.ClickDetector.MouseClick:Connect(function(plr)
	local HRP = plr.Character.HumanoidRootPart
	HRP.Position += Vector3.new(0,50,0)
end)

Alright, after a bit of research I came across someone having the same problem here.
They used this article which worked!
I tried it out and it seemed to work for me as well, hope it can help you too!

1 Like
local Part = script.Parent
local Click = Part:FindFirstChildOfClass("ClickDetector")

Click.MouseClick:Connect(function(Player)
	local Character = Player.Character
	Character:TranslateBy(Vector3.new(0, 50, 0))
end)

Consider using one of the PVInstance API functions instead.

https://developer.roblox.com/en-us/api-reference/class/PVInstance