SHOW:
|
|
- or go back to the newest paste.
| 1 | function self:Animate(loop) | |
| 2 | if loop ~= self.sequence and self.Sound then | |
| 3 | self.Sound '' | |
| 4 | - | local loop = loop |
| 4 | + | local tag = loop |
| 5 | - | while loop do |
| 5 | + | while tag do |
| 6 | - | if self.SoundList[loop] then |
| 6 | + | if self.SoundList[tag] then |
| 7 | - | self.Sound(self.SoundList[loop]) |
| 7 | + | self.Sound(self.SoundList[tag]) |
| 8 | break | |
| 9 | else | |
| 10 | - | loop = loop:match("^(.*):[^:]+")
|
| 10 | + | tag = tag:match("^(.*):[^:]+")
|
| 11 | end | |
| 12 | end | |
| 13 | end | |
| 14 | return baseAnimate(self, loop) | |
| 15 | end |