Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Lag Detector Ultra Stylish GUI Script
- -- Works for most Roblox Executors
- -- SERVICES
- local StarterGui = game:GetService("StarterGui")
- local TweenService = game:GetService("TweenService")
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- -- NOTIFICATION FUNCTIONS
- local function SendNotification(title, text, duration)
- StarterGui:SetCore("SendNotification", {
- Title = title,
- Text = text,
- Duration = duration or 5
- })
- end
- -- INITIAL NOTIFICATIONS
- SendNotification("Welcome", "We Are Loading The Lag Detector", 4)
- wait(4)
- SendNotification("Hello!", "Successfully Loaded!", 3)
- -- GUI CREATION
- local ScreenGui = Instance.new("ScreenGui")
- ScreenGui.Parent = game.CoreGui
- -- Main Frame
- local MainFrame = Instance.new("Frame")
- MainFrame.Size = UDim2.new(0, 400, 0, 300)
- MainFrame.Position = UDim2.new(0.5, -200, 0.5, -150)
- MainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- MainFrame.BorderSizePixel = 0
- MainFrame.Visible = true
- MainFrame.Parent = ScreenGui
- -- Ultra Stylish Top Bar
- local TopBar = Instance.new("TextLabel")
- TopBar.Size = UDim2.new(1, 0, 0, 50)
- TopBar.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
- TopBar.Text = "Lag Detector"
- TopBar.TextColor3 = Color3.fromRGB(255, 255, 255)
- TopBar.Font = Enum.Font.GothamBlack
- TopBar.TextSize = 20
- TopBar.Parent = MainFrame
- -- Subtitle
- local Subtitle = Instance.new("TextLabel")
- Subtitle.Size = UDim2.new(1, 0, 0, 30)
- Subtitle.Position = UDim2.new(0, 0, 0, 50)
- Subtitle.BackgroundTransparency = 1
- Subtitle.Text = "Ur Security And Detector Of Lag"
- Subtitle.TextColor3 = Color3.fromRGB(200, 200, 200)
- Subtitle.Font = Enum.Font.Gotham
- Subtitle.TextSize = 16
- Subtitle.Parent = MainFrame
- -- Open/Close Button (Positioned at the middle left of the screen)
- local ToggleButton = Instance.new("TextButton")
- ToggleButton.Size = UDim2.new(0, 100, 0, 30)
- ToggleButton.Position = UDim2.new(0, 10, 0.5, -15) -- Positioned at middle left
- ToggleButton.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
- ToggleButton.Text = "Close"
- ToggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- ToggleButton.Font = Enum.Font.GothamBold
- ToggleButton.TextSize = 14
- ToggleButton.Parent = ScreenGui -- Set it on the ScreenGui so it's visible throughout
- -- Stylish Scan Button
- local ScanButton = Instance.new("TextButton")
- ScanButton.Size = UDim2.new(0, 200, 0, 50)
- ScanButton.Position = UDim2.new(0.5, -100, 0.8, -25)
- ScanButton.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- ScanButton.Text = "Scan"
- ScanButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- ScanButton.Font = Enum.Font.GothamBold
- ScanButton.TextSize = 18
- ScanButton.Parent = MainFrame
- -- Loading Screen
- local LoadingFrame = Instance.new("Frame")
- LoadingFrame.Size = UDim2.new(1, 0, 1, 0)
- LoadingFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- LoadingFrame.Visible = false
- LoadingFrame.Parent = MainFrame
- local LoadingText = Instance.new("TextLabel")
- LoadingText.Size = UDim2.new(1, 0, 1, 0)
- LoadingText.Text = "Scanning..."
- LoadingText.TextColor3 = Color3.fromRGB(255, 255, 255)
- LoadingText.Font = Enum.Font.GothamBlack
- LoadingText.TextSize = 32
- LoadingText.Parent = LoadingFrame
- -- BUTTON LOGIC
- local IsOpen = true
- -- Toggle open/close button logic
- ToggleButton.MouseButton1Click:Connect(function()
- IsOpen = not IsOpen
- if IsOpen then
- ToggleButton.Text = "Close"
- MainFrame:TweenPosition(UDim2.new(0.5, -200, 0.5, -150), "Out", "Quad", 0.5)
- else
- ToggleButton.Text = "Open"
- MainFrame:TweenPosition(UDim2.new(0.5, -200, 1.5, 0), "Out", "Quad", 0.5)
- end
- end)
- -- Scan button functionality with loading screen
- ScanButton.MouseButton1Click:Connect(function()
- -- Show Loading Screen
- LoadingFrame.Visible = true
- wait(4) -- Simulate loading time
- -- Hide Loading Screen
- LoadingFrame.Visible = false
- -- Run Script (Replace this with any script or loadstring)
- loadstring("https://pastebin.com/raw/Qji1SXDk")()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement