Advertisement
ILovePotato

Untitled

Nov 30th, 2024
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. -- GUI Setup
  2. local player = game.Players.LocalPlayer
  3. local screenGui = Instance.new("ScreenGui", player.PlayerGui)
  4. screenGui.Name = "CustomGui"
  5. screenGui.ResetOnSpawn = false
  6.  
  7. -- Frame for the GUI
  8. local frame = Instance.new("Frame", screenGui)
  9. frame.Size = UDim2.new(0, 200, 0, 150)
  10. frame.Position = UDim2.new(0, 10, 0.5, -75) -- Center left of the screen
  11. frame.BackgroundColor3 = Color3.new(0, 0, 0)
  12. frame.BackgroundTransparency = 0.5
  13. frame.BorderSizePixel = 0
  14. frame.Visible = true
  15.  
  16. -- TextLabel inside the frame
  17. local textLabel = Instance.new("TextLabel", frame)
  18. textLabel.Size = UDim2.new(1, 0, 0.6, 0)
  19. textLabel.Position = UDim2.new(0, 0, 0, 0)
  20. textLabel.BackgroundTransparency = 1
  21. textLabel.Text = "Well... This is BY NeverGonnaGiveUpLo4, I Think Maybe Is Working Or SHIT"
  22. textLabel.TextColor3 = Color3.new(1, 1, 1)
  23. textLabel.TextScaled = true
  24. textLabel.Font = Enum.Font.SourceSansBold
  25.  
  26. -- Execute Button inside the frame
  27. local executeButton = Instance.new("TextButton", frame)
  28. executeButton.Size = UDim2.new(1, 0, 0.3, 0)
  29. executeButton.Position = UDim2.new(0, 0, 0.6, 0)
  30. executeButton.Text = "Execute"
  31. executeButton.TextColor3 = Color3.new(1, 0, 0)
  32. executeButton.BackgroundColor3 = Color3.new(0, 0, 0)
  33. executeButton.Font = Enum.Font.SourceSansBold
  34. executeButton.TextScaled = true
  35.  
  36. -- Open/Close Button
  37. local openCloseButton = Instance.new("TextButton", screenGui)
  38. openCloseButton.Size = UDim2.new(0, 30, 0, 30)
  39. openCloseButton.Position = UDim2.new(0, 10, 0.5, -75)
  40. openCloseButton.Text = "<"
  41. openCloseButton.TextColor3 = Color3.new(1, 1, 1)
  42. openCloseButton.BackgroundColor3 = Color3.new(0, 0, 0)
  43. openCloseButton.Font = Enum.Font.SourceSansBold
  44. openCloseButton.TextScaled = true
  45.  
  46. -- Toggle the GUI visibility when the button is clicked
  47. local isOpen = true
  48. openCloseButton.MouseButton1Click:Connect(function()
  49. isOpen = not isOpen
  50. if isOpen then
  51. frame.Visible = true
  52. openCloseButton.Text = "<"
  53. else
  54. frame.Visible = false
  55. openCloseButton.Text = ">"
  56. end
  57. end)
  58.  
  59. -- Loadstring to be executed when Execute button is clicked
  60. executeButton.MouseButton1Click:Connect(function()
  61. local loadstringURL = "https://pastebin.com/raw/n6L7zp6d" -- Replace with your loadstring URL
  62. loadstring(game:HttpGet(loadstringURL))() -- Executes the loadstring
  63. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement