Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Does :play()(for sounds) work in a modulescript?

I made a custom object called "explode", and within the e:initialize method, everything works, except

self.Model.Base.Explode:play()

Model is a model cloned from lighting, self being the object,

Base is a part in Model

Explode is a sound within Base

There is no sound that plays. If "playonremove" is on, it will play after the explosion ends. I tried removing it at the start of the explosion to make it play, and that produced no sound. I tried playing it outside of the modulescript, through the script that calls the method, and nothing works. There is no output, as it doesn't break the script, the sound just doesn't play. Can modulescripts not use :play() or something?

1 answer

ModuleScripts can use :play(); they can use anything a normal script can. Does your bug lie in your custom object somewhere?

This discussion is preserved as it was. New answers, comments, and votes are closed.