Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

I want to make a sound that people near me can hear, but how?

Asked by 8 years ago

Ok, so the last question forget it, this is for real now I'm trying to make a morph make a sound every couple of minutes, but it wont do crap, it doesn't even make the sound

HERES THE SCRIPT IM USING AND YES IM PUTTING THEM IN THE HEAD ALONG WITH THE SOUND

wait(0.1) script.Parent.Sound:Play() wait(1) script.Parent.Sound:Stop() wait(0.0001) script.Parent.Sound:Play()

2 answers

Log in to vote
0
Answered by 8 years ago
while true do
    wait(0.1) 
    script.Parent.Sound:Play() 
    wait(1) 
    script.Parent.Sound:Stop() 
end         

Try this.

Ad
Log in to vote
0
Answered by 8 years ago

Try using this:

local Sound = script.Parent.Sound

local CProvider = game:GetService("ContentProvider")
CProvider:Preload(Sound.SoundId)

while wait(0.1) do
    Sound:Play()
    wait(1)
    Sound:Stop()
end

Answer this question