SheeityArtist

visualiser

Dec 6th, 2017 (edited)
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.23 KB | None | 0 0
  1. -----------------
  2. --Vishuweraizer--
  3. -----------------
  4. --By --
  5. --CKbackup-
  6. -----------
  7.  
  8. player = game:GetService("Players").LocalPlayer
  9. chara = player.Character
  10. speed = 2
  11. light = game:GetService("Lighting")
  12. speeddep = true
  13.  
  14. ArtificialHB = Instance.new("BindableEvent", script)
  15. ArtificialHB.Name = "Heartbeat"
  16. script:WaitForChild("Heartbeat")
  17. frame = 0.03333333333333
  18. tf = 0
  19. allowframeloss = false
  20. tossremainder = false
  21. lastframe = tick()
  22. script.Heartbeat:Fire()
  23. game:GetService("RunService").Heartbeat:connect(function(s, p)
  24. tf = tf + s
  25. if tf >= frame then
  26. if allowframeloss then
  27. script.Heartbeat:Fire()
  28. lastframe = tick()
  29. else
  30. for i = 1, math.floor(tf / frame) do
  31. script.Heartbeat:Fire()
  32. end
  33. lastframe = tick()
  34. end
  35. if tossremainder then
  36. tf = 0
  37. else
  38. tf = tf - frame * math.floor(tf / frame)
  39. end
  40. end
  41. end)
  42. function swait(num)
  43. if num == 0 or num == nil then
  44. ArtificialHB.Event:wait()
  45. else
  46. for i = 0, num*30 do
  47. ArtificialHB.Event:wait()
  48. end
  49. end
  50. end
  51.  
  52. New = function(Object, Parent, Name, Data)
  53. local Object = Instance.new(Object)
  54. for Index, Value in pairs(Data or {}) do
  55. Object[Index] = Value
  56. end
  57. Object.Parent = Parent
  58. Object.Name = Name
  59. return Object
  60. end
  61.  
  62. Visualizaaa = New("Model",chara,"Visualizaaa",{})
  63. MusicBars = New("Model",Visualizaaa,"MusicBars",{})
  64. Bar12 = New("Part",MusicBars,"Bar12",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(0, 6.23247004, -1.29999999e-05, -0.642789006, -8.11721111e-06, 0.766043425, -9.55555879e-06, 1, 2.5781892e-06, -0.766043365, -5.66274093e-06, -0.642788887),Anchored = true,CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  65. Mesh = New("BlockMesh",Bar12,"Mesh",{Offset = Vector3.new(0, 0, 400),Scale = Vector3.new(1000, 0, 1000),})
  66. Bar11 = New("Part",MusicBars,"Bar11",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(0, 6.23247004, -1.29999999e-05, -0.342022002, -8.11721111e-06, 0.939691961, -8.0974969e-06, 1, 5.69089616e-06, -0.939691961, -5.66274093e-06, -0.342021972),Anchored = true,CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  67. Mesh = New("BlockMesh",Bar11,"Mesh",{Offset = Vector3.new(0, 0, 400),Scale = Vector3.new(1000, 0, 1000),})
  68. Bar13 = New("Part",MusicBars,"Bar13",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(0, 6.23247004, -1.29999999e-05, -0.866026402, -8.11721111e-06, 0.499998927, -9.8610808e-06, 1, -8.45484237e-07, -0.499998719, -5.66274139e-06, -0.866026044),Anchored = true,CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  69. Mesh = New("BlockMesh",Bar13,"Mesh",{Offset = Vector3.new(0, 0, 400),Scale = Vector3.new(1000, 0, 1000),})
  70. Bar15 = New("Part",MusicBars,"Bar15",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(0, 6.23247004, -1.29999999e-05, -0.984810114, -8.11721929e-06, -0.173648164, -7.0105657e-06, 1, -6.98624353e-06, 0.173650384, -5.66274366e-06, -0.984807491),Anchored = true,CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  71. Mesh = New("BlockMesh",Bar15,"Mesh",{Offset = Vector3.new(0, 0, 400),Scale = Vector3.new(1000, 0, 1000),})
  72. Bar14 = New("Part",MusicBars,"Bar14",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(0, 6.23247004, -1.29999999e-05, -0.984808862, -8.11721293e-06, 0.173647434, -8.97721475e-06, 1, -4.16717739e-06, -0.173646778, -5.6627423e-06, -0.984807849),Anchored = true,CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  73. Mesh = New("BlockMesh",Bar14,"Mesh",{Offset = Vector3.new(0, 0, 400),Scale = Vector3.new(1000, 0, 1000),})
  74. Bar17 = New("Part",MusicBars,"Bar17",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(0, 6.23247004, -1.29999999e-05, -0.642786443, -8.11721293e-06, -0.766045451, -8.7965384e-07, 1, -9.8581404e-06, 0.766045511, -5.66282324e-06, -0.642786443),Anchored = true,CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  75. Mesh = New("BlockMesh",Bar17,"Mesh",{Offset = Vector3.new(0, 0, 400),Scale = Vector3.new(1000, 0, 1000),})
  76. Bar16 = New("Part",MusicBars,"Bar16",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(0, 6.23247004, -1.29999999e-05, -0.866031587, -8.11723839e-06, -0.499998778, -4.19833304e-06, 1, -8.96265465e-06, 0.50000602, -5.66274321e-06, -0.866025031),Anchored = true,CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  77. Mesh = New("BlockMesh",Bar16,"Mesh",{Offset = Vector3.new(0, 0, 400),Scale = Vector3.new(1000, 0, 1000),})
  78. Bar18 = New("Part",MusicBars,"Bar18",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(0, 6.23247004, -1.29999999e-05, -0.342018992, -8.11721293e-06, -0.939693034, 2.54507654e-06, 1, -9.56448275e-06, 0.939693332, -5.66282279e-06, -0.342018962),Anchored = true,CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  79. Mesh = New("BlockMesh",Bar18,"Mesh",{Offset = Vector3.new(0, 0, 400),Scale = Vector3.new(1000, 0, 1000),})
  80. Bar2 = New("Part",MusicBars,"Bar2",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(0, 6.23247004, -1.29999999e-05, 0.342024833, -8.11779773e-06, -0.939690948, 8.09744597e-06, 1, -5.69152007e-06, 0.939690948, -5.6624549e-06, 0.342024803),Anchored = true,CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  81. Mesh = New("BlockMesh",Bar2,"Mesh",{Offset = Vector3.new(0, 0, 400),Scale = Vector3.new(1000, 0, 1000),})
  82. Bar3 = New("Part",MusicBars,"Bar3",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(0, 6.23247004, -1.29999999e-05, 0.64279139, -8.11779864e-06, -0.766041458, 9.55572614e-06, 1, -2.57879196e-06, 0.766041577, -5.6624549e-06, 0.642791152),Anchored = true,CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  83. Mesh = New("BlockMesh",Bar3,"Mesh",{Offset = Vector3.new(0, 0, 400),Scale = Vector3.new(1000, 0, 1000),})
  84. Bar4 = New("Part",MusicBars,"Bar4",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(0, 6.23247004, -1.29999999e-05, 0.866028309, -8.11780046e-06, -0.499996245, 9.86144823e-06, 1, 8.44977876e-07, 0.499996513, -5.66245308e-06, 0.866027594),Anchored = true,CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  85. Mesh = New("BlockMesh",Bar4,"Mesh",{Offset = Vector3.new(0, 0, 400),Scale = Vector3.new(1000, 0, 1000),})
  86. Bar5 = New("Part",MusicBars,"Bar5",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(0, 6.23247004, -1.29999999e-05, 0.98481071, -8.11780501e-06, -0.173644096, 8.97774135e-06, 1, 4.16683679e-06, 0.173644513, -5.66244717e-06, 0.984808624),Anchored = true,CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  87. Mesh = New("BlockMesh",Bar5,"Mesh",{Offset = Vector3.new(0, 0, 400),Scale = Vector3.new(1000, 0, 1000),})
  88. Bar6 = New("Part",MusicBars,"Bar6",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(0, 6.23247004, -1.29999999e-05, 0.984813631, -8.1178141e-06, 0.173652858, 7.01119643e-06, 1, 6.98613439e-06, -0.173652411, -5.66242625e-06, 0.98480773),Anchored = true,CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  89. Mesh = New("BlockMesh",Bar6,"Mesh",{Offset = Vector3.new(0, 0, 400),Scale = Vector3.new(1000, 0, 1000),})
  90. Bar7 = New("Part",MusicBars,"Bar7",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(0, 6.23247004, -1.29999999e-05, 0.866025507, -8.11769951e-06, 0.499999821, 4.19891967e-06, 1, 8.9626601e-06, -0.499999821, -5.66243261e-06, 0.866025507),Anchored = true,CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  91. Mesh = New("BlockMesh",Bar7,"Mesh",{Offset = Vector3.new(0, 0, 400),Scale = Vector3.new(1000, 0, 1000),})
  92. Bar8 = New("Part",MusicBars,"Bar8",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(0, 6.23247004, -1.29999999e-05, 0.642787993, -8.11769951e-06, 0.76604414, 8.80286279e-07, 1, 9.85826136e-06, -0.76604414, -5.66243216e-06, 0.642787993),Anchored = true,CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  93. Mesh = New("BlockMesh",Bar8,"Mesh",{Offset = Vector3.new(0, 0, 400),Scale = Vector3.new(1000, 0, 1000),})
  94. Bar9 = New("Part",MusicBars,"Bar9",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(0, 6.23247004, -1.29999999e-05, 0.342020869, -8.1176986e-06, 0.939692378, -2.54452357e-06, 1, 9.56481381e-06, -0.939692438, -5.66243125e-06, 0.342020899),Anchored = true,CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  95. Mesh = New("BlockMesh",Bar9,"Mesh",{Offset = Vector3.new(0, 0, 400),Scale = Vector3.new(1000, 0, 1000),})
  96. Bar10 = New("Part",MusicBars,"Bar10",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(0, 6.23247004, -1.29999999e-05, -2.23513121e-06, -8.11721111e-06, 1, -5.66275912e-06, 1, 8.11719838e-06, -1, -5.66274093e-06, -2.23517713e-06),Anchored = true,CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  97. Mesh = New("BlockMesh",Bar10,"Mesh",{Offset = Vector3.new(0, 0, 400),Scale = Vector3.new(1000, 0, 1000),})
  98. Bar1 = New("Part",MusicBars,"Bar1",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(0, 6.23247004, -1.29999999e-05, 5.22534128e-06, -8.11779773e-06, -1, 5.66249719e-06, 1, -8.11776772e-06, 1, -5.6624549e-06, 5.22538721e-06),Anchored = true,CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  99. Mesh = New("BlockMesh",Bar1,"Mesh",{Offset = Vector3.new(0, 0, 400),Scale = Vector3.new(1000, 0, 1000),})
  100. Skybox = New("Part",Visualizaaa,"Skybox",{FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(0, 6.10749292, 0, 5.22534128e-06, -8.11779773e-06, -1, 5.66249719e-06, 1, -8.11776772e-06, 1, -5.6624549e-06, 5.22538721e-06),Anchored = true,CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  101. Mesh = New("SpecialMesh",Skybox,"Mesh",{Scale = Vector3.new(-4000, -500, -4000),MeshId = "http://www.roblox.com/asset/?id=1527559",MeshType = Enum.MeshType.FileMesh,})
  102. Colouriser = New("Decal",Skybox,"Colouriser",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=1225360437",})
  103. Visualizaaa:MoveTo(Vector3.new(0,0,0))
  104.  
  105. local moosiks = Instance.new("Sound",Visualizaaa)
  106. moosiks.Volume = 1
  107. moosiks.Looped = true
  108. moosiks.SoundId = ""
  109.  
  110. function updateCol(col)
  111. for i, v in pairs(MusicBars:GetChildren()) do
  112. v.BrickColor = BrickColor.new(col)
  113. end
  114. light.Ambient = BrickColor.new(col).Color
  115. Colouriser.Color3 = BrickColor.new(col).Color
  116. end
  117.  
  118. player.Chatted:connect(function(msg)
  119. if msg:sub(1,3) == "/e " then
  120. msg = msg:sub(4,msg:len())
  121. end
  122. if msg:sub(1,4) == "Play" then
  123. moosiks:Stop()
  124. moosiks.SoundId = "rbxassetid://"..msg:sub(6,msg:len())
  125. moosiks.Volume = 1
  126. moosiks:Play()
  127. elseif msg:sub(1,5) == "StopM" then
  128. moosiks:Stop()
  129. elseif msg:sub(1,5) == "Pitch" then
  130. moosiks.Pitch = msg:sub(7,msg:len())
  131. elseif msg:sub(1,6) == "Volume" then
  132. moosiks.Volume = msg:sub(8,msg:len())
  133. elseif msg:sub(1,5) == "Speed" then
  134. speed = msg:sub(7,msg:len())
  135. elseif msg:sub(1,9) == "TypeSpeed" then
  136. if speeddep == true then
  137. speeddep = false
  138. elseif speeddep == false then
  139. speeddep = true
  140. end
  141. elseif msg:sub(1,5) == "Color" then
  142. if msg:sub(1,5) == "Color" then
  143. if msg == "Color Rainbow" then
  144. coroutine.resume(coroutine.create(function()
  145. local colrr = Color3.new(1,1,1)
  146. while wait() do
  147. for i = 0,256,16 do
  148. colrr = Color3.new(1,i/256,0)
  149. updateCol(colrr)
  150. wait()
  151. end
  152. for i = 0,256,16 do
  153. colrr = Color3.new(1-i/256,1,0)
  154. updateCol(colrr)
  155. wait()
  156. end
  157. for i = 0,256,16 do
  158. colrr = Color3.new(0,1,i/256)
  159. updateCol(colrr)
  160. wait()
  161. end
  162. for i = 0,256,16 do
  163. colrr = Color3.new(0,1-i/256,1)
  164. updateCol(colrr)
  165. wait()
  166. end
  167. for i = 0,256,16 do
  168. colrr = Color3.new(i/256,0,1)
  169. updateCol(colrr)
  170. wait()
  171. end
  172. for i = 0,256,16 do
  173. colrr = Color3.new(1,0,1-i/256)
  174. updateCol(colrr)
  175. wait()
  176. end
  177. end
  178. end))
  179. else
  180. updateCol(msg:sub(7,msg:len()))
  181. end
  182. end
  183. end
  184. end)
  185.  
  186. while true do
  187. swait()
  188. if moosiks.IsPlaying == true then
  189. if speeddep == true then
  190. Skybox.CFrame = Skybox.CFrame * CFrame.fromEulerAnglesXYZ(0,math.rad(speed*(moosiks.PlaybackLoudness/500)),0)
  191. for i, v in pairs(MusicBars:GetChildren()) do
  192. v.CFrame = v.CFrame * CFrame.fromEulerAnglesXYZ(0,math.rad(-speed*(moosiks.PlaybackLoudness/500)),0)
  193. v.Mesh.Scale = Vector3.new(1000,(moosiks.PlaybackLoudness)*20,1000)
  194. end
  195. elseif speeddep == false then
  196. Skybox.CFrame = Skybox.CFrame * CFrame.fromEulerAnglesXYZ(0,math.rad(speed),0)
  197. for i, v in pairs(MusicBars:GetChildren()) do
  198. v.CFrame = v.CFrame * CFrame.fromEulerAnglesXYZ(0,math.rad(-speed),0)
  199. v.Mesh.Scale = Vector3.new(1000,(moosiks.PlaybackLoudness)*20,1000)
  200. end
  201. end
  202. end
  203. end
Add Comment
Please, Sign In to add comment