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