📜  roblox 克隆字符 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:05.778000             🧑  作者: Mango

代码示例1
--Roblox characters are by default Archivable = false
--You need it Archivable = true to close it

local character = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
local archivable = character.Archivable
character.Archivable = true
local clone = character:Clone()
character.Archivable = archivable
clone.Parent = headerAvatar