Prevent Deleting a Character After Setting a Player's Character Value

How do you not delete a character when trying to set a player’s character value to nil?

I know cloning the character is a workaround, but is there an easier way?

I couldn’t find any past topics about it.

I am not sure what you are trying to do. Why would you set the player’s value to nil?

Not sure why you need context. I’m trying set a player’s character value to nil while not deleting their previous character

i think it is

player.Character = nil

Not sure why you need to do that
https://developer.roblox.com/en-us/api-reference/property/Player/Character

This makes the actual character destroy. I’m looking to prevent it from being destroyed after trying to set the value to nil.

Still need a workaround for this, did you find one?

Hey, not sure if you still need it.
I just figured out a solution.

local character = player.Character
player.Character = nil
character.Parent = workspace

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.