Advertisement
1x1x1x1IAMbck

visualizer wip maybe it will be leaked

Jul 2nd, 2018
524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.11 KB | None | 0 0
  1. Player=game.Players.LocalPlayer
  2. Character=Player.Character
  3. local LeftArm = Character["Left Arm"]
  4. local RightArm = Character["Right Arm"]
  5. local LeftLeg = Character["Left Leg"]
  6. local RightLeg = Character["Right Leg"]
  7. local Head = Character.Head
  8. local Torso = Character.Torso
  9.  
  10.  
  11. THEME=Instance.new('Sound',Character.Torso)
  12. music=nil
  13. firsttype=false
  14. Player.Chatted:connect(function(msg)
  15. for def in string.gmatch(msg, "%d+") do
  16.             print(def)
  17.  
  18. if def~=nil then
  19.     music=def
  20. end
  21.     end
  22.  
  23. for def in string.gmatch(msg,"[%u%l%p]+") do
  24.             print(def)
  25.     if def=='Play/' and music~=nil then
  26.         THEME:stop()
  27.         THEME.SoundId='rbxassetid://'.. music
  28.         THEME.Volume = 5
  29.         THEME:play()
  30.     elseif def=='PrePlay/Sugar' then
  31.         THEME:stop()
  32.         THEME.SoundId='rbxassetid://'.. 142534278
  33.         THEME.Volume = 5
  34.         THEME:play()
  35.     elseif def=='PrePlay/Papa' then
  36.         THEME:stop()
  37.         THEME.SoundId='rbxassetid://'.. 748984518
  38.         THEME.Volume = 5
  39.         THEME:play()
  40.     elseif def=='StopM' then
  41.         THEME:stop()
  42.     end
  43. end
  44. music=nil
  45. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement