Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Function to load scripts from URLs
- local function loadScript(url)
- return loadstring(game:HttpGet(url))()
- end
- -- Create a ScreenGui to hold the main GUI
- local mainGui = Instance.new("ScreenGui")
- mainGui.Name = "MainGui"
- mainGui.Parent = game.Players.LocalPlayer.PlayerGui
- -- Create a Frame for the main content
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 400, 0, 300)
- frame.Position = UDim2.new(0.5, -200, 0.5, -150)
- frame.BackgroundTransparency = 0.5
- frame.BackgroundColor3 = Color3.new(0, 0, 0)
- frame.Parent = mainGui
- -- Create a title for the GUI
- local title = Instance.new("TextLabel")
- title.Size = UDim2.new(1, 0, 0, 30)
- title.BackgroundTransparency = 1
- title.Text = "DOORS FUN"
- title.TextColor3 = Color3.new(1, 1, 1)
- title.FontSize = Enum.FontSize.Size18
- title.Parent = frame
- -- Create buttons with associated code
- local button = Instance.new("TextButton")
- button.Size = UDim2.new(1, 0, 0, 30)
- button.Position = UDim2.new(0, 0, 0, 50)
- button.Text = "Freecam"
- button.Parent = frame
- -- Function to execute when the button is clicked
- button.MouseButton1Click:Connect(function()
- loadScript("https://pastebin.com/raw/rC091nB4")
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement