local E={Id="\082\101\102\114\101\115\104",Aliases={},Description="\082\101\115\112\097\119\110\115 \112\108\097\121\101\114\115\' \099\104\097\114\097\099\116\101\114\115\044 \098\117\116 \107\101\101\112\115 \116\104\101\105\114 \111\108\100 \112\111\115\105\116\105\111\110\046";Args={{Type="\112\108\097\121\101\114\115";Name="\080\108\097\121\101\114\115";Description="\084\104\101 \112\108\097\121\101\114\115 \116\111 \114\101\102\114\101\115\104"}}}function E.RunServer(E,Y)for E,Y in pairs(Y)do local O=Y.Character if O then local E=O:GetPrimaryPartCFrame();(coroutine.wrap(function()Y:LoadCharacter()local O=Y.Character O:SetPrimaryPartCFrame(E)end))()end end return("\082\101\102\114\101\115\104\101\100 \037\100 \112\108\097\121\101\114\040\115\041\046"):format(#Y)end return E
local RefreshCommand = {
	Id = "Refresh",
	Aliases = {},
	Description = "Respawns players' characters, but keeps their old position.",
	Args = {
		{
			Type = "players",
			Name = "Players",
			Description = "The players to refresh"
		}
	}
}

function RefreshCommand.RunServer(_, players)
	for _, player in pairs(players) do
		local character = player.Character
		if character then
			local cframe = character:GetPrimaryPartCFrame()

			coroutine.wrap(function()
				player:LoadCharacter()

				local newCharacter = player.Character
				newCharacter:SetPrimaryPartCFrame(cframe)
			end)()
		end
	end

	return ("Refreshed %d player(s)."):format(#players)
end

return RefreshCommand