Advertisement
Dr1llz_

Dr1llz Cash Drop

May 25th, 2024 (edited)
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. -- Create a GUI for the cash drop
  2. local gui = Instance.new("ScreenGui")
  3. local frame = Instance.new("Frame")
  4. local label = Instance.new("TextLabel")
  5. local button = Instance.new("TextButton")
  6. local dropdown = Instance.new("Dropdown")
  7.  
  8. gui.Name = "Dr1llz Cash Drop"
  9. frame.Parent = gui
  10. frame.BackgroundColor3 = Color3.new(0, 0, 0)
  11. frame.Size = UDim2.new(0, 300, 0, 200)
  12. frame.Position = UDim2.new(0, 100, 0, 100)
  13.  
  14. label.Parent = frame
  15. label.Text = "Dr1llz Cash Drop GUI"
  16. label.Font = Enum.Font.SourceSans
  17. label.FontSize = Enum.FontSize.Size24
  18. label.TextColor3 = Color3.new(1, 1, 1)
  19.  
  20. button.Parent = frame
  21. button.Text = "Teleport to Cash Drop Spot"
  22. button.Font = Enum.Font.SourceSans
  23. button.FontSize = Enum.FontSize.Size18
  24. button.TextColor3 = Color3.new(1, 1, 1)
  25. button.BackgroundColor3 = Color3.new(0, 1, 0)
  26.  
  27. dropdown.Parent = frame
  28. dropdown.Name = "CashDropSpots"
  29. dropdown.Font = Enum.Font.SourceSans
  30. dropdown.FontSize = Enum.FontSize.Size18
  31. dropdown.TextColor3 = Color3.new(1, 1, 1)
  32. dropdown.BackgroundColor3 = Color3.new(0, 0, 0)
  33.  
  34. -- Add popular cash drop spots to the dropdown
  35. local cashDropSpots = {
  36. "Bank",
  37. "Jewelry Store",
  38. "Gas Station",
  39. "Convenience Store",
  40. "Mall",
  41. "Park",
  42. "School",
  43. "Hospital"
  44. }
  45.  
  46. for i, spot in pairs(cashDropSpots) do
  47. local option = Instance.new("DropdownOption")
  48. option.Text = spot
  49. option.Parent = dropdown
  50. end
  51.  
  52. -- Create a function to teleport the player to the selected cash drop spot
  53. local function teleportToCashDropSpot(player, spot)
  54. -- Get the cash drop spot's position
  55. local position = nil
  56. if spot == "Bank" then
  57. position = Vector3.new(-100, 0, 0)
  58. elseif spot == "Jewelry Store" then
  59. position = Vector3.new(100, 0, 0)
  60. elseif spot == "Gas Station" then
  61. position = Vector3.new(0, 0, 100)
  62. elseif spot == "Convenience Store" then
  63. position = Vector3.new(0, 0, -100)
  64. elseif spot == "Mall" then
  65. position = Vector3.new(200, 0, 0)
  66. elseif spot == "Park" then
  67. position = Vector3.new(0, 0, 200)
  68. elseif spot == "School" then
  69. position = Vector3.new(-200, 0, 0)
  70. elseif spot == "Hospital" then
  71. position = Vector3.new(0, 0, -200)
  72. end
  73. -- Teleport the player to the cash drop spot
  74. player.Character.HumanoidRootPart.CFrame = CFrame.new(position)
  75. end
  76.  
  77. -- Connect the button's Click event to the teleport function
  78. button.Click:Connect(function()
  79. -- Get the selected cash drop spot
  80. local spot = dropdown.SelectedItem.Text
  81. -- Teleport the player to the cash drop spot
  82. teleportToCashDropSpot(game.Players.LocalPlayer, spot)
  83. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement