Please Fix My Script, Respawning Can't PivotTo

Reseting/Respawns Character, Respawned Character Can’t PivotTo

game.Players.PlayerAdded:Connect(function(plr)
	if not plr:FindFirstChild("leaderstats") then
		game.ServerStorage.leaderstats:Clone().Parent = plr
	end
	plr.CharacterAdded:Connect(function(char)
		if plr.Character:WaitForChild("Pants") then
			plr.Character.Pants:Destroy()
			plr.Character.Shirt:Destroy()
		end
		for _,v in game.ServerStorage["2019rblxClothing"]:GetChildren() do
			v:Clone().Parent = plr.Character
		end
		plr.Character:PivotTo(workspace.Spawns.CFrame)
	end)
end)

i think you need to getpivot before pivoting to

My Decompiled “Legends Of Karate” Video:

I Remade ServerScripts In My Decomped

your incorrectly doing the spawning

plr.Character:PivotTo(workspace.Spawns.CFrame)

would be

plr.Character:PivotTo(workspace.Spawns:GetChildren()[math.random(#workspace.Spawns:GetChildren())].CFrame)