This hat changer makes the hat too big. But this is the code i have:

local Morpher = script.Parent

function onTouch(Brick)
	for item, child in pairs(Brick.Parent:GetChildren()) do
		if child.ClassName == "Accessory" then
			child.Name = "Cap"
			
			child.Handle.Mesh.MeshId = 
			"https://www.roblox.com/asset/?id=16190466"
			
			child.Handle.Mesh.TextureId =
			"https://www.roblox.com/asset/?id=51278992"
		end
	end
end

Morpher.Touched:connect(onTouch)

Someone on discord said that i needed to use child.Handle.Mesh.Scale But i am a beginner scripter so i changed it to child.Handle.Mesh.Scale = 5 to test it works, but it makes it too big again any size or fix?

http://bit.do/unknown-png

1 comment

0

... how about trying a value smaller than 5?