Advertisement
Animescapetower

k

Jun 1st, 2018
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.43 KB | None | 0 0
  1. --[[
  2.  
  3.  
  4. ]]
  5.  
  6. --This was made by someone, edited by animescapetower
  7. --Original Script -> Wave Visualizer
  8. --My Discord Id -> Animescapetower#3026
  9. local player = game.Players.LocalPlayer
  10. local char = player.Character
  11. local character = player.Character
  12. local primary = character.PrimaryPart
  13. local i2 = 0
  14. local ispeed = 43
  15. local sine = 50
  16. local sine2 = 34
  17. local size = 45
  18. local maxTabs = 5
  19. local ai = 360/maxTabs
  20. hrp=char["HumanoidRootPart"]
  21. rd=math.rad
  22. local fold = Instance.new("Folder")
  23. fold.Name = "Vis"
  24. fold.Parent = char
  25. --------------------------------------
  26.  
  27.  
  28. local music = Instance.new("Sound",hrp)
  29.  
  30.  
  31.  
  32. local siner = coroutine.wrap(function()
  33. while true do wait()
  34. sine = sine+1
  35. end
  36. end)
  37. siner()
  38. --------------------------------------
  39. function TweenMe(joint,prop,cfrmz,alp,es,ed)
  40. local ts = game:GetService("TweenService")
  41. local ti = TweenInfo.new(alp,Enum.EasingStyle[es],Enum.EasingDirection[ed],0,false,0)
  42. local pp = {[prop] = cfrmz}
  43. local tween = ts:Create(joint,ti,pp)
  44. tween:Play()
  45. end
  46. function createPart()
  47. local p = Instance.new("Part")
  48. p.Name = "Dead"
  49. p.Anchored = true
  50. p.Shape = 2
  51. p.Transparency = 0.5
  52. p.CanCollide = false
  53. p.TopSurface = "Smooth"
  54. p.BottomSurface = "Smooth"
  55. p.Material = "Neon"
  56. p.Size = Vector3.new(2,2,2)
  57. p.CFrame = CFrame.new(hrp.CFrame.p)
  58.  
  59. return p
  60.  
  61.  
  62.  
  63. end
  64.  
  65.  
  66. local idk = 4
  67. local eh = 360/idk
  68. for i = 1,360/ai do
  69.  
  70. local p = createPart()
  71. p.Parent = fold
  72. p.CFrame = CFrame.new(hrp.CFrame.p)*CFrame.Angles(rd(0),rd(i*ai),rd(0))*CFrame.new(0,1*math.cos(sine/ispeed),10)
  73. end
  74.  
  75. -------------------------------------- game:GetService("RunService").RenderStepped:Wait()
  76. local music = coroutine.wrap(function()
  77. while true do wait()
  78. local gc = fold:GetChildren()
  79. for i = 1,#gc do
  80. sine2=sine2+0.5
  81. local l = tick()+sine2
  82. local p = gc[i]
  83.  
  84. i2 = i2 - 6
  85. p.Color = Color3.fromHSV((i2 - (math.floor(i2 / 360) * 360)) / 360, 1, 1)
  86. p.Size = Vector3.new(0.1, 0.1, (2 + (music.PlaybackLoudness * (music.Volume / 10)) / 20))
  87. p.CFrame = CFrame.new(primary.CFrame.p) * CFrame.Angles(0, math.rad(i2), 0) * CFrame.new(0, 0, -(10 + p.Size.Z / 3) )
  88. TweenMe(p,'Color',Color3.new(size*math.sin(l)/1,0/45,-size*math.sin(l)/12),1,"Sine","Out")
  89. local size2 = size*45
  90. TweenMe(p,'CFrame',hrp.CFrame*CFrame.Angles(rd(0),rd(i*ai),rd(0))*CFrame.new(0,size*math.sin(l)*0.5,5+size/2),0.5,'Sine','Out')
  91. end
  92. end
  93. end)
  94. music()
  95. --------------------------------------
  96. command = "/"
  97. local playing = false
  98. player.Chatted:connect(function(chat)
  99. if chat:sub(1,3) == "/vis " then
  100. local num = chat:sub(4)
  101. size = num
  102. elseif chat:sub(1,7):lower():match("play ") then
  103.  
  104.  
  105.  
  106.  
  107.  
  108. music.Volume = 5
  109. music.MaxDistance = 50
  110. music.EmitterSize = 50
  111. music:Play()
  112.  
  113. wait(1)
  114. local id = chat:sub(7)
  115.  
  116. music.SoundId='rbxassetid://'..chat:sub(8)
  117.  
  118.  
  119. playing = true
  120. local visualize = coroutine.wrap(function()
  121. repeat wait()
  122. wait(0.05)
  123.  
  124.  
  125.  
  126.  
  127. size = hrp.music.PlaybackLoudness/54
  128.  
  129.  
  130. wait(0.05)
  131.  
  132.  
  133.  
  134.  
  135. size = hrp.music.PlaybackLoudness/21
  136.  
  137. wait(0.05)
  138.  
  139.  
  140.  
  141.  
  142. size = hrp.music.PlaybackLoudness/98
  143.  
  144.  
  145. wait(0.05)
  146.  
  147.  
  148.  
  149.  
  150. size = hrp.music.PlaybackLoudness/2
  151.  
  152. wait(0.05)
  153.  
  154.  
  155.  
  156.  
  157. size = hrp.music.PlaybackLoudness/1
  158.  
  159.  
  160.  
  161.  
  162. until playing == false
  163. end)
  164. visualize()
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172. elseif chat == "/pitch<1 " then
  173. hrp.music:Play()
  174. hrp.music.PlaybackSpeed = hrp.music.PlaybackSpeed + 1.54
  175. elseif chat == "/pitch>1" then
  176.  
  177. hrp.music:Play()
  178. hrp.music.PlaybackSpeed = hrp.music.PlaybackSpeed - 1.54
  179.  
  180. elseif chat == "/volume> " then
  181. hrp.music:Play()
  182. hrp.music.Volume= hrp.music.Volume+ 1.54
  183.  
  184. elseif chat == "/volume<" then
  185. hrp.music:Play()
  186. hrp.music.Volume= hrp.music.Volume- 1.54
  187. hrp.music.Volume = 8
  188. hrp.music.MaxDistance = 150
  189. hrp.music.EmitterSize = 150
  190. elseif chat == "/noglobe" then
  191. hrp.music:Play()
  192. hrp.music.MaxDistance = 100
  193. hrp.music.EmitterSize = 100
  194. elseif chat == "/globe" then
  195. hrp.music:Play()
  196. hrp.music.MaxDistance = 500
  197. hrp.music.EmitterSize = 500
  198.  
  199. elseif chat == "/stop" then
  200. if hrp:FindFirstChild("music") ~= nil then
  201. size = 45
  202. wait(1)
  203. size = 45
  204. playing = false
  205. hrp["music"]:Remove()
  206.  
  207.  
  208.  
  209.  
  210.  
  211. end
  212. end
  213. end)
  214.  
  215.  
  216.  
  217.  
  218. player.Character.Humanoid.MaxHealth = "Inf"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement