Advertisement
julialy

New sound api

Jan 23rd, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. --New sound api examples
  2. fuck = 0
  3. MainSound = Instance.new("Sound")
  4. MainSound.Name = "Water Symphony"
  5. MainSound.SoundId = "~/Documents/robloxshit/examplesound.ogg"
  6. MainSound.LoopStartSample = 100352
  7. MainSound.Looped = true
  8.  
  9. MainSound.LoopEndPassed:connect(function()
  10.     fuck = fuck + 1
  11.     if fuck >= 5 then
  12.         MainSound.Looped = false
  13.     end
  14. end)
  15.  
  16. MainSound:Play()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement