Force respawn on client

char.Parent = nil
	char.Archivable = true --> Must be archivable so :Clone method can be used
	
	local ragdoll = char:Clone() ; ragdoll.Parent = ragdoll_dump
	ragdoll.Name = char.Name .. "'s corpse"
	
	if localcharacter == char then
		workspace.CurrentCamera.CameraSubject = ragdoll.PrimaryPart or ragdoll.Head
		task.delay(players.RespawnTime, function()
			--char.Parent = workspace
			--localplayer:LoadCharacter()
			-- Anything?
		end)
	end

is there a way to force respawn characters locally

You can’t force respawn on the client - you’ll be met with the error “Player:LoadCharacter() can only be called from backend server”. You could instead try firing a remote:

local function load(player:Player)
    player:LoadCharacter()
end

RemoteEvent.OnServerEvent:Connect(load)

and then…

RemoteEvent:FireServer()

Remember to add appropriate security measures!

1 Like
replicated.replicateragdoll.sendToAll({char = echar, duration = 60, vector = player.Character.HumanoidRootPart.CFrame.LookVector * Vector3.new(15, 2.5, 15)})
			task.delay(players.RespawnTime, function()
				echar.Parent = workspace
				players:GetPlayerFromCharacter(echar):LoadCharacter()
			end)

I’m just force respawning on the server after i fire the ragdoll event but yeah basically the same thing