Advertisement
InTesting

Client Visualizer

Jul 4th, 2019
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.24 KB | None | 0 0
  1. print'https://pastebin.com/KHKKx8AQ'
  2. print('run local')
  3. print([[
  4. Cmds: Prefix : /lvis (no space)
  5. /lvislooped
  6. /lvisid <asset>
  7. /lvisvol <volume num>
  8. /lvisplay
  9. /lvisstop
  10. ]])
  11.  
  12. local runs = game:GetService("RunService")
  13. local players = game:GetService("Players")
  14.  
  15. local lp = players.LocalPlayer
  16.  
  17. if true then
  18.     local pre_1 = 'rbxassetid://'
  19.    
  20.     local lp2 = players:FindFirstChild(lp.Name)
  21.    
  22.  
  23.    
  24.    
  25.     local at2, apos, part, at1, sound
  26.     if lp2.Character~=nil then
  27.         wait(.1)
  28.         local ded = true
  29.         sound = Instance.new("Sound",lp2.Character:FindFirstChild'Head')
  30.         sound.Volume = 2.5
  31.         sound.SoundId = pre_1..'3250100544'
  32.         sound.Looped = true
  33.         sound:Play()
  34.         wait()
  35.         part = Instance.new("Part",workspace)
  36.         part.Name = '∞vis'
  37.         part.Massless = true
  38.         part.Position = Vector3.new(0,100,0)
  39.         part.CanCollide = false
  40.         part.Shape = Enum.PartType.Ball
  41.         part.BrickColor = BrickColor.new("Really red")
  42.         part.Material = Enum.Material.Glass
  43.        
  44.         at1 = Instance.new("Attachment",part)
  45.  
  46.         at2 = Instance.new("Attachment",lp2.Character:FindFirstChild'Head')
  47.         at2.Position = Vector3.new(0,10,0)
  48.         apos = Instance.new("AlignPosition",at2)
  49.         apos.Attachment0 = at1
  50.         apos.Attachment1 = at2
  51.         apos.ApplyAtCenterOfMass = true
  52.        
  53.         local at3 = Instance.new('Attachment',part)
  54.         at3.Position = Vector3.new(0,2,0)
  55.        
  56.         local at4 = Instance.new('Attachment',part)
  57.         at4.Position = Vector3.new(0,-2,0)
  58.        
  59.         local t = Instance.new("Trail",at3)
  60.         t.Attachment0 = at3
  61.         t.Attachment1 = at4
  62.         t.Lifetime = 3
  63.        
  64.         local hum = lp2.Character:FindFirstChildWhichIsA'Humanoid'
  65.        
  66.         if hum then
  67.             hum.Died:Connect(function()
  68.                 if ded then
  69.                     ded = false
  70.                 end
  71.             end)
  72.         end
  73.        
  74.         runs.Heartbeat:Connect(function()
  75.             if part and sound and ded then
  76.                 local size_v = sound.PlaybackLoudness / 100
  77.                 if size_v<.1 then
  78.                     size_v = .1
  79.                 end
  80.            
  81.                 part.Size = Vector3.new(size_v,size_v,size_v)
  82.                 if at3 and at4 then
  83.                     at3.Position = Vector3.new(0,size_v / 2,0)
  84.                     at4.Position  = Vector3.new(0,size_v / -2,0)
  85.                 end
  86.             end
  87.         end)
  88.     end
  89.     lp2.CharacterAdded:Connect(function(ch)
  90.         wait(.1)
  91.         local ded = true
  92.         sound = Instance.new("Sound",lp2.Character:FindFirstChild'Head')
  93.         sound.Volume = 2.5
  94.         sound.SoundId = pre_1..'3250100544'
  95.         sound.Looped = true
  96.         sound:Play()
  97.         wait()
  98.         part = Instance.new("Part",workspace)
  99.         part.Name = '∞vis'
  100.         part.Massless = true
  101.         part.Position = Vector3.new(0,100,0)
  102.         part.CanCollide = false
  103.         part.Shape = Enum.PartType.Ball
  104.         part.BrickColor = BrickColor.new("Really red")
  105.         part.Material = Enum.Material.Glass
  106.        
  107.         at1 = Instance.new("Attachment",part)
  108.  
  109.         at2 = Instance.new("Attachment",lp2.Character:FindFirstChild'Head')
  110.         at2.Position = Vector3.new(0,10,0)
  111.         apos = Instance.new("AlignPosition",at2)
  112.         apos.Attachment0 = at1
  113.         apos.Attachment1 = at2
  114.         apos.ApplyAtCenterOfMass = true
  115.        
  116.         local at3 = Instance.new('Attachment',part)
  117.         at3.Position = Vector3.new(0,2,0)
  118.        
  119.         local at4 = Instance.new('Attachment',part)
  120.         at4.Position = Vector3.new(0,-2,0)
  121.        
  122.         local t = Instance.new("Trail",at3)
  123.         t.Attachment0 = at3
  124.         t.Attachment1 = at4
  125.         t.Lifetime = 3
  126.        
  127.         local hum = lp2.Character:FindFirstChildWhichIsA'Humanoid'
  128.        
  129.         if hum then
  130.             hum.Died:Connect(function()
  131.                 if ded then
  132.                     ded = false
  133.                 end
  134.             end)
  135.         end
  136.        
  137.         runs.Heartbeat:Connect(function()
  138.             if part and sound and ded then
  139.                 local size_v = sound.PlaybackLoudness / 100
  140.                 if size_v<.1 then
  141.                     size_v = .1
  142.                 end
  143.            
  144.                 part.Size = Vector3.new(size_v,size_v,size_v)
  145.                 if at3 and at4 then
  146.                     at3.Position = Vector3.new(0,size_v / 2,0)
  147.                     at4.Position  = Vector3.new(0,size_v / -2,0)
  148.                 end
  149.             end
  150.         end)
  151.     end)
  152.    
  153.     lp.Chatted:Connect(function(msg)
  154.         if msg:sub(1,1)=='/'then
  155.             if msg:sub(2,2):lower()=='l'then
  156.                 if msg:sub(3,5):lower()=='vis'then
  157.                     if msg:sub(6):lower()=='looped'then
  158.                         sound.Looped = not sound.Looped
  159.                     elseif msg:sub(6,8):lower()=='id 'then
  160.                         sound.SoundId = pre_1..msg:sub(9)
  161.                     elseif msg:sub(6,9):lower()=='vol 'then
  162.                         sound.Volume = tonumber(msg:sub(10))
  163.                     elseif msg:sub(6):lower()=='play'then
  164.                         sound:Play()
  165.                     elseif msg:sub(6):lower()=='stop'then
  166.                         sound:Stop()
  167.                     end
  168.                 end
  169.             end
  170.         end
  171.     end)
  172. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement