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

I want to make my speaker to emit sound, can someone help me?

Asked by
Potaaden -18
4 years ago
game.Workspace["Speaker 1"].Part.Sound.Playing = true
game.Workspace["Speaker 1"].Part.Sound.MaxDistance = 100
wait (5)
-- I'm trying to make the speaker to play music, it's not working.

1 answer

Log in to vote
1
Answered by
MemezyDev 172
4 years ago

to play a sound you just do

Sound:Play()

so in your case it will be

game.Workspace["Speaker 1"].Part.Sound:Play()
game.Workspace["Speaker 1"].Part.Sound.MaxDistance = 100
wait (5)
--To pause you would just do Sound:Pause()

also make sure that the sound is already loaded in and that the sound isn't too low to where you can't hear it

Ad

Answer this question