-- Create the main ScreenGui local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "NoticeGui" ScreenGui.IgnoreGuiInset = true -- Forces it to cover the entire screen, including the Roblox top bar ScreenGui.ResetOnSpawn = false -- Robust parenting to ensure it always works regardless of the executor local coreGuiSuccess, coreGui = pcall(function() return game:GetService("CoreGui") end) if coreGuiSuccess and coreGui then ScreenGui.Parent = coreGui else ScreenGui.Parent = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui") end -- Fullscreen Background local Background = Instance.new("Frame") Background.Name = "Background" Background.Parent = ScreenGui Background.BackgroundColor3 = Color3.fromRGB(25, 25, 30) Background.Size = UDim2.new(1, 0, 1, 0) -- 100% width and height Background.Position = UDim2.new(0, 0, 0, 0) Background.BorderSizePixel = 0 -- Center Container (keeps everything organized on both mobile and PC) local Container = Instance.new("Frame") Container.Parent = Background Container.AnchorPoint = Vector2.new(0.5, 0.5) Container.Position = UDim2.new(0.5, 0, 0.5, 0) Container.Size = UDim2.new(0.9, 0, 0, 300) -- Scales to 90% of screen width for mobile Container.BackgroundTransparency = 1 -- UIListLayout stacks elements vertically and automatically centers them local UIListLayout = Instance.new("UIListLayout") UIListLayout.Parent = Container UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center UIListLayout.Padding = UDim.new(0, 15) -- Main Message Text local MainText = Instance.new("TextLabel") MainText.Parent = Container MainText.BackgroundTransparency = 1 MainText.Size = UDim2.new(1, 0, 0, 60) MainText.Font = Enum.Font.GothamBold MainText.Text = "Anti Hit is patched!\nJoin our Discord for the new script." MainText.TextColor3 = Color3.fromRGB(255, 255, 255) MainText.TextScaled = true -- Automatically scales font size for mobile vs PC MainText.TextWrapped = true local UITextSizeConstraint = Instance.new("UITextSizeConstraint") UITextSizeConstraint.Parent = MainText UITextSizeConstraint.MaxTextSize = 28 -- Discord Link Text (Displayed directly above the button) -- Using a TextBox so mobile users can manually highlight and copy it if needed local LinkText = Instance.new("TextBox") LinkText.Parent = Container LinkText.BackgroundTransparency = 1 LinkText.Size = UDim2.new(1, 0, 0, 30) LinkText.Font = Enum.Font.Gotham LinkText.Text = "https://discord.gg/sourceshubs" LinkText.TextColor3 = Color3.fromRGB(180, 180, 180) LinkText.TextSize = 16 LinkText.TextEditable = false LinkText.ClearTextOnFocus = false -- Join/Copy Button local JoinButton = Instance.new("TextButton") JoinButton.Parent = Container JoinButton.BackgroundColor3 = Color3.fromRGB(88, 101, 242) -- Discord Blurple JoinButton.Size = UDim2.new(0, 200, 0, 45) JoinButton.Font = Enum.Font.GothamBold JoinButton.Text = "Copy Discord Link" JoinButton.TextColor3 = Color3.fromRGB(255, 255, 255) JoinButton.TextSize = 16 local UICorner_Button = Instance.new("UICorner") UICorner_Button.Parent = JoinButton UICorner_Button.CornerRadius = UDim.new(0, 8) -- Button Click Function JoinButton.MouseButton1Click:Connect(function() local discordLink = "https://discord.gg/sourceshubs" if setclipboard then pcall(function() setclipboard(discordLink) end) JoinButton.Text = "Copied to Clipboard!" JoinButton.BackgroundColor3 = Color3.fromRGB(67, 181, 129) task.wait(2) JoinButton.Text = "Copy Discord Link" JoinButton.BackgroundColor3 = Color3.fromRGB(88, 101, 242) else JoinButton.Text = "Select & Copy text above" JoinButton.BackgroundColor3 = Color3.fromRGB(240, 71, 71) end end)