[NEVERMIND - SOLUTION FOUND] Player head not cooperating with changing positions?

Edit: I realized that changing the mesh scale and offset works better, and either way changing the size of the head is a bad idea in a survival game like this, your hitbox becomes bigger.

Hello y’all! I am currently working on a game where you can customize your character with points. One thing I’m testing out right now is a “bighead” of sorts. I am able to get the head to change sizes, but the head only changes it’s position between a random position and somewhere around ~0.75 at random. It never goes exactly to where I want it to go, it tends to round up or down, and half of the time the head just completely ignores the code and stays in it’s original position. Any help on what’s going on? Oh and here’s the script:

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function()
		if player.Name == "Y35X" then
			wait(1)
		local character = player.Character
		local head = character.Head
		local Torso = character.Torso
		local leftArm = character["Left Arm"]
		local rightArm = character["Right Arm"]
		local leftLeg = character["Left Leg"]
		local rightLeg = character["Right Leg"]
		head.Transparency = 0.7
		Torso.Transparency = 0.7
		leftArm.Transparency = 0.7
		rightArm.Transparency = 0.7
		leftLeg.Transparency = 0.7
		rightLeg.Transparency = 0.7
		head.face.Transparency = 0.7
		local position = head.Position
		local newPosition = position + Vector3.new(0,0.73,0)
		head.Position = newPosition
		head.Size = Vector3.new(2,2,2)
		head.BrickColor = BrickColor.new("Cyan")
		Torso.BrickColor = BrickColor.new("Cyan")
		leftArm.BrickColor = BrickColor.new("Cyan")
		rightArm.BrickColor = BrickColor.new("Cyan")
		leftLeg.BrickColor = BrickColor.new("Cyan")
		rightLeg.BrickColor = BrickColor.new("Cyan")
		end
	end)
end)

rtrrrrr
(this is the result of when i run the code.)

uuuuuuuuuu
(This is the result when I run the exact same code again, seemingly it changes position at random whenever I start the game)

1 Like

Instead of editing your post and changing the title you can reply with the solution and mark it. That way it shows up as solved across the forum.

1 Like

Oh smart, I’ll do that from now on.