uis.InputBegan:Connect(function(I,J)if not J and cursor.Visible==true then if I.KeyCode==Enum.KeyCode.B then erasing=false brushSettings.BrushButton.BackgroundColor3=Color3.fromRGB(200,200,200)brushSettings.EraserButton.BackgroundColor3=Color3.fromRGB(255,255,255)elseif I.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)

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)
