Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Create a GUI for the cash drop
- local gui = Instance.new("ScreenGui")
- local frame = Instance.new("Frame")
- local label = Instance.new("TextLabel")
- local button = Instance.new("TextButton")
- local dropdown = Instance.new("Dropdown")
- gui.Name = "Dr1llz Cash Drop"
- frame.Parent = gui
- frame.BackgroundColor3 = Color3.new(0, 0, 0)
- frame.Size = UDim2.new(0, 300, 0, 200)
- frame.Position = UDim2.new(0, 100, 0, 100)
- label.Parent = frame
- label.Text = "Dr1llz Cash Drop GUI"
- label.Font = Enum.Font.SourceSans
- label.FontSize = Enum.FontSize.Size24
- label.TextColor3 = Color3.new(1, 1, 1)
- button.Parent = frame
- button.Text = "Teleport to Cash Drop Spot"
- button.Font = Enum.Font.SourceSans
- button.FontSize = Enum.FontSize.Size18
- button.TextColor3 = Color3.new(1, 1, 1)
- button.BackgroundColor3 = Color3.new(0, 1, 0)
- dropdown.Parent = frame
- dropdown.Name = "CashDropSpots"
- dropdown.Font = Enum.Font.SourceSans
- dropdown.FontSize = Enum.FontSize.Size18
- dropdown.TextColor3 = Color3.new(1, 1, 1)
- dropdown.BackgroundColor3 = Color3.new(0, 0, 0)
- -- Add popular cash drop spots to the dropdown
- local cashDropSpots = {
- "Bank",
- "Jewelry Store",
- "Gas Station",
- "Convenience Store",
- "Mall",
- "Park",
- "School",
- "Hospital"
- }
- for i, spot in pairs(cashDropSpots) do
- local option = Instance.new("DropdownOption")
- option.Text = spot
- option.Parent = dropdown
- end
- -- Create a function to teleport the player to the selected cash drop spot
- local function teleportToCashDropSpot(player, spot)
- -- Get the cash drop spot's position
- local position = nil
- if spot == "Bank" then
- position = Vector3.new(-100, 0, 0)
- elseif spot == "Jewelry Store" then
- position = Vector3.new(100, 0, 0)
- elseif spot == "Gas Station" then
- position = Vector3.new(0, 0, 100)
- elseif spot == "Convenience Store" then
- position = Vector3.new(0, 0, -100)
- elseif spot == "Mall" then
- position = Vector3.new(200, 0, 0)
- elseif spot == "Park" then
- position = Vector3.new(0, 0, 200)
- elseif spot == "School" then
- position = Vector3.new(-200, 0, 0)
- elseif spot == "Hospital" then
- position = Vector3.new(0, 0, -200)
- end
- -- Teleport the player to the cash drop spot
- player.Character.HumanoidRootPart.CFrame = CFrame.new(position)
- end
- -- Connect the button's Click event to the teleport function
- button.Click:Connect(function()
- -- Get the selected cash drop spot
- local spot = dropdown.SelectedItem.Text
- -- Teleport the player to the cash drop spot
- teleportToCashDropSpot(game.Players.LocalPlayer, spot)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement