Advertisement
Animescapetower

Wave Visualizer edit

Apr 1st, 2018
693
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.89 KB | None | 0 0
  1. --This is just a edit of the wave visualizer
  2. --Here's the output only button version https://hastebin.com/raw/adejetiput
  3. cam=workspace.CurrentCamera
  4.  
  5. print("  V - CMDS - V ")
  6. print("> pitch num")
  7. print("> noglobe")
  8. print("> globe")
  9. print("> play musicid")
  10. print("> volume num")
  11. print("> zsize num")
  12. print("> xsize num")
  13. print("> follow npc or player name")
  14. print("> emitsize num")
  15. print("> maxdist num")
  16. print("> stop npc or player name")
  17. print("> pfollow like follow")
  18. print("> trans num")
  19. print("> ysize num")
  20. --Settings #1
  21. CH1 = 1
  22. SECON = 0.5
  23. SECTION = 3
  24. TIMES = 1
  25.  
  26. -- Colors and disco_ality
  27. function rainb(hue)
  28.     local section = hue % TIMES * SECTION
  29.     local secondary = SECON  * math.pi * (section % TIMES)
  30.     if section < 1 then
  31.         return Color3.new(CH1 , CH1  - math.cos(secondary), CH1  - math.sin(secondary))
  32.     elseif section < 2 then
  33.         return Color3.new(CH1  - math.sin(secondary), CH1 , CH1  - math.cos(secondary))
  34.     else
  35.         return Color3.new(CH1  - math.cos(secondary),CH1  - math.sin(secondary), CH1 )
  36.     end
  37. end
  38.  
  39. --Settings #2
  40. print("// Some parts fixed by Omega_Phoenix #Yeet, and Animescapetower//--")
  41. local player = game:GetService("Players").LocalPlayer
  42. local tofollow = player
  43. local char = tofollow.Character
  44. local ispeed = 345
  45. local ispeed2 = 123
  46. local i2 = 0
  47. local primary = char.PrimaryPart
  48.  
  49.  
  50.  
  51. -- Visualizer Stuff
  52. local sine = 50
  53. local sine2 = 34
  54. local size = 7.54
  55. local maxTabs =  12
  56. local ai = 360/maxTabs
  57. hrp=char["HumanoidRootPart"]
  58. rd=math.rad
  59. local fold = Instance.new("Folder")
  60. fold.Name = "Vis"
  61. fold.Parent = char
  62. --------------------------------------
  63. local siner = coroutine.wrap(function()
  64. while true do wait()
  65. sine = sine+1
  66. end
  67. end)
  68. siner()
  69. --------------------------------------
  70. function TweenMe(joint,prop,cfrmz,alp,es,ed)
  71. local ts = game:GetService("TweenService")
  72. local ti = TweenInfo.new(alp,Enum.EasingStyle[es],Enum.EasingDirection[ed],0,false,0)
  73. local pp = {[prop] = cfrmz}
  74. local tween = ts:Create(joint,ti,pp)
  75. tween:Play()
  76. end
  77. function createPart()
  78. local p = Instance.new("Part")
  79. p.Name = "Dead"
  80. p.Anchored = true
  81.  
  82. p.Transparency = 1
  83. p.CanCollide = false
  84. p.TopSurface = "Smooth"
  85. p.BottomSurface = "Smooth"
  86. p.Material = "Neon"
  87. p.Size = Vector3.new(0.5,0.12,0.5)
  88. p.CFrame = CFrame.new(hrp.CFrame.p)
  89.  
  90. return p
  91.  
  92.  
  93.  
  94. end
  95.  
  96.  
  97. function createPart2()
  98. local p3 = Instance.new("Part")
  99. p3.Name = "Dead2"
  100. p3.Anchored = true
  101.  
  102. p3.Transparency = 0
  103. p3.CanCollide = false
  104. p3.TopSurface = "Smooth"
  105. p3.BottomSurface = "Smooth"
  106. p3.Material = "Neon"
  107. p3.Size = Vector3.new(1.36, size, 1.53)
  108. p3.CFrame = CFrame.new(hrp.CFrame.p)
  109.  
  110.  
  111. return p3
  112.  
  113.  
  114.  
  115. end
  116.  
  117. function createparticle()
  118.  
  119. ParticleEmitter0 = Instance.new("ParticleEmitter")
  120. ParticleEmitter0.Name = "Parti"
  121. ParticleEmitter0.Rotation = NumberRange.new(3, 3)
  122. ParticleEmitter0.Size = NumberSequence.new(1,1)
  123.  
  124. ParticleEmitter0.Texture = "rbxassetid://340545335"
  125. ParticleEmitter0.Lifetime = NumberRange.new(0.5)
  126. ParticleEmitter0.Rate = 788
  127. ParticleEmitter0.RotSpeed = NumberRange.new( 0,0)
  128. ParticleEmitter0.Speed = NumberRange.new(0,0)
  129. ParticleEmitter0.Transparency = NumberSequence.new(0.5)
  130. ParticleEmitter0.LightEmission = 1
  131. ParticleEmitter0.LightInfluence = 1
  132. ParticleEmitter0.SpreadAngle = Vector2.new(0,0)
  133. ParticleEmitter0.VelocitySpread = 0
  134.  
  135. return ParticleEmitter0
  136. end
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150. local idk = 4
  151. local eh = 360/idk
  152. for i = 1,360/ai do
  153.  
  154. local p = createPart()
  155.  
  156. p.Parent = fold
  157.  
  158. 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)
  159.  
  160.  
  161. end
  162.  
  163.  
  164. for i = 1,360/ai do
  165.  
  166. local p2 = createPart()
  167.  
  168. p2.Parent = fold
  169.  
  170. p2.CFrame = CFrame.new(hrp.CFrame.p)*CFrame.Angles(rd(0),rd(i*ai),rd(0))*CFrame.new(0,1*math.cos(sine/ispeed),10)
  171.  
  172.  
  173. end
  174.  
  175. local p23 = createPart2()
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.      
  184. --Music
  185. local musics = Instance.new("Sound",hrp)
  186.  
  187.  
  188. -------------------------------------- game:GetService("RunService").RenderStepped:Wait()
  189. --Visualizer CFRAME and tweening
  190. local music = coroutine.wrap(function()
  191. while true do wait()
  192. local gc = fold:GetChildren()
  193. for i = 1,#gc do
  194. sine2=sine2+.05
  195. local l = tick()+sine2
  196. local p = gc[i]
  197.  
  198. local size2 = size*45
  199. p23.CFrame = p23.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(size),math.rad(size2),math.rad(size))
  200. p23.Size = Vector3.new(0.5,size,0.5)
  201. TweenMe(p,'CFrame',hrp.CFrame*CFrame.Angles(rd(0),rd(i*ai),rd(0))*CFrame.new(0,size*math.sin(l)*.05,musics.PlaybackLoudness/50),0.5,'Sine','Out')
  202. end
  203. end
  204. end)
  205. music()
  206. -----------local xsize = 1
  207. local xsize = 1
  208. local zsize = 1
  209. local ysize = 100
  210. local trans = 0.7
  211. size = 4
  212.  
  213. --PointLight and running visualizer
  214.  
  215. PointLight0 = Instance.new("PointLight")
  216.  
  217. PointLight0.Color = Color3.new(1, 1, 0.498039)
  218. PointLight0.Brightness = 435
  219. PointLight0.Parent = hrp
  220. PointLight0.Range = 60
  221. PointLight0.Color = Color3.new(1, 1, 0.498039)
  222.  
  223.  
  224. ParticleEmitter0 = Instance.new("ParticleEmitter")
  225. ParticleEmitter0.Name = "Parti"
  226. ParticleEmitter0.Rotation = NumberRange.new(3, 3)
  227. ParticleEmitter0.Size = NumberSequence.new(1,1)
  228.  
  229. ParticleEmitter0.Texture = "rbxassetid://340545335"
  230. ParticleEmitter0.Lifetime = NumberRange.new(0.5)
  231. ParticleEmitter0.Rate = 788
  232. ParticleEmitter0.Parent = hrp
  233. ParticleEmitter0.RotSpeed = NumberRange.new( 0,0)
  234. ParticleEmitter0.Speed = NumberRange.new(0,0)
  235. ParticleEmitter0.Transparency = NumberSequence.new(0.5)
  236. ParticleEmitter0.LightEmission = 1
  237. ParticleEmitter0.LightInfluence = 1
  238. ParticleEmitter0.SpreadAngle = Vector2.new(0,0)
  239. ParticleEmitter0.VelocitySpread = 0
  240.  
  241.  
  242.  
  243. game:GetService("RunService").Heartbeat:connect(function()
  244. local Clr = rainb(tick()/3)
  245. local gc = fold:GetChildren()
  246. for i = 2,#gc,1 do
  247.  
  248. i2 = i2 - 2
  249.  
  250. gc[i].Color = gc[i].Color:lerp(Color3.new(Clr.r,Clr.g,Clr.b),.5)
  251. gc[i].Size = gc[i].Size:lerp(Vector3.new(xsize,musics.PlaybackLoudness/ysize, zsize),0.6)
  252. gc[i].Transparency = trans
  253.  
  254. hrp.Parti.Rate = musics.PlaybackLoudness/ysize * 21
  255. hrp.Parti.SpreadAngle = Vector2.new(musics.PlaybackLoudness/ysize,musics.PlaybackLoudness/ysize)
  256. hrp.Parti.Size = NumberSequence.new(musics.PlaybackLoudness/ysize,musics.PlaybackLoudness/ysize)
  257. hrp.Parti.Color=ColorSequence.new(Color3.new(Clr.r,Clr.g,Clr.b),.5,Color3.new(Clr.r,Clr.g,Clr.b),.5,Color3.new(Clr.r,Clr.g,Clr.b),.5)
  258. hrp.Parti.Transparency = NumberSequence.new(trans)
  259. PointLight0.Color = gc[i].Color
  260. PointLight0.Range = 12+musics.PlaybackLoudness/ysize * 2* 4 - 0.1
  261.  
  262.  
  263.  
  264. end
  265. end)
  266. local pbl = 30
  267.  
  268.  
  269. --Comands and stuff
  270. volume = 10
  271. command = '/'
  272.  
  273.  
  274.  
  275. print("> secon ")
  276. print("> section")
  277. print("> times")
  278. print("> error")
  279. print("> print>")
  280. print("> parent")
  281. print("> prefix")
  282. print("The prefix is ".. command)
  283.  
  284. -- more music
  285. musics.Looped = true
  286.         musics.Name = "music"
  287.  musics.Volume = 10
  288.         musics.SoundId = "rbxassetid://148515294"
  289.  
  290. --Chat System for vis
  291. local playing = false
  292. player.Chatted:connect(function(chat)
  293. local msg = chat
  294.     if chat:sub(1,3) == "/vis " then
  295.         local num = chat:sub(4)
  296.         size = num
  297.     elseif chat:sub(1,6) == command.."play " then
  298.    
  299.        
  300.  
  301.        musics.Volume = volume
  302.         musics.MaxDistance = 50
  303.         musics.EmitterSize = 50
  304.         musics:Play()
  305.  
  306.         wait(1)
  307.         local id = chat:sub(7)
  308. musics.SoundId='rbxassetid://'..id
  309. local Asset = game:GetService("MarketplaceService"):GetProductInfo(chat:match'%d+')
  310.         print("Now playing: "..Asset.Name.." ID: "..chat:match'%d+'.."")
  311.  
  312. while wait() do
  313.  
  314. if musics.Playing then
  315.  
  316. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p --* CFrame.fromEulerAnglesXYZ(math.random(-10, 10)/10, math.random(-10, 10)/10, 0)
  317. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  318. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(math.random(-12, 12)/3500, math.random(-12, 12)/3500, 0)
  319. cam.CoordinateFrame = ncf*CFrame.new(0, 0, cam_scroll)
  320.  
  321. end
  322.  
  323. end
  324.  
  325.         local visualize = coroutine.wrap(function()
  326.             repeat wait()
  327. wait(0.005)
  328.  local p24 = createPart2()
  329. for i = 1,360/ai do
  330.  
  331.  
  332.  
  333.  
  334. end
  335.        
  336.         until playing == false
  337.         end)
  338.         visualize()
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346. elseif chat == '/pitch<1 ' then
  347. hrp.music:Play()
  348. hrp.music.PlaybackSpeed  =  hrp.music.PlaybackSpeed + 1.54
  349. elseif chat:sub(1,7):lower():match(command..'pitch ') then
  350.  
  351. char.HumanoidRootPart.music.PlaybackSpeed = chat:sub(8)
  352.  
  353. elseif chat:sub(1,8):lower():match(command..'volume ') then
  354. volume = chat:sub(9)
  355. char.HumanoidRootPart.music.Volume = volume
  356.  
  357. elseif chat == command..'noglobe' then
  358. hrp.music:Play()
  359. hrp.music.MaxDistance = 100
  360. hrp.music.EmitterSize = 100
  361.  
  362.  
  363.  
  364. elseif chat == command..'globe' then
  365. hrp.music:Play()
  366. hrp.music.MaxDistance = 500
  367. hrp.music.EmitterSize = 500
  368.  
  369. elseif chat:sub(1,7):lower():match(command..'emitsize ') then
  370.  
  371. char.HumanoidRootPart.music.EmitterSize = chat:sub(8)
  372.  
  373. elseif chat:sub(1,7):lower():match(command..'maxdist ') then
  374.  
  375. char.HumanoidRootPart.music.MaxDistance = chat:sub(8)
  376.  
  377. elseif chat:sub(1,8):lower():match(command..'follow ') then
  378.                 for i,v in pairs(workspace:children'') do
  379.                     if v.Name:lower():match(msg:sub(9):lower()) then
  380.         hrp = v["Torso"]
  381.        
  382. end
  383.                         end
  384.                    
  385.  
  386.  
  387.                    
  388.  
  389. elseif chat:sub(1,8):lower():match(command..'stop ') then
  390.                 for i,v in pairs(workspace:children'') do
  391.                     if v.Name:lower():match(msg:sub(9):lower()) then
  392.         musics:Stop()
  393.         else
  394.         musics.Volume = 0
  395. end
  396. --                        
  397.            end        
  398. elseif chat:sub(1,5):lower():match(command..'pbl ') then
  399. pbl = msg:sub(6)
  400. elseif chat:sub(1,7):lower():match(command..'xsize ') then
  401. xsize = msg:sub(8)
  402. elseif chat:sub(1,7):lower():match(command..'zsize ') then
  403. zsize = msg:sub(8)
  404.  
  405. elseif chat:sub(1,7):lower():match(command..'trans ') then
  406. trans= msg:sub(8)
  407.     elseif chat:sub(1,7):lower():match(command..'ysize') then
  408. ysize= msg:sub(8)
  409.  
  410.  
  411.  
  412. elseif chat:sub(1,7):lower():match(command..'secon') then
  413. SECON= msg:sub(8)
  414.  
  415. elseif chat:sub(1,7):lower():match(command..'time') then
  416. TIMES= msg:sub(8)
  417.  
  418. elseif chat:sub(1,7):lower():match(command..'section ') then
  419. SECTION = msg:sub(8)
  420. elseif chat:sub(1,7):lower():match(command..'error ') then
  421. error(player.Name.." : ".. msg:sub(8))
  422.  
  423. elseif chat:sub(1,7):lower():match(command..'print>') then
  424.  
  425. print(player.Name.." : ".. msg:sub(8))
  426.  
  427. elseif chat:sub(1,7):lower():match(command..'parent') then
  428.  
  429. music.Parent = msg:sub(8)
  430.  
  431. elseif chat:sub(1,7):lower():match(command..'prefix') then
  432.  
  433. command = msg:sub(8)
  434.  
  435. print('Prefix is now '.. command)
  436. elseif chat == "/stop324924332880249832324" then-- DO NOT RUN THIS COMMAND THIS WILL RISK YOUR VISUALIZER, AND BREAK IT<note by anime
  437.         if hrp:FindFirstChild("music") ~= nil then
  438. local p244 = createPart2()            
  439. size = 7.54
  440. p244.Size = Vector3.new(size,size,size)  
  441. wait(1)
  442. size = 7.54
  443.             playing = false
  444.             hrp["music"]:Remove()
  445.  
  446.  
  447.  
  448.  
  449.        
  450. end
  451.  
  452. local X         --\
  453. local Y         ---> Don't edit these.
  454. local Z         --/
  455. --------------------------------------------------------------
  456.  
  457. -- Rotations per frame:
  458.  
  459. X=  -- Degree of rotation per frame on X Axis:
  460.  
  461. 1.0
  462.  
  463. --------------------------------------------------------------
  464.  
  465. Y=  -- Degree of rotation per frame on Y Axis:
  466.  
  467. 1.0
  468.  
  469. --------------------------------------------------------------
  470.  
  471. Z=  -- Degree of rotation per frame on Z Axis:
  472.  
  473. 1.0
  474.  
  475.  
  476. -- NOTE: A frame is usually around 0.03 seconds.
  477. --------------------------------------------------------------
  478.  
  479. local p65 = createPart()
  480.  
  481.     while  true do
  482.         p65.CFrame = p65.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(X),math.rad(Y),math.rad(Z))
  483.         wait()  -- When no number is provided, it will wait for one frame.      |           |           |
  484.     end             --                                                  |           |           [Z=Roll]
  485.                 --                                                  |           [Y=Rotation]
  486.                 --                                                  [X=Pitch]
  487.  
  488.  
  489.     end
  490. end)
  491.  
  492.  
  493.  
  494.  
  495. player.Character.Humanoid.MaxHealth = "Inf"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement