Primary part is head?

Ok I don’t know what’s going on but all of a sudden in one of my games, The characters primary part is the head? Please tell me it wasn’t always the head because I’m freaking out right now. Primary part is HumanoidRootPart, right?

Yes, should be HumanoidRootPart. Check your scripts for anything malicious (highly doubt but possible), and for accidental setting of PrimaryPart.

I’ve sifted through all the code multiple times. Nothing changes the characters primary part…

You could write a loop that checks the PrimaryPart of characters, and checks if it is a HumanoidRootPart… If it isn’t then it will set it to the HumanoidRootPart.

But wouldn’t that just be a cheap fix? Why is it head in the first place?

Indeed.

We have no context to your game, so it’d be hard for us to figure that out.

You could also put a script like this if you don’t know what’s wrong

local players = game.Players:GetChildren()
local plrChar = players.Characther

plrChar.CharachterAdded:Wait()
plrChar:WaitForChild("HumanoidRootPart")

if plrChar.PrimaryPart == "Head" then
    plrChar.PrimaryPart = "HumanoidRootPart
end

To be honest, I have no context either. It’s just all of a sudden head. No reason why just one second its humanoid root part and another It’s head.

Also make sure It’s a local script in StarterPlayerScripts

Here’s a fix to your script. :smiley:

local player = game.Players.LocalPlayer
local plrChar = player.Character or player.CharacterAdded:Wait()

if plrChar.PrimaryPart.Name == "Head" then
    plrChar.PrimaryPart = plrChar:WaitForChild("HumanoidRootPart")
end
1 Like

I hate cheap fixes, but it seems like this is my only solution :confused:. Thanks!

Hey! Desperate times call for desperate measures