Advertisement
ILovePotato

Untitled

Dec 17th, 2024
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.97 KB | None | 0 0
  1. -- Lag Detector Ultra Stylish GUI Script
  2. -- Works for most Roblox Executors
  3.  
  4. -- SERVICES
  5. local StarterGui = game:GetService("StarterGui")
  6. local TweenService = game:GetService("TweenService")
  7. local Players = game:GetService("Players")
  8. local LocalPlayer = Players.LocalPlayer
  9.  
  10. -- NOTIFICATION FUNCTIONS
  11. local function SendNotification(title, text, duration)
  12. StarterGui:SetCore("SendNotification", {
  13. Title = title,
  14. Text = text,
  15. Duration = duration or 5
  16. })
  17. end
  18.  
  19. -- INITIAL NOTIFICATIONS
  20. SendNotification("Welcome", "We Are Loading The Lag Detector", 4)
  21. wait(4)
  22. SendNotification("Hello!", "Successfully Loaded!", 3)
  23.  
  24. -- GUI CREATION
  25. local ScreenGui = Instance.new("ScreenGui")
  26. ScreenGui.Parent = game.CoreGui
  27.  
  28. -- Main Frame
  29. local MainFrame = Instance.new("Frame")
  30. MainFrame.Size = UDim2.new(0, 400, 0, 300)
  31. MainFrame.Position = UDim2.new(0.5, -200, 0.5, -150)
  32. MainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  33. MainFrame.BorderSizePixel = 0
  34. MainFrame.Visible = true
  35. MainFrame.Parent = ScreenGui
  36.  
  37. -- Ultra Stylish Top Bar
  38. local TopBar = Instance.new("TextLabel")
  39. TopBar.Size = UDim2.new(1, 0, 0, 50)
  40. TopBar.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  41. TopBar.Text = "Lag Detector"
  42. TopBar.TextColor3 = Color3.fromRGB(255, 255, 255)
  43. TopBar.Font = Enum.Font.GothamBlack
  44. TopBar.TextSize = 20
  45. TopBar.Parent = MainFrame
  46.  
  47. -- Subtitle
  48. local Subtitle = Instance.new("TextLabel")
  49. Subtitle.Size = UDim2.new(1, 0, 0, 30)
  50. Subtitle.Position = UDim2.new(0, 0, 0, 50)
  51. Subtitle.BackgroundTransparency = 1
  52. Subtitle.Text = "Ur Security And Detector Of Lag"
  53. Subtitle.TextColor3 = Color3.fromRGB(200, 200, 200)
  54. Subtitle.Font = Enum.Font.Gotham
  55. Subtitle.TextSize = 16
  56. Subtitle.Parent = MainFrame
  57.  
  58. -- Open/Close Button (Positioned at the middle left of the screen)
  59. local ToggleButton = Instance.new("TextButton")
  60. ToggleButton.Size = UDim2.new(0, 100, 0, 30)
  61. ToggleButton.Position = UDim2.new(0, 10, 0.5, -15) -- Positioned at middle left
  62. ToggleButton.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  63. ToggleButton.Text = "Close"
  64. ToggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  65. ToggleButton.Font = Enum.Font.GothamBold
  66. ToggleButton.TextSize = 14
  67. ToggleButton.Parent = ScreenGui -- Set it on the ScreenGui so it's visible throughout
  68.  
  69. -- Stylish Scan Button
  70. local ScanButton = Instance.new("TextButton")
  71. ScanButton.Size = UDim2.new(0, 200, 0, 50)
  72. ScanButton.Position = UDim2.new(0.5, -100, 0.8, -25)
  73. ScanButton.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  74. ScanButton.Text = "Scan"
  75. ScanButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  76. ScanButton.Font = Enum.Font.GothamBold
  77. ScanButton.TextSize = 18
  78. ScanButton.Parent = MainFrame
  79.  
  80. -- Loading Screen
  81. local LoadingFrame = Instance.new("Frame")
  82. LoadingFrame.Size = UDim2.new(1, 0, 1, 0)
  83. LoadingFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  84. LoadingFrame.Visible = false
  85. LoadingFrame.Parent = MainFrame
  86.  
  87. local LoadingText = Instance.new("TextLabel")
  88. LoadingText.Size = UDim2.new(1, 0, 1, 0)
  89. LoadingText.Text = "Scanning..."
  90. LoadingText.TextColor3 = Color3.fromRGB(255, 255, 255)
  91. LoadingText.Font = Enum.Font.GothamBlack
  92. LoadingText.TextSize = 32
  93. LoadingText.Parent = LoadingFrame
  94.  
  95. -- BUTTON LOGIC
  96. local IsOpen = true
  97.  
  98. -- Toggle open/close button logic
  99. ToggleButton.MouseButton1Click:Connect(function()
  100. IsOpen = not IsOpen
  101. if IsOpen then
  102. ToggleButton.Text = "Close"
  103. MainFrame:TweenPosition(UDim2.new(0.5, -200, 0.5, -150), "Out", "Quad", 0.5)
  104. else
  105. ToggleButton.Text = "Open"
  106. MainFrame:TweenPosition(UDim2.new(0.5, -200, 1.5, 0), "Out", "Quad", 0.5)
  107. end
  108. end)
  109.  
  110. -- Scan button functionality with loading screen
  111. ScanButton.MouseButton1Click:Connect(function()
  112. -- Show Loading Screen
  113. LoadingFrame.Visible = true
  114. wait(4) -- Simulate loading time
  115.  
  116. -- Hide Loading Screen
  117. LoadingFrame.Visible = false
  118.  
  119. -- Run Script (Replace this with any script or loadstring)
  120. loadstring("https://pastebin.com/raw/Qji1SXDk")()
  121. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement