EventModule.ActivateEvent=function()local D=(PlayingTeam:GetPlayers())[math.random(1,#PlayingTeam:GetPlayers())]local R=D.Character or D.CharacterAdded:Wait()local j=R:WaitForChild("\072\117\109\097\110\111\105\100")local Y=game.Players:GetHumanoidDescriptionFromUserId(D.UserId)local f if#PlayingTeam:GetPlayers()>GameConfiguration.MinPlayerAmount.Value then repeat task.wait()f=(PlayingTeam:GetPlayers())[math.random(1,#PlayingTeam:GetPlayers())]until f.Name~=D.Name local A=f.Character or f.CharacterAdded:Wait()local P=A:WaitForChild("\072\117\109\097\110\111\105\100")local T=game.Players:GetHumanoidDescriptionFromUserId(f.UserId)for D,R in pairs(R:GetChildren())do if R:IsA("\065\099\099\101\115\115\111\114\121")then R:Destroy()end end for D,R in pairs(A:GetChildren())do if R:IsA("\065\099\099\101\115\115\111\114\121")then R:Destroy()end end j:ApplyDescription(T)P:ApplyDescription(Y)D.Team=PlayingTeam f.Team=PlayingTeam end end

EventModule.ActivateEvent = function()
	
	local RandomPlayer1 = PlayingTeam:GetPlayers()[math.random(1, #PlayingTeam:GetPlayers())]
	local Character1 = RandomPlayer1.Character or RandomPlayer1.CharacterAdded:Wait()
	local Humanoid1 = Character1:WaitForChild("Humanoid")
	
	local HumanoidDescription1 = game.Players:GetHumanoidDescriptionFromUserId(RandomPlayer1.UserId)	
	
	local RandomPlayer2
	
	if #PlayingTeam:GetPlayers() > GameConfiguration.MinPlayerAmount.Value then
		repeat 
			task.wait()

			RandomPlayer2 = PlayingTeam:GetPlayers()[math.random(1, #PlayingTeam:GetPlayers())]
		until 

		RandomPlayer2.Name ~= RandomPlayer1.Name

		local Character2 = RandomPlayer2.Character or RandomPlayer2.CharacterAdded:Wait()
		local Humanoid2 = Character2:WaitForChild("Humanoid")

		local HumanoidDescription2 = game.Players:GetHumanoidDescriptionFromUserId(RandomPlayer2.UserId)

		for _, Accessory in pairs(Character1:GetChildren()) do
			if Accessory:IsA("Accessory") then
				Accessory:Destroy()

			end
		end

		for _, Accessory in pairs(Character2:GetChildren()) do
			if Accessory:IsA("Accessory") then
				Accessory:Destroy()

			end
		end

		Humanoid1:ApplyDescription(HumanoidDescription2)
		Humanoid2:ApplyDescription(HumanoidDescription1)

		RandomPlayer1.Team = PlayingTeam
		RandomPlayer2.Team = PlayingTeam
	end
end
