Skip to content
Untitled Sandbox - Developer Documentation
docs/examples

Examples

Lava that kills

Tag a part "Lava" in Studio and touching it kills the player.

local world = require("@usbx/world")

world.tagged("Lava").touched:connect(function(part, player)
  if player then
    player:kill()
  end
end)
↑ ↓ moveEnter openEsc close