i really dont know
1 | sp = script.Parent |
2 |
3 | if sp.Playing then |
4 | wait( 10 ) |
5 | sp:Stop() |
6 | end |
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.