Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help to make this hat in right position?

Asked by 9 years ago

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?

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), mylesmcnabb 0 — 9y

1 answer

Log in to vote
1
Answered by 9 years ago

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()
Ad

Answer this question