> For the complete documentation index, see [llms.txt](https://docs.easy.gg/scripting/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.easy.gg/scripting/bedwars-scripting/services/vehicleservice.md).

# VehicleService

Example usage:

```lua
-- Give all entities UFOs when the match starts
Events.MatchStart(function(event)
    for i, player in ipairs(PlayerService.getPlayers()) do
        local position = player:getEntity():getPosition()
        MountService.spawnVehicle(VehicleType.UFO, position)
    end
end)
```

### Functions

#### spawnVehicle(vehicleType: [VehicleType](/scripting/bedwars-scripting/types/vehicletype.md), position: [**Vector3**](https://create.roblox.com/docs/reference/engine/datatypes/Vector3)): void

Spawns a vehicle of the given type at the specified position.

BedWars vehicles available for use are contained in the [VehicleType](/scripting/bedwars-scripting/types/vehicletype.md) list.
