local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local StarterGui = game:GetService("StarterGui") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local DISCORD_LINK = "https://discord.gg/D4c4ka8jz5" local oldGui = playerGui:FindFirstChild("DiscordCopyGui") if oldGui then oldGui:Destroy() end local screenGui = Instance.new("ScreenGui") screenGui.Name = "DiscordCopyGui" screenGui.ResetOnSpawn = false screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling screenGui.Parent = playerGui local frame = Instance.new("Frame") frame.Name = "Main" frame.Size = UDim2.new(0, 260, 0, 110) frame.Position = UDim2.new(0.5, -130, 0.5, -55) frame.BackgroundColor3 = Color3.fromRGB(30, 30, 34) frame.BorderSizePixel = 0 frame.Parent = screenGui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 10) corner.Parent = frame local stroke = Instance.new("UIStroke") stroke.Color = Color3.fromRGB(80, 80, 90) stroke.Thickness = 1 stroke.Parent = frame local title = Instance.new("TextLabel") title.Name = "Title" title.Size = UDim2.new(1, -20, 0, 28) title.Position = UDim2.new(0, 10, 0, 8) title.BackgroundTransparency = 1 title.Font = Enum.Font.GothamBold title.TextSize = 15 title.TextColor3 = Color3.fromRGB(245, 245, 245) title.TextXAlignment = Enum.TextXAlignment.Left title.Text = "Discord" title.Parent = frame local linkLabel = Instance.new("TextLabel") linkLabel.Name = "Link" linkLabel.Size = UDim2.new(1, -20, 0, 26) linkLabel.Position = UDim2.new(0, 10, 0, 36) linkLabel.BackgroundTransparency = 1 linkLabel.Font = Enum.Font.Gotham linkLabel.TextSize = 13 linkLabel.TextColor3 = Color3.fromRGB(180, 180, 190) linkLabel.TextXAlignment = Enum.TextXAlignment.Left linkLabel.Text = DISCORD_LINK linkLabel.Parent = frame local copyBtn = Instance.new("TextButton") copyBtn.Name = "CopyButton" copyBtn.Size = UDim2.new(1, -20, 0, 32) copyBtn.Position = UDim2.new(0, 10, 1, -42) copyBtn.BackgroundColor3 = Color3.fromRGB(70, 110, 215) copyBtn.BorderSizePixel = 0 copyBtn.Font = Enum.Font.GothamBold copyBtn.TextSize = 14 copyBtn.TextColor3 = Color3.fromRGB(255, 255, 255) copyBtn.Text = "Copy Discord Link" copyBtn.Parent = frame local copyCorner = Instance.new("UICorner") copyCorner.CornerRadius = UDim.new(0, 8) copyCorner.Parent = copyBtn local function notify(msg) pcall(function() StarterGui:SetCore("SendNotification", { Title = "Discord", Text = msg, Duration = 3, }) end) end copyBtn.Activated:Connect(function() local ok = pcall(function() setclipboard(DISCORD_LINK) end) if ok then copyBtn.Text = "Copied!" notify("Discord link copied.") task.delay(1.2, function() if copyBtn and copyBtn.Parent then copyBtn.Text = "Copy Discord Link" end end) else notify("Clipboard not supported in this executor.") end end) local dragging = false local dragInput local dragStart local startPos frame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = frame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) frame.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) UserInputService.InputChanged:Connect(function(input) if dragging and input == dragInput then local delta = input.Position - dragStart frame.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end end)