Guide 1 Docs 2 Reference 3

Function of Sound

sound.play

Plays a sound by name to everyone in the room; volume above 1 carries further, pitch 0.5..2.0.

sound.play(name: string, opts: { at: Vec3?, volume: number?, pitch: number?, category: string?, }?)

Parameters

namestringrequired
opts{ at: Vec3?, volume: number?, pitch: number?, category: string?, }optional

Used in