View difference between Paste ID: 7y2n23Ae and vpz1P7qN
SHOW: | | - or go back to the newest paste.
1-
player = game.Players.amazingranma261
1+
player = game.Players.potatoes_ohgawd
2
script.Parent = player
3
sound = Instance.new("Sound",player.Character) 
4
sound.Volume = 1 
5
6
7
		lo = Instance.new("Part",player.Character) 
8
		lo.Size = Vector3.new(1,1,1) 
9
		lo.Anchored = true 
10
		lo.BrickColor = BrickColor.new(Color3.new(255,255,255)) 
11
		lo.TopSurface= "Smooth" 
12
		lo.BottomSurface = "Smooth" 
13
		lo.CanCollide = false
14
15
newSound = coroutine.wrap(function(id) 
16
li = "http://www.roblox.com/asset/?id="..id 
17
Game:GetService("ContentProvider"):Preload(li) 
18
sound.SoundId = li 
19
sound:Play() 
20
end)
21
22
game:GetService("RunService").Heartbeat:connect(function()
23
	lo.CFrame = CFrame.new(player.Character.Head.Position)  + Vector3.new(0,5,0)
24
	lo.CFrame = lo.CFrame * CFrame.Angles(0,0,math.sin(1))
25
end)
26
27
updateVis = coroutine.wrap(function()
28
	while sound.IsPlaying do
29
			lo.Size = Vector3.new(sound.PlaybackLoudness*.01,sound.PlaybackLoudness*.01,sound.PlaybackLoudness*.01)
30
		wait()
31
	end
32
	lo.Side = Vector3.new(0,0,0)
33
end)
34
35
36
newSound("2087798404")
37
updateVis()
38
39
player.Chatted:connect(function(m) 
40
if m:lower():match("#play ") then 
41
newSound(m:sub(7))
42
updateVis()
43
elseif m:lower():match("#loudness") then 
44
print("Loudness = "..sound.PlaybackLoudness) 
45
end 
46
end)