Professional Documents
Culture Documents
5f3frnRJ (2)
5f3frnRJ (2)
if head then
local mesh = head:FindFirstChildOfClass("SpecialMesh")
if mesh then
mesh.Scale = Vector3.new(_G.HeadSize.X / head.Size.X, _G.HeadSize.Y
/ head.Size.Y, _G.HeadSize.Z / head.Size.Z)
else
-- If the head doesn't have a SpecialMesh, create one
local newMesh = Instance.new("SpecialMesh", head)
newMesh.Scale = Vector3.new(_G.HeadSize.X / head.Size.X,
_G.HeadSize.Y / head.Size.Y, _G.HeadSize.Z / head.Size.Z)
end
head.Size = _G.HeadSize
head.CanCollide = false -- Disable collision for the head
end
if humanoidRootPart then
humanoidRootPart.Size = _G.HumanoidRootPartSize
humanoidRootPart.Transparency = 0.7
humanoidRootPart.BrickColor = BrickColor.new("Really blue")
humanoidRootPart.Material = "Neon"
humanoidRootPart.CanCollide = false
end
end
end
if humanoidRootPart then
humanoidRootPart.Size = _G.HumanoidRootPartSize
end
end
-- Resize parts
resizeParts(character)