SHOW:
|
|
- or go back to the newest paste.
1 | local Parts = {} | |
2 | local Parts2 = {} | |
3 | local Direction = 1 | |
4 | local loudness = 0 | |
5 | local TColor = BrickColor.new("Black") | |
6 | for i = 1, 100 do | |
7 | local p = Instance.new("Part", game.Players.LocalPlayer.Character.Torso) | |
8 | p.Size = Vector3.new(0.2, 0.2, 0.2) | |
9 | p.Anchored = true | |
10 | p.CanCollide = false | |
11 | p.Material = "Neon" | |
12 | p.Position = game.Players.LocalPlayer.Character.Torso.Position | |
13 | table.insert(Parts, p) | |
14 | end | |
15 | for i = 1, 100 do | |
16 | local p = Instance.new("Part", game.Players.LocalPlayer.Character.Torso) | |
17 | p.Size = Vector3.new(0.2, 0.2, 0.2) | |
18 | p.Anchored = true | |
19 | p.CanCollide = false | |
20 | p.Material = "Neon" | |
21 | p.Position = game.Players.LocalPlayer.Character.Torso.Position | |
22 | table.insert(Parts2, p) | |
23 | end | |
24 | local sound = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso) sound.Looped = true | |
25 | - | sound.SoundId = "http://www.roblox.com/asset?id=611317218" |
25 | + | sound.SoundId = "http://www.roblox.com/asset?id=316832280" |
26 | sound.Volume = 100 | |
27 | sound:Play() | |
28 | spawn(function() | |
29 | local SelectedPart = 0 | |
30 | while true do | |
31 | if Direction == 1 then | |
32 | if SelectedPart < #Parts then | |
33 | SelectedPart = SelectedPart + Direction | |
34 | else | |
35 | Direction = -1 | |
36 | TColor = BrickColor.Random() | |
37 | end | |
38 | elseif Direction == -1 then | |
39 | if SelectedPart > 1 then | |
40 | SelectedPart = SelectedPart + Direction | |
41 | else | |
42 | Direction = 1 | |
43 | TColor = BrickColor.Random() | |
44 | end | |
45 | end | |
46 | local sel = Parts[SelectedPart] | |
47 | local sel2 = Parts2[SelectedPart] | |
48 | sel.BrickColor = BrickColor.Random() | |
49 | sel2.BrickColor = BrickColor.Random() | |
50 | loudness = sound.PlaybackLoudness / 500 | |
51 | sel.Size = Vector3.new(loudness, loudness, 0.2) | |
52 | sel2.Size = Vector3.new(loudness, loudness, 0.2) | |
53 | wait() | |
54 | sel.BrickColor = TColor | |
55 | sel2.BrickColor = TColor | |
56 | end | |
57 | end) | |
58 | game:GetService("RunService").RenderStepped:connect(function() | |
59 | for i = 1, #Parts do | |
60 | if i == 1 then | |
61 | Parts[i].CFrame = Parts[i].CFrame:lerp(game.Players.LocalPlayer.Character.Torso.CFrame, 0.9) | |
62 | else | |
63 | Parts[i].CFrame = Parts[i].CFrame:lerp(Parts[i - 1].CFrame * CFrame.Angles(-loudness / 20, math.sin(-loudness / 50), 0) * CFrame.new(0, 0, 0.15), 0.8) | |
64 | end | |
65 | end | |
66 | for i = 1, #Parts2 do | |
67 | if i == 1 then | |
68 | Parts2[i].CFrame = Parts2[i].CFrame:lerp(game.Players.LocalPlayer.Character.Torso.CFrame, 0.9) | |
69 | else | |
70 | Parts2[i].CFrame = Parts2[i].CFrame:lerp(Parts2[i - 1].CFrame * CFrame.Angles(-loudness / 20, math.sin(loudness / 50), 0) * CFrame.new(0, 0, 0.15), 0.8) | |
71 | end | |
72 | end | |
73 | end) |