local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local Window = Rayfield:CreateWindow({ Name = "Discord Copier", LoadingTitle = "Loading...", LoadingSubtitle = "by rallyx1", ConfigurationSaving = { Enabled = false }, Discord = { Enabled = false }, KeySystem = false }) local Tab = Window:CreateTab("Copy Invite", "link") local Section = Tab:CreateSection("Discord Link") local Button = Tab:CreateButton({ Name = "Copy Discord Invite", Callback = function() local link = "https://discord.gg/JAkgXjhyWb" local success = pcall(setclipboard, link) if not success then success = pcall(function() writefile("clipboard", link) end) end if not success then success = pcall(syn and syn.write_clipboard and function() syn.write_clipboard(link) end or function() end) end if success then Rayfield:Notify({ Title = "Success", Content = "Discord link copied to clipboard!", Duration = 3, Image = "check" }) else Rayfield:Notify({ Title = "Error", Content = "Failed to copy. Clipboard function not available.", Duration = 3, Image = "error" }) end end, })