FantasyGamer

[UPT] Block visualizor

Jan 14th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.79 KB | None | 0 0
  1. -- Objects
  2.  
  3. local WindowH = Instance.new("ScreenGui")
  4. local Window = Instance.new("Frame")
  5. local TopBar = Instance.new("Frame")
  6. local HeaderOfTopBar = Instance.new("TextLabel")
  7. local InfoButton = Instance.new("TextButton")
  8. local X = Instance.new("TextButton")
  9. local Content = Instance.new("Frame")
  10. local ChangeID = Instance.new("TextButton")
  11. local ChangeShape = Instance.new("TextButton")
  12. local RunDec = Instance.new("TextButton")
  13. local IDec = Instance.new("TextBox")
  14. local Shape = Instance.new("TextBox")
  15. local Info = Instance.new("ScrollingFrame")
  16. local InfoText = Instance.new("TextLabel")
  17. local ID = IDec
  18.  
  19. -- Properties
  20.  
  21. WindowH.Name = "WindowH"
  22. WindowH.Parent = game:service'Players'.LocalPlayer.PlayerGui
  23.  
  24. Window.Name = "Window"
  25. Window.Parent = WindowH
  26. Window.Active = true
  27. Window.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  28. Window.BorderSizePixel = 0
  29. Window.Draggable = true
  30. Window.Position = UDim2.new(0, 177, 0, 137)
  31. Window.Size = UDim2.new(0, 471, 0, 322)
  32.  
  33. TopBar.Name = "TopBar"
  34. TopBar.Parent = Window
  35. TopBar.BackgroundColor3 = Color3.new(0.301961, 0.301961, 0.301961)
  36. TopBar.BorderSizePixel = 0
  37. TopBar.Size = UDim2.new(0, 471, 0, 28)
  38.  
  39. HeaderOfTopBar.Name = "HeaderOfTopBar"
  40. HeaderOfTopBar.Parent = TopBar
  41. HeaderOfTopBar.BackgroundColor3 = Color3.new(0.0666667, 0.0666667, 0.0666667)
  42. HeaderOfTopBar.BackgroundTransparency = 1
  43. HeaderOfTopBar.BorderSizePixel = 0
  44. HeaderOfTopBar.Size = UDim2.new(0, 367, 0, 28)
  45. HeaderOfTopBar.Font = Enum.Font.SourceSansBold
  46. HeaderOfTopBar.FontSize = Enum.FontSize.Size14
  47. HeaderOfTopBar.Text = " Audio visualizer GUI"
  48. HeaderOfTopBar.TextColor3 = Color3.new(1, 1, 1)
  49. HeaderOfTopBar.TextScaled = true
  50. HeaderOfTopBar.TextSize = 14
  51. HeaderOfTopBar.TextWrapped = true
  52. HeaderOfTopBar.TextXAlignment = Enum.TextXAlignment.Left
  53.  
  54. InfoButton.Name = "InfoButton"
  55. InfoButton.Parent = TopBar
  56. InfoButton.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  57. InfoButton.BorderSizePixel = 0
  58. InfoButton.Position = UDim2.new(0, 367, 0, 5)
  59. InfoButton.Size = UDim2.new(0, 67, 0, 17)
  60. InfoButton.Font = Enum.Font.SourceSansBold
  61. InfoButton.FontSize = Enum.FontSize.Size18
  62. InfoButton.Text = "Info"
  63. InfoButton.TextColor3 = Color3.new(1, 1, 1)
  64. InfoButton.TextSize = 16
  65.  
  66. X.Name = "X"
  67. X.Parent = TopBar
  68. X.BackgroundColor3 = Color3.new(1, 0, 0)
  69. X.BorderSizePixel = 0
  70. X.Position = UDim2.new(0.938428879, 0, 0.107142858, 0)
  71. X.Size = UDim2.new(0, 21, 0, 21)
  72. X.Font = Enum.Font.SourceSansBold
  73. X.FontSize = Enum.FontSize.Size14
  74. X.Text = "X"
  75. X.TextColor3 = Color3.new(1, 1, 1)
  76. X.TextScaled = true
  77. X.TextSize = 14
  78. X.TextWrapped = true
  79.  
  80. Content.Name = "Content"
  81. Content.Parent = Window
  82. Content.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  83. Content.BorderSizePixel = 0
  84. Content.Position = UDim2.new(0, 0, 0, 29)
  85. Content.Size = UDim2.new(0, 471, 0, 293)
  86.  
  87. ChangeID.Name = "ChangeID"
  88. ChangeID.Parent = Content
  89. ChangeID.BackgroundColor3 = Color3.new(0.117647, 0.392157, 0.0705882)
  90. ChangeID.BorderColor3 = Color3.new(0.0823529, 0.290196, 0.0235294)
  91. ChangeID.BorderSizePixel = 4
  92. ChangeID.Position = UDim2.new(0.0191082805, 0, 0.0375426635, 0)
  93. ChangeID.Size = UDim2.new(0, 189, 0, 39)
  94. ChangeID.Font = Enum.Font.SourceSansBold
  95. ChangeID.FontSize = Enum.FontSize.Size24
  96. ChangeID.Text = "Change Sound Id"
  97. ChangeID.TextColor3 = Color3.new(1, 1, 1)
  98. ChangeID.TextSize = 20
  99. ChangeID.TextWrapped = true
  100.  
  101. ChangeShape.Name = "ChangeShape"
  102. ChangeShape.Parent = Content
  103. ChangeShape.BackgroundColor3 = Color3.new(0.117647, 0.392157, 0.0705882)
  104. ChangeShape.BorderColor3 = Color3.new(0.0823529, 0.290196, 0.0235294)
  105. ChangeShape.BorderSizePixel = 4
  106. ChangeShape.Position = UDim2.new(0, 9, 0, 68)
  107. ChangeShape.Size = UDim2.new(0, 189, 0, 39)
  108. ChangeShape.Font = Enum.Font.SourceSansBold
  109. ChangeShape.FontSize = Enum.FontSize.Size24
  110. ChangeShape.Text = "Change Shape"
  111. ChangeShape.TextColor3 = Color3.new(1, 1, 1)
  112. ChangeShape.TextSize = 20
  113. ChangeShape.TextWrapped = true
  114.  
  115. RunDec.Name = "RunDec"
  116. RunDec.Parent = Content
  117. RunDec.BackgroundColor3 = Color3.new(0.223529, 0.223529, 0.223529)
  118. RunDec.BorderColor3 = Color3.new(0.0705882, 0.0705882, 0.0705882)
  119. RunDec.BorderSizePixel = 3
  120. RunDec.Position = UDim2.new(0, 118, 0, 200)
  121. RunDec.Size = UDim2.new(0, 236, 0, 50)
  122. RunDec.Font = Enum.Font.SourceSansBold
  123. RunDec.FontSize = Enum.FontSize.Size28
  124. RunDec.Text = "Run Decoration"
  125. RunDec.TextColor3 = Color3.new(1, 1, 1)
  126. RunDec.TextSize = 25
  127. RunDec.TextWrapped = true
  128.  
  129. IDec.Name = "IDec"
  130. IDec.Parent = Content
  131. IDec.BackgroundColor3 = Color3.new(0.27451, 0.27451, 0.27451)
  132. IDec.BorderSizePixel = 0
  133. IDec.Position = UDim2.new(0, 274, 0, 11)
  134. IDec.Size = UDim2.new(0, 189, 0, 39)
  135. IDec.Font = Enum.Font.SourceSansBold
  136. IDec.FontSize = Enum.FontSize.Size18
  137. IDec.Text = "Sound id"
  138. IDec.TextColor3 = Color3.new(1, 1, 1)
  139. IDec.TextSize = 17
  140. IDec.TextWrapped = true
  141.  
  142. Shape.Name = "Shape"
  143. Shape.Parent = Content
  144. Shape.BackgroundColor3 = Color3.new(0.27451, 0.27451, 0.27451)
  145. Shape.BorderColor3 = Color3.new(0.27451, 0.27451, 0.27451)
  146. Shape.BorderSizePixel = 0
  147. Shape.Position = UDim2.new(0, 274, 0, 68)
  148. Shape.Size = UDim2.new(0, 189, 0, 39)
  149. Shape.ZIndex = 2
  150. Shape.Font = Enum.Font.SourceSansBold
  151. Shape.FontSize = Enum.FontSize.Size18
  152. Shape.Text = "Shape"
  153. Shape.TextColor3 = Color3.new(1, 1, 1)
  154. Shape.TextSize = 17
  155. Shape.TextWrapped = true
  156.  
  157. Info.Name = "Info"
  158. Info.Parent = Window
  159. Info.BackgroundColor3 = Color3.new(0.223529, 0.223529, 0.223529)
  160. Info.BorderSizePixel = 0
  161. Info.Position = UDim2.new(0, 0, 0, 28)
  162. Info.Size = UDim2.new(0, 471, 0, 294)
  163. Info.Visible = false
  164. Info.ZIndex = 3
  165. Info.BottomImage = "rbxassetid://0"
  166. Info.CanvasSize = UDim2.new(0, 0, 4, 0)
  167. Info.ScrollBarThickness = 6
  168. Info.TopImage = "rbxassetid://0"
  169.  
  170. InfoText.Name = "InfoText"
  171. InfoText.Parent = Info
  172. InfoText.BackgroundColor3 = Color3.new(1, 1, 1)
  173. InfoText.BackgroundTransparency = 1
  174. InfoText.Position = UDim2.new(0.0265392773, 0, 0.00340136141, 0)
  175. InfoText.Size = UDim2.new(0, 446, 0, 287)
  176. InfoText.ZIndex = 4
  177. InfoText.Font = Enum.Font.SourceSans
  178. InfoText.FontSize = Enum.FontSize.Size24
  179. InfoText.Text = "The currents functions are:\n \n1.Change Shape, shapes are Block and Ball with caps\n \n2.Change Audio ID\n \n3.Run Decoration\nWhat does the 3 functions do?\n \n1.Change the visualizer shape\n \n2.Change the audios's ID to the new one\n \n3.You will get a better experience with (Run Decoration)\n \n 1.FogEnd will change to 500\n \n 2.It would add BlurEffect and a clean sky\n \n 3.Brightness will be 0\n \n 4.Color will be changed to Black to see the Visualizer \n Color Better ;)"
  180. InfoText.TextColor3 = Color3.new(1, 1, 1)
  181. InfoText.TextSize = 20
  182. InfoText.TextXAlignment = Enum.TextXAlignment.Left
  183. InfoText.TextYAlignment = Enum.TextYAlignment.Top
  184. ----------------------------------------------------------------
  185. ----------------------------------------------------------------
  186. InfoButton.MouseButton1Down:Connect(function()
  187. if Info.Visible == false then
  188. Info.Visible = true
  189. else Info.Visible = false
  190. end
  191. end)
  192.  
  193. Window.ClipsDescendants = true
  194. X.MouseButton1Down:Connect(function()
  195. if Window.Size == UDim2.new(0, 471, 0, 322) then
  196. Window.Size = UDim2.new(0, 467,0, 30)
  197. else
  198. Window.Size = UDim2.new(0, 471, 0, 322)
  199. end
  200. end)
  201.  
  202. ChangeID.MouseButton1Down:Connect(function()
  203. sound.SoundId = "rbxassetid://"..ID.Text
  204. sound:Play()
  205. end)
  206.  
  207. ChangeShape.MouseButton1Down:Connect(function()
  208. ball.Shape = Shape.Text
  209. end)
  210.  
  211. RunDec.MouseButton1Down:Connect(function()
  212. local ln = game:FindFirstChildOfClass("Lighting")
  213.  
  214. local blur = Instance.new("ColorCorrectionEffect",game:FindFirstChildOfClass("Lighting"))
  215. blur.Contrast = 1
  216. blur.Brightness = 0.5
  217.  
  218. local sky = Instance.new("Sky",game:FindFirstChildOfClass("Lighting"))
  219. sky.CelestialBodiesShown = false
  220.  
  221. ln.Brightness = 0
  222. ln.Ambient = Color3.new(0,0,0)
  223. ln.OutdoorAmbient = Color3.new(0,0,0)
  224. ln.TimeOfDay = "00:00:00"
  225. ln.FogEnd = 50
  226. ln.FogColor = Color3.new(0,0,0)
  227.  
  228. end)
  229.  
  230. local id = "565649306"
  231.  
  232. local char = game.Players.LocalPlayer.Character
  233. local head = char.Head
  234.  
  235. if head:FindFirstChild("MyAssIsSoCool") then
  236. head:FindFirstChild("MyAssIsSoCool"):Destroy()
  237. end
  238. local model = Instance.new("Model", head)
  239. ball = Instance.new("Part", model)
  240.  
  241. sound = Instance.new("Sound", ball)
  242.  
  243. light = Instance.new("PointLight", ball)
  244.  
  245. local id2 = "rbxassetid://"..id
  246.  
  247. sound.SoundId = id2
  248. ball.Anchored = true
  249. model.Name = "MyAssIsSoCool"
  250. ball.CanCollide = false
  251. sound:Play()
  252. sound.Volume = .5
  253. sound.Looped=true
  254. ball.Shape = "Block"
  255. ball.Material = "Neon"
  256. ball.BrickColor = BrickColor.new('Cyan')
  257.  
  258. while wait() do
  259. local sp = sound.PlaybackLoudness/90
  260. if sp/5 <= 2 then
  261. ball.Size = ball.Size:lerp(Vector3.new(2,2,2),.2)
  262. end
  263. ball.CFrame = ball.CFrame:lerp(CFrame.new(0,4,0)+head.Position,.03)
  264. ball.Size = ball.Size:lerp(Vector3.new(sp/5,sp/5,sp/5),.2)
  265. ball.Orientation = Vector3.new(0,0,ball.Orientation.Z-(sp))
  266. light.Range = sp+15
  267. light.Brightness = 5
  268.  
  269.  
  270. end
Advertisement
Add Comment
Please, Sign In to add comment