Hello, I need help with importing player characters into the workspace through scripts!
Sort of like what the “Moon Animator Character Inserter” but through a script.
I’m trying to make a small cutscene where a killer kills “you” the character.
The Roblox Game “Flicker” has a similar feature where you can find the player who died’s character model.
If you just want to “import” the player’s character you could just clone their actual character model in the Workspace.
Something like this in a server script:
-- Get the player however you want (replace the player variable below)
local char = game.Workspace:WaitForChild(player):Clone()
char.Parent = game.Workspace
local Player = "Roblox" -- player to clone
local userid = game.Players:GetUserIdFromNameAsync(Player)
local playermodel = game.Players:CreateHumanoidModelFromUserId(userid)
playermodel.Parent = game.Workspace