Advertisement
mjv2023

DOORS FUN!!

Aug 21st, 2023
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. -- Function to load scripts from URLs
  2. local function loadScript(url)
  3. return loadstring(game:HttpGet(url))()
  4. end
  5.  
  6. -- Create a ScreenGui to hold the main GUI
  7. local mainGui = Instance.new("ScreenGui")
  8. mainGui.Name = "MainGui"
  9. mainGui.Parent = game.Players.LocalPlayer.PlayerGui
  10.  
  11. -- Create a Frame for the main content
  12. local frame = Instance.new("Frame")
  13. frame.Size = UDim2.new(0, 400, 0, 300)
  14. frame.Position = UDim2.new(0.5, -200, 0.5, -150)
  15. frame.BackgroundTransparency = 0.5
  16. frame.BackgroundColor3 = Color3.new(0, 0, 0)
  17. frame.Parent = mainGui
  18.  
  19. -- Create a title for the GUI
  20. local title = Instance.new("TextLabel")
  21. title.Size = UDim2.new(1, 0, 0, 30)
  22. title.BackgroundTransparency = 1
  23. title.Text = "DOORS FUN"
  24. title.TextColor3 = Color3.new(1, 1, 1)
  25. title.FontSize = Enum.FontSize.Size18
  26. title.Parent = frame
  27.  
  28. -- Create buttons with associated code
  29. local button = Instance.new("TextButton")
  30. button.Size = UDim2.new(1, 0, 0, 30)
  31. button.Position = UDim2.new(0, 0, 0, 50)
  32. button.Text = "Freecam"
  33. button.Parent = frame
  34.  
  35. -- Function to execute when the button is clicked
  36. button.MouseButton1Click:Connect(function()
  37. loadScript("https://pastebin.com/raw/rC091nB4")
  38. end)
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement