> For the complete documentation index, see [llms.txt](https://stellardocs.bulkgames.us/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stellardocs.bulkgames.us/soundfx/play.md).

# Play

Plays the sound effect with the given name (required to be in ServerStorage)

```lua
SoundFX:Play(name, part, duration, dupe, ignoreIfNotLoaded)
```

part *(optional)*: The Part instance where the sound should be played

duration *(optional)*: The duration for which the sound should play

dupe *(optional)*: Whether to create a duplicate instance of the sound

ignoreIfNotLoaded *(optional*): Whether to ignore playing the sound if it's not loaded

Example usage:

```lua
local Stellar = shared.Stellar
local SoundFX = Stellar.Get("SoundFX")

SoundFX:Play("Stab", Player.Character.HumanoidRootPart)
```
