Play

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

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:

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

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

Last updated