Quick actions

cmd+k|ctrl+k

Navigation

Languages

freeman

Snippet info

Language

Lua

Visibility

public

Author

zen

Created

2024-01-02T22:18:46.715084Z

Updated

2024-01-03T15:56:56.200997Z


local character: Model = owner.Character or owner.CharacterAdded:Wait()

local humanoid: Humanoid = character:WaitForChild("Humanoid")

local rigType = humanoid.RigType.Name

local assets = LoadAssets(15850367496)
local newCharacter: Model = assets:Get(rigType):Clone()
newCharacter.Name = character.Name

local char = newCharacter:Clone()

if character.PrimaryPart then
	char:PivotTo(character.PrimaryPart.CFrame)
end

if character:FindFirstChild("Animate") then
	character.Animate:Clone().Parent = char
end

owner.Character = char

char.Parent = workspace
INFO