Head Scale Scripting Error

I can’t find a solution for this error. I’d apricate it if you’d help!

local Humanoid = game.Players.LocalPlayer

local HS = Humanoid.HeadScale
local BDS = Humanoid.BodyDepthScale
local BWS = Humanoid.BodyWidthScale
local BHS = Humanoid.BodyHeightScale

game.Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function(Character)
		if Player:GetRankInGroup(4594985) == 90 then
			local Humanoid = Character.Humaniod
			
			HS.Value = HS.Value * 2
			BDS.Value = BDS.Value * 2
			BWS.Value = BWS.Value * 2
			BHS.Value = BHS.Value * 2
		end
	end)
end)

You are identifying the Humanoid as the Player, and not the actual humanoid inside of the Player’s Character. You also basically don’t need the first 5 lines anyways since you are getting the Player and its Character on join, you can instead do this:

game.Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function(Character)
		if Player:GetRankInGroup(4594985) == 90 then
			local Humanoid = Character.Humanoid
			
			local HS = Humanoid.HeadScale
			local BDS = Humanoid.BodyDepthScale
			local BWS = Humanoid.BodyWidthScale
			local BHS = Humanoid.BodyHeightScale
			
			HS.Value = HS.Value * 2
			BDS.Value = BDS.Value * 2
			BWS.Value = BWS.Value * 2
			BHS.Value = BHS.Value * 2
		end
	end)
end)

There was also a spelling mistake, it should be fixed. (Humaniod - Humanoid)
Hope this helped.

1 Like