概要
範例程式碼
手動定位帽子
local hat = script.Parent
local character = hat.Parent
hat.Handle.CFrame = character.Head.CFrame * CFrame.new(0, character.Head.Size.Y / 2, 0) * hat.AttachmentPoint:inverse()local hat = script.Parent
local character = hat.Parent
hat.Handle.CFrame = character.Head.CFrame * CFrame.new(0, character.Head.Size.Y / 2, 0) * hat.AttachmentPoint:inverse()