Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Help to make this hat in right position?

So I have this character customization gui and I need this hat to be correct on me like correct postions.

Script: Name = "bombastic fedora", MeshId = "http://www.roblox.com/asset/?id=1285237", TextureId = "http://www.roblox.com/asset/?id=231092621", Offset = Vector3.new(0, 0, 0), Scale = Vector3.new(1, 1, 1), AttachmentPos = Vector3.new(0, 0.1, 0),

What do I need to edit for this hat to be in correct position?

1 comment

0

Nevermind it's : Offset = Vector3.new(0, 0, 0), Scale = Vector3.new(1.025, 1.02, 1.055), AttachmentPos = Vector3.new(0, 0.05, 0.06),

1 answer

To automatically position a hat onto a person, use this code:

hat.Handle.CFrame = char.Head.CFrame * CFrame.new(0, char.Head.Size.Y / 2, 0) * hat.AttachmentPoint:inverse()

This discussion is preserved as it was. New answers, comments, and votes are closed.