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

general confusion on this stop sound script?

Asked by 4 years ago

i really dont know

sp = script.Parent

if sp.Playing then
    wait(10)
    sp:Stop()
end
0
tell use your goal youre being too vague SoftlockedUnderZero 668 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

The variable "sp" probably is the Sound's name in the workspace. and you parented the script to the sound: aka, you put the script into the sound file. Then whenever sound "sp" is playing, the script will play the file for 10 seconds, then stops.

0
i found the solution, thanks! RYANGAMES11 17 — 4y
Ad

Answer this question