Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- GUI Setup
- local player = game.Players.LocalPlayer
- local screenGui = Instance.new("ScreenGui", player.PlayerGui)
- screenGui.Name = "CustomGui"
- screenGui.ResetOnSpawn = false
- -- Frame for the main GUI
- local frame = Instance.new("Frame", screenGui)
- frame.Size = UDim2.new(0, 200, 0, 150)
- frame.Position = UDim2.new(0, 10, 0.5, -75) -- Center left of the screen
- frame.BackgroundColor3 = Color3.new(0, 0, 0)
- frame.BackgroundTransparency = 0.5
- frame.BorderSizePixel = 0
- frame.Visible = true
- -- TextLabel inside the frame
- local textLabel = Instance.new("TextLabel", frame)
- textLabel.Size = UDim2.new(1, 0, 0.6, 0)
- textLabel.Position = UDim2.new(0, 0, 0, 0)
- textLabel.BackgroundTransparency = 1
- textLabel.Text = "Well... This is BY NeverGonnaGiveUpLo4, I Think Maybe Is Working Or SHIT"
- textLabel.TextColor3 = Color3.new(1, 1, 1)
- textLabel.TextScaled = true
- textLabel.Font = Enum.Font.SourceSansBold
- -- Execute Button inside the frame
- local executeButton = Instance.new("TextButton", frame)
- executeButton.Size = UDim2.new(1, 0, 0.2, 0)
- executeButton.Position = UDim2.new(0, 0, 0.6, 0)
- executeButton.Text = "Execute"
- executeButton.TextColor3 = Color3.new(1, 0, 0)
- executeButton.BackgroundColor3 = Color3.new(0, 0, 0)
- executeButton.Font = Enum.Font.SourceSansBold
- executeButton.TextScaled = true
- -- Update List Button
- local updateListButton = Instance.new("TextButton", frame)
- updateListButton.Size = UDim2.new(1, 0, 0.2, 0)
- updateListButton.Position = UDim2.new(0, 0, 0.8, 0)
- updateListButton.Text = "UPDATE LIST"
- updateListButton.TextColor3 = Color3.new(1, 0, 0)
- updateListButton.BackgroundColor3 = Color3.new(0, 0, 0)
- updateListButton.Font = Enum.Font.SourceSansBold
- updateListButton.TextScaled = true
- -- Open/Close Button
- local openCloseButton = Instance.new("TextButton", screenGui)
- openCloseButton.Size = UDim2.new(0, 30, 0, 30)
- openCloseButton.Position = UDim2.new(0, 10, 0.5, -75)
- openCloseButton.Text = "<"
- openCloseButton.TextColor3 = Color3.new(1, 1, 1)
- openCloseButton.BackgroundColor3 = Color3.new(0, 0, 0)
- openCloseButton.Font = Enum.Font.SourceSansBold
- openCloseButton.TextScaled = true
- -- Toggle the main GUI visibility when the button is clicked
- local isOpen = true
- openCloseButton.MouseButton1Click:Connect(function()
- isOpen = not isOpen
- if isOpen then
- frame.Visible = true
- openCloseButton.Text = "<"
- else
- frame.Visible = false
- openCloseButton.Text = ">"
- end
- end)
- -- Loadstring to be executed when Execute button is clicked
- executeButton.MouseButton1Click:Connect(function()
- local loadstringURL = "https://pastebin.com/raw/4ZVdjKwu" -- Replace with your loadstring URL
- loadstring(game:HttpGet(loadstringURL))() -- Executes the loadstring
- end)
- -- Create Update List GUI
- local updateListGui = Instance.new("Frame", screenGui)
- updateListGui.Size = UDim2.new(0, 200, 0, 150)
- updateListGui.Position = UDim2.new(0, 10, 0.5, -75)
- updateListGui.BackgroundColor3 = Color3.new(0, 0, 0)
- updateListGui.BackgroundTransparency = 0.5
- updateListGui.BorderSizePixel = 0
- updateListGui.Visible = false -- Hidden by default
- -- TextLabel inside the update list
- local updateTextLabel = Instance.new("TextLabel", updateListGui)
- updateTextLabel.Size = UDim2.new(1, 0, 0.8, 0)
- updateTextLabel.Position = UDim2.new(0, 0, 0, 0)
- updateTextLabel.BackgroundTransparency = 1
- updateTextLabel.Text = "Added a die sound effect and instant music start"
- updateTextLabel.TextColor3 = Color3.new(1, 1, 1)
- updateTextLabel.TextScaled = true
- updateTextLabel.Font = Enum.Font.SourceSansBold
- -- Back Button to close the update list GUI
- local backButton = Instance.new("TextButton", updateListGui)
- backButton.Size = UDim2.new(1, 0, 0.2, 0)
- backButton.Position = UDim2.new(0, 0, 0.8, 0)
- backButton.Text = "Back"
- backButton.TextColor3 = Color3.new(1, 0, 0)
- backButton.BackgroundColor3 = Color3.new(0, 0, 0)
- backButton.Font = Enum.Font.SourceSansBold
- backButton.TextScaled = true
- -- Toggle the Update List GUI visibility when the "UPDATE LIST" button is clicked
- updateListButton.MouseButton1Click:Connect(function()
- updateListGui.Visible = true
- frame.Visible = false
- end)
- -- Close the Update List GUI when the back button is clicked
- backButton.MouseButton1Click:Connect(function()
- updateListGui.Visible = false
- frame.Visible = true
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement