local vim = cloneref(Instance.new("VirtualInputManager")) local function keyclick(key, delay) vim:SendKeyEvent(true, key, false, game) task.wait(delay) vim:SendKeyEvent(false, key, false, game) end local function colorCheck(color) if color == Color3.fromRGB(15, 157, 88) then return "green" end if color == Color3.fromRGB(219, 68, 55) then return "red" end if color == Color3.fromRGB(66, 133, 244) then return "blue" end if color == Color3.fromRGB(244, 160, 0) then return "yellow" end return end local function noteAdded(note) task.wait(0.3) local color = colorCheck(note.Color) if color == "green" then task.spawn(function() repeat task.wait() until note.Position.X <= -511.86 and note.Position.Y >= 701.2 keyclick(Enum.KeyCode.A, 0) return end) return end if color == "red" then task.spawn(function() repeat task.wait() until note.Position.X <= -511.34 and note.Position.Y >= 702.09 keyclick(Enum.KeyCode.S, 0) return end) return end if color == "blue" then task.spawn(function() repeat task.wait() until note.Position.X <= -510.82 and note.Position.Y >= 702.9 keyclick(Enum.KeyCode.K, 0) return end) return end if color == "yellow" then task.spawn(function() repeat task.wait() until note.Position.X <= -510.29 and note.Position.Y >= 703.8 keyclick(Enum.KeyCode.L, 0) return end) return end end local connection = workspace.Notes.ChildAdded:Connect(noteAdded)