--[[
	Player methods
]]


function Waiting:playerAdded(player)
	Util.loadCharacter(player)
end

function Waiting:playerRemoving()
end

function Waiting:characterAdded(player, character)
	-- Give the player the Pistol as the default starting weapon
	ReplicatedStorage.Assets.Weapons.Pistol:Clone().Parent = player.Backpack

	-- Grant the player a force field so they cant be killed in the waiting area
	local forceField = Instance.new("ForceField")
	forceField.Name = "WaitingForceField"
	forceField.Visible = false
	forceField.Parent = character

	CollectionService:AddTag(character, "PlayerCharacter")
end

return Waiting
