Hey, I was just wondering if anyone knew how to make this code so not only does it spawn the hat onto the player, but it also spawns it slightly larger since currently it looks too small?
P.Size doesn't create the mesh larger, it remains the same size no matter the size I put in.
h = Instance.new("Hat")
p = Instance.new("Part")
p.Name = "Handle"
p.Size = Vector3.new(2,1,1)
m = Instance.new("SpecialMesh")
m.MeshType = "FileMesh"
m.MeshId = "http://www.roblox.com/Asset/?id="
m.TextureId = "http://www.roblox.com/asset/?id="
h.Parent = character
p.Parent = h
p.Position = character.Head.Position
m.Parent = p
w = Instance.new("Weld")
w.Parent = character.Head
w.Part1 = w.Parent
w.Part0 = p
w.C0 = CFrame.new(Vector3.new(0,-0.53,0))

1 comment
Instead of using 'Size' property of the 'SpecialMesh', you have to use 'Scale' property. 'Scale' has 'Vector3' value type, just as 'Size'. For more information: http://wiki.roblox.com/index.php?title=API:Class/DataModelMesh/Scale http://wiki.roblox.com/index.php?title=API:Class/SpecialMesh