SHOW:
|
|
- or go back to the newest paste.
1 | print([[ | |
2 | ___________________________________ | |
3 | ||
4 | Kyutatsuki13's music player script | |
5 | Build 0161 | |
6 | It's a music player of quality! | |
7 | ||
8 | ___________________________________ | |
9 | ]]) | |
10 | ||
11 | player = game:GetService("Players").LocalPlayer | |
12 | char = player.Character | |
13 | hed = char:WaitForChild("Head") | |
14 | root = char:WaitForChild("HumanoidRootPart") | |
15 | rs = game:GetService("RunService").RenderStepped | |
16 | mouse = player:GetMouse() | |
17 | vismode = "rainbow" | |
18 | firstrun = true | |
19 | asdid = "" | |
20 | asdtext = "" | |
21 | asdtimeposition = 0 | |
22 | asdvolume = 0 | |
23 | asdpitch = 0 | |
24 | asdmax = 0 | |
25 | mode = "local" | |
26 | asdhi=0 | |
27 | asdmi=0 | |
28 | asdlo=0 | |
29 | asddist=0 | |
30 | asdopen=false | |
31 | asdcolor = false | |
32 | synctarget = nil | |
33 | foundsound = false | |
34 | ||
35 | mathrandom={x=0;y=0;z=0;} | |
36 | ||
37 | local rdmx = math.random(0,1) | |
38 | local rdmy = math.random(0,1) | |
39 | local rdmz = math.random(0,1) | |
40 | if rdmx == 0 then mathrandom.x = math.random(40,60) else mathrandom.x = -math.random(40,60) end | |
41 | if rdmy == 0 then mathrandom.y = math.random(40,60) else mathrandom.y = -math.random(40,60) end | |
42 | if rdmz == 0 then mathrandom.z = math.random(40,60) else mathrandom.z = -math.random(40,60) end | |
43 | ||
44 | local origcolor = BrickColor.new("Really red") | |
45 | bc = BrickColor.new | |
46 | br = BrickColor.random | |
47 | it = Instance.new | |
48 | cf = CFrame.new | |
49 | euler = CFrame.fromEulerAnglesXYZ | |
50 | angles = CFrame.Angles | |
51 | matr = math.random | |
52 | it = Instance.new | |
53 | vt = Vector3.new | |
54 | cf = CFrame.new | |
55 | bc = BrickColor.new | |
56 | ||
57 | ||
58 | local leftkey = false | |
59 | local rightkey = false | |
60 | local typerot = 1 | |
61 | local rotspeed = 1 | |
62 | local negrotspeed = -1 | |
63 | function swait(num) | |
64 | if num==0 or num==nil then | |
65 | game:service'RunService'.Stepped:wait(0) | |
66 | else | |
67 | for i=0,num do | |
68 | game:service'RunService'.Stepped:wait(0) | |
69 | end | |
70 | end | |
71 | end | |
72 | ||
73 | local Create = LoadLibrary("RbxUtility").Create | |
74 | ||
75 | CFuncs = { | |
76 | ["Part"] = { | |
77 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
78 | local Part = Create("Part"){ | |
79 | Parent = Parent, | |
80 | Reflectance = Reflectance, | |
81 | Transparency = Transparency, | |
82 | CanCollide = false, | |
83 | Locked = true, | |
84 | BrickColor = BrickColor.new(tostring(BColor)), | |
85 | Name = Name, | |
86 | Size = Size, | |
87 | Material = Material, | |
88 | } | |
89 | RemoveOutlines(Part) | |
90 | return Part | |
91 | end; | |
92 | }; | |
93 | ||
94 | ["Mesh"] = { | |
95 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
96 | local Msh = Create(Mesh){ | |
97 | Parent = Part, | |
98 | Offset = OffSet, | |
99 | Scale = Scale, | |
100 | } | |
101 | if Mesh == "SpecialMesh" then | |
102 | Msh.MeshType = MeshType | |
103 | Msh.MeshId = MeshId | |
104 | end | |
105 | return Msh | |
106 | end; | |
107 | }; | |
108 | ||
109 | ["Mesh"] = { | |
110 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
111 | local Msh = Create(Mesh){ | |
112 | Parent = Part, | |
113 | Offset = OffSet, | |
114 | Scale = Scale, | |
115 | } | |
116 | if Mesh == "SpecialMesh" then | |
117 | Msh.MeshType = MeshType | |
118 | Msh.MeshId = MeshId | |
119 | end | |
120 | return Msh | |
121 | end; | |
122 | }; | |
123 | ||
124 | ["Weld"] = { | |
125 | Create = function(Parent, Part0, Part1, C0, C1) | |
126 | local Weld = Create("Weld"){ | |
127 | Parent = Parent, | |
128 | Part0 = Part0, | |
129 | Part1 = Part1, | |
130 | C0 = C0, | |
131 | C1 = C1, | |
132 | } | |
133 | return Weld | |
134 | end; | |
135 | }; | |
136 | ||
137 | ["Sound"] = { | |
138 | Create = function(id, par, vol, pit) | |
139 | coroutine.resume(coroutine.create(function() | |
140 | local S = Create("Sound"){ | |
141 | Volume = vol, | |
142 | Pitch = pit or 1, | |
143 | SoundId = id, | |
144 | Parent = par or workspace, | |
145 | } | |
146 | wait() | |
147 | S:play() | |
148 | game:GetService("Debris"):AddItem(S, 10) | |
149 | end)) | |
150 | end; | |
151 | }; | |
152 | ||
153 | ["ParticleEmitter"] = { | |
154 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
155 | local fp = Create("ParticleEmitter"){ | |
156 | Parent = Parent, | |
157 | Color = ColorSequence.new(Color1, Color2), | |
158 | LightEmission = LightEmission, | |
159 | Size = Size, | |
160 | Texture = Texture, | |
161 | Transparency = Transparency, | |
162 | ZOffset = ZOffset, | |
163 | Acceleration = Accel, | |
164 | Drag = Drag, | |
165 | LockedToPart = LockedToPart, | |
166 | VelocityInheritance = VelocityInheritance, | |
167 | EmissionDirection = EmissionDirection, | |
168 | Enabled = Enabled, | |
169 | Lifetime = LifeTime, | |
170 | Rate = Rate, | |
171 | Rotation = Rotation, | |
172 | RotSpeed = RotSpeed, | |
173 | Speed = Speed, | |
174 | VelocitySpread = VelocitySpread, | |
175 | } | |
176 | return fp | |
177 | end; | |
178 | }; | |
179 | ||
180 | CreateTemplate = { | |
181 | ||
182 | }; | |
183 | } | |
184 | ||
185 | ||
186 | ||
187 | New = function(Object, Parent, Name, Data) | |
188 | local Object = Instance.new(Object) | |
189 | for Index, Value in pairs(Data or {}) do | |
190 | Object[Index] = Value | |
191 | end | |
192 | Object.Parent = Parent | |
193 | Object.Name = Name | |
194 | return Object | |
195 | end | |
196 | ||
197 | function CreateSound(asd) | |
198 | if synctarget == nil then | |
199 | if mode == "local" then | |
200 | soundparent=char:WaitForChild("Torso") | |
201 | else | |
202 | soundparent=char | |
203 | end | |
204 | sound = Instance.new("Sound",soundparent) | |
205 | sound.Name = "KyuSound" | |
206 | sound.Looped = true | |
207 | effect = Instance.new("EqualizerSoundEffect",sound) | |
208 | coroutine.resume(coroutine.create(function() | |
209 | distort = Instance.new("DistortionSoundEffect",sound) | |
210 | end)) | |
211 | if asd ~= nil then | |
212 | sound.SoundId = asdid | |
213 | sound.TimePosition = asdtimeposition | |
214 | end | |
215 | sound:Play() | |
216 | end | |
217 | end | |
218 | ||
219 | function fetchName(id) | |
220 | cast = false | |
221 | coroutine.resume(coroutine.create(function() product = game:GetService("MarketplaceService"):GetProductInfo(id, Enum.InfoType.Asset) cast = true end)) | |
222 | if cast == true then | |
223 | repeat rs:wait() | |
224 | coroutine.resume(coroutine.create(function() product = game:GetService("MarketplaceService"):GetProductInfo(id, Enum.InfoType.Asset) end)) | |
225 | asdfname = product.Name | |
226 | until asdfname ~= nil | |
227 | else | |
228 | asdfname = "" | |
229 | end | |
230 | return asdfname | |
231 | end | |
232 | ||
233 | function scan(instance) | |
234 | if instance.ClassName == "Sound" then | |
235 | if instance.TimeLength > 20 and instance.IsPlaying and foundsound == false then | |
236 | asdid = instance.SoundId | |
237 | sound = instance | |
238 | foundsound = true | |
239 | print("Sync to sound :)") | |
240 | end | |
241 | end | |
242 | for _,children in pairs(instance:GetChildren()) do scan(children) end | |
243 | end | |
244 | ||
245 | function drawgui() | |
246 | ||
247 | Prefix = "/" | |
248 | function findPlayer(name) | |
249 | for _, players in pairs(game:getService("Players"):GetPlayers()) do | |
250 | if players.Name:lower():find(name:lower()) then | |
251 | return players | |
252 | end | |
253 | end | |
254 | end | |
255 | ||
256 | if firstrun == true then | |
257 | player.Chatted:connect(function(msg) | |
258 | if msg:lower():sub(1,#Prefix+#'sync ')==Prefix..'sync ' then | |
259 | local v = msg:sub(#Prefix+#'sync '+1) | |
260 | foundsound = false | |
261 | synctarget = findPlayer(v) | |
262 | end | |
263 | end) | |
264 | end | |
265 | ||
266 | naeeym2 = Instance.new("BillboardGui",root) | |
267 | naeeym2.Size = UDim2.new(10, 0, 4, 0) | |
268 | naeeym2.StudsOffset = Vector3.new(0, 7, 0) | |
269 | naeeym2.Adornee = root | |
270 | naeeym2.Name = "TalkingBillBoard" | |
271 | tecks2 = Instance.new("TextLabel",naeeym2) | |
272 | tecks2.BackgroundTransparency = 1 | |
273 | tecks2.BorderSizePixel = 0 | |
274 | if firstrun == true then | |
275 | tecks2.Text = "" | |
276 | else | |
277 | tecks2.Text = fetchName(tonumber(asdid:sub(#'rbxassetid://'+1))) | |
278 | end | |
279 | tecks2.Font = "Fantasy" | |
280 | tecks2.TextSize = 25 | |
281 | tecks2.Size = UDim2.new(1,0,1,0) | |
282 | tecks2.TextStrokeTransparency = 0 | |
283 | tecks2.TextTransparency = 0 | |
284 | ||
285 | parent = player.PlayerGui | |
286 | ScreenGui0 = Instance.new("ScreenGui") | |
287 | TextButton1 = Instance.new("TextButton") | |
288 | Frame2 = Instance.new("Frame") | |
289 | TextBox3 = Instance.new("TextBox") | |
290 | TextButton4 = Instance.new("TextButton") | |
291 | Frame5 = Instance.new("Frame") | |
292 | Frame6 = Instance.new("Frame") | |
293 | Frame7 = Instance.new("Frame") | |
294 | TextLabel8 = Instance.new("TextLabel") | |
295 | TextButton9 = Instance.new("TextButton") | |
296 | Frame10 = Instance.new("Frame") | |
297 | Frame11 = Instance.new("Frame") | |
298 | TextLabel12 = Instance.new("TextLabel") | |
299 | TextButton13 = Instance.new("TextButton") | |
300 | TextButton14 = Instance.new("TextButton") | |
301 | Frame15 = Instance.new("Frame") | |
302 | Frame16 = Instance.new("Frame") | |
303 | Frame17 = Instance.new("Frame") | |
304 | TextButton18 = Instance.new("TextButton") | |
305 | TextLabel19 = Instance.new("TextLabel") | |
306 | Frame20 = Instance.new("Frame") | |
307 | Frame21 = Instance.new("Frame") | |
308 | TextButton22 = Instance.new("TextButton") | |
309 | TextLabel23 = Instance.new("TextLabel") | |
310 | Frame24 = Instance.new("Frame") | |
311 | Frame25 = Instance.new("Frame") | |
312 | TextButton26 = Instance.new("TextButton") | |
313 | TextLabel27 = Instance.new("TextLabel") | |
314 | Frame28 = Instance.new("Frame") | |
315 | Frame29 = Instance.new("Frame") | |
316 | TextButton30 = Instance.new("TextButton") | |
317 | TextLabel31 = Instance.new("TextLabel") | |
318 | Frame32 = Instance.new("Frame") | |
319 | TextButton33 = Instance.new("TextButton") | |
320 | TextButton34 = Instance.new("TextButton") | |
321 | ScreenGui0.Name = "MusicPlayerKyu" | |
322 | ScreenGui0.Parent = parent | |
323 | TextButton1.AnchorPoint = Vector2.new(0, 0.5) | |
324 | TextButton1.Name = "Open/Close" | |
325 | TextButton1.Parent = ScreenGui0 | |
326 | TextButton1.Size = UDim2.new(0, 20, 0, 300) | |
327 | TextButton1.Text = ">>" | |
328 | TextButton1.Position = UDim2.new(0, 0, 0.5, 0) | |
329 | TextButton1.BackgroundColor3 = Color3.new(1, 1, 1) | |
330 | TextButton1.SizeConstraint = Enum.SizeConstraint.RelativeXX | |
331 | TextButton1.Font = Enum.Font.Code | |
332 | Frame2.AnchorPoint = Vector2.new(0, 0.5) | |
333 | Frame2.Name = "Core" | |
334 | Frame2.Parent = ScreenGui0 | |
335 | Frame2.Size = UDim2.new(0, 500, 0, 300) | |
336 | Frame2.Position = UDim2.new(0, 20, 0.5, 0) | |
337 | Frame2.BackgroundColor3 = Color3.new(0.615686, 0.615686, 0.615686) | |
338 | Frame2.SizeConstraint = Enum.SizeConstraint.RelativeXX | |
339 | TextBox3.Name = "ID" | |
340 | TextBox3.Parent = Frame2 | |
341 | TextBox3.Size = UDim2.new(0, 100, 0, 100) | |
342 | if firstrun == true then | |
343 | TextBox3.Text = "ID" | |
344 | else | |
345 | TextBox3.Text = asdtext | |
346 | end | |
347 | TextBox3.Position = UDim2.new(0, 50, 0, 20) | |
348 | TextBox3.BackgroundColor3 = Color3.new(1, 1, 1) | |
349 | TextBox3.SizeConstraint = Enum.SizeConstraint.RelativeXX | |
350 | TextBox3.Font = Enum.Font.SciFi | |
351 | TextBox3.FontSize = Enum.FontSize.Size14 | |
352 | TextButton4.Name = "Play" | |
353 | TextButton4.Parent = TextBox3 | |
354 | TextButton4.Size = UDim2.new(1, 0, 0, 20) | |
355 | TextButton4.Text = "PLAY" | |
356 | TextButton4.Position = UDim2.new(0.5, 0, 1, 0) | |
357 | TextButton4.BackgroundColor3 = Color3.new(1, 1, 1) | |
358 | TextButton4.Font = Enum.Font.SciFi | |
359 | TextButton4.FontSize = Enum.FontSize.Size14 | |
360 | TextButton4.AnchorPoint = Vector2.new(0.5, 0) | |
361 | Frame5.Name = "SettingsPanel" | |
362 | Frame5.Parent = Frame2 | |
363 | Frame5.Size = UDim2.new(0, 300, 0, 150) | |
364 | Frame5.Position = UDim2.new(1, -20, 0, 20) | |
365 | Frame5.BackgroundColor3 = Color3.new(0.345098, 0.345098, 0.345098) | |
366 | Frame5.AnchorPoint = Vector2.new(1, 0) | |
367 | Frame6.Name = "Volume" | |
368 | Frame6.Parent = Frame5 | |
369 | Frame6.Transparency = 0 | |
370 | Frame6.Size = UDim2.new(0, 100, 0, 100) | |
371 | Frame6.Position = UDim2.new(0, 100, 0.5, 0) | |
372 | Frame6.BackgroundColor3 = Color3.new(1, 1, 1) | |
373 | Frame6.BackgroundTransparency = 1 | |
374 | Frame6.AnchorPoint = Vector2.new(0.5, 0.5) | |
375 | Frame7.Name = "Line" | |
376 | Frame7.Parent = Frame6 | |
377 | Frame7.Size = UDim2.new(0, 1, 1, 0) | |
378 | Frame7.Position = UDim2.new(0.5, 0, 0, 0) | |
379 | Frame7.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196) | |
380 | Frame7.BorderSizePixel = 0 | |
381 | Frame7.AnchorPoint = Vector2.new(0.5, 0) | |
382 | TextLabel8.Name = "Text" | |
383 | TextLabel8.Parent = Frame6 | |
384 | TextLabel8.Transparency = 0 | |
385 | TextLabel8.Text = "Volume" | |
386 | TextLabel8.Position = UDim2.new(0.5, 0, 1, 10) | |
387 | TextLabel8.BackgroundColor3 = Color3.new(1, 1, 1) | |
388 | TextLabel8.BackgroundTransparency = 1 | |
389 | TextLabel8.Font = Enum.Font.SourceSans | |
390 | TextLabel8.FontSize = Enum.FontSize.Size10 | |
391 | TextLabel8.AnchorPoint = Vector2.new(0.5, 0) | |
392 | TextButton9.Name = "DragVol" | |
393 | TextButton9.Parent = Frame6 | |
394 | TextButton9.Size = UDim2.new(0, 20, 0, 10) | |
395 | TextButton9.Text = "" | |
396 | if firstrun == true then | |
397 | TextButton9.Position = UDim2.new(0.5, 0, 0.5, 0) | |
398 | else | |
399 | TextButton9.Position = asdvolume | |
400 | end | |
401 | TextButton9.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235) | |
402 | TextButton9.Font = Enum.Font.SourceSans | |
403 | TextButton9.AnchorPoint = Vector2.new(0.5, 0.5) | |
404 | Frame10.Name = "Pitch" | |
405 | Frame10.Parent = Frame5 | |
406 | Frame10.Transparency = 0 | |
407 | Frame10.Size = UDim2.new(0, 100, 0, 100) | |
408 | Frame10.Position = UDim2.new(0, 50, 0.5, 0) | |
409 | Frame10.BackgroundColor3 = Color3.new(1, 1, 1) | |
410 | Frame10.BackgroundTransparency = 1 | |
411 | Frame10.AnchorPoint = Vector2.new(0.5, 0.5) | |
412 | Frame11.Name = "Line" | |
413 | Frame11.Parent = Frame10 | |
414 | Frame11.Size = UDim2.new(0, 1, 1, 0) | |
415 | Frame11.Position = UDim2.new(0.5, 0, 0, 0) | |
416 | Frame11.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196) | |
417 | Frame11.BorderSizePixel = 0 | |
418 | Frame11.AnchorPoint = Vector2.new(0.5, 0) | |
419 | TextLabel12.Name = "Text" | |
420 | TextLabel12.Parent = Frame10 | |
421 | TextLabel12.Transparency = 0 | |
422 | TextLabel12.Text = "Pitch" | |
423 | TextLabel12.Position = UDim2.new(0.5, 0, 1, 10) | |
424 | TextLabel12.BackgroundColor3 = Color3.new(1, 1, 1) | |
425 | TextLabel12.BackgroundTransparency = 1 | |
426 | TextLabel12.Font = Enum.Font.SourceSans | |
427 | TextLabel12.FontSize = Enum.FontSize.Size10 | |
428 | TextLabel12.AnchorPoint = Vector2.new(0.5, 0) | |
429 | TextButton13.Name = "DragPitch" | |
430 | TextButton13.Parent = Frame10 | |
431 | TextButton13.Size = UDim2.new(0, 20, 0, 10) | |
432 | TextButton13.Text = "" | |
433 | if firstrun == true then | |
434 | TextButton13.Position = UDim2.new(0.5, 0, 0.5, 0) | |
435 | else | |
436 | TextButton13.Position = asdpitch | |
437 | end | |
438 | TextButton13.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235) | |
439 | TextButton13.Font = Enum.Font.SourceSans | |
440 | TextButton13.AnchorPoint = Vector2.new(0.5, 0.5) | |
441 | TextButton14.Name = "Reset" | |
442 | TextButton14.Parent = Frame10 | |
443 | TextButton14.Size = UDim2.new(0, 20, 0, 20) | |
444 | TextButton14.Text = "" | |
445 | TextButton14.Position = UDim2.new(0.5, -15, 0.5, 0) | |
446 | TextButton14.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235) | |
447 | TextButton14.Font = Enum.Font.SourceSans | |
448 | TextButton14.FontSize = Enum.FontSize.Size14 | |
449 | TextButton14.AnchorPoint = Vector2.new(1, 0.5) | |
450 | Frame15.Name = "Others" | |
451 | Frame15.Parent = Frame5 | |
452 | Frame15.Transparency = 0 | |
453 | Frame15.Size = UDim2.new(0, 100, 0, 100) | |
454 | Frame15.Position = UDim2.new(0, 210, 0.5, 0) | |
455 | Frame15.BackgroundColor3 = Color3.new(1, 1, 1) | |
456 | Frame15.BackgroundTransparency = 1 | |
457 | Frame15.AnchorPoint = Vector2.new(0.5, 0.5) | |
458 | Frame16.Name = "Low" | |
459 | Frame16.Parent = Frame15 | |
460 | Frame16.Transparency = 0 | |
461 | Frame16.Size = UDim2.new(0, 0, 1, 0) | |
462 | Frame16.BackgroundColor3 = Color3.new(1, 1, 1) | |
463 | Frame16.BackgroundTransparency = 1 | |
464 | Frame17.Name = "Line" | |
465 | Frame17.Parent = Frame16 | |
466 | Frame17.Size = UDim2.new(0, 1, 1, 0) | |
467 | Frame17.Position = UDim2.new(0.5, 0, 0, 0) | |
468 | Frame17.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196) | |
469 | Frame17.BorderSizePixel = 0 | |
470 | Frame17.AnchorPoint = Vector2.new(0.5, 0) | |
471 | TextButton18.Name = "DragLow" | |
472 | TextButton18.Parent = Frame16 | |
473 | TextButton18.Size = UDim2.new(0, 20, 0, 10) | |
474 | TextButton18.Text = "" | |
475 | if firstrun == true then | |
476 | TextButton18.Position = UDim2.new(0.5, 0, 0.5, -25) | |
477 | else | |
478 | TextButton18.Position = asdlo | |
479 | end | |
480 | TextButton18.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235) | |
481 | TextButton18.Font = Enum.Font.SourceSans | |
482 | TextButton18.AnchorPoint = Vector2.new(0.5, 0.5) | |
483 | TextLabel19.Name = "Text" | |
484 | TextLabel19.Parent = Frame16 | |
485 | TextLabel19.Transparency = 0 | |
486 | TextLabel19.Text = "Low" | |
487 | TextLabel19.Position = UDim2.new(0.5, 0, 1, 10) | |
488 | TextLabel19.BackgroundColor3 = Color3.new(1, 1, 1) | |
489 | TextLabel19.BackgroundTransparency = 1 | |
490 | TextLabel19.Font = Enum.Font.SourceSans | |
491 | TextLabel19.FontSize = Enum.FontSize.Size10 | |
492 | TextLabel19.AnchorPoint = Vector2.new(0.5, 0) | |
493 | Frame20.Name = "Medium" | |
494 | Frame20.Parent = Frame15 | |
495 | Frame20.Transparency = 0 | |
496 | Frame20.Size = UDim2.new(0, 0, 1, 0) | |
497 | Frame20.Position = UDim2.new(0, 40, 0, 0) | |
498 | Frame20.BackgroundColor3 = Color3.new(1, 1, 1) | |
499 | Frame20.BackgroundTransparency = 1 | |
500 | Frame21.Name = "Line" | |
501 | Frame21.Parent = Frame20 | |
502 | Frame21.Size = UDim2.new(0, 1, 1, 0) | |
503 | Frame21.Position = UDim2.new(0.5, 0, 0, 0) | |
504 | Frame21.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196) | |
505 | Frame21.BorderSizePixel = 0 | |
506 | Frame21.AnchorPoint = Vector2.new(0.5, 0) | |
507 | TextButton22.Name = "DragMed" | |
508 | TextButton22.Parent = Frame20 | |
509 | TextButton22.Size = UDim2.new(0, 20, 0, 10) | |
510 | TextButton22.Text = "" | |
511 | if firstrun == true then | |
512 | TextButton22.Position = UDim2.new(0.5, 0, 0.5, -25) | |
513 | else | |
514 | TextButton22.Position = asdmi | |
515 | end | |
516 | TextButton22.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235) | |
517 | TextButton22.Font = Enum.Font.SourceSans | |
518 | TextButton22.AnchorPoint = Vector2.new(0.5, 0.5) | |
519 | TextLabel23.Name = "Text" | |
520 | TextLabel23.Parent = Frame20 | |
521 | TextLabel23.Transparency = 0 | |
522 | TextLabel23.Text = "Medium" | |
523 | TextLabel23.Position = UDim2.new(0.5, 0, 1, 10) | |
524 | TextLabel23.BackgroundColor3 = Color3.new(1, 1, 1) | |
525 | TextLabel23.BackgroundTransparency = 1 | |
526 | TextLabel23.Font = Enum.Font.SourceSans | |
527 | TextLabel23.FontSize = Enum.FontSize.Size10 | |
528 | TextLabel23.AnchorPoint = Vector2.new(0.5, 0) | |
529 | Frame24.Name = "High" | |
530 | Frame24.Parent = Frame15 | |
531 | Frame24.Transparency = 0 | |
532 | Frame24.Size = UDim2.new(0, 0, 1, 0) | |
533 | Frame24.Position = UDim2.new(0, 80, 0, 0) | |
534 | Frame24.BackgroundColor3 = Color3.new(1, 1, 1) | |
535 | Frame24.BackgroundTransparency = 1 | |
536 | Frame25.Name = "Line" | |
537 | Frame25.Parent = Frame24 | |
538 | Frame25.Size = UDim2.new(0, 1, 1, 0) | |
539 | Frame25.Position = UDim2.new(0.5, 0, 0, 0) | |
540 | Frame25.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196) | |
541 | Frame25.BorderSizePixel = 0 | |
542 | Frame25.AnchorPoint = Vector2.new(0.5, 0) | |
543 | TextButton26.Name = "DragHigh" | |
544 | TextButton26.Parent = Frame24 | |
545 | TextButton26.Size = UDim2.new(0, 20, 0, 10) | |
546 | TextButton26.Text = "" | |
547 | if firstrun == true then | |
548 | TextButton26.Position = UDim2.new(0.5, 0, 0.5, -25) | |
549 | else | |
550 | TextButton26.Position = asdhi | |
551 | end | |
552 | TextButton26.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235) | |
553 | TextButton26.Font = Enum.Font.SourceSans | |
554 | TextButton26.AnchorPoint = Vector2.new(0.5, 0.5) | |
555 | TextLabel27.Name = "Text" | |
556 | TextLabel27.Parent = Frame24 | |
557 | TextLabel27.Transparency = 0 | |
558 | TextLabel27.Text = "High" | |
559 | TextLabel27.Position = UDim2.new(0.5, 0, 1, 10) | |
560 | TextLabel27.BackgroundColor3 = Color3.new(1, 1, 1) | |
561 | TextLabel27.BackgroundTransparency = 1 | |
562 | TextLabel27.Font = Enum.Font.SourceSans | |
563 | TextLabel27.FontSize = Enum.FontSize.Size10 | |
564 | TextLabel27.AnchorPoint = Vector2.new(0.5, 0) | |
565 | Frame28.Name = "Distortion" | |
566 | Frame28.Parent = Frame15 | |
567 | Frame28.Transparency = 0 | |
568 | Frame28.Size = UDim2.new(0, 0, 1, 0) | |
569 | Frame28.Position = UDim2.new(0, 120, 0, 0) | |
570 | Frame28.BackgroundColor3 = Color3.new(1, 1, 1) | |
571 | Frame28.BackgroundTransparency = 1 | |
572 | Frame29.Name = "Line" | |
573 | Frame29.Parent = Frame28 | |
574 | Frame29.Size = UDim2.new(0, 1, 1, 0) | |
575 | Frame29.Position = UDim2.new(0.5, 0, 0, 0) | |
576 | Frame29.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196) | |
577 | Frame29.BorderSizePixel = 0 | |
578 | Frame29.AnchorPoint = Vector2.new(0.5, 0) | |
579 | TextButton30.Name = "DragDist" | |
580 | TextButton30.Parent = Frame28 | |
581 | TextButton30.Size = UDim2.new(0, 20, 0, 10) | |
582 | TextButton30.Text = "" | |
583 | if firstrun == true then | |
584 | TextButton30.Position = UDim2.new(0.5, 0, 0.5, 50) | |
585 | else | |
586 | TextButton30.Position = asddist | |
587 | end | |
588 | TextButton30.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235) | |
589 | TextButton30.Font = Enum.Font.SourceSans | |
590 | TextButton30.AnchorPoint = Vector2.new(0.5, 0.5) | |
591 | TextLabel31.Name = "Text" | |
592 | TextLabel31.Parent = Frame28 | |
593 | TextLabel31.Transparency = 0 | |
594 | TextLabel31.Text = "Dist" | |
595 | TextLabel31.Position = UDim2.new(0.5, 0, 1, 10) | |
596 | TextLabel31.BackgroundColor3 = Color3.new(1, 1, 1) | |
597 | TextLabel31.BackgroundTransparency = 1 | |
598 | TextLabel31.Font = Enum.Font.SourceSans | |
599 | TextLabel31.FontSize = Enum.FontSize.Size10 | |
600 | TextLabel31.AnchorPoint = Vector2.new(0.5, 0) | |
601 | Frame32.Name = "Line" | |
602 | Frame32.Parent = Frame5 | |
603 | Frame32.Size = UDim2.new(0, 1, 1, -20) | |
604 | Frame32.Position = UDim2.new(0.5, -20, 0.5, 0) | |
605 | Frame32.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235) | |
606 | Frame32.BorderSizePixel = 0 | |
607 | Frame32.AnchorPoint = Vector2.new(0.5, 0.5) | |
608 | TextButton33.Name = "Global/Local" | |
609 | TextButton33.Parent = Frame2 | |
610 | TextButton33.Size = UDim2.new(0, 100, 0, 100) | |
611 | if mode == "local" then | |
612 | TextButton33.Text = "LOCAL" | |
613 | else | |
614 | TextButton33.Text = "GLOBAL" | |
615 | end | |
616 | TextButton33.Position = UDim2.new(0, 50, 0, 180) | |
617 | TextButton33.BackgroundColor3 = Color3.new(1, 1, 1) | |
618 | TextButton33.Font = Enum.Font.SciFi | |
619 | TextButton33.FontSize = Enum.FontSize.Size14 | |
620 | TextButton34.Name = "Style" | |
621 | TextButton34.Parent = Frame2 | |
622 | TextButton34.Size = UDim2.new(0.5, 50, 0, 100) | |
623 | TextButton34.Text = "Style: "..vismode | |
624 | TextButton34.Position = UDim2.new(0.5, 80, 0, 180) | |
625 | TextButton34.BackgroundColor3 = Color3.new(0.211765, 0.211765, 0.211765) | |
626 | TextButton34.Font = Enum.Font.SciFi | |
627 | TextButton34.FontSize = Enum.FontSize.Size14 | |
628 | TextButton34.TextColor3 = Color3.new(1, 1, 0) | |
629 | TextButton34.AnchorPoint = Vector2.new(0.5, 0) | |
630 | Frame2.Visible = asdopen | |
631 | ||
632 | draggable = {TextButton9;TextButton13;TextButton18;TextButton22;TextButton26;TextButton30} | |
633 | held = false | |
634 | trigger = nil | |
635 | base = UDim2.new(0,0,0,0) | |
636 | ||
637 | TextButton1.MouseButton1Click:connect(function() | |
638 | if Frame2.Visible == true then | |
639 | Frame2.Visible = false | |
640 | asdopen = false | |
641 | TextButton1.Text = ">>" | |
642 | else | |
643 | Frame2.Visible = true | |
644 | asdopen = true | |
645 | TextButton1.Text = "<<" | |
646 | end | |
647 | end) | |
648 | ||
649 | TextButton4.MouseButton1Click:connect(function() | |
650 | if mode == "local" then | |
651 | if not char:WaitForChild("Torso"):FindFirstChild("KyuSound") then CreateSound() end | |
652 | else | |
653 | if not char:FindFirstChild("KyuSound") then CreateSound() end | |
654 | end | |
655 | synctarget = nil | |
656 | sound:Stop() | |
657 | soundname = fetchName(TextBox3.Text) | |
658 | tecks2.Text = soundname | |
659 | asdid = "rbxassetid://"..TextBox3.Text | |
660 | sound:Play() | |
661 | end) | |
662 | ||
663 | TextButton14.MouseButton1Click:connect(function() | |
664 | TextButton13.Position = UDim2.new(0.5, 0, 0.5, 0) | |
665 | end) | |
666 | ||
667 | TextButton33.MouseButton1Click:connect(function() | |
668 | if synctarget == nil then | |
669 | if mode == "local" then | |
670 | mode = "global" | |
671 | TextButton33.Text = "GLOBAL" | |
672 | if char:WaitForChild("Torso"):FindFirstChild("KyuSound") then | |
673 | sound:Pause() | |
674 | sound.Parent = char | |
675 | sound:Resume() | |
676 | end | |
677 | else | |
678 | mode = "local" | |
679 | TextButton33.Text = "LOCAL" | |
680 | if char:FindFirstChild("KyuSound") then | |
681 | sound:Pause() | |
682 | sound.Parent = char:WaitForChild("Torso") | |
683 | sound:Resume() | |
684 | end | |
685 | end | |
686 | end | |
687 | end) | |
688 | ||
689 | function changemode() | |
690 | if vismode == "nothing" then | |
691 | vismode = "rainbow" | |
692 | local rdmx = math.random(0,1) | |
693 | local rdmy = math.random(0,1) | |
694 | local rdmz = math.random(0,1) | |
695 | if rdmx == 0 then mathrandom.x = math.random(40,60) else mathrandom.x = -math.random(40,60) end | |
696 | if rdmy == 0 then mathrandom.y = math.random(40,60) else mathrandom.y = -math.random(40,60) end | |
697 | if rdmz == 0 then mathrandom.z = math.random(40,60) else mathrandom.z = -math.random(40,60) end | |
698 | elseif vismode == "rainbow" then | |
699 | vismode = "classic" | |
700 | bp.Position = char.Head.Position+Vector3.new(0,2,0) | |
701 | Main.Position = char.Head.Position+Vector3.new(0,2,0) | |
702 | part:Destroy() | |
703 | elseif vismode == "classic" then | |
704 | vismode = "trail" | |
705 | local rdmx = math.random(0,1) | |
706 | local rdmy = math.random(0,1) | |
707 | local rdmz = math.random(0,1) | |
708 | if rdmx == 0 then mathrandom.x = math.random(40,60) else mathrandom.x = -math.random(40,60) end | |
709 | if rdmy == 0 then mathrandom.y = math.random(40,60) else mathrandom.y = -math.random(40,60) end | |
710 | if rdmz == 0 then mathrandom.z = math.random(40,60) else mathrandom.z = -math.random(40,60) end | |
711 | elseif vismode == "trail" then | |
712 | part:Destroy() | |
713 | vismode = "nooby" | |
714 | elseif vismode == "nooby" then | |
715 | vismode = "trail kyu" | |
716 | centralpart:Destroy() | |
717 | local rdmx = math.random(0,1) | |
718 | local rdmy = math.random(0,1) | |
719 | local rdmz = math.random(0,1) | |
720 | if rdmx == 0 then mathrandom.x = math.random(40,60) else mathrandom.x = -math.random(40,60) end | |
721 | if rdmy == 0 then mathrandom.y = math.random(40,60) else mathrandom.y = -math.random(40,60) end | |
722 | if rdmz == 0 then mathrandom.z = math.random(40,60) else mathrandom.z = -math.random(40,60) end | |
723 | elseif vismode == "trail kyu" then | |
724 | part:Destroy() | |
725 | vismode = "nothing" | |
726 | end | |
727 | end | |
728 | ||
729 | TextButton34.MouseButton1Click:connect(function() | |
730 | changemode() | |
731 | end) | |
732 | ||
733 | for i,v in pairs(draggable) do | |
734 | v.MouseButton1Down:connect(function() | |
735 | trigger = v | |
736 | base = UDim2.new(0.5,0,0.5,mouse.y) - trigger.Position | |
737 | held = true | |
738 | end) | |
739 | v.MouseButton1Up:connect(function() | |
740 | base = UDim2.new(0.5,0,0.5,0) | |
741 | trigger = nil | |
742 | held = false | |
743 | end) | |
744 | end | |
745 | ||
746 | mouse.Button1Up:connect(function() | |
747 | base = UDim2.new(0.5,0,0.5,0) | |
748 | trigger = nil | |
749 | held = false | |
750 | end) | |
751 | ||
752 | mouse.Move:connect(function() | |
753 | if held then | |
754 | trigger.Position = UDim2.new(0.5,0,0.5,mouse.y) - base | |
755 | if trigger.Position.Y.Offset > 50 then | |
756 | trigger.Position = UDim2.new(0.5, 0,0.5, 50) | |
757 | end | |
758 | if trigger.Position.Y.Offset < -50 then | |
759 | trigger.Position = UDim2.new(0.5, 0,0.5, -50) | |
760 | end | |
761 | if trigger.Position.X.Offset ~= 0 then | |
762 | trigger.Position = UDim2.new(0.5, 0,0.5, trigger.Position.Y.Offset) | |
763 | end | |
764 | end | |
765 | end) | |
766 | max = asdmax | |
767 | Visualiser = Instance.new("Model",char) | |
768 | Visualiser2 = Instance.new("Model",Visualiser) | |
769 | Visualiser2.Name = "VisualiserK" | |
770 | Main = Instance.new("Part",Visualiser) | |
771 | Main.Name = "VisualiserClassic" | |
772 | Main.Position = char.Head.Position+Vector3.new(0,2,0) | |
773 | Main.CanCollide = false | |
774 | Main.Size = Vector3.new(1,1,1) | |
775 | Main.Transparency = 1 | |
776 | Visualiserpos = Instance.new("Attachment",Main) | |
777 | Visualiserpos.Position = Vector3.new(5,0,0) | |
778 | Visualiserpos2 = Instance.new("Attachment",Main) | |
779 | Visualiserpos2.Position = Vector3.new(-5,0,0) | |
780 | bp = Instance.new("BodyPosition",Main) | |
781 | bp.P = 3500 | |
782 | ba = Instance.new("BodyAngularVelocity",Main) | |
783 | firstrun = false | |
784 | end | |
785 | ||
786 | local i = 0 | |
787 | ||
788 | while rs:wait() do | |
789 | ||
790 | script.Parent = nil | |
791 | char = player.Character | |
792 | root = char:WaitForChild("HumanoidRootPart") | |
793 | ||
794 | if not player.PlayerGui:FindFirstChild("MusicPlayerKyu") then | |
795 | drawgui() | |
796 | CreateSound("BACKUP") | |
797 | end | |
798 | ||
799 | if not (foundsound == true or char:FindFirstChild("KyuSound") or char:WaitForChild("Torso"):FindFirstChild("KyuSound")) then | |
800 | CreateSound("BACKUP") | |
801 | end | |
802 | ||
803 | if foundsound == true or char:FindFirstChild("KyuSound") or char:WaitForChild("Torso"):FindFirstChild("KyuSound") then | |
804 | asdvolume = sound.Volume | |
805 | asdtimeposition = sound.TimePosition | |
806 | end | |
807 | ||
808 | if sound.SoundId ~= asdid and synctarget == nil then | |
809 | sound:Stop() | |
810 | sound.SoundId = asdid | |
811 | soundname = fetchName(tonumber(asdid:sub(#'rbxassetid://'+1))) | |
812 | sound.TimePosition = asdtimeposition | |
813 | sound:Play() | |
814 | end | |
815 | ||
816 | if foundsound == true or char:FindFirstChild("KyuSound") or char:WaitForChild("Torso"):FindFirstChild("KyuSound") then | |
817 | if max < sound.PlaybackLoudness then | |
818 | max = sound.PlaybackLoudness | |
819 | end | |
820 | if max > 0 then | |
821 | max = max -1 | |
822 | end | |
823 | if not sound:FindFirstChild("EqualizerSoundEffect") then | |
824 | effect = Instance.new("EqualizerSoundEffect",sound) | |
825 | end | |
826 | if not sound:FindFirstChild("DistortionSoundEffect") then | |
827 | coroutine.resume(coroutine.create(function() | |
828 | distort = Instance.new("DistortionSoundEffect",sound) | |
829 | end)) | |
830 | end | |
831 | sound.Volume = 5-(TextButton9.Position.Y.Offset/10) | |
832 | sound.PlaybackSpeed = math.ceil((1-(TextButton13.Position.Y.Offset/50))*40)/40 | |
833 | coroutine.resume(coroutine.create(function() | |
834 | distort.Level = 0.5+(-TextButton30.Position.Y.Offset/50) | |
835 | end)) | |
836 | effect.HighGain = -(TextButton26.Position.Y.Offset*1.2) | |
837 | effect.MidGain = -(TextButton22.Position.Y.Offset*1.2) | |
838 | effect.LowGain = -(TextButton18.Position.Y.Offset*1.2) | |
839 | for i,v in pairs(Visualiser:FindFirstChild("VisualiserK"):GetChildren()) do | |
840 | local change = 0.1+(max/5000) | |
841 | v.Mesh.Scale = v.Mesh.Scale+Vector3.new(change,change,change) | |
842 | v.Transparency = v.Transparency + 0.05 | |
843 | local light = v:FindFirstChildOfClass("PointLight") | |
844 | light.Brightness = 2+sound.PlaybackLoudness/25 | |
845 | light.Range = 5+sound.PlaybackLoudness/10 | |
846 | if v.Transparency >= 1 then | |
847 | v:Destroy() | |
848 | end | |
849 | end | |
850 | else | |
851 | for i,v in pairs(Visualiser:FindFirstChild("VisualiserK"):GetChildren()) do | |
852 | local change = 0.1 | |
853 | v.Mesh.Scale = v.Mesh.Scale+Vector3.new(change,change,change) | |
854 | v.Transparency = v.Transparency + 0.05 | |
855 | if v.Transparency >= 1 then | |
856 | v:Destroy() | |
857 | end | |
858 | end | |
859 | end | |
860 | if vismode == "classic" then | |
861 | block = Instance.new("Part",Visualiser:FindFirstChild("VisualiserK")) | |
862 | blockm = Instance.new("BlockMesh",block) | |
863 | if foundsound == true or char:FindFirstChild("KyuSound") or char:WaitForChild("Torso"):FindFirstChild("KyuSound") then | |
864 | change = sound.PlaybackLoudness/80 | |
865 | blockm.Scale = Vector3.new(1+change,1+change,1+change) | |
866 | end | |
867 | block.Anchored = true | |
868 | block.CanCollide = false | |
869 | block.Material = Enum.Material.Neon | |
870 | block.Size = Vector3.new(1,1,1) | |
871 | light = Instance.new("PointLight",block) | |
872 | light.Color = Color3.fromHSV(0,0,1) | |
873 | light.Brightness = 2+sound.PlaybackLoudness/25 | |
874 | light.Range = 5+sound.PlaybackLoudness/10 | |
875 | block.CFrame = CFrame.new(Visualiserpos.WorldPosition,Vector3.new(math.random(0,3600)/10,math.random(0,3600)/10,math.random(0,3600)/10)) | |
876 | -------------- | |
877 | block = Instance.new("Part",Visualiser:FindFirstChild("VisualiserK")) | |
878 | blockm = Instance.new("BlockMesh",block) | |
879 | if foundsound == true or char:FindFirstChild("KyuSound") or char:WaitForChild("Torso"):FindFirstChild("KyuSound") then | |
880 | change = sound.PlaybackLoudness/80 | |
881 | blockm.Scale = Vector3.new(1+change,1+change,1+change) | |
882 | end | |
883 | block.Anchored = true | |
884 | block.CanCollide = false | |
885 | block.Material = Enum.Material.Neon | |
886 | block.Size = Vector3.new(1,1,1) | |
887 | light = Instance.new("PointLight",block) | |
888 | light.Color = Color3.fromHSV(0,0,1) | |
889 | light.Brightness = 2+sound.PlaybackLoudness/25 | |
890 | light.Range = 5+sound.PlaybackLoudness/10 | |
891 | block.CFrame = CFrame.new(Visualiserpos2.WorldPosition,Vector3.new(math.random(0,3600)/10,math.random(0,3600)/10,math.random(0,3600)/10)) | |
892 | ||
893 | ba.AngularVelocity = Vector3.new(0,0.2+(max/100),0) | |
894 | bp.Position = char.Head.Position+Vector3.new(0,2,0) | |
895 | tecks2.TextColor3 = Color3.fromHSV(0,0,0) | |
896 | tecks2.TextStrokeColor3 = Color3.fromHSV(0,0,1) | |
897 | elseif vismode == "rainbow" then | |
898 | if not char:FindFirstChild("VisualiserRGB") then | |
899 | part=Instance.new("Part",char) | |
900 | part.Name="VisualiserRGB" | |
901 | part.Position=root.Position + Vector3.new(0,10,0) | |
902 | part.CFrame = CFrame.new(part.Position)*CFrame.Angles(math.rad(math.random(1,360)),math.rad(math.random(1,360)),math.rad(math.random(1,360))) | |
903 | blockmesh=Instance.new("BlockMesh",part) | |
904 | end | |
905 | if not part:FindFirstChildOfClass("BodyPosition") then | |
906 | bp2=Instance.new("BodyPosition",part) | |
907 | end | |
908 | if not part:FindFirstChildOfClass("BodyAngularVelocity") then | |
909 | ba2=Instance.new("BodyAngularVelocity",part) | |
910 | end | |
911 | if not part:FindFirstChildOfClass("PointLight") then | |
912 | light=Instance.new("PointLight",part) | |
913 | end | |
914 | part.Color = Color3.fromHSV(i,1,1) | |
915 | light.Color = Color3.fromHSV(i,1,1) | |
916 | light.Brightness = 2+sound.PlaybackLoudness/25 | |
917 | light.Range = 5+sound.PlaybackLoudness/10 | |
918 | part:BreakJoints() | |
919 | part.CanCollide = false | |
920 | part.Material = Enum.Material.Neon | |
921 | blockmesh.Scale= Vector3.new(1+(sound.PlaybackLoudness/150),1+(sound.PlaybackLoudness/150),1+(sound.PlaybackLoudness/150)) | |
922 | part.Size = Vector3.new(1,1,1) | |
923 | bp2.Position = root.Position + Vector3.new(0,10,0) | |
924 | ba2.AngularVelocity = Vector3.new((mathrandom.x/100)+(sound.PlaybackLoudness/mathrandom.x),(mathrandom.y/100)+(sound.PlaybackLoudness/mathrandom.y),(mathrandom.z/100)+(sound.PlaybackLoudness/mathrandom.z)) | |
925 | tecks2.TextColor3 = Color3.fromHSV(0,0,1) | |
926 | tecks2.TextStrokeColor3 = Color3.fromHSV(i,1,1) | |
927 | ||
928 | if i >= 1 then | |
929 | i = 0 | |
930 | else | |
931 | i = i + 0.005 | |
932 | end | |
933 | ||
934 | elseif vismode == "trail" then | |
935 | ||
936 | if not char:FindFirstChild("VisualiserRGB") then | |
937 | local function createtrail(part0,part1,parent) | |
938 | local trail = Instance.new("Trail",parent) | |
939 | trail.Attachment0 = part0 | |
940 | trail.Attachment1 = part1 | |
941 | trail.MinLength = 0 | |
942 | trail.Lifetime = 0.05 | |
943 | trail.LightEmission = 1 | |
944 | trail.LightInfluence = 0 | |
945 | trail.Color = ColorSequence.new(Color3.new(1,0,1),Color3.new(0,1,1)) | |
946 | --trail.Transparency = NumberSequence.new(0,1) | |
947 | end | |
948 | part=Instance.new("Part",char) | |
949 | part.Name="VisualiserRGB" | |
950 | part.Position=root.Position + Vector3.new(0,10,0) | |
951 | part.CFrame = CFrame.new(part.Position)*CFrame.Angles(math.rad(math.random(1,360)),math.rad(math.random(1,360)),math.rad(math.random(1,360))) | |
952 | blockmesh=Instance.new("BlockMesh",part) | |
953 | A = Instance.new("Attachment",part) | |
954 | B = Instance.new("Attachment",part) | |
955 | C = Instance.new("Attachment",part) | |
956 | D = Instance.new("Attachment",part) | |
957 | E = Instance.new("Attachment",part) | |
958 | F = Instance.new("Attachment",part) | |
959 | G = Instance.new("Attachment",part) | |
960 | H = Instance.new("Attachment",part) | |
961 | A.Position = Vector3.new(1,1,1) | |
962 | B.Position = Vector3.new(1,-1,1) | |
963 | C.Position = Vector3.new(-1,1,1) | |
964 | D.Position = Vector3.new(-1,-1,1) | |
965 | ||
966 | E.Position = Vector3.new(1,1,-1) | |
967 | F.Position = Vector3.new(1,-1,-1) | |
968 | G.Position = Vector3.new(-1,1,-1) | |
969 | H.Position = Vector3.new(-1,-1,-1) | |
970 | createtrail(A,E,part) | |
971 | createtrail(B,F,part) | |
972 | createtrail(C,G,part) | |
973 | createtrail(D,H,part) | |
974 | createtrail(A,B,part) | |
975 | createtrail(C,D,part) | |
976 | createtrail(E,F,part) | |
977 | createtrail(G,H,part) | |
978 | createtrail(A,C,part) | |
979 | createtrail(B,D,part) | |
980 | createtrail(E,G,part) | |
981 | createtrail(F,H,part) | |
982 | end | |
983 | if not part:FindFirstChildOfClass("BodyPosition") then | |
984 | bp2=Instance.new("BodyPosition",part) | |
985 | end | |
986 | if not part:FindFirstChildOfClass("BodyAngularVelocity") then | |
987 | ba2=Instance.new("BodyAngularVelocity",part) | |
988 | end | |
989 | if not part:FindFirstChildOfClass("PointLight") then | |
990 | light=Instance.new("PointLight",part) | |
991 | end | |
992 | part.Color = Color3.fromHSV(i,1,1) | |
993 | light.Color = Color3.fromHSV(i,1,1) | |
994 | light.Brightness = 2+sound.PlaybackLoudness/25 | |
995 | light.Range = 5+sound.PlaybackLoudness/10 | |
996 | part:BreakJoints() | |
997 | part.CanCollide = false | |
998 | part.Material = Enum.Material.Neon | |
999 | local asd = 1+(sound.PlaybackLoudness/150) | |
1000 | blockmesh.Scale= Vector3.new(asd/2,asd/2,asd/2) | |
1001 | part.Size = Vector3.new(1,1,1) | |
1002 | bp2.Position = root.Position + Vector3.new(0,10,0) | |
1003 | ba2.AngularVelocity = Vector3.new((mathrandom.x/100)+(sound.PlaybackLoudness/mathrandom.x),(mathrandom.y/100)+(sound.PlaybackLoudness/mathrandom.y),(mathrandom.z/100)+(sound.PlaybackLoudness/mathrandom.z)) | |
1004 | tecks2.TextColor3 = Color3.fromHSV(i,1,0.8) | |
1005 | tecks2.TextStrokeColor3 = Color3.fromHSV(i,1,1) | |
1006 | A.Position = Vector3.new(asd/2,asd/2,asd/2) | |
1007 | B.Position = Vector3.new(asd/2,-asd/2,asd/2) | |
1008 | C.Position = Vector3.new(-asd/2,asd/2,asd/2) | |
1009 | D.Position = Vector3.new(-asd/2,-asd/2,asd/2) | |
1010 | ||
1011 | E.Position = Vector3.new(asd/2,asd/2,-asd/2) | |
1012 | F.Position = Vector3.new(asd/2,-asd/2,-asd/2) | |
1013 | G.Position = Vector3.new(-asd/2,asd/2,-asd/2) | |
1014 | H.Position = Vector3.new(-asd/2,-asd/2,-asd/2) | |
1015 | ||
1016 | if i >= 0.8 then | |
1017 | asdcolor = true | |
1018 | elseif i <= 0.5 then | |
1019 | asdcolor = false | |
1020 | end | |
1021 | ||
1022 | if asdcolor == true then | |
1023 | i = i - 0.001 | |
1024 | else | |
1025 | i = i + 0.001 | |
1026 | end | |
1027 | elseif vismode == "trail kyu" then | |
1028 | ||
1029 | if not char:FindFirstChild("VisualiserRGB") then | |
1030 | local function createtrail(part0,part1,parent) | |
1031 | local trail = Instance.new("Trail",parent) | |
1032 | trail.Attachment0 = part0 | |
1033 | trail.Attachment1 = part1 | |
1034 | trail.MinLength = 0 | |
1035 | trail.Lifetime = 0.05 | |
1036 | trail.LightEmission = 1 | |
1037 | trail.LightInfluence = 0 | |
1038 | trail.Color = ColorSequence.new(Color3.new(1,0,1),Color3.new(0,1,1)) | |
1039 | --trail.Transparency = NumberSequence.new(0,1) | |
1040 | end | |
1041 | part=Instance.new("Part",char) | |
1042 | part.Name="VisualiserRGB" | |
1043 | part.Position=root.Position + Vector3.new(0,10,0) | |
1044 | part.CFrame = CFrame.new(part.Position)*CFrame.Angles(math.rad(math.random(1,360)),math.rad(math.random(1,360)),math.rad(math.random(1,360))) | |
1045 | blockmesh=Instance.new("BlockMesh",part) | |
1046 | part2=part:Clone() | |
1047 | part2.Parent = part | |
1048 | part2.Transparency = 1 | |
1049 | part2.CFrame = CFrame.new(part2.Position)*CFrame.Angles(math.rad(math.random(1,360)),math.rad(math.random(1,360)),math.rad(math.random(1,360))) | |
1050 | ||
1051 | A = Instance.new("Attachment",part) | |
1052 | B = Instance.new("Attachment",part) | |
1053 | C = Instance.new("Attachment",part) | |
1054 | D = Instance.new("Attachment",part) | |
1055 | E = Instance.new("Attachment",part) | |
1056 | F = Instance.new("Attachment",part) | |
1057 | G = Instance.new("Attachment",part) | |
1058 | H = Instance.new("Attachment",part) | |
1059 | A2 = Instance.new("Attachment",part2) | |
1060 | B2 = Instance.new("Attachment",part2) | |
1061 | C2 = Instance.new("Attachment",part2) | |
1062 | D2 = Instance.new("Attachment",part2) | |
1063 | E2 = Instance.new("Attachment",part2) | |
1064 | F2 = Instance.new("Attachment",part2) | |
1065 | G2 = Instance.new("Attachment",part2) | |
1066 | H2 = Instance.new("Attachment",part2) | |
1067 | ||
1068 | A.Position = Vector3.new(1,1,1) | |
1069 | B.Position = Vector3.new(1,-1,1) | |
1070 | C.Position = Vector3.new(-1,1,1) | |
1071 | D.Position = Vector3.new(-1,-1,1) | |
1072 | ||
1073 | E.Position = Vector3.new(1,1,-1) | |
1074 | F.Position = Vector3.new(1,-1,-1) | |
1075 | G.Position = Vector3.new(-1,1,-1) | |
1076 | H.Position = Vector3.new(-1,-1,-1) | |
1077 | ||
1078 | createtrail(A,E,part) | |
1079 | createtrail(B,F,part) | |
1080 | createtrail(C,G,part) | |
1081 | createtrail(D,H,part) | |
1082 | createtrail(A,B,part) | |
1083 | createtrail(C,D,part) | |
1084 | createtrail(E,F,part) | |
1085 | createtrail(G,H,part) | |
1086 | createtrail(A,C,part) | |
1087 | createtrail(B,D,part) | |
1088 | createtrail(E,G,part) | |
1089 | createtrail(F,H,part) | |
1090 | ||
1091 | A2.Position = Vector3.new(1,1,1) | |
1092 | B2.Position = Vector3.new(1,-1,1) | |
1093 | C2.Position = Vector3.new(-1,1,1) | |
1094 | D2.Position = Vector3.new(-1,-1,1) | |
1095 | ||
1096 | E2.Position = Vector3.new(1,1,-1) | |
1097 | F2.Position = Vector3.new(1,-1,-1) | |
1098 | G2.Position = Vector3.new(-1,1,-1) | |
1099 | H2.Position = Vector3.new(-1,-1,-1) | |
1100 | createtrail(A2,E2,part) | |
1101 | createtrail(B2,F2,part) | |
1102 | createtrail(C2,G2,part) | |
1103 | createtrail(D2,H2,part) | |
1104 | createtrail(A2,B2,part) | |
1105 | createtrail(C2,D2,part) | |
1106 | createtrail(E2,F2,part) | |
1107 | createtrail(G2,H2,part) | |
1108 | createtrail(A2,C2,part) | |
1109 | createtrail(B2,D2,part) | |
1110 | createtrail(E2,G2,part) | |
1111 | createtrail(F2,H2,part) | |
1112 | ||
1113 | end | |
1114 | if not part:FindFirstChildOfClass("BodyPosition") then | |
1115 | bp2=Instance.new("BodyPosition",part) | |
1116 | end | |
1117 | if not part:FindFirstChildOfClass("BodyAngularVelocity") then | |
1118 | ba2=Instance.new("BodyAngularVelocity",part) | |
1119 | end | |
1120 | if not part:FindFirstChildOfClass("PointLight") then | |
1121 | light=Instance.new("PointLight",part) | |
1122 | end | |
1123 | if not part2:FindFirstChildOfClass("BodyPosition") then | |
1124 | bp3=Instance.new("BodyPosition",part2) | |
1125 | end | |
1126 | if not part2:FindFirstChildOfClass("BodyAngularVelocity") then | |
1127 | ba3=Instance.new("BodyAngularVelocity",part2) | |
1128 | end | |
1129 | part.Color = Color3.fromHSV(i,1,1) | |
1130 | light.Color = Color3.fromHSV(i,1,1) | |
1131 | light.Brightness = 2+sound.PlaybackLoudness/25 | |
1132 | light.Range = 5+sound.PlaybackLoudness/10 | |
1133 | part:BreakJoints() | |
1134 | part.Material = Enum.Material.Neon | |
1135 | local asd = 1+(sound.PlaybackLoudness/150) | |
1136 | blockmesh.Scale= Vector3.new(asd/2,asd/2,asd/2) | |
1137 | part.Size = Vector3.new(1,1,1) | |
1138 | part2.Size = Vector3.new(1,1,1) | |
1139 | part.CanCollide = false | |
1140 | part2.CanCollide = false | |
1141 | bp2.Position = root.Position + Vector3.new(0,10,0) | |
1142 | ba2.AngularVelocity = Vector3.new((mathrandom.x/100)+(sound.PlaybackLoudness/mathrandom.x),(mathrandom.y/100)+(sound.PlaybackLoudness/mathrandom.y),(mathrandom.z/100)+(sound.PlaybackLoudness/mathrandom.z)) | |
1143 | bp3.Position = root.Position + Vector3.new(0,10,0) | |
1144 | ba3.AngularVelocity = Vector3.new(-(mathrandom.x/100)-(sound.PlaybackLoudness/mathrandom.x),-(mathrandom.y/100)-(sound.PlaybackLoudness/mathrandom.y),-(mathrandom.z/100)-(sound.PlaybackLoudness/mathrandom.z)) | |
1145 | tecks2.TextColor3 = Color3.fromHSV(i,1,0.8) | |
1146 | tecks2.TextStrokeColor3 = Color3.fromHSV(i,1,1) | |
1147 | A.Position = Vector3.new(asd/2,asd/2,asd/2) | |
1148 | B.Position = Vector3.new(asd/2,-asd/2,asd/2) | |
1149 | C.Position = Vector3.new(-asd/2,asd/2,asd/2) | |
1150 | D.Position = Vector3.new(-asd/2,-asd/2,asd/2) | |
1151 | ||
1152 | E.Position = Vector3.new(asd/2,asd/2,-asd/2) | |
1153 | F.Position = Vector3.new(asd/2,-asd/2,-asd/2) | |
1154 | G.Position = Vector3.new(-asd/2,asd/2,-asd/2) | |
1155 | H.Position = Vector3.new(-asd/2,-asd/2,-asd/2) | |
1156 | ||
1157 | A2.Position = Vector3.new(asd,asd,asd) | |
1158 | B2.Position = Vector3.new(asd,-asd,asd) | |
1159 | C2.Position = Vector3.new(-asd,asd,asd) | |
1160 | D2.Position = Vector3.new(-asd,-asd,asd) | |
1161 | ||
1162 | E2.Position = Vector3.new(asd,asd,-asd) | |
1163 | F2.Position = Vector3.new(asd,-asd,-asd) | |
1164 | G2.Position = Vector3.new(-asd,asd,-asd) | |
1165 | H2.Position = Vector3.new(-asd,-asd,-asd) | |
1166 | ||
1167 | if i >= 0.8 then | |
1168 | asdcolor = true | |
1169 | elseif i <= 0.5 then | |
1170 | asdcolor = false | |
1171 | end | |
1172 | ||
1173 | if asdcolor == true then | |
1174 | i = i - 0.001 | |
1175 | else | |
1176 | i = i + 0.001 | |
1177 | end | |
1178 | ||
1179 | elseif vismode == "nothing" then | |
1180 | ||
1181 | tecks2.Text = "" | |
1182 | ||
1183 | elseif vismode == "nooby" then | |
1184 | if not char:FindFirstChild("noobyvis") then | |
1185 | centralpart = it("Part",char) | |
1186 | centralpart.Name = "noobyvis" | |
1187 | centralpart.CFrame = hed.CFrame + Vector3.new(0,-2.5,0) | |
1188 | centralpart.Anchored = true | |
1189 | centralpart.Size = vt(1,1,1) | |
1190 | centralpart.Transparency = 1 | |
1191 | centralpart.CanCollide = false | |
1192 | centralpart2a = it("Part",centralpart) | |
1193 | centralpart2a.CFrame = centralpart.CFrame | |
1194 | centralpart2a.Anchored = true | |
1195 | centralpart2a.Transparency = 0 | |
1196 | centralpart2a.BrickColor = origcolor | |
1197 | centralpart2a.Material = "Neon" | |
1198 | centralpart2a.Size = vt(1,1,1) | |
1199 | centralpart2a.CanCollide = false | |
1200 | ||
1201 | meshy = Instance.new("SpecialMesh", centralpart2a) | |
1202 | meshy.Scale = vt(1.05,1.05,1.05) | |
1203 | meshy.MeshType = "Sphere" | |
1204 | ||
1205 | centralpart2 = it("Part",centralpart) | |
1206 | centralpart2.CFrame = centralpart.CFrame | |
1207 | centralpart2.Anchored = true | |
1208 | centralpart2.Transparency = 0.65 | |
1209 | centralpart2.BrickColor = BrickColor.new("Really black") | |
1210 | centralpart2.Material = "Neon" | |
1211 | centralpart2.Size = vt(1,1,1) | |
1212 | centralpart2.CanCollide = false | |
1213 | ||
1214 | meshy2 = Instance.new("SpecialMesh", centralpart2) | |
1215 | meshy2.Scale = vt(1.075,1.075,1.075) | |
1216 | meshy2.MeshType = "Sphere" | |
1217 | ||
1218 | ||
1219 | centralpart3 = it("Part",centralpart) | |
1220 | centralpart3.CFrame = centralpart.CFrame | |
1221 | centralpart3.Anchored = true | |
1222 | centralpart3.Transparency = 0.5 | |
1223 | centralpart3.BrickColor = origcolor | |
1224 | centralpart3.Material = "Neon" | |
1225 | centralpart3.Size = vt(0.5,1,0.5) | |
1226 | centralpart3.CanCollide = false | |
1227 | ||
1228 | meshy3 = Instance.new("SpecialMesh", centralpart3) | |
1229 | meshy3.Scale = vt(1,0.035,1.075) | |
1230 | meshy3.MeshType = "Brick" | |
1231 | ||
1232 | centralpart4 = it("Part",centralpart) | |
1233 | centralpart4.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(15),0) | |
1234 | centralpart4.Anchored = true | |
1235 | centralpart4.Transparency = 0.5 | |
1236 | centralpart4.BrickColor = origcolor | |
1237 | centralpart4.Material = "Neon" | |
1238 | centralpart4.Size = vt(0.5,1,0.5) | |
1239 | centralpart4.CanCollide = false | |
1240 | ||
1241 | meshy4 = Instance.new("SpecialMesh", centralpart4) | |
1242 | meshy4.Scale = vt(1,0.035,1.075) | |
1243 | meshy4.MeshType = "Brick" | |
1244 | ||
1245 | centralpart5 = it("Part",centralpart) | |
1246 | centralpart5.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(30),0) | |
1247 | centralpart5.Anchored = true | |
1248 | centralpart5.Transparency = 0.5 | |
1249 | centralpart5.BrickColor = origcolor | |
1250 | centralpart5.Material = "Neon" | |
1251 | centralpart5.Size = vt(0.5,1,0.5) | |
1252 | centralpart5.CanCollide = false | |
1253 | ||
1254 | meshy5 = Instance.new("SpecialMesh", centralpart5) | |
1255 | meshy5.Scale = vt(1,0.035,1.075) | |
1256 | meshy5.MeshType = "Brick" | |
1257 | ||
1258 | centralpart6 = it("Part",centralpart) | |
1259 | centralpart6.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(45),0) | |
1260 | centralpart6.Anchored = true | |
1261 | centralpart6.Transparency = 0.5 | |
1262 | centralpart6.BrickColor = origcolor | |
1263 | centralpart6.Material = "Neon" | |
1264 | centralpart6.Size = vt(0.5,1,0.5) | |
1265 | centralpart6.CanCollide = false | |
1266 | ||
1267 | meshy6 = Instance.new("SpecialMesh", centralpart6) | |
1268 | meshy6.Scale = vt(1,0.035,1.075) | |
1269 | meshy6.MeshType = "Brick" | |
1270 | ||
1271 | centralpart7 = it("Part",centralpart) | |
1272 | centralpart7.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(60),0) | |
1273 | centralpart7.Anchored = true | |
1274 | centralpart7.Transparency = 0.5 | |
1275 | centralpart7.BrickColor = origcolor | |
1276 | centralpart7.Material = "Neon" | |
1277 | centralpart7.Size = vt(0.5,1,0.5) | |
1278 | centralpart7.CanCollide = false | |
1279 | ||
1280 | meshy7 = Instance.new("SpecialMesh", centralpart7) | |
1281 | meshy7.Scale = vt(1,0.035,1.075) | |
1282 | meshy7.MeshType = "Brick" | |
1283 | ||
1284 | centralpart8 = it("Part",centralpart) | |
1285 | centralpart8.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(75),0) | |
1286 | centralpart8.Anchored = true | |
1287 | centralpart8.Transparency = 0.5 | |
1288 | centralpart8.BrickColor = origcolor | |
1289 | centralpart8.Material = "Neon" | |
1290 | centralpart8.Size = vt(0.5,1,0.5) | |
1291 | centralpart8.CanCollide = false | |
1292 | ||
1293 | meshy8 = Instance.new("SpecialMesh", centralpart8) | |
1294 | meshy8.Scale = vt(1,0.035,1.075) | |
1295 | meshy8.MeshType = "Brick" | |
1296 | ||
1297 | centralpart9 = it("Part",centralpart) | |
1298 | centralpart9.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(90),0) | |
1299 | centralpart9.Anchored = true | |
1300 | centralpart9.Transparency = 0.5 | |
1301 | centralpart9.BrickColor = origcolor | |
1302 | centralpart9.Material = "Neon" | |
1303 | centralpart9.Size = vt(0.5,1,0.5) | |
1304 | centralpart9.CanCollide = false | |
1305 | ||
1306 | meshy9 = Instance.new("SpecialMesh", centralpart9) | |
1307 | meshy9.Scale = vt(1,0.035,1.075) | |
1308 | meshy9.MeshType = "Brick" | |
1309 | ||
1310 | centralpart10 = it("Part",centralpart) | |
1311 | centralpart10.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(105),0) | |
1312 | centralpart10.Anchored = true | |
1313 | centralpart10.Transparency = 0.5 | |
1314 | centralpart10.BrickColor = origcolor | |
1315 | centralpart10.Material = "Neon" | |
1316 | centralpart10.Size = vt(0.5,1,0.5) | |
1317 | centralpart10.CanCollide = false | |
1318 | ||
1319 | meshy10 = Instance.new("SpecialMesh", centralpart10) | |
1320 | meshy10.Scale = vt(1,0.035,1.075) | |
1321 | meshy10.MeshType = "Brick" | |
1322 | ||
1323 | centralpart11 = it("Part",centralpart) | |
1324 | centralpart11.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(120),0) | |
1325 | centralpart11.Anchored = true | |
1326 | centralpart11.Transparency = 0.5 | |
1327 | centralpart11.BrickColor = origcolor | |
1328 | centralpart11.Material = "Neon" | |
1329 | centralpart11.Size = vt(0.5,1,0.5) | |
1330 | centralpart11.CanCollide = false | |
1331 | ||
1332 | meshy11 = Instance.new("SpecialMesh", centralpart11) | |
1333 | meshy11.Scale = vt(1,0.035,1.075) | |
1334 | meshy11.MeshType = "Brick" | |
1335 | ||
1336 | centralpart12 = it("Part",centralpart) | |
1337 | centralpart12.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(135),0) | |
1338 | centralpart12.Anchored = true | |
1339 | centralpart12.Transparency = 0.5 | |
1340 | centralpart12.BrickColor = origcolor | |
1341 | centralpart12.Material = "Neon" | |
1342 | centralpart12.Size = vt(0.5,1,0.5) | |
1343 | centralpart12.CanCollide = false | |
1344 | ||
1345 | meshy12 = Instance.new("SpecialMesh", centralpart12) | |
1346 | meshy12.Scale = vt(1,0.035,1.075) | |
1347 | meshy12.MeshType = "Brick" | |
1348 | ||
1349 | centralpart13 = it("Part",centralpart) | |
1350 | centralpart13.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(150),0) | |
1351 | centralpart13.Anchored = true | |
1352 | centralpart13.Transparency = 0.5 | |
1353 | centralpart13.BrickColor = origcolor | |
1354 | centralpart13.Material = "Neon" | |
1355 | centralpart13.Size = vt(0.5,1,0.5) | |
1356 | centralpart13.CanCollide = false | |
1357 | ||
1358 | meshy13 = Instance.new("SpecialMesh", centralpart13) | |
1359 | meshy13.Scale = vt(1,0.035,1.075) | |
1360 | meshy13.MeshType = "Brick" | |
1361 | ||
1362 | centralpart14 = it("Part",centralpart) | |
1363 | centralpart14.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(165),0) | |
1364 | centralpart14.Anchored = true | |
1365 | centralpart14.Transparency = 0.5 | |
1366 | centralpart14.BrickColor = origcolor | |
1367 | centralpart14.Material = "Neon" | |
1368 | centralpart14.Size = vt(0.5,1,0.5) | |
1369 | centralpart14.CanCollide = false | |
1370 | ||
1371 | meshy14 = Instance.new("SpecialMesh", centralpart14) | |
1372 | meshy14.Scale = vt(1,0.035,1.075) | |
1373 | meshy14.MeshType = "Brick" | |
1374 | ||
1375 | centralpart15 = it("Part",centralpart) | |
1376 | centralpart15.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(180),0) | |
1377 | centralpart15.Anchored = true | |
1378 | centralpart15.Transparency = 0.5 | |
1379 | centralpart15.BrickColor = origcolor | |
1380 | centralpart15.Material = "Neon" | |
1381 | centralpart15.Size = vt(0.5,1,0.5) | |
1382 | centralpart15.CanCollide = false | |
1383 | ||
1384 | meshy15 = Instance.new("SpecialMesh", centralpart15) | |
1385 | meshy15.Scale = vt(1,0.035,1.075) | |
1386 | meshy15.MeshType = "Brick" | |
1387 | ||
1388 | centralparto = it("Part",centralpart) | |
1389 | centralparto.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(0),0) | |
1390 | centralparto.Anchored = true | |
1391 | centralparto.Transparency = 0.5 | |
1392 | centralparto.BrickColor = BrickColor.new("Really black") | |
1393 | centralparto.Material = "Neon" | |
1394 | centralparto.Size = vt(0.5,1,0.5) | |
1395 | centralparto.CanCollide = false | |
1396 | ||
1397 | meshyo = Instance.new("SpecialMesh", centralparto) | |
1398 | meshyo.Scale = vt(1.05,0.05,0.25) | |
1399 | meshyo.MeshType = "Sphere" | |
1400 | ||
1401 | centralparto2 = it("Part",centralpart) | |
1402 | centralparto2.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(90),0) | |
1403 | centralparto2.Anchored = true | |
1404 | centralparto2.Transparency = 0.5 | |
1405 | centralparto2.BrickColor = BrickColor.new("Really black") | |
1406 | centralparto2.Material = "Neon" | |
1407 | centralparto2.Size = vt(0.5,1,0.5) | |
1408 | centralparto2.CanCollide = false | |
1409 | ||
1410 | meshyo2 = Instance.new("SpecialMesh", centralparto2) | |
1411 | meshyo2.Scale = vt(1.05,0.05,0.25) | |
1412 | meshyo2.MeshType = "Sphere" | |
1413 | ||
1414 | centralparto3 = it("Part",centralpart) | |
1415 | centralparto3.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(45),0) | |
1416 | centralparto3.Anchored = true | |
1417 | centralparto3.Transparency = 0.5 | |
1418 | centralparto3.BrickColor = BrickColor.new("Maroon") | |
1419 | centralparto3.Material = "Neon" | |
1420 | centralparto3.Size = vt(0.5,1,0.5) | |
1421 | centralparto3.CanCollide = false | |
1422 | ||
1423 | meshyo3 = Instance.new("SpecialMesh", centralparto3) | |
1424 | meshyo3.Scale = vt(1.05,0.075,0.25) | |
1425 | meshyo3.MeshType = "Sphere" | |
1426 | ||
1427 | centralparto4 = it("Part",centralpart) | |
1428 | centralparto4.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(135),0) | |
1429 | centralparto4.Anchored = true | |
1430 | centralparto4.Transparency = 0.5 | |
1431 | centralparto4.BrickColor = BrickColor.new("Maroon") | |
1432 | centralparto4.Material = "Neon" | |
1433 | centralparto4.Size = vt(0.5,1,0.5) | |
1434 | centralparto4.CanCollide = false | |
1435 | ||
1436 | meshyo4 = Instance.new("SpecialMesh", centralparto4) | |
1437 | meshyo4.Scale = vt(1.05,0.075,0.25) | |
1438 | meshyo4.MeshType = "Sphere" | |
1439 | ||
1440 | eff = Instance.new("ParticleEmitter",centralpart) | |
1441 | eff.Texture = "http://www.roblox.com/asset/?id=243664672" | |
1442 | eff.LightEmission = 0.75 | |
1443 | eff.Color = ColorSequence.new(Color3.new(255,0,0)) | |
1444 | eff.Lifetime = NumberRange.new(2.5) | |
1445 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1446 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.45,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1447 | eff.Acceleration = Vector3.new(0,-75,0) | |
1448 | eff.Rotation = NumberRange.new(-500,500) | |
1449 | eff.VelocitySpread = 90 | |
1450 | eff.RotSpeed = NumberRange.new(-500,500) | |
1451 | ||
1452 | ||
1453 | ogsize = meshy.Scale | |
1454 | ogsize2 = meshy2.Scale | |
1455 | ogsize3 = meshy3.Scale | |
1456 | ogsize4 = meshy4.Scale | |
1457 | ogsize5 = meshy5.Scale | |
1458 | ogsize6 = meshy6.Scale | |
1459 | ogsize7 = meshy7.Scale | |
1460 | ogsize8 = meshy8.Scale | |
1461 | ogsize9 = meshy9.Scale | |
1462 | ogsize10 = meshy10.Scale | |
1463 | ogsize11 = meshy11.Scale | |
1464 | ogsize12 = meshy12.Scale | |
1465 | ogsize13 = meshy13.Scale | |
1466 | ogsize14 = meshy14.Scale | |
1467 | ogsize15 = meshy15.Scale | |
1468 | ||
1469 | ogsizeo = meshyo.Scale | |
1470 | ogsizeo2 = meshyo2.Scale | |
1471 | ogsizeo3 = meshyo3.Scale | |
1472 | ogsizeo4 = meshyo4.Scale | |
1473 | end | |
1474 | meshy.Scale = meshy.Scale:lerp(Vector3.new(ogsize.X+sound.PlaybackLoudness/600*3.5,ogsize.Y+sound.PlaybackLoudness/600*3.5,ogsize.Z+sound.PlaybackLoudness/525*3.5),0.8) | |
1475 | meshy2.Scale = meshy2.Scale:lerp(Vector3.new(ogsize2.X+sound.PlaybackLoudness/500*3.5,ogsize2.Y+sound.PlaybackLoudness/500*3.5,ogsize2.Z+sound.PlaybackLoudness/500*3.5),0.8) | |
1476 | meshy3.Scale = meshy3.Scale:lerp(Vector3.new(1,0.035,ogsize3.Z+sound.PlaybackLoudness/100*7),0.8) | |
1477 | meshy4.Scale = meshy4.Scale:lerp(Vector3.new(1,0.035,ogsize4.Z+sound.PlaybackLoudness/100*7.25),0.8) | |
1478 | meshy5.Scale = meshy5.Scale:lerp(Vector3.new(1,0.035,ogsize5.Z+sound.PlaybackLoudness/100*7.5),0.8) | |
1479 | meshy6.Scale = meshy6.Scale:lerp(Vector3.new(1,0.035,ogsize6.Z+sound.PlaybackLoudness/100*7.75),0.8) | |
1480 | meshy7.Scale = meshy7.Scale:lerp(Vector3.new(1,0.035,ogsize7.Z+sound.PlaybackLoudness/100*8),0.8) | |
1481 | meshy8.Scale = meshy8.Scale:lerp(Vector3.new(1,0.035,ogsize8.Z+sound.PlaybackLoudness/100*8.25),0.8) | |
1482 | meshy9.Scale = meshy9.Scale:lerp(Vector3.new(1,0.035,ogsize9.Z+sound.PlaybackLoudness/100*8.5),0.8) | |
1483 | meshy10.Scale = meshy10.Scale:lerp(Vector3.new(1,0.035,ogsize10.Z+sound.PlaybackLoudness/100*8.75),0.8) | |
1484 | meshy11.Scale = meshy11.Scale:lerp(Vector3.new(1,0.035,ogsize11.Z+sound.PlaybackLoudness/100*9),0.8) | |
1485 | meshy12.Scale = meshy12.Scale:lerp(Vector3.new(1,0.035,ogsize12.Z+sound.PlaybackLoudness/100*9.25),0.8) | |
1486 | meshy13.Scale = meshy13.Scale:lerp(Vector3.new(1,0.035,ogsize13.Z+sound.PlaybackLoudness/100*9.5),0.8) | |
1487 | meshy14.Scale = meshy14.Scale:lerp(Vector3.new(1,0.035,ogsize14.Z+sound.PlaybackLoudness/100*9.75),0.8) | |
1488 | meshy15.Scale = meshy15.Scale:lerp(Vector3.new(1,0.035,ogsize15.Z+sound.PlaybackLoudness/100*10),0.8) | |
1489 | ||
1490 | meshyo.Scale = meshyo.Scale:lerp(Vector3.new(ogsizeo.X+sound.PlaybackLoudness/250*7.5,0.15,ogsizeo.Z+sound.PlaybackLoudness/1000*250),0.8) | |
1491 | meshyo2.Scale = meshyo2.Scale:lerp(Vector3.new(ogsizeo2.X+sound.PlaybackLoudness/250*7.5,0.15,ogsizeo2.Z+sound.PlaybackLoudness/1000*250),0.8) | |
1492 | meshyo3.Scale = meshyo3.Scale:lerp(Vector3.new(ogsizeo3.X+sound.PlaybackLoudness/250*5,0.225,ogsizeo3.Z+sound.PlaybackLoudness/500*100),0.8) | |
1493 | meshyo4.Scale = meshyo4.Scale:lerp(Vector3.new(ogsizeo4.X+sound.PlaybackLoudness/250*5,0.225,ogsizeo4.Z+sound.PlaybackLoudness/500*100),0.8) | |
1494 | centralpart.Position = root.Position + Vector3.new(0,5,0) | |
1495 | centralpart3.Position = centralpart.Position | |
1496 | centralpart3.CFrame = centralpart3.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0) | |
1497 | centralpart4.Position = centralpart.Position | |
1498 | centralpart4.CFrame = centralpart4.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0) | |
1499 | centralpart5.Position = centralpart.Position | |
1500 | centralpart5.CFrame = centralpart5.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0) | |
1501 | centralpart6.Position = centralpart.Position | |
1502 | centralpart6.CFrame = centralpart6.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0) | |
1503 | centralpart7.Position = centralpart.Position | |
1504 | centralpart7.CFrame = centralpart7.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0) | |
1505 | centralpart8.Position = centralpart.Position | |
1506 | centralpart8.CFrame = centralpart8.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0) | |
1507 | centralpart9.Position = centralpart.Position | |
1508 | centralpart9.CFrame = centralpart9.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0) | |
1509 | centralpart10.Position = centralpart.Position | |
1510 | centralpart10.CFrame = centralpart10.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0) | |
1511 | centralpart11.Position = centralpart.Position | |
1512 | centralpart11.CFrame = centralpart11.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0) | |
1513 | centralpart12.Position = centralpart.Position | |
1514 | centralpart12.CFrame = centralpart12.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0) | |
1515 | centralpart13.Position = centralpart.Position | |
1516 | centralpart13.CFrame = centralpart13.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0) | |
1517 | centralpart14.Position = centralpart.Position | |
1518 | centralpart14.CFrame = centralpart14.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0) | |
1519 | centralpart15.Position = centralpart.Position | |
1520 | centralpart15.CFrame = centralpart15.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0) | |
1521 | ||
1522 | centralparto.Position = centralpart.Position | |
1523 | centralparto.CFrame = centralparto.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/1000*75),0) | |
1524 | centralparto2.Position = centralpart.Position | |
1525 | centralparto2.CFrame = centralparto2.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/1000*75),0) | |
1526 | centralparto3.Position = centralpart.Position | |
1527 | centralparto3.CFrame = centralparto3.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/1000*15),0) | |
1528 | centralparto4.Position = centralpart.Position | |
1529 | centralparto4.CFrame = centralparto4.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/1000*15),0) | |
1530 | centralpart.CFrame = centralpart.CFrame | |
1531 | centralpart2.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/250),0) | |
1532 | centralpart2a.CFrame = centralpart2.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/250),0) | |
1533 | eff.Rate = sound.PlaybackLoudness/3 | |
1534 | eff.Speed = NumberRange.new(sound.PlaybackLoudness/5) | |
1535 | eff.Color = ColorSequence.new(Color3.new(sound.PlaybackLoudness/255,0,0)) | |
1536 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,sound.PlaybackLoudness/75,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1537 | centralpart2a.Color = Color3.new(sound.PlaybackLoudness/400,0,0) | |
1538 | centralparto3.Color = Color3.new(sound.PlaybackLoudness/375,0,0) | |
1539 | centralparto4.Color = Color3.new(sound.PlaybackLoudness/375,0,0) | |
1540 | ||
1541 | tecks2.TextColor3 = Color3.fromRGB(255,0,0) | |
1542 | tecks2.TextStrokeColor3 = Color3.fromHSV(0,0,0) | |
1543 | end | |
1544 | Visualiserpos.Position = Vector3.new(5+(max/10),0,0) | |
1545 | Visualiserpos2.Position = Vector3.new(-5-(max/10),0,0) | |
1546 | Main:BreakJoints() | |
1547 | Main.Anchored = false | |
1548 | TextButton14.Text = math.ceil((1-(TextButton13.Position.Y.Offset/50))*40)/40 | |
1549 | TextButton34.Text = "Style: "..vismode | |
1550 | asdmax = max | |
1551 | asdvolume = TextButton9.Position | |
1552 | asdpitch = TextButton13.Position | |
1553 | asddist = TextButton30.Position | |
1554 | asdhi = TextButton26.Position | |
1555 | asdmi = TextButton22.Position | |
1556 | asdlo = TextButton18.Position | |
1557 | asdtext = TextBox3.Text | |
1558 | if synctarget == nil then | |
1559 | foundsound = false | |
1560 | else | |
1561 | if foundsound == false then | |
1562 | print("Trying to Sync...") | |
1563 | scan(synctarget.Character) | |
1564 | else | |
1565 | asdid = sound.SoundId | |
1566 | end | |
1567 | end | |
1568 | end |