Here is my code
-- Importing necessary modules
local ffi = require("ffi")
ffi.cdef[[
    typedef struct {
        unsigned short wYear;
        unsigned short wMonth;
        unsigned short wDayOfWeek;
        unsigned short wDay;
        unsigned short wHour;
        unsigned short wMinute;
        unsigned short wSecond;
        unsigned short wMilliseconds;
    } SYSTEMTIME, *LPSYSTEMTIME;
    void GetSystemTime(LPSYSTEMTIME lpSystemTime);
    void GetLocalTime(LPSYSTEMTIME lpSystemTime);
]]
-- Variables for customizing watermark's appearance
local colorwatermark = { r = 255, g = 255, b = 255, a = 255 }  -- Watermark color (White)
local alpha = 200  -- Opacity slider value (Range: 0 to 255)
local font_size = 12  -- Font size
local frame_rate = 0.0  -- Initial frame rate
local textSize = 0  -- Placeholder for watermark text size
-- Function to get absolute FPS (using tick interval for FPS calculation)
local function get_abs_fps()
    frame_rate = 0.9 * frame_rate + (1.0 - 0.9) * globals.tickinterval()  -- Use tick interval instead of FrameTime
    return math.floor((1.0 / frame_rate) + 0.5)
end
-- Function to draw watermark
local function watermark()
    local screen_width, screen_height = client.screen_size()  -- Get screen width and height
    local fps = get_abs_fps()  -- Get current FPS
    -- Removed latency retrieval since get_net_channel_info is not available
    local ticks = math.floor(1.0 / globals.tickinterval())  -- Get tick rate
    local rightPadding = 20  -- Padding for watermark text
    local var = screen_width - 10  -- Start position for the watermark text
    -- Drawing background box for watermark
    local text = "neverlose"  -- Main watermark text
    local text_width, text_height = renderer.measure_text(font_size, text)  -- Get size of "neverlose"
    local box_width = text_width + rightPadding + 15  -- Box size based on text size
    renderer.rectangle_filled(var - box_width, 9, var, text_height + 10, Color.new(0, 0, 0, alpha))  -- Background box
    -- Draw the watermark text
    renderer.text(text, var - text_width - rightPadding, 12, Color.new(255, 255, 255, 255))  -- Watermark text
    -- Calculate and display cheat username
    local player_info = client.get_player_info(client.get_local_player())  -- Updated for Gamesense
    local username = string.lower(player_info.name)  -- Accessing player info correctly
    local nexttext = " | " .. username
    renderer.text(nexttext, var - text_width - rightPadding, 12, Color.new(255, 255, 255, 255))  -- Username text
    text_width = text_width + renderer.measure_text(font_size, nexttext).x  -- Update width after username
    -- Display tick rate
    nexttext = " | " .. ticks .. "tick"
    renderer.text(nexttext, var - text_width - rightPadding, 12, Color.new(255, 255, 255, 255))  -- Tick rate text
    text_width = text_width + renderer.measure_text(font_size, nexttext).x  -- Update width after tick rate
    -- Display current time
    local local_time = ffi.new("SYSTEMTIME")
    ffi.C.GetLocalTime(local_time)
    nexttext = " | " .. string.format('%02d:%02d:%02d', local_time.wHour, local_time.wMinute, local_time.wSecond)
    renderer.text(nexttext, var - text_width - rightPadding, 12, Color.new(255, 255, 255, 255))  -- Time text
    text_width = text_width + renderer.measure_text(font_size, nexttext).x  -- Update width after time
end
-- This will run the watermark function every frame (instead of using the callback API)
client.set_event_callback("paint", watermark)
-------------------------------------------------------------------------------
It gives me this error message
[gamesense] .\neverlose-watermark.lua:44: attempt to index global 'Color' (a nil value)
[gamesense] .\neverlose-watermark.lua:44: attempt to index global 'Color' (a nil value)
[gamesense] .\neverlose-watermark.lua:44: attempt to index global 'Color' (a nil value)
[gamesense] .\neverlose-watermark.lua:44: attempt to index global 'Color' (a nil value)
[gamesense] .\neverlose-watermark.lua:44: attempt to index global 'Color' (a nil value)
[gamesense] .\neverlose-watermark.lua:44: attempt to index global 'Color' (a nil value)
[gamesense] .\neverlose-watermark.lua:44: attempt to index global 'Color' (a nil value)
[gamesense] .\neverlose-watermark.lua:44: attempt to index global 'Color' (a nil value)
[gamesense] .\neverlose-watermark.lua:44: attempt to index global 'Color' (a nil value)
[gamesense] .\neverlose-watermark.lua:44: attempt to index global 'Color' (a nil value)
[gamesense] .\neverlose-watermark.lua:44: attempt to index global 'Color' (a nil value)
-------------------------------------------------------------------------------
I hope someone can help