範例程式碼
Manually Position Hats
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()
概要
屬性
屬性 繼承自 Accoutrement
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()