Advertisement
Animescapetower

A visualizer

Apr 28th, 2018
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.93 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Script0 = Instance.new("Script")
  20. LocalScript1 = Instance.new("LocalScript")
  21. Model2 = Instance.new("Model")
  22. Script3 = Instance.new("Script")
  23. Script4 = Instance.new("Script")
  24. Weld5 = Instance.new("Weld")
  25. NumberValue6 = Instance.new("NumberValue")
  26. NumberValue7 = Instance.new("NumberValue")
  27. NumberValue8 = Instance.new("NumberValue")
  28. Model9 = Instance.new("Model")
  29. Sound10 = Instance.new("Sound")
  30. ScreenGui11 = Instance.new("ScreenGui")
  31. Frame12 = Instance.new("Frame")
  32. Frame13 = Instance.new("Frame")
  33. TextLabel14 = Instance.new("TextLabel")
  34. TextLabel15 = Instance.new("TextLabel")
  35. TextLabel16 = Instance.new("TextLabel")
  36. Configuration17 = Instance.new("Configuration")
  37. BoolValue18 = Instance.new("BoolValue")
  38. Color3Value19 = Instance.new("Color3Value")
  39. Script0.Parent = mas
  40. table.insert(cors,sandbox(Script0,function()
  41. re = {}
  42. local SoundId = {
  43. 301101765,--183907931
  44. 0,
  45. 0,
  46. 0,
  47. 0,
  48. 0,
  49. 0,
  50. 0,
  51. 0,
  52. 0,
  53.  
  54.  
  55.  
  56. }
  57.  
  58. local i = 0
  59. --DO NOT EDIT ANYTHING BELOW UNLESS YOU KNOW WHAT YOU ARE DOING
  60.  
  61. local Part = script.Parent
  62. local Gui = Part:WaitForChild("Display"):WaitForChild("Main")
  63. local Configuration = Part:WaitForChild("Configuration")
  64.  
  65. local MarketplaceService = game:GetService("MarketplaceService")
  66.  
  67. local Waves = 200
  68. local WaveSize = 1 / Waves
  69.  
  70. Gui.Time.BackgroundColor3 = Color3.fromHSV((i - (math.floor(i / 360) * 360)) / 360, 1, 1)
  71.  
  72. for i = 1, Waves do
  73. local Frame = Instance.new("Frame")
  74. Frame.BorderSizePixel = 0
  75. Frame.BackgroundColor3 = Color3.fromHSV((i - (math.floor(i / 360) * 360)) / 360, 1, 1)
  76. Frame.BackgroundTransparency = 0.4
  77. Frame.Size = UDim2.new(WaveSize, 0, 0, 0)
  78. Frame.Position = UDim2.new(i * WaveSize - WaveSize, 0, 0.5, 0)
  79. Frame.Rotation = Frame.Rotation + 10
  80. Frame.Name = i
  81. Frame.Parent = Gui
  82.  
  83.  
  84. end
  85.  
  86. local Sound = workspace.Visuals.Sound.VisualizerSound
  87.  
  88.  
  89. function SetupPlaylist()
  90. spawn(function()
  91. for _,SoundId in pairs(SoundId) do
  92. Sound.SoundId = "rbxassetid://".. SoundId
  93. local AssetInfo = MarketplaceService:GetProductInfo(SoundId)
  94.  
  95.  
  96. repeat wait() until Sound.TimeLength > 0
  97. Sound:Play()
  98. local Minutes = math.floor(Sound.TimeLength / 60) % 60
  99. local Seconds = math.floor(Sound.TimeLength) % 60
  100.  
  101. Gui.End.Text = string.format("%d:%02d", Minutes, Seconds)
  102.  
  103.  
  104. wait(Sound.TimeLength)
  105. if Sound.Playing then
  106. Gui.End.Text = string.format("%d:%02d", Minutes, Seconds)
  107. end
  108.  
  109. end
  110. if Configuration:WaitForChild("LoopPlaylist").Value == true then
  111. SetupPlaylist()
  112. end
  113.  
  114.  
  115. end)
  116. end
  117.  
  118. SetupPlaylist()
  119.  
  120. while true do
  121. wait()
  122. local Volume = Sound.PlaybackLoudness
  123. local Size = math.clamp(Volume / 1000, 0.005, 1)
  124. local Minutes = math.floor(Sound.TimePosition / 60) % 60
  125. local Seconds = math.floor(Sound.TimePosition) % 60
  126.  
  127. Gui.Current.Text = string.format("%d:%02d", Minutes, Seconds)
  128.  
  129. --If you do not want to animate the bars uncomment this code and remove the spawn() function with everything inside
  130. for _,Frame in pairs(Gui:GetChildren()) do
  131. Frame.Position = UDim2.new(Frame.Position.X.Scale, 0, (1 - Size) / 2, 0)
  132. Frame.Size = UDim2.new(WaveSize, 0, Size, 0)
  133. end
  134.  
  135.  
  136.  
  137. i = i - 6
  138. workspace.Baseplate.SurfaceGui.Song.TextColor3 = Color3.fromHSV((i - (math.floor(i / 360) * 360)) / 360, 1, 1)
  139.  
  140.  
  141. Gui.Time.Size = UDim2.new(Sound.TimePosition / Sound.TimeLength, 0, 1, 0)
  142. Gui.Time.BackgroundColor3 = Color3.fromHSV((i - (math.floor(i / 360) * 360)) / 360, 1, 1)
  143.  
  144.  
  145. spawn(function()
  146. for i = 1, Waves do
  147. wait()
  148. local Frame = Gui:FindFirstChild(i)
  149. local Position = UDim2.new(Frame.Position.X.Scale, 0, 1 - Size, 0)
  150. local Size = UDim2.new(WaveSize, 0, Size, 0)
  151. Frame:TweenSizeAndPosition(Size, Position, "Out", "Quad", 0.25)
  152. Frame.BackgroundColor3 = Color3.fromHSV((i - (math.floor(i / 360) * 360)) / 360, 1, 1)
  153. end
  154. end)
  155.  
  156. end
  157.  
  158. --"rbxassetid://173956669"
  159. end))
  160. LocalScript1.Parent = mas
  161. table.insert(cors,sandbox(LocalScript1,function()
  162. Char= game.Players.LocalPlayer.Character
  163. unenableRemoves = true
  164.  
  165. if unenableRemoves == false then
  166. local parts = Char:GetChildren()
  167. for i,part in pairs(parts)do
  168. if part.ClassName == "Part" or part.Name == "Head" or part.Name == "Left Arm" or part.Name == "Right Arm" or part.Name == "Left Leg" or part.Name == "Right Leg" or part.Name == "Torso" or part.ClassName == "MeshPart" then
  169. part.BrickColor = BrickColor.Blue()
  170.  
  171. part:BreakJoints()
  172.  
  173. end
  174. end
  175.  
  176.  
  177. local parts2 = Char:GetChildren()
  178. for i,part2 in pairs(parts2)do
  179. if part2.ClassName == "Accessory" then
  180.  
  181. part2:Destroy()
  182.  
  183. end
  184. end
  185.  
  186. local parts3 = Char:GetChildren()
  187. for i,part23 in pairs(parts3)do
  188. if part23.ClassName == "Shirt" or part23.ClassName == "Pants" then
  189. part23:Destroy()
  190.  
  191. end
  192. end
  193.  
  194. end
  195.  
  196.  
  197. e = {}
  198.  
  199.  
  200.  
  201. DefineJobs = {}DefineJobs = {}
  202.  
  203.  
  204. DefineJobs.BreakVaribles = "Info"
  205.  
  206. if DefineJobs.BreakVaribles then
  207.  
  208. print("Ah wat to add for my game")
  209.  
  210.  
  211. end
  212.  
  213.  
  214.  
  215.  
  216. pcall(function()
  217.  
  218. do
  219. print("PrintedFunction")
  220. end
  221.  
  222. if print(_G) then --If Player died or added will be printed on the script
  223.  
  224. pcall(_G)
  225.  
  226. _G.CreateMessage = Instance.new("Hint").Message == "Created _G.Hint"
  227. wait(0.03)
  228. _G.CreateMessage:Destroy()
  229.  
  230. print("If Message Was Displayed")
  231.  
  232.  
  233. while _G do
  234. wait()
  235.  
  236. if script.Parent then
  237. print("Message")
  238. end
  239.  
  240. coroutine.running(function()
  241.  
  242. --Add Code Here
  243. end)
  244.  
  245.  
  246.  
  247. end
  248.  
  249.  
  250. end
  251.  
  252.  
  253. end)
  254.  
  255. funcs = {10,20,30,40,50}
  256.  
  257. if script.Parent == print("GetFuncs") or nil then
  258.  
  259. while unpack() do
  260. wait(2)
  261. print("Do Funcs do".. math.random(1,#funcs))
  262. end
  263.  
  264. end
  265.  
  266.  
  267.  
  268.  
  269. local player = game:service"Players".LocalPlayer
  270. local character = player.Character
  271. local primary = character.PrimaryPart
  272. local pref = ";"
  273. local sound = workspace.Visuals.Sound.VisualizerSound
  274. print("[ ;stop bool or ;play music id ] < cmds")
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281. player.Chatted:connect(function(message)
  282. if message:lower():sub(1, string.len(pref.."play ")) == pref.."play " then
  283. sound.SoundId = "rbxassetid://"..message:lower():sub(string.len(pref.."play")+1, string.len(message))
  284.  
  285. sound:Play()
  286. end
  287. if message:lower():sub(1, string.len(pref.."stop")) == pref.."stop" then
  288. sound:Stop()
  289. end
  290. end)
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298. end))
  299. Model2.Name = "Visuals"
  300. Model2.Parent = workspace
  301. Script3.Name = "SoundChangerOnCommand"
  302. Script3.Parent = Model2
  303.  
  304. table.insert(cors,sandbox(Script3,function()
  305. script.Parent = game:GetService("ServerScriptService")
  306.  
  307. local Soundbar,Locked,Sound=workspace.Visuals
  308. Sound=Soundbar.Sound.VisualizerSound
  309.  
  310. local function Chat(plr,msg)
  311. if msg:sub(1,7):lower()=='/play ' and (not Locked or plr.Name=='Scripth') then
  312. local id=tonumber(msg:match'%d+')
  313. if not id then return end
  314. Sound:Stop()
  315. Sound.SoundId='rbxassetid://'..msg:match'%d+'
  316. Sound:Play()
  317. elseif msg:lower()=='/lock' and plr.Name=='Player1' then
  318. Locked=not Locked
  319. end
  320. end
  321. for i,p in next,game.Players:children() do
  322. p.Chatted:connect(function(m)
  323. Chat(p,m)
  324. end)
  325. end
  326. game.Players.PlayerAdded:connect(function(p)
  327. p.Chatted:connect(function(m)
  328. Chat(p,m)
  329. end)
  330. end)
  331. Sound:Play()
  332. end))
  333. Script4.Name = "Visual"
  334. Script4.Parent = Model2
  335. Script4.Disabled = true
  336. table.insert(cors,sandbox(Script4,function()
  337. --My own spinning script
  338. --And Sound Changer
  339.  
  340. x = script.X.Value -- rotation
  341. y = script.Y.Value -- pitch
  342. z = script.Z.Value -- roll
  343.  
  344. local part = script.Parent
  345.  
  346.  
  347. local visound = workspace.Visuals.Sound.VisualizerSound
  348. visound.Volume = y
  349. visound.Pitch = 1
  350.  
  351.  
  352. function runsong()
  353.  
  354.  
  355.  
  356.  
  357.  
  358. if visound:FindFirstAncestor(visound) ~= visound.SoundId then
  359.  
  360.  
  361.  
  362. visound:Play()
  363. end
  364.  
  365.  
  366. end
  367.  
  368. runfunc = pcall(runsong)
  369.  
  370.  
  371. local i = 0
  372.  
  373.  
  374.  
  375. end))
  376. Weld5.Parent = Script4
  377. NumberValue6.Name = "X"
  378. NumberValue6.Parent = Script4
  379. NumberValue6.Value = 87
  380. NumberValue7.Name = "Z"
  381. NumberValue7.Parent = Script4
  382. NumberValue8.Name = "Y"
  383. NumberValue8.Parent = Script4
  384. NumberValue8.Value = 200
  385. Model9.Name = "Sound"
  386. Model9.Parent = Model2
  387. Sound10.Name = "VisualizerSound"
  388. Sound10.Parent = Model9
  389. Sound10.SoundId = "rbxassetid://183907931"
  390. Sound10.Looped = true
  391. ScreenGui11.Name = "Display"
  392. ScreenGui11.Parent = mas
  393. Frame12.Name = "Main"
  394. Frame12.Parent = ScreenGui11
  395. Frame12.Transparency = 1
  396. Frame12.Size = UDim2.new(1, 0, 1, 0)
  397. Frame12.BackgroundColor3 = Color3.new(1, 1, 1)
  398. Frame12.BackgroundTransparency = 1
  399. Frame12.BorderSizePixel = 0
  400. Frame13.Name = "Time"
  401. Frame13.Parent = Frame12
  402. Frame13.Transparency = 0.74000000953674
  403. Frame13.Size = UDim2.new(0, 0, 1, 0)
  404. Frame13.BackgroundColor3 = Color3.new(1, 1, 1)
  405. Frame13.BackgroundTransparency = 0.74000000953674
  406. Frame13.BorderSizePixel = 0
  407. TextLabel14.Name = "Current"
  408. TextLabel14.Parent = Frame12
  409. TextLabel14.Transparency = 1
  410. TextLabel14.Size = UDim2.new(0.5, -20, 1, 0)
  411. TextLabel14.Text = "0:00"
  412. TextLabel14.Position = UDim2.new(0, 20, 0, 0)
  413. TextLabel14.BackgroundColor3 = Color3.new(1, 1, 1)
  414. TextLabel14.BackgroundTransparency = 1
  415. TextLabel14.BorderSizePixel = 0
  416. TextLabel14.ZIndex = 2
  417. TextLabel14.Font = Enum.Font.SciFi
  418. TextLabel14.FontSize = Enum.FontSize.Size60
  419. TextLabel14.TextColor3 = Color3.new(1, 1, 1)
  420. TextLabel14.TextXAlignment = Enum.TextXAlignment.Left
  421. TextLabel15.Name = "End"
  422. TextLabel15.Parent = Frame12
  423. TextLabel15.Transparency = 1
  424. TextLabel15.Size = UDim2.new(0.5, -20, 1, 0)
  425. TextLabel15.Text = "0:00"
  426. TextLabel15.Position = UDim2.new(0.5, 0, 0, 0)
  427. TextLabel15.BackgroundColor3 = Color3.new(1, 1, 1)
  428. TextLabel15.BackgroundTransparency = 1
  429. TextLabel15.BorderSizePixel = 0
  430. TextLabel15.ZIndex = 2
  431. TextLabel15.Font = Enum.Font.SciFi
  432. TextLabel15.FontSize = Enum.FontSize.Size60
  433. TextLabel15.TextColor3 = Color3.new(1, 1, 1)
  434. TextLabel15.TextXAlignment = Enum.TextXAlignment.Right
  435. TextLabel16.Name = "Song"
  436. TextLabel16.Parent = ScreenGui11
  437. TextLabel16.Transparency = 1
  438. TextLabel16.Size = UDim2.new(1, 1, 1, 1)
  439. TextLabel16.Text = "To Change Music ID ;play , To Stop Music From Playing ;stop"
  440. TextLabel16.Position = UDim2.new(0, 0, 0, -250)
  441. TextLabel16.BackgroundColor3 = Color3.new(1, 1, 1)
  442. TextLabel16.BackgroundTransparency = 1
  443. TextLabel16.Font = Enum.Font.Code
  444. TextLabel16.FontSize = Enum.FontSize.Size36
  445. TextLabel16.TextColor3 = Color3.new(1, 1, 1)
  446. TextLabel16.TextWrapped = true
  447. Configuration17.Parent = mas
  448. BoolValue18.Name = "LoopPlaylist"
  449. BoolValue18.Parent = Configuration17
  450. BoolValue18.Value = true
  451. Color3Value19.Name = "VisualizerColor3"
  452. Color3Value19.Parent = Configuration17
  453. Color3Value19.Value = Color3.new(1, 0.666667, 0)
  454. for i,v in pairs(mas:GetChildren()) do
  455. v.Parent = workspace
  456. pcall(function() v:MakeJoints() end)
  457. end
  458. mas:Destroy()
  459. for i,v in pairs(cors) do
  460. spawn(function()
  461. pcall(v)
  462. end)
  463. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement