Advertisement
ILovePotato

Untitled

Nov 30th, 2024
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.29 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 main 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.2, 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. -- Update List Button
  37. local updateListButton = Instance.new("TextButton", frame)
  38. updateListButton.Size = UDim2.new(1, 0, 0.2, 0)
  39. updateListButton.Position = UDim2.new(0, 0, 0.8, 0)
  40. updateListButton.Text = "UPDATE LIST"
  41. updateListButton.TextColor3 = Color3.new(1, 0, 0)
  42. updateListButton.BackgroundColor3 = Color3.new(0, 0, 0)
  43. updateListButton.Font = Enum.Font.SourceSansBold
  44. updateListButton.TextScaled = true
  45.  
  46. -- Open/Close Button
  47. local openCloseButton = Instance.new("TextButton", screenGui)
  48. openCloseButton.Size = UDim2.new(0, 30, 0, 30)
  49. openCloseButton.Position = UDim2.new(0, 10, 0.5, -75)
  50. openCloseButton.Text = "<"
  51. openCloseButton.TextColor3 = Color3.new(1, 1, 1)
  52. openCloseButton.BackgroundColor3 = Color3.new(0, 0, 0)
  53. openCloseButton.Font = Enum.Font.SourceSansBold
  54. openCloseButton.TextScaled = true
  55.  
  56. -- Toggle the main GUI visibility when the button is clicked
  57. local isOpen = true
  58. openCloseButton.MouseButton1Click:Connect(function()
  59. isOpen = not isOpen
  60. if isOpen then
  61. frame.Visible = true
  62. openCloseButton.Text = "<"
  63. else
  64. frame.Visible = false
  65. openCloseButton.Text = ">"
  66. end
  67. end)
  68.  
  69. -- Loadstring to be executed when Execute button is clicked
  70. executeButton.MouseButton1Click:Connect(function()
  71. local loadstringURL = "https://pastebin.com/raw/4ZVdjKwu" -- Replace with your loadstring URL
  72. loadstring(game:HttpGet(loadstringURL))() -- Executes the loadstring
  73. end)
  74.  
  75. -- Create Update List GUI
  76. local updateListGui = Instance.new("Frame", screenGui)
  77. updateListGui.Size = UDim2.new(0, 200, 0, 150)
  78. updateListGui.Position = UDim2.new(0, 10, 0.5, -75)
  79. updateListGui.BackgroundColor3 = Color3.new(0, 0, 0)
  80. updateListGui.BackgroundTransparency = 0.5
  81. updateListGui.BorderSizePixel = 0
  82. updateListGui.Visible = false -- Hidden by default
  83.  
  84. -- TextLabel inside the update list
  85. local updateTextLabel = Instance.new("TextLabel", updateListGui)
  86. updateTextLabel.Size = UDim2.new(1, 0, 0.8, 0)
  87. updateTextLabel.Position = UDim2.new(0, 0, 0, 0)
  88. updateTextLabel.BackgroundTransparency = 1
  89. updateTextLabel.Text = "Added a die sound effect and instant music start"
  90. updateTextLabel.TextColor3 = Color3.new(1, 1, 1)
  91. updateTextLabel.TextScaled = true
  92. updateTextLabel.Font = Enum.Font.SourceSansBold
  93.  
  94. -- Back Button to close the update list GUI
  95. local backButton = Instance.new("TextButton", updateListGui)
  96. backButton.Size = UDim2.new(1, 0, 0.2, 0)
  97. backButton.Position = UDim2.new(0, 0, 0.8, 0)
  98. backButton.Text = "Back"
  99. backButton.TextColor3 = Color3.new(1, 0, 0)
  100. backButton.BackgroundColor3 = Color3.new(0, 0, 0)
  101. backButton.Font = Enum.Font.SourceSansBold
  102. backButton.TextScaled = true
  103.  
  104. -- Toggle the Update List GUI visibility when the "UPDATE LIST" button is clicked
  105. updateListButton.MouseButton1Click:Connect(function()
  106. updateListGui.Visible = true
  107. frame.Visible = false
  108. end)
  109.  
  110. -- Close the Update List GUI when the back button is clicked
  111. backButton.MouseButton1Click:Connect(function()
  112. updateListGui.Visible = false
  113. frame.Visible = true
  114. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement