NASA960

karma song

Feb 15th, 2019
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. z = ("Sound", char)
  2. z.Looped = true
  3. z.Name = "KarmaSound"
  4. z.SoundId = "rbxassetid://733456981"
  5. z.TimePosition = 115.5
  6. z.Volume = 2
  7. z:Play()
  8. themeBegan = false
  9. wait(0.5)
  10.  
  11. function fadeInMusic()
  12. while z.Volume < 1 do
  13. wait()
  14. z.Volume = z.Volume + 0.025
  15. end
  16. end
  17.  
  18. delay(0,fadeInMusic)
  19.  
  20. function restartMusic()
  21. wait(89.715)
  22. z.TimePosition = 15.375
  23. while true do
  24. wait(104.34)
  25. z.TimePosition = 15.375
  26. end
  27. end
  28.  
  29. delay(0,restartMusic)
Advertisement
Add Comment
Please, Sign In to add comment