--Variables

local uis = game:GetService("UserInputService")

local mouse = game.Players.LocalPlayer:GetMouse()
local down = false

local canvas = script.Parent.CanvasFrame
local brushSettings = script.Parent.BrushSettingsFrame

local cursor = canvas.Cursor

local erasing = false
local currentSize = 10
local currentColor = Color3.fromRGB(0, 0, 0)

brushSettings.BrushButton.BackgroundColor3 = Color3.fromRGB(200, 200, 200)
brushSettings.ColorBox.Text = math.floor(currentColor.R * 255 + 0.5) .. ", " .. math.floor(currentColor.G * 255 + 0.5) .. ", " .. math.floor(currentColor.B * 255 + 0.5)
brushSettings.PaintImage.Size = UDim2.new(0, currentSize, 0, currentSize)
brushSettings.PaintImage.ImageColor3 = currentColor

local paintContainer = Instance.new("Folder", canvas)

