--//Controller//--

Trigger.MouseClick:Connect(function(Player)
	if not Settings.OnCD then
		local Backpack = Player.Backpack
		local StarterGear = Player.StarterGear
		
		for _, Tool in pairs(Backpack:GetChildren()) do
			if Tool then
				Tool:Destroy()
			end
		end
		
		for _, Tool in pairs(StarterGear:GetChildren()) do
			if Tool then
				Tool:Destroy()
			end
		end
		
		local Tool = Tools:FindFirstChild(Gun.Name):Clone()
		Tool:Clone().Parent = Backpack
		Tool:Clone().Parent = StarterGear
	end
end)
