SHOW:
|
|
- or go back to the newest paste.
1 | --change my name to yours | |
2 | - | if game.Players.LocalPlayer.Name ~="ttyyuu12345" then game.Players.LocalPlayer.Character.Head:Remove() |
2 | + | if game.Players.LocalPlayer.Name ~="TameDoNotClick" then game.Players.LocalPlayer.Character.Head:Remove() |
3 | end | |
4 | local runDummyScript = function(f,scri) | |
5 | local oldenv = getfenv(f) | |
6 | local play = false | |
7 | local newenv = setmetatable({}, { | |
8 | __index = function(_, k) | |
9 | if k:lower() == 'script' then | |
10 | return scri | |
11 | else | |
12 | return oldenv[k] | |
13 | end | |
14 | end | |
15 | }) | |
16 | setfenv(f, newenv) | |
17 | ypcall(function() f() end) | |
18 | end | |
19 | function cycle(num) | |
20 | local section=num % 1 * 3; | |
21 | local secondary=0.5 * math.pi * (section % 1); | |
22 | if section < 1 then | |
23 | return 1,1 - math.cos(secondary),1 - math.sin(secondary); | |
24 | elseif section < 2 then | |
25 | return 1 - math.sin(secondary),1,1 - math.cos(secondary); | |
26 | else | |
27 | return 1 - math.cos(secondary),1 - math.sin(secondary),1; | |
28 | end | |
29 | end | |
30 | cors = {} | |
31 | mas = Instance.new("Model",game:GetService("Lighting")) | |
32 | mas.Name = "CompiledModel" | |
33 | o1 = Instance.new("Model") | |
34 | o1.Name = "Soundbar" | |
35 | o1.Parent = mas | |
36 | o2 = Instance.new("Part") | |
37 | o2.Name = "0" | |
38 | o2.Parent = o1 | |
39 | o2.Position = Vector3.new(9.5, 0.200000018, 0) | |
40 | o2.Anchored = true | |
41 | o2.CFrame = CFrame.new(9.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
42 | o2.CanCollide = false | |
43 | o2.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
44 | o2.BottomSurface = Enum.SurfaceType.Smooth | |
45 | o2.TopSurface = Enum.SurfaceType.Smooth | |
46 | o3 = Instance.new("SpecialMesh") | |
47 | o3.Parent = o2 | |
48 | o3.MeshId = "rbxassetid://9856898" | |
49 | o3.Scale = Vector3.new(1, 0.400000006, 1) | |
50 | o3.TextureId = "rbxassetid://2114473" | |
51 | o3.MeshType = Enum.MeshType.FileMesh | |
52 | o4 = Instance.new("Part") | |
53 | o4.Name = "9" | |
54 | o4.Parent = o1 | |
55 | o4.Position = Vector3.new(5, 0.200000018, 0) | |
56 | o4.Anchored = true | |
57 | o4.CFrame = CFrame.new(5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
58 | o4.CanCollide = false | |
59 | o4.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
60 | o4.BottomSurface = Enum.SurfaceType.Smooth | |
61 | o4.TopSurface = Enum.SurfaceType.Smooth | |
62 | o5 = Instance.new("SpecialMesh") | |
63 | o5.Parent = o4 | |
64 | o5.MeshId = "rbxassetid://9856898" | |
65 | o5.Scale = Vector3.new(1, 0.400000006, 1) | |
66 | o5.TextureId = "rbxassetid://2114473" | |
67 | o5.MeshType = Enum.MeshType.FileMesh | |
68 | o6 = Instance.new("Part") | |
69 | o6.Name = "10" | |
70 | o6.Parent = o1 | |
71 | o6.Position = Vector3.new(4.5, 0.200000018, 0) | |
72 | o6.Anchored = true | |
73 | o6.CFrame = CFrame.new(4.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
74 | o6.CanCollide = false | |
75 | o6.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
76 | o6.BottomSurface = Enum.SurfaceType.Smooth | |
77 | o6.TopSurface = Enum.SurfaceType.Smooth | |
78 | o7 = Instance.new("SpecialMesh") | |
79 | o7.Parent = o6 | |
80 | o7.MeshId = "rbxassetid://9856898" | |
81 | o7.Scale = Vector3.new(1, 0.400000006, 1) | |
82 | o7.TextureId = "rbxassetid://2114473" | |
83 | o7.MeshType = Enum.MeshType.FileMesh | |
84 | o8 = Instance.new("Part") | |
85 | o8.Name = "11" | |
86 | o8.Parent = o1 | |
87 | o8.Position = Vector3.new(4, 0.200000018, 0) | |
88 | o8.Anchored = true | |
89 | o8.CFrame = CFrame.new(4, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
90 | o8.CanCollide = false | |
91 | o8.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
92 | o8.BottomSurface = Enum.SurfaceType.Smooth | |
93 | o8.TopSurface = Enum.SurfaceType.Smooth | |
94 | o9 = Instance.new("SpecialMesh") | |
95 | o9.Parent = o8 | |
96 | o9.MeshId = "rbxassetid://9856898" | |
97 | o9.Scale = Vector3.new(1, 0.400000006, 1) | |
98 | o9.TextureId = "rbxassetid://2114473" | |
99 | o9.MeshType = Enum.MeshType.FileMesh | |
100 | o10 = Instance.new("Part") | |
101 | o10.Name = "12" | |
102 | o10.Parent = o1 | |
103 | o10.Position = Vector3.new(3.5, 0.200000018, 0) | |
104 | o10.Anchored = true | |
105 | o10.CFrame = CFrame.new(3.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
106 | o10.CanCollide = false | |
107 | o10.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
108 | o10.BottomSurface = Enum.SurfaceType.Smooth | |
109 | o10.TopSurface = Enum.SurfaceType.Smooth | |
110 | o11 = Instance.new("SpecialMesh") | |
111 | o11.Parent = o10 | |
112 | o11.MeshId = "rbxassetid://9856898" | |
113 | o11.Scale = Vector3.new(1, 0.400000006, 1) | |
114 | o11.TextureId = "rbxassetid://2114473" | |
115 | o11.MeshType = Enum.MeshType.FileMesh | |
116 | o12 = Instance.new("Part") | |
117 | o12.Name = "13" | |
118 | o12.Parent = o1 | |
119 | o12.Position = Vector3.new(3, 0.200000018, 0) | |
120 | o12.Anchored = true | |
121 | o12.CFrame = CFrame.new(3, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
122 | o12.CanCollide = false | |
123 | o12.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
124 | o12.BottomSurface = Enum.SurfaceType.Smooth | |
125 | o12.TopSurface = Enum.SurfaceType.Smooth | |
126 | o13 = Instance.new("SpecialMesh") | |
127 | o13.Parent = o12 | |
128 | o13.MeshId = "rbxassetid://9856898" | |
129 | o13.Scale = Vector3.new(1, 0.400000006, 1) | |
130 | o13.TextureId = "rbxassetid://2114473" | |
131 | o13.MeshType = Enum.MeshType.FileMesh | |
132 | o14 = Instance.new("Part") | |
133 | o14.Name = "1" | |
134 | o14.Parent = o1 | |
135 | o14.Position = Vector3.new(9, 0.200000018, 0) | |
136 | o14.Anchored = true | |
137 | o14.CFrame = CFrame.new(9, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
138 | o14.CanCollide = false | |
139 | o14.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
140 | o14.BottomSurface = Enum.SurfaceType.Smooth | |
141 | o14.TopSurface = Enum.SurfaceType.Smooth | |
142 | o15 = Instance.new("SpecialMesh") | |
143 | o15.Parent = o14 | |
144 | o15.MeshId = "rbxassetid://9856898" | |
145 | o15.Scale = Vector3.new(1, 0.400000006, 1) | |
146 | o15.TextureId = "rbxassetid://2114473" | |
147 | o15.MeshType = Enum.MeshType.FileMesh | |
148 | o16 = Instance.new("Part") | |
149 | o16.Name = "19" | |
150 | o16.Parent = o1 | |
151 | o16.Position = Vector3.new(0, 0.200000018, 0) | |
152 | o16.Anchored = true | |
153 | o16.CFrame = CFrame.new(0, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
154 | o16.CanCollide = false | |
155 | o16.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
156 | o16.BottomSurface = Enum.SurfaceType.Smooth | |
157 | o16.TopSurface = Enum.SurfaceType.Smooth | |
158 | o17 = Instance.new("SpecialMesh") | |
159 | o17.Parent = o16 | |
160 | o17.MeshId = "rbxassetid://9856898" | |
161 | o17.Scale = Vector3.new(1, 0.400000006, 1) | |
162 | o17.TextureId = "rbxassetid://2114473" | |
163 | o17.MeshType = Enum.MeshType.FileMesh | |
164 | o18 = Instance.new("Part") | |
165 | o18.Name = "20" | |
166 | o18.Parent = o1 | |
167 | o18.Position = Vector3.new(-0.5, 0.200000018, 0) | |
168 | o18.Anchored = true | |
169 | o18.CFrame = CFrame.new(-0.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
170 | o18.CanCollide = false | |
171 | o18.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
172 | o18.BottomSurface = Enum.SurfaceType.Smooth | |
173 | o18.TopSurface = Enum.SurfaceType.Smooth | |
174 | o19 = Instance.new("SpecialMesh") | |
175 | o19.Parent = o18 | |
176 | o19.MeshId = "rbxassetid://9856898" | |
177 | o19.Scale = Vector3.new(1, 0.400000006, 1) | |
178 | o19.TextureId = "rbxassetid://2114473" | |
179 | o19.MeshType = Enum.MeshType.FileMesh | |
180 | o20 = Instance.new("Part") | |
181 | o20.Name = "21" | |
182 | o20.Parent = o1 | |
183 | o20.Position = Vector3.new(-1, 0.200000018, 0) | |
184 | o20.Anchored = true | |
185 | o20.CFrame = CFrame.new(-1, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
186 | o20.CanCollide = false | |
187 | o20.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
188 | o20.BottomSurface = Enum.SurfaceType.Smooth | |
189 | o20.TopSurface = Enum.SurfaceType.Smooth | |
190 | o21 = Instance.new("SpecialMesh") | |
191 | o21.Parent = o20 | |
192 | o21.MeshId = "rbxassetid://9856898" | |
193 | o21.Scale = Vector3.new(1, 0.400000006, 1) | |
194 | o21.TextureId = "rbxassetid://2114473" | |
195 | o21.MeshType = Enum.MeshType.FileMesh | |
196 | o22 = Instance.new("Part") | |
197 | o22.Name = "22" | |
198 | o22.Parent = o1 | |
199 | o22.Position = Vector3.new(-1.5, 0.200000018, 0) | |
200 | o22.Anchored = true | |
201 | o22.CFrame = CFrame.new(-1.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
202 | o22.CanCollide = false | |
203 | o22.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
204 | o22.BottomSurface = Enum.SurfaceType.Smooth | |
205 | o22.TopSurface = Enum.SurfaceType.Smooth | |
206 | o23 = Instance.new("SpecialMesh") | |
207 | o23.Parent = o22 | |
208 | o23.MeshId = "rbxassetid://9856898" | |
209 | o23.Scale = Vector3.new(1, 0.400000006, 1) | |
210 | o23.TextureId = "rbxassetid://2114473" | |
211 | o23.MeshType = Enum.MeshType.FileMesh | |
212 | o24 = Instance.new("Part") | |
213 | o24.Name = "23" | |
214 | o24.Parent = o1 | |
215 | o24.Position = Vector3.new(-2, 0.200000018, 0) | |
216 | o24.Anchored = true | |
217 | o24.CFrame = CFrame.new(-2, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
218 | o24.CanCollide = false | |
219 | o24.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
220 | o24.BottomSurface = Enum.SurfaceType.Smooth | |
221 | o24.TopSurface = Enum.SurfaceType.Smooth | |
222 | o25 = Instance.new("SpecialMesh") | |
223 | o25.Parent = o24 | |
224 | o25.MeshId = "rbxassetid://9856898" | |
225 | o25.Scale = Vector3.new(1, 0.400000006, 1) | |
226 | o25.TextureId = "rbxassetid://2114473" | |
227 | o25.MeshType = Enum.MeshType.FileMesh | |
228 | o26 = Instance.new("Part") | |
229 | o26.Name = "2" | |
230 | o26.Parent = o1 | |
231 | o26.Position = Vector3.new(8.5, 0.200000018, 0) | |
232 | o26.Anchored = true | |
233 | o26.CFrame = CFrame.new(8.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
234 | o26.CanCollide = false | |
235 | o26.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
236 | o26.BottomSurface = Enum.SurfaceType.Smooth | |
237 | o26.TopSurface = Enum.SurfaceType.Smooth | |
238 | o27 = Instance.new("SpecialMesh") | |
239 | o27.Parent = o26 | |
240 | o27.MeshId = "rbxassetid://9856898" | |
241 | o27.Scale = Vector3.new(1, 0.400000006, 1) | |
242 | o27.TextureId = "rbxassetid://2114473" | |
243 | o27.MeshType = Enum.MeshType.FileMesh | |
244 | o28 = Instance.new("Part") | |
245 | o28.Name = "29" | |
246 | o28.Parent = o1 | |
247 | o28.Position = Vector3.new(-5, 0.200000018, 0) | |
248 | o28.Anchored = true | |
249 | o28.CFrame = CFrame.new(-5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
250 | o28.CanCollide = false | |
251 | o28.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
252 | o28.BottomSurface = Enum.SurfaceType.Smooth | |
253 | o28.TopSurface = Enum.SurfaceType.Smooth | |
254 | o29 = Instance.new("SpecialMesh") | |
255 | o29.Parent = o28 | |
256 | o29.MeshId = "rbxassetid://9856898" | |
257 | o29.Scale = Vector3.new(1, 0.400000006, 1) | |
258 | o29.TextureId = "rbxassetid://2114473" | |
259 | o29.MeshType = Enum.MeshType.FileMesh | |
260 | o30 = Instance.new("Part") | |
261 | o30.Name = "30" | |
262 | o30.Parent = o1 | |
263 | o30.Position = Vector3.new(-5.5, 0.200000018, 0) | |
264 | o30.Anchored = true | |
265 | o30.CFrame = CFrame.new(-5.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
266 | o30.CanCollide = false | |
267 | o30.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
268 | o30.BottomSurface = Enum.SurfaceType.Smooth | |
269 | o30.TopSurface = Enum.SurfaceType.Smooth | |
270 | o31 = Instance.new("SpecialMesh") | |
271 | o31.Parent = o30 | |
272 | o31.MeshId = "rbxassetid://9856898" | |
273 | o31.Scale = Vector3.new(1, 0.400000006, 1) | |
274 | o31.TextureId = "rbxassetid://2114473" | |
275 | o31.MeshType = Enum.MeshType.FileMesh | |
276 | o32 = Instance.new("Part") | |
277 | o32.Name = "31" | |
278 | o32.Parent = o1 | |
279 | o32.Position = Vector3.new(-6, 0.200000018, 0) | |
280 | o32.Anchored = true | |
281 | o32.CFrame = CFrame.new(-6, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
282 | o32.CanCollide = false | |
283 | o32.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
284 | o32.BottomSurface = Enum.SurfaceType.Smooth | |
285 | o32.TopSurface = Enum.SurfaceType.Smooth | |
286 | o33 = Instance.new("SpecialMesh") | |
287 | o33.Parent = o32 | |
288 | o33.MeshId = "rbxassetid://9856898" | |
289 | o33.Scale = Vector3.new(1, 0.400000006, 1) | |
290 | o33.TextureId = "rbxassetid://2114473" | |
291 | o33.MeshType = Enum.MeshType.FileMesh | |
292 | o34 = Instance.new("Part") | |
293 | o34.Name = "32" | |
294 | o34.Parent = o1 | |
295 | o34.Position = Vector3.new(-6.5, 0.200000018, 0) | |
296 | o34.Anchored = true | |
297 | o34.CFrame = CFrame.new(-6.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
298 | o34.CanCollide = false | |
299 | o34.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
300 | o34.BottomSurface = Enum.SurfaceType.Smooth | |
301 | o34.TopSurface = Enum.SurfaceType.Smooth | |
302 | o35 = Instance.new("SpecialMesh") | |
303 | o35.Parent = o34 | |
304 | o35.MeshId = "rbxassetid://9856898" | |
305 | o35.Scale = Vector3.new(1, 0.400000006, 1) | |
306 | o35.TextureId = "rbxassetid://2114473" | |
307 | o35.MeshType = Enum.MeshType.FileMesh | |
308 | o36 = Instance.new("Part") | |
309 | o36.Name = "33" | |
310 | o36.Parent = o1 | |
311 | o36.Position = Vector3.new(-7, 0.200000018, 0) | |
312 | o36.Anchored = true | |
313 | o36.CFrame = CFrame.new(-7, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
314 | o36.CanCollide = false | |
315 | o36.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
316 | o36.BottomSurface = Enum.SurfaceType.Smooth | |
317 | o36.TopSurface = Enum.SurfaceType.Smooth | |
318 | o37 = Instance.new("SpecialMesh") | |
319 | o37.Parent = o36 | |
320 | o37.MeshId = "rbxassetid://9856898" | |
321 | o37.Scale = Vector3.new(1, 0.400000006, 1) | |
322 | o37.TextureId = "rbxassetid://2114473" | |
323 | o37.MeshType = Enum.MeshType.FileMesh | |
324 | o38 = Instance.new("Part") | |
325 | o38.Name = "3" | |
326 | o38.Parent = o1 | |
327 | o38.Position = Vector3.new(8, 0.200000018, 0) | |
328 | o38.Anchored = true | |
329 | o38.CFrame = CFrame.new(8, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
330 | o38.CanCollide = false | |
331 | o38.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
332 | o38.BottomSurface = Enum.SurfaceType.Smooth | |
333 | o38.TopSurface = Enum.SurfaceType.Smooth | |
334 | o39 = Instance.new("SpecialMesh") | |
335 | o39.Parent = o38 | |
336 | o39.MeshId = "rbxassetid://9856898" | |
337 | o39.Scale = Vector3.new(1, 0.400000006, 1) | |
338 | o39.TextureId = "rbxassetid://2114473" | |
339 | o39.MeshType = Enum.MeshType.FileMesh | |
340 | o40 = Instance.new("Part") | |
341 | o40.Name = "14" | |
342 | o40.Parent = o1 | |
343 | o40.Position = Vector3.new(2.5, 0.200000018, 0) | |
344 | o40.Anchored = true | |
345 | o40.CFrame = CFrame.new(2.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
346 | o40.CanCollide = false | |
347 | o40.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
348 | o40.BottomSurface = Enum.SurfaceType.Smooth | |
349 | o40.TopSurface = Enum.SurfaceType.Smooth | |
350 | o41 = Instance.new("SpecialMesh") | |
351 | o41.Parent = o40 | |
352 | o41.MeshId = "rbxassetid://9856898" | |
353 | o41.Scale = Vector3.new(1, 0.400000006, 1) | |
354 | o41.TextureId = "rbxassetid://2114473" | |
355 | o41.MeshType = Enum.MeshType.FileMesh | |
356 | o42 = Instance.new("Part") | |
357 | o42.Name = "24" | |
358 | o42.Parent = o1 | |
359 | o42.Position = Vector3.new(-2.5, 0.200000018, 0) | |
360 | o42.Anchored = true | |
361 | o42.CFrame = CFrame.new(-2.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
362 | o42.CanCollide = false | |
363 | o42.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
364 | o42.BottomSurface = Enum.SurfaceType.Smooth | |
365 | o42.TopSurface = Enum.SurfaceType.Smooth | |
366 | o43 = Instance.new("SpecialMesh") | |
367 | o43.Parent = o42 | |
368 | o43.MeshId = "rbxassetid://9856898" | |
369 | o43.Scale = Vector3.new(1, 0.400000006, 1) | |
370 | o43.TextureId = "rbxassetid://2114473" | |
371 | o43.MeshType = Enum.MeshType.FileMesh | |
372 | o44 = Instance.new("Part") | |
373 | o44.Name = "4" | |
374 | o44.Parent = o1 | |
375 | o44.Position = Vector3.new(7.5, 0.200000018, 0) | |
376 | o44.Anchored = true | |
377 | o44.CFrame = CFrame.new(7.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
378 | o44.CanCollide = false | |
379 | o44.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
380 | o44.BottomSurface = Enum.SurfaceType.Smooth | |
381 | o44.TopSurface = Enum.SurfaceType.Smooth | |
382 | o45 = Instance.new("SpecialMesh") | |
383 | o45.Parent = o44 | |
384 | o45.MeshId = "rbxassetid://9856898" | |
385 | o45.Scale = Vector3.new(1, 0.400000006, 1) | |
386 | o45.TextureId = "rbxassetid://2114473" | |
387 | o45.MeshType = Enum.MeshType.FileMesh | |
388 | o46 = Instance.new("Part") | |
389 | o46.Name = "34" | |
390 | o46.Parent = o1 | |
391 | o46.Position = Vector3.new(-7.5, 0.200000018, 0) | |
392 | o46.Anchored = true | |
393 | o46.CFrame = CFrame.new(-7.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
394 | o46.CanCollide = false | |
395 | o46.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
396 | o46.BottomSurface = Enum.SurfaceType.Smooth | |
397 | o46.TopSurface = Enum.SurfaceType.Smooth | |
398 | o47 = Instance.new("SpecialMesh") | |
399 | o47.Parent = o46 | |
400 | o47.MeshId = "rbxassetid://9856898" | |
401 | o47.Scale = Vector3.new(1, 0.400000006, 1) | |
402 | o47.TextureId = "rbxassetid://2114473" | |
403 | o47.MeshType = Enum.MeshType.FileMesh | |
404 | o48 = Instance.new("Part") | |
405 | o48.Name = "15" | |
406 | o48.Parent = o1 | |
407 | o48.Position = Vector3.new(2, 0.200000018, 0) | |
408 | o48.Anchored = true | |
409 | o48.CFrame = CFrame.new(2, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
410 | o48.CanCollide = false | |
411 | o48.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
412 | o48.BottomSurface = Enum.SurfaceType.Smooth | |
413 | o48.TopSurface = Enum.SurfaceType.Smooth | |
414 | o49 = Instance.new("SpecialMesh") | |
415 | o49.Parent = o48 | |
416 | o49.MeshId = "rbxassetid://9856898" | |
417 | o49.Scale = Vector3.new(1, 0.400000006, 1) | |
418 | o49.TextureId = "rbxassetid://2114473" | |
419 | o49.MeshType = Enum.MeshType.FileMesh | |
420 | o50 = Instance.new("Part") | |
421 | o50.Name = "25" | |
422 | o50.Parent = o1 | |
423 | o50.Position = Vector3.new(-3, 0.200000018, 0) | |
424 | o50.Anchored = true | |
425 | o50.CFrame = CFrame.new(-3, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
426 | o50.CanCollide = false | |
427 | o50.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
428 | o50.BottomSurface = Enum.SurfaceType.Smooth | |
429 | o50.TopSurface = Enum.SurfaceType.Smooth | |
430 | o51 = Instance.new("SpecialMesh") | |
431 | o51.Parent = o50 | |
432 | o51.MeshId = "rbxassetid://9856898" | |
433 | o51.Scale = Vector3.new(1, 0.400000006, 1) | |
434 | o51.TextureId = "rbxassetid://2114473" | |
435 | o51.MeshType = Enum.MeshType.FileMesh | |
436 | o52 = Instance.new("Part") | |
437 | o52.Name = "5" | |
438 | o52.Parent = o1 | |
439 | o52.Position = Vector3.new(7, 0.200000018, 0) | |
440 | o52.Anchored = true | |
441 | o52.CFrame = CFrame.new(7, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
442 | o52.CanCollide = false | |
443 | o52.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
444 | o52.BottomSurface = Enum.SurfaceType.Smooth | |
445 | o52.TopSurface = Enum.SurfaceType.Smooth | |
446 | o53 = Instance.new("SpecialMesh") | |
447 | o53.Parent = o52 | |
448 | o53.MeshId = "rbxassetid://9856898" | |
449 | o53.Scale = Vector3.new(1, 0.400000006, 1) | |
450 | o53.TextureId = "rbxassetid://2114473" | |
451 | o53.MeshType = Enum.MeshType.FileMesh | |
452 | o54 = Instance.new("Part") | |
453 | o54.Name = "35" | |
454 | o54.Parent = o1 | |
455 | o54.Position = Vector3.new(-8, 0.200000018, 0) | |
456 | o54.Anchored = true | |
457 | o54.CFrame = CFrame.new(-8, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
458 | o54.CanCollide = false | |
459 | o54.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
460 | o54.BottomSurface = Enum.SurfaceType.Smooth | |
461 | o54.TopSurface = Enum.SurfaceType.Smooth | |
462 | o55 = Instance.new("SpecialMesh") | |
463 | o55.Parent = o54 | |
464 | o55.MeshId = "rbxassetid://9856898" | |
465 | o55.Scale = Vector3.new(1, 0.400000006, 1) | |
466 | o55.TextureId = "rbxassetid://2114473" | |
467 | o55.MeshType = Enum.MeshType.FileMesh | |
468 | o56 = Instance.new("Part") | |
469 | o56.Name = "16" | |
470 | o56.Parent = o1 | |
471 | o56.Position = Vector3.new(1.5, 0.200000018, 0) | |
472 | o56.Anchored = true | |
473 | o56.CFrame = CFrame.new(1.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
474 | o56.CanCollide = false | |
475 | o56.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
476 | o56.BottomSurface = Enum.SurfaceType.Smooth | |
477 | o56.TopSurface = Enum.SurfaceType.Smooth | |
478 | o57 = Instance.new("SpecialMesh") | |
479 | o57.Parent = o56 | |
480 | o57.MeshId = "rbxassetid://9856898" | |
481 | o57.Scale = Vector3.new(1, 0.400000006, 1) | |
482 | o57.TextureId = "rbxassetid://2114473" | |
483 | o57.MeshType = Enum.MeshType.FileMesh | |
484 | o58 = Instance.new("Part") | |
485 | o58.Name = "6" | |
486 | o58.Parent = o1 | |
487 | o58.Position = Vector3.new(6.5, 0.200000018, 0) | |
488 | o58.Anchored = true | |
489 | o58.CFrame = CFrame.new(6.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
490 | o58.CanCollide = false | |
491 | o58.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
492 | o58.BottomSurface = Enum.SurfaceType.Smooth | |
493 | o58.TopSurface = Enum.SurfaceType.Smooth | |
494 | o59 = Instance.new("SpecialMesh") | |
495 | o59.Parent = o58 | |
496 | o59.MeshId = "rbxassetid://9856898" | |
497 | o59.Scale = Vector3.new(1, 0.400000006, 1) | |
498 | o59.TextureId = "rbxassetid://2114473" | |
499 | o59.MeshType = Enum.MeshType.FileMesh | |
500 | o60 = Instance.new("Part") | |
501 | o60.Name = "26" | |
502 | o60.Parent = o1 | |
503 | o60.Position = Vector3.new(-3.5, 0.200000018, 0) | |
504 | o60.Anchored = true | |
505 | o60.CFrame = CFrame.new(-3.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
506 | o60.CanCollide = false | |
507 | o60.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
508 | o60.BottomSurface = Enum.SurfaceType.Smooth | |
509 | o60.TopSurface = Enum.SurfaceType.Smooth | |
510 | o61 = Instance.new("SpecialMesh") | |
511 | o61.Parent = o60 | |
512 | o61.MeshId = "rbxassetid://9856898" | |
513 | o61.Scale = Vector3.new(1, 0.400000006, 1) | |
514 | o61.TextureId = "rbxassetid://2114473" | |
515 | o61.MeshType = Enum.MeshType.FileMesh | |
516 | o62 = Instance.new("Part") | |
517 | o62.Name = "36" | |
518 | o62.Parent = o1 | |
519 | o62.Position = Vector3.new(-8.5, 0.200000018, 0) | |
520 | o62.Anchored = true | |
521 | o62.CFrame = CFrame.new(-8.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
522 | o62.CanCollide = false | |
523 | o62.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
524 | o62.BottomSurface = Enum.SurfaceType.Smooth | |
525 | o62.TopSurface = Enum.SurfaceType.Smooth | |
526 | o63 = Instance.new("SpecialMesh") | |
527 | o63.Parent = o62 | |
528 | o63.MeshId = "rbxassetid://9856898" | |
529 | o63.Scale = Vector3.new(1, 0.400000006, 1) | |
530 | o63.TextureId = "rbxassetid://2114473" | |
531 | o63.MeshType = Enum.MeshType.FileMesh | |
532 | o64 = Instance.new("Part") | |
533 | o64.Name = "17" | |
534 | o64.Parent = o1 | |
535 | o64.Position = Vector3.new(1, 0.200000018, 0) | |
536 | o64.Anchored = true | |
537 | o64.CFrame = CFrame.new(1, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
538 | o64.CanCollide = false | |
539 | o64.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
540 | o64.BottomSurface = Enum.SurfaceType.Smooth | |
541 | o64.TopSurface = Enum.SurfaceType.Smooth | |
542 | o65 = Instance.new("SpecialMesh") | |
543 | o65.Parent = o64 | |
544 | o65.MeshId = "rbxassetid://9856898" | |
545 | o65.Scale = Vector3.new(1, 0.400000006, 1) | |
546 | o65.TextureId = "rbxassetid://2114473" | |
547 | o65.MeshType = Enum.MeshType.FileMesh | |
548 | o66 = Instance.new("Part") | |
549 | o66.Name = "27" | |
550 | o66.Parent = o1 | |
551 | o66.Position = Vector3.new(-4, 0.200000018, 0) | |
552 | o66.Anchored = true | |
553 | o66.CFrame = CFrame.new(-4, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
554 | o66.CanCollide = false | |
555 | o66.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
556 | o66.BottomSurface = Enum.SurfaceType.Smooth | |
557 | o66.TopSurface = Enum.SurfaceType.Smooth | |
558 | o67 = Instance.new("SpecialMesh") | |
559 | o67.Parent = o66 | |
560 | o67.MeshId = "rbxassetid://9856898" | |
561 | o67.Scale = Vector3.new(1, 0.400000006, 1) | |
562 | o67.TextureId = "rbxassetid://2114473" | |
563 | o67.MeshType = Enum.MeshType.FileMesh | |
564 | o68 = Instance.new("Part") | |
565 | o68.Name = "7" | |
566 | o68.Parent = o1 | |
567 | o68.Position = Vector3.new(6, 0.200000018, 0) | |
568 | o68.Anchored = true | |
569 | o68.CFrame = CFrame.new(6, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
570 | o68.CanCollide = false | |
571 | o68.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
572 | o68.BottomSurface = Enum.SurfaceType.Smooth | |
573 | o68.TopSurface = Enum.SurfaceType.Smooth | |
574 | o69 = Instance.new("SpecialMesh") | |
575 | o69.Parent = o68 | |
576 | o69.MeshId = "rbxassetid://9856898" | |
577 | o69.Scale = Vector3.new(1, 0.400000006, 1) | |
578 | o69.TextureId = "rbxassetid://2114473" | |
579 | o69.MeshType = Enum.MeshType.FileMesh | |
580 | o70 = Instance.new("Part") | |
581 | o70.Name = "37" | |
582 | o70.Parent = o1 | |
583 | o70.Position = Vector3.new(-9, 0.200000018, 0) | |
584 | o70.Anchored = true | |
585 | o70.CFrame = CFrame.new(-9, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
586 | o70.CanCollide = false | |
587 | o70.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
588 | o70.BottomSurface = Enum.SurfaceType.Smooth | |
589 | o70.TopSurface = Enum.SurfaceType.Smooth | |
590 | o71 = Instance.new("SpecialMesh") | |
591 | o71.Parent = o70 | |
592 | o71.MeshId = "rbxassetid://9856898" | |
593 | o71.Scale = Vector3.new(1, 0.400000006, 1) | |
594 | o71.TextureId = "rbxassetid://2114473" | |
595 | o71.MeshType = Enum.MeshType.FileMesh | |
596 | o72 = Instance.new("Part") | |
597 | o72.Name = "8" | |
598 | o72.Parent = o1 | |
599 | o72.Position = Vector3.new(5.5, 0.200000018, 0) | |
600 | o72.Anchored = true | |
601 | o72.CFrame = CFrame.new(5.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
602 | o72.CanCollide = false | |
603 | o72.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
604 | o72.BottomSurface = Enum.SurfaceType.Smooth | |
605 | o72.TopSurface = Enum.SurfaceType.Smooth | |
606 | o73 = Instance.new("SpecialMesh") | |
607 | o73.Parent = o72 | |
608 | o73.MeshId = "rbxassetid://9856898" | |
609 | o73.Scale = Vector3.new(1, 0.400000006, 1) | |
610 | o73.TextureId = "rbxassetid://2114473" | |
611 | o73.MeshType = Enum.MeshType.FileMesh | |
612 | o74 = Instance.new("Part") | |
613 | o74.Name = "18" | |
614 | o74.Parent = o1 | |
615 | o74.Position = Vector3.new(0.5, 0.200000018, 0) | |
616 | o74.Anchored = true | |
617 | o74.CFrame = CFrame.new(0.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
618 | o74.CanCollide = false | |
619 | o74.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
620 | o74.BottomSurface = Enum.SurfaceType.Smooth | |
621 | o74.TopSurface = Enum.SurfaceType.Smooth | |
622 | o75 = Instance.new("SpecialMesh") | |
623 | o75.Parent = o74 | |
624 | o75.MeshId = "rbxassetid://9856898" | |
625 | o75.Scale = Vector3.new(1, 0.400000006, 1) | |
626 | o75.TextureId = "rbxassetid://2114473" | |
627 | o75.MeshType = Enum.MeshType.FileMesh | |
628 | o76 = Instance.new("Part") | |
629 | o76.Name = "28" | |
630 | o76.Parent = o1 | |
631 | o76.Position = Vector3.new(-4.5, 0.200000018, 0) | |
632 | o76.Anchored = true | |
633 | o76.CFrame = CFrame.new(-4.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
634 | o76.CanCollide = false | |
635 | o76.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
636 | o76.BottomSurface = Enum.SurfaceType.Smooth | |
637 | o76.TopSurface = Enum.SurfaceType.Smooth | |
638 | o77 = Instance.new("SpecialMesh") | |
639 | o77.Parent = o76 | |
640 | o77.MeshId = "rbxassetid://9856898" | |
641 | o77.Scale = Vector3.new(1, 0.400000006, 1) | |
642 | o77.TextureId = "rbxassetid://2114473" | |
643 | o77.MeshType = Enum.MeshType.FileMesh | |
644 | o78 = Instance.new("Part") | |
645 | o78.Name = "38" | |
646 | o78.Parent = o1 | |
647 | o78.Position = Vector3.new(-9.5, 0.200000018, 0) | |
648 | o78.Anchored = true | |
649 | o78.CFrame = CFrame.new(-9.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
650 | o78.CanCollide = false | |
651 | o78.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
652 | o78.BottomSurface = Enum.SurfaceType.Smooth | |
653 | o78.TopSurface = Enum.SurfaceType.Smooth | |
654 | o79 = Instance.new("SpecialMesh") | |
655 | o79.Parent = o78 | |
656 | o79.MeshId = "rbxassetid://9856898" | |
657 | o79.Scale = Vector3.new(1, 0.400000006, 1) | |
658 | o79.TextureId = "rbxassetid://2114473" | |
659 | o79.MeshType = Enum.MeshType.FileMesh | |
660 | o80 = Instance.new("SpecialMesh") | |
661 | o80.Parent = o1 | |
662 | o80.MeshId = "rbxassetid://9856898" | |
663 | o80.Scale = Vector3.new(40, 0.400000006, 2) | |
664 | o80.TextureId = "rbxassetid://2114473" | |
665 | o80.VertexColor = Vector3.new(0, 0, 0) | |
666 | o80.MeshType = Enum.MeshType.FileMesh | |
667 | mas.Parent = game.Players.LocalPlayer.Character.Torso | |
668 | mas:MakeJoints() | |
669 | local mas1 = mas:GetChildren() | |
670 | for i=1,#mas1 do | |
671 | mas1[i].Parent = game.Players.LocalPlayer.Character.Torso | |
672 | ypcall(function() mas1[i]:MakeJoints() end) | |
673 | end | |
674 | mas:Destroy() | |
675 | for i=1,#cors do | |
676 | coroutine.resume(cors[i]) | |
677 | end | |
678 | ||
679 | local Height=9 -- Max height of the bars | |
680 | local plr=game.Players.LocalPlayer | |
681 | ||
682 | o81 = Instance.new("Sound") | |
683 | o81.Parent = plr.Character.Torso | |
684 | o81.SoundId = "rbxassetid://" | |
685 | o81.Volume = 1 | |
686 | o81.Looped = false | |
687 | ||
688 | o82 = Instance.new("PointLight") | |
689 | o82.Parent = plr.Character.Torso | |
690 | o82.Range = 24 | |
691 | ||
692 | --Startup Interface-- | |
693 | local head = game.Players.LocalPlayer.Character.Head | |
694 | local bg = Instance.new("BillboardGui",head) | |
695 | bg.Name = "Startup" | |
696 | bg.AlwaysOnTop = true | |
697 | bg.StudsOffset = Vector3.new(0,4,0) | |
698 | local bgframe = Instance.new("Frame",bg) | |
699 | bgframe.BackgroundTransparency = 1 | |
700 | bgframe.Size = UDim2.new(0,200,0,25) | |
701 | bgframe.Position = UDim2.new(0.5,-100,0.5,-12) | |
702 | local bgtxt = Instance.new("TextLabel",bgframe) | |
703 | bgtxt.Size = UDim2.new(0,200,0,25) | |
704 | bgtxt.FontSize = "Size24" | |
705 | bgtxt.Position = UDim2.new(0.5,-100,0.5,-12) | |
706 | bgtxt.BackgroundTransparency = 1 | |
707 | bgtxt.TextColor3 = BrickColor.new("Gold").Color | |
708 | bgtxt.TextStrokeColor3=Color3.new(0,0,0) | |
709 | bgtxt.TextStrokeTransparency = 0 | |
710 | bgtxt.Font = "SciFi" | |
711 | bgtxt.TextScaled = false | |
712 | spawn(function() | |
713 | local txt1 = "Music Spectrum by iMannyz" | |
714 | local txt2 = "Credits: DevGamerzz - Interface Help\n iAmAura - Clutch Interface Fix <3\n(DID NOT GIVE ttyyuu12345 credit for the m2s plugin)" | |
715 | for i=1,#txt1 do | |
716 | bgtxt.Text = txt1:sub(1,i) | |
717 | wait() | |
718 | end | |
719 | wait() | |
720 | for i=#txt1,1,-1 do | |
721 | bgtxt.Text = txt1:sub(1,i) | |
722 | wait() | |
723 | end | |
724 | wait() | |
725 | for i=1,#txt2 do | |
726 | bgtxt.Text = txt2:sub(1,i) | |
727 | wait() | |
728 | end | |
729 | wait() | |
730 | for i=#txt2,1,-1 do | |
731 | bgtxt.Text = txt2:sub(1,i) | |
732 | wait() | |
733 | end | |
734 | wait() | |
735 | for i=0,1,0.1 do | |
736 | bgtxt.TextTransparency = i | |
737 | bgtxt.TextStrokeTransparency = i | |
738 | wait() | |
739 | end | |
740 | bg:Destroy() | |
741 | end) | |
742 | --Startup Interface-- | |
743 | ||
744 | local Soundbar=game.Players.LocalPlayer.Character.Torso.Soundbar | |
745 | local Sound=plr.Character.Torso.Sound | |
746 | local Bars={} for i,v in next,Soundbar:children() do | |
747 | if v:IsA'BasePart' then | |
748 | table.insert(Bars,v) | |
749 | end | |
750 | end Height=Height*2 | |
751 | local nBars,Tweens=#Bars-1,{} | |
752 | ||
753 | -- EASING FUNCTIONS -- | |
754 | local function quadIn(t,b,c,d) t=t/d; return c*t*t+b; end; | |
755 | local function quadOut(t,b,c,d) t=t/d; return -c*t*(t-2)+b; end; | |
756 | local function Quad(obj,val,ease,d) | |
757 | local t,f,con,nt,st,sd=tick() | |
758 | Tweens[obj]=t -- Set identifier | |
759 | st=obj.Scale.Y -- Start Value | |
760 | sd=val-st -- Change in Value | |
761 | f=ease=='In' and quadIn or quadOut -- Choose between Out/In | |
762 | con=game:GetService'RunService'.RenderStepped:connect(function() nt=tick()-t | |
763 | if Tweens[obj]~=t then -- Check for override | |
764 | con:disconnect() | |
765 | return | |
766 | end | |
767 | local nv=math.max(.2,f(math.min(d,nt),st,sd,d)) -- New Value | |
768 | obj.Scale=Vector3.new(.9,nv,.9) | |
769 | obj.Offset=Vector3.new(0,nv/4,0) | |
770 | obj.VertexColor=Vector3.new(cycle(tick())) | |
771 | o82.Color = Color3.new(cycle(tick())) | |
772 | if nt>d then -- Easing done? | |
773 | con:disconnect() | |
774 | if ease~='In' then | |
775 | Quad(obj,.2,'In',.3) -- Drop the bar | |
776 | end | |
777 | end | |
778 | end) | |
779 | end | |
780 | ||
781 | -- BAR MANIPULATION -- | |
782 | local function CheckSet(N,S,D) -- Number, Scale, Direction | |
783 | local nS=Soundbar[tostring(N)].Mesh.Scale.Y | |
784 | if S>nS then | |
785 | Set(N,nS+(S-nS)/3,D) | |
786 | end | |
787 | end | |
788 | ||
789 | function Set(N,S,D) -- Number, Scale, Direction | |
790 | Quad(Soundbar[tostring(N)].Mesh,S,'Out',.1) -- Grabs the bar and tweens | |
791 | if N>0 and D~=1 then -- Checks left for smaller bars to manipulate | |
792 | CheckSet(N-1,S,-1) | |
793 | end | |
794 | if N<nBars and D~=-1 then -- Checks right... | |
795 | CheckSet(N+1,S,1) | |
796 | end | |
797 | end | |
798 | ||
799 | -- RENDER LOOP -- | |
800 | local MPL,PL,curr=0 curr=Sound.SoundId | |
801 | spawn(function() | |
802 | game:service'RunService'.RenderStepped:connect(function() | |
803 | PL=Sound.PlaybackLoudness | |
804 | if Sound.IsPlaying and PL==PL then -- Sound is playing & PlaybackLoudness is not undefined | |
805 | if curr~=Sound.SoundId then MPL=0 -- Reset the relative Max PlaybackLoudness on song change | |
806 | curr=Sound.SoundId | |
807 | end | |
808 | MPL=math.max(PL,MPL) PL=PL/MPL -- Normalize PL based on relative Max PlaybackLoudness | |
809 | if PL==PL then | |
810 | Set(math.floor(PL*nBars),PL*Height*1) -- Modify bar relative to PlaybackLoudness | |
811 | end | |
812 | end | |
813 | end) | |
814 | end) | |
815 | ||
816 | local play = false | |
817 | --Function Chat Start-- | |
818 | function Chat(Message) | |
819 | pcall(function() | |
820 | for i,v in pairs(game.Players.LocalPlayer.Character.Head:GetChildren()) do | |
821 | if v.ClassName == "BillboardGui" and v.Name ~= "Startup" then | |
822 | v.Frame.TextLabel.TextTransparency = v.Frame.TextLabel.TextTransparency - 0.5 | |
823 | wait() | |
824 | v:Remove() | |
825 | end | |
826 | end | |
827 | end) | |
828 | local head = game.Players.LocalPlayer.Character.Head | |
829 | local bg = Instance.new("BillboardGui",head) | |
830 | bg.Name = "MusicNotify" | |
831 | bg.AlwaysOnTop = true | |
832 | bg.StudsOffset = Vector3.new(0,4,0) | |
833 | local bgframe = Instance.new("Frame",bg) | |
834 | bgframe.BackgroundTransparency = 1 | |
835 | bgframe.Size = UDim2.new(0,200,0,25) | |
836 | bgframe.Position = UDim2.new(0.5,-100,0.5,-12) | |
837 | local bgtxt = Instance.new("TextLabel",bgframe) | |
838 | bgtxt.Size = UDim2.new(0,200,0,25) | |
839 | bgtxt.FontSize = "Size24" | |
840 | bgtxt.Position = UDim2.new(0.5,-100,0.5,-12) | |
841 | bgtxt.BackgroundTransparency = 1 | |
842 | bgtxt.TextColor3 = BrickColor.new("Gold").Color | |
843 | bgtxt.TextStrokeColor3=Color3.new(0,0,0) | |
844 | bgtxt.TextStrokeTransparency = 0 | |
845 | bgtxt.Font = "SciFi" | |
846 | bgtxt.TextScaled = false | |
847 | spawn(function() | |
848 | local txt1 = Message | |
849 | for i=1,#txt1 do | |
850 | bgtxt.Text = txt1:sub(1,i) | |
851 | wait() | |
852 | end | |
853 | wait() | |
854 | for i=#txt1,1,-1 do | |
855 | bgtxt.Text = txt1:sub(1,i) | |
856 | wait() | |
857 | end | |
858 | wait() | |
859 | for i=0,1,0.1 do | |
860 | bgtxt.TextTransparency = i | |
861 | wait() | |
862 | end | |
863 | bg:Destroy() | |
864 | end) | |
865 | end | |
866 | ||
867 | local play = true | |
868 | local Pause = false | |
869 | --function chat end-- | |
870 | local Songs = { | |
871 | {SongName = 'Avril Lavigne - Girlfriend', SongDesc = 'Nil', Creator = 'Ayeekillerpro', ID = 333259850}; | |
872 | {SongName = 'Chris Brown & Tyga - Ayo [Jason Nevins Remix]', SongDesc = 'Nil', Creator = 'Nil', ID = 262514615}; | |
873 | {SongName = 'Charli XCX - Boom clap', SongDesc = 'Nil', Creator = 'brightnikki', ID = 160594536}; | |
874 | {SongName = 'Calvin Harris & Alesso - Under control ft. Hurts', SongDesc = 'Nil', Creator = 'Nil', ID = 152190091}; | |
875 | {SongName = 'Soulja Boy Tell\'em - Crank That', SongDesc = 'Nil', Creator = 'jdude567', ID = 174655936}; | |
876 | {SongName = 'Love Me Harder- Ariana Grande', SongDesc = 'Nil', Creator = 'Violisse', ID = 174577922}; | |
877 | } | |
878 | ||
879 | function PlayList() | |
880 | local sng = Songs[math.random(1,#Songs)] | |
881 | Sound.SoundId = 'rbxassetid://'..sng.ID | |
882 | Sound:Play() | |
883 | Chat("Now Playing: \n"..game:GetService("MarketplaceService"):GetProductInfo(sng.ID).Name) | |
884 | repeat wait() until Sound.IsPaused == true | |
885 | if play == false then return end | |
886 | if Pause == true then return end | |
887 | PlayList() | |
888 | end | |
889 | local Loop = false | |
890 | local Locked | |
891 | p = game:GetService('Players').LocalPlayer | |
892 | p.Chatted:connect(function(msg) | |
893 | if msg:sub(1,5):lower()=='play/' then | |
894 | play = true | |
895 | local val = Instance.new("NumberValue", p.Character) | |
896 | val.Name = "SongID" | |
897 | val.Value = tonumber(msg:sub(6)) | |
898 | local id = val.Value | |
899 | Sound:Stop() | |
900 | Sound.SoundId='rbxassetid://'..id | |
901 | Sound:Play() | |
902 | Chat("Now Playing: \n"..game:GetService("MarketplaceService"):GetProductInfo(val.Value).Name) | |
903 | wait(1) | |
904 | val:Remove() | |
905 | elseif msg:sub(1,4):lower()=='vol/' then | |
906 | local val = Instance.new("NumberValue", p.Character) | |
907 | val.Name = "VolID" | |
908 | val.Value = tonumber(msg:sub(5)) | |
909 | if val.Value > 10 then val.Value = 10 | |
910 | end | |
911 | local id = val.Value | |
912 | Sound.Volume = id | |
913 | Chat("Set Volume To: "..id.."") | |
914 | val:Remove() | |
915 | ||
916 | elseif msg:sub(1,5):lower()=='dist/' then | |
917 | local val = Instance.new("NumberValue", p.Character) | |
918 | val.Name = "Distance" | |
919 | val.Value = tonumber(msg:sub(6)) | |
920 | if val.Value > 10000 then val.Value = 10000 | |
921 | end | |
922 | local id = val.Value | |
923 | Sound.MaxDistance = id | |
924 | Chat("Set Max Distance To: "..id.."") | |
925 | val:Remove() | |
926 | ||
927 | elseif msg:sub(1,6) == 'start/' then | |
928 | play = true | |
929 | PlayList() | |
930 | ||
931 | elseif msg:sub(1,5) == 'loop/' and Loop == false then | |
932 | Loop = true | |
933 | Chat("Music Loop Enabled") | |
934 | game.Players.LocalPlayer.Character.Torso.Sound.Looped = true | |
935 | ||
936 | elseif msg:sub(1,5) == 'loop/' and Loop == true then | |
937 | Loop = false | |
938 | Chat("Music Loop Disabled") | |
939 | game.Players.LocalPlayer.Character.Torso.Sound.Looped = false | |
940 | ||
941 | elseif msg:sub(1,6) == 'pause/' and Pause == false then | |
942 | Pause = true | |
943 | Chat("Music Paused") | |
944 | game.Players.LocalPlayer.Character.Torso.Sound:Pause() | |
945 | ||
946 | elseif msg:sub(1,6) == 'pause/' and Pause == true then | |
947 | Pause = false | |
948 | Chat("Music Unpaused") | |
949 | game.Players.LocalPlayer.Character.Torso.Sound:Resume() | |
950 | ||
951 | elseif msg:sub(1,5) == 'skip/' then | |
952 | play = false | |
953 | Sound:Stop() | |
954 | play = true | |
955 | PlayList() | |
956 | ||
957 | elseif msg:sub(1,5) == 'stop/' then | |
958 | Chat("Stopped Music Spectrum") | |
959 | play = false | |
960 | Sound:Stop() | |
961 | end | |
962 | ||
963 | end) | |
964 | ||
965 | local CRot = 1 | |
966 | local rad,sin,ceil=math.rad,math.sin,math.ceil | |
967 | ||
968 | Sound:Play() | |
969 | ||
970 | local Parts = {} | |
971 | for Index,v in pairs(o1:children'') do | |
972 | if v:IsA'Part' then | |
973 | table.insert(Parts,v) | |
974 | end | |
975 | end | |
976 | ||
977 | spawn(function() | |
978 | game:service'RunService'.RenderStepped:connect(function() | |
979 | for Index,v in pairs(o1:children'') do | |
980 | if v:IsA'Part' then | |
981 | v.CFrame = CFrame.new(plr.Character.Torso.Position) | |
982 | *CFrame.Angles(0,rad((360/#Parts*Index+(tick())*60/(#Parts ~= 0 and #Parts or 1))%360),0) | |
983 | *CFrame.new(0, -3, (5+#Parts)*.35+v.Size.X) | |
984 | *CFrame.Angles(0,90+CRot,0) | |
985 | end | |
986 | end | |
987 | ||
988 | end) | |
989 | end) |