local DiscordLink = "https://discord.gg/E8UvPAVdS7" -- Create GUI local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "DiscordPromptGui" ScreenGui.ResetOnSpawn = false -- Stays visible after respawn ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling ScreenGui.Parent = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui") -- Main Frame local MainFrame = Instance.new("Frame") MainFrame.Name = "MainFrame" MainFrame.Size = UDim2.new(0, 350, 0, 180) MainFrame.Position = UDim2.new(0.5, -175, 0.5, -90) -- Center of screen MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 40) MainFrame.BorderSizePixel = 0 MainFrame.Active = true MainFrame.Draggable = true MainFrame.Parent = ScreenGui -- Rounded corners (optional but nice) local UICorner = Instance.new("UICorner") UICorner.CornerRadius = UDim.new(0, 8) UICorner.Parent = MainFrame -- Title Label local TitleLabel = Instance.new("TextLabel") TitleLabel.Name = "TitleLabel" TitleLabel.Size = UDim2.new(1, 0, 0, 50) TitleLabel.Position = UDim2.new(0, 0, 0, 10) TitleLabel.BackgroundTransparency = 1 TitleLabel.Text = "JOIN DISCORD FOR SCRIPT" TitleLabel.TextColor3 = Color3.new(1, 1, 1) TitleLabel.Font = Enum.Font.GothamBold TitleLabel.TextSize = 22 TitleLabel.TextWrapped = true TitleLabel.Parent = MainFrame -- Button local JoinButton = Instance.new("TextButton") JoinButton.Name = "JoinButton" JoinButton.Size = UDim2.new(0.8, 0, 0, 45) JoinButton.Position = UDim2.new(0.1, 0, 0.6, 0) JoinButton.Text = "OPEN & COPY DISCORD LINK" JoinButton.TextColor3 = Color3.new(1, 1, 1) JoinButton.Font = Enum.Font.Gotham JoinButton.TextSize = 18 JoinButton.BackgroundColor3 = Color3.fromRGB(0, 120, 215) JoinButton.BorderSizePixel = 0 JoinButton.AutoButtonColor = true JoinButton.Parent = MainFrame -- Button Hover Effect JoinButton.MouseEnter:Connect(function() game:GetService("TweenService"):Create( JoinButton, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(0, 150, 255)} ):Play() end) JoinButton.MouseLeave:Connect(function() game:GetService("TweenService"):Create( JoinButton, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(0, 120, 215)} ):Play() end) -- BUTTON CLICK ACTION JoinButton.MouseButton1Click:Connect(function() -- 1️⃣ COPY LINK TO CLIPBOARD ------------------------------------------------- -- Different executors use different clipboard functions. -- The script tries the most common ones automatically. local success = false -- Synapse X if syn then syn.set_clipboard(DiscordLink) success = true -- Krnl elseif Krnl then Krnl.SetClipboard(DiscordLink) success = true -- Fluxus / Evon / others (generic) else pcall(function() setclipboard(DiscordLink) -- Works in most executors success = true end) end -- Notify user if success then game:GetService("StarterGui"):SetCore("SendNotification", { Title = "✅ COPIED!", Text = "Discord link copied to clipboard!", Duration = 3, Icon = "rbxassetid://6023426925" }) else game:GetService("StarterGui"):SetCore("SendNotification", { Title = "⚠️ Error", Text = "Clipboard function not supported by your executor.", Duration = 5, Icon = "rbxassetid://6023426925" }) end -- 2️⃣ OPEN LINK IN BROWSER ------------------------------------------------- pcall(function() game:GetService("GuiService"):OpenBrowserURL(DiscordLink) end) -- Backup method (works on most executors) pcall(function() if not success then setclipboard(DiscordLink) -- Try again just in case end shell.openurl(DiscordLink) -- Alternative way to open URL end) end) -- Close button (optional) local CloseBtn = Instance.new("TextButton") CloseBtn.Size = UDim2.new(0, 20, 0, 20) CloseBtn.Position = UDim2.new(1, -25, 0, 5) CloseBtn.Text = "✕" CloseBtn.Font = Enum.Font.GothamBold CloseBtn.TextSize = 16 CloseBtn.BackgroundTransparency = 1 CloseBtn.TextColor3 = Color3.new(1,1,1) CloseBtn.Parent = MainFrame CloseBtn.MouseButton1Click:Connect(function() ScreenGui:Destroy() end)