--Switch between brush and eraser using the B and E hotkeys

uis.InputBegan:Connect(function(inp, p)
	
	if not p and cursor.Visible == true then
		
		if inp.KeyCode == Enum.KeyCode.B then
			erasing = false
			brushSettings.BrushButton.BackgroundColor3 = Color3.fromRGB(200, 200, 200)
			brushSettings.EraserButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
			
		elseif inp.KeyCode == Enum.KeyCode.E then
			erasing = true
			brushSettings.EraserButton.BackgroundColor3 = Color3.fromRGB(200, 200, 200)
			brushSettings.BrushButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
		end
	end
end)
