Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Audio Vis
- local RS = game:GetService("RunService")
- local players = game:GetService("Players")
- bet = "'"
- me = players.LocalPlayer
- char = me.Character
- torso = char.Torso
- lp = game.Players.LocalPlayer
- sound = Instance.new("Sound", game.Workspace:FindFirstChild(lp.Name).Head)
- sound.SoundId = "rbxassetid://537601228"
- box = Instance.new("Part", game.Workspace:FindFirstChild(lp.Name).Head)
- box.Anchored = true
- box.Size = Vector3.new(1, 1, 1)
- box.BrickColor = BrickColor.new("New Yeller")
- box.Transparency = 0
- box.CanCollide = true
- box.TopSurface = "Smooth"
- box.BottomSurface = "Smooth"
- box.Material = "Plastic"
- box.Name = "Box"
- sb = Instance.new("SelectionBox", game.Workspace:FindFirstChild(lp.Name).Head.Box)
- sb.Color3 = Color3.new(47/255, 21/255, 104/255)
- sb.SurfaceTransparency = 0.50
- sb.LineThickness = 0.20
- sb.Adornee = game.Workspace:FindFirstChild(lp.Name).Head.Box
- local direction = CFrame.new(box.Position, lp.Character['Left Leg'].Position).lookVector
- local increment = direction * 4
- local loop = RS.Stepped:connect(function()
- box.CFrame = box.CFrame:lerp(torso.CFrame * CFrame.new(3, 2.5, 0), .1)
- end)
- lp.Chatted:connect(function(msg)
- if string.sub(msg, 1,3):lower() == "id"..bet then
- sound.SoundId = "rbxassetid://"..string.sub(msg,4)
- end
- end)
- lp.Chatted:connect(function(msg)
- if string.sub(msg, 1,5):lower() == "play"..bet then
- sound.Playing = true
- end
- end)
- lp.Chatted:connect(function(msg)
- if string.sub(msg, 1,5):lower() == "stop"..bet then
- sound.Playing = false
- end
- end)
- lp.Chatted:connect(function(msg)
- if string.sub(msg, 1,7):lower() == "volume"..bet then
- sound.Volume = string.sub(msg,8)
- end
- end)
- while true do
- if sound.PlaybackLoudness <= 300 then
- box.Size = Vector3.new(sound.PlaybackLoudness / 76, sound.PlaybackLoudness / 76, sound.PlaybackLoudness / 76)
- end
- if sound.PlaybackLoudness >= 301 then
- box.Size = Vector3.new(sound.PlaybackLoudness / 230, sound.PlaybackLoudness / 230, sound.PlaybackLoudness / 230)
- end
- wait()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement