Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print'https://pastebin.com/KHKKx8AQ'
- print('run local')
- print([[
- Cmds: Prefix : /lvis (no space)
- /lvislooped
- /lvisid <asset>
- /lvisvol <volume num>
- /lvisplay
- /lvisstop
- ]])
- local runs = game:GetService("RunService")
- local players = game:GetService("Players")
- local lp = players.LocalPlayer
- if true then
- local pre_1 = 'rbxassetid://'
- local lp2 = players:FindFirstChild(lp.Name)
- local at2, apos, part, at1, sound
- if lp2.Character~=nil then
- wait(.1)
- local ded = true
- sound = Instance.new("Sound",lp2.Character:FindFirstChild'Head')
- sound.Volume = 2.5
- sound.SoundId = pre_1..'3250100544'
- sound.Looped = true
- sound:Play()
- wait()
- part = Instance.new("Part",workspace)
- part.Name = '∞vis'
- part.Massless = true
- part.Position = Vector3.new(0,100,0)
- part.CanCollide = false
- part.Shape = Enum.PartType.Ball
- part.BrickColor = BrickColor.new("Really red")
- part.Material = Enum.Material.Glass
- at1 = Instance.new("Attachment",part)
- at2 = Instance.new("Attachment",lp2.Character:FindFirstChild'Head')
- at2.Position = Vector3.new(0,10,0)
- apos = Instance.new("AlignPosition",at2)
- apos.Attachment0 = at1
- apos.Attachment1 = at2
- apos.ApplyAtCenterOfMass = true
- local at3 = Instance.new('Attachment',part)
- at3.Position = Vector3.new(0,2,0)
- local at4 = Instance.new('Attachment',part)
- at4.Position = Vector3.new(0,-2,0)
- local t = Instance.new("Trail",at3)
- t.Attachment0 = at3
- t.Attachment1 = at4
- t.Lifetime = 3
- local hum = lp2.Character:FindFirstChildWhichIsA'Humanoid'
- if hum then
- hum.Died:Connect(function()
- if ded then
- ded = false
- end
- end)
- end
- runs.Heartbeat:Connect(function()
- if part and sound and ded then
- local size_v = sound.PlaybackLoudness / 100
- if size_v<.1 then
- size_v = .1
- end
- part.Size = Vector3.new(size_v,size_v,size_v)
- if at3 and at4 then
- at3.Position = Vector3.new(0,size_v / 2,0)
- at4.Position = Vector3.new(0,size_v / -2,0)
- end
- end
- end)
- end
- lp2.CharacterAdded:Connect(function(ch)
- wait(.1)
- local ded = true
- sound = Instance.new("Sound",lp2.Character:FindFirstChild'Head')
- sound.Volume = 2.5
- sound.SoundId = pre_1..'3250100544'
- sound.Looped = true
- sound:Play()
- wait()
- part = Instance.new("Part",workspace)
- part.Name = '∞vis'
- part.Massless = true
- part.Position = Vector3.new(0,100,0)
- part.CanCollide = false
- part.Shape = Enum.PartType.Ball
- part.BrickColor = BrickColor.new("Really red")
- part.Material = Enum.Material.Glass
- at1 = Instance.new("Attachment",part)
- at2 = Instance.new("Attachment",lp2.Character:FindFirstChild'Head')
- at2.Position = Vector3.new(0,10,0)
- apos = Instance.new("AlignPosition",at2)
- apos.Attachment0 = at1
- apos.Attachment1 = at2
- apos.ApplyAtCenterOfMass = true
- local at3 = Instance.new('Attachment',part)
- at3.Position = Vector3.new(0,2,0)
- local at4 = Instance.new('Attachment',part)
- at4.Position = Vector3.new(0,-2,0)
- local t = Instance.new("Trail",at3)
- t.Attachment0 = at3
- t.Attachment1 = at4
- t.Lifetime = 3
- local hum = lp2.Character:FindFirstChildWhichIsA'Humanoid'
- if hum then
- hum.Died:Connect(function()
- if ded then
- ded = false
- end
- end)
- end
- runs.Heartbeat:Connect(function()
- if part and sound and ded then
- local size_v = sound.PlaybackLoudness / 100
- if size_v<.1 then
- size_v = .1
- end
- part.Size = Vector3.new(size_v,size_v,size_v)
- if at3 and at4 then
- at3.Position = Vector3.new(0,size_v / 2,0)
- at4.Position = Vector3.new(0,size_v / -2,0)
- end
- end
- end)
- end)
- lp.Chatted:Connect(function(msg)
- if msg:sub(1,1)=='/'then
- if msg:sub(2,2):lower()=='l'then
- if msg:sub(3,5):lower()=='vis'then
- if msg:sub(6):lower()=='looped'then
- sound.Looped = not sound.Looped
- elseif msg:sub(6,8):lower()=='id 'then
- sound.SoundId = pre_1..msg:sub(9)
- elseif msg:sub(6,9):lower()=='vol 'then
- sound.Volume = tonumber(msg:sub(10))
- elseif msg:sub(6):lower()=='play'then
- sound:Play()
- elseif msg:sub(6):lower()=='stop'then
- sound:Stop()
- end
- end
- end
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement