SHOW:
|
|
- or go back to the newest paste.
1 | wait(0.2) | |
2 | ||
3 | ||
4 | warn([[SpectrumGlitcher v5 AWAKENED Loaded. | |
5 | The super switcher. | |
6 | Velnorum is one of the first wielders. | |
7 | ||
8 | Created, Reworked by NoobyGames12 | |
9 | Edited by GodzPlaysRB | |
10 | Edited by wanTH092 (Gam_Filano CH) | |
11 | SpectrumGlitcher Developers ^^^ | |
12 | ]]) | |
13 | ||
14 | ||
15 | ------------- ORIGINAL WIELDER OC: Velnorum | |
16 | print([[Icons: | |
17 | ! = New | |
18 | ? = Spoilers | |
19 | * = Exclusivity | |
20 | C = Changes | |
21 | ||
22 | ]]) | |
23 | warn([[V 4.35 Update Log: | |
24 | ! - Renamed Betrayal mode to Insanity mode () | |
25 | ||
26 | ! - Added a ChildLock for the R#$pe move. | |
27 | ! - Changed some mode's animations. | |
28 | ]]) | |
29 | --- its obs smooth af do not touch | |
30 | ---- Sources and functions might be taken from others | |
31 | plr = game:service'Players'.LocalPlayer | |
32 | char = plr.Character | |
33 | hum = char.Humanoid | |
34 | local cam = game.Workspace.CurrentCamera | |
35 | Camera = cam | |
36 | local CamInterrupt = false | |
37 | local TwoD = false | |
38 | local TargetInfo = {nil, nil} | |
39 | ||
40 | local KiddoLocko = true --Determines whether or not the r$#e move will work. | |
41 | ||
42 | cam.CameraType = "Custom" | |
43 | t = char.Torso | |
44 | h = char.Head | |
45 | ra = char["Right Arm"] | |
46 | la = char["Left Arm"] | |
47 | rl = char["Right Leg"] | |
48 | ll = char["Left Leg"] | |
49 | tors = char.Torso | |
50 | lleg = char["Left Leg"] | |
51 | root = char.HumanoidRootPart | |
52 | local mouse = plr:GetMouse() | |
53 | hed = char.Head | |
54 | rleg = char["Right Leg"] | |
55 | rarm = char["Right Arm"] | |
56 | larm = char["Left Arm"] | |
57 | radian = math.rad | |
58 | random = math.random | |
59 | Vec3 = Vector3.new | |
60 | Inst = Instance.new | |
61 | cFrame = CFrame.new | |
62 | Euler = CFrame.fromEulerAnglesXYZ | |
63 | vt = Vector3.new | |
64 | bc = BrickColor.new | |
65 | br = BrickColor.random | |
66 | it = Instance.new | |
67 | cf = CFrame.new | |
68 | local Player_Size = 0 | |
69 | cam = game.Workspace.CurrentCamera | |
70 | CF = CFrame.new | |
71 | angles = CFrame.Angles | |
72 | attack = false | |
73 | Euler = CFrame.fromEulerAnglesXYZ | |
74 | Rad = math.rad | |
75 | IT = Instance.new | |
76 | BrickC = BrickColor.new | |
77 | Cos = math.cos | |
78 | Acos = math.acos | |
79 | Sin = math.sin | |
80 | Asin = math.asin | |
81 | Abs = math.abs | |
82 | Mrandom = math.random | |
83 | Floor = math.floor | |
84 | IT = Instance.new | |
85 | CF = CFrame.new | |
86 | VT = Vector3.new | |
87 | RAD = math.rad | |
88 | C3 = Color3.new | |
89 | UD2 = UDim2.new | |
90 | BRICKC = BrickColor.new | |
91 | ANGLES = CFrame.Angles | |
92 | EULER = CFrame.fromEulerAnglesXYZ | |
93 | COS = math.cos | |
94 | ACOS = math.acos | |
95 | SIN = math.sin | |
96 | ASIN = math.asin | |
97 | ABS = math.abs | |
98 | MRANDOM = math.random | |
99 | FLOOR = math.floor | |
100 | local SINE = 0 | |
101 | ||
102 | local Booleans = { | |
103 | CamFollow = true, | |
104 | GyroUse = true | |
105 | } | |
106 | ||
107 | function lerp(object, newCFrame, alpha) | |
108 | return object:lerp(newCFrame, alpha) | |
109 | end | |
110 | ||
111 | local Directer = Inst("BodyGyro", root) | |
112 | Directer.MaxTorque = Vec3(0, 0, 0) | |
113 | Directer.P = 600000 | |
114 | local CPart = Inst("Part") | |
115 | CPart.Anchored = true | |
116 | CPart.CanCollide = false | |
117 | CPart.Locked = true | |
118 | CPart.Transparency = 1 | |
119 | ||
120 | local rainbowmode = false | |
121 | local chaosmode = false | |
122 | ||
123 | local kan = Instance.new("Sound",tors) | |
124 | kan.Volume = 0.85 | |
125 | kan.TimePosition = 0 | |
126 | kan.PlaybackSpeed = 1 | |
127 | kan.Pitch = 1 | |
128 | kan.SoundId = "rbxassetid://1564523997" | |
129 | kan.Name = "wrecked" | |
130 | kan.Looped = true | |
131 | kan:Play() | |
132 | ||
133 | local currentThemePlaying = kan.SoundId | |
134 | local currentPitch = kan.Pitch | |
135 | local currentVol = kan.Volume | |
136 | function newTheme(ID,timepos,pitch,vol) | |
137 | local kanz = kan | |
138 | --kanz:Stop() | |
139 | kanz.Volume = vol | |
140 | --kanz.TimePosition = timepos | |
141 | kanz.PlaybackSpeed = pitch | |
142 | kanz.Pitch = pitch | |
143 | kanz.SoundId = ID | |
144 | kanz.Name = "wrecked" | |
145 | kanz.Looped = true | |
146 | currentThemePlaying = kanz.SoundId | |
147 | currentVol = kanz.Volume | |
148 | currentPitch = kanz.Pitch | |
149 | --kanz:Play() | |
150 | --coroutine.resume(coroutine.create(function() | |
151 | --wait(0.05) | |
152 | --end)) | |
153 | end | |
154 | ||
155 | ||
156 | function newThemeCust(ID,timepos,pitch,vol) | |
157 | local kanz = kan | |
158 | kanz:Stop() | |
159 | kanz.Volume = vol | |
160 | kanz.TimePosition = timepos | |
161 | kanz.PlaybackSpeed = pitch | |
162 | kanz.Pitch = pitch | |
163 | kanz.SoundId = ID | |
164 | kanz.Name = "wrecked" | |
165 | kanz.Looped = true | |
166 | currentThemePlaying = kanz.SoundId | |
167 | currentVol = kanz.Volume | |
168 | currentPitch = kanz.Pitch | |
169 | kanz:Play() | |
170 | coroutine.resume(coroutine.create(function() | |
171 | wait(0.05) | |
172 | end)) | |
173 | end | |
174 | ||
175 | local mutedtog = false | |
176 | ||
177 | function CameraEnshaking(Length,Intensity) | |
178 | coroutine.resume(coroutine.create(function() | |
179 | local intensity = 1*Intensity | |
180 | local rotM = 0.01*Intensity | |
181 | for i = 0, Length, 0.1 do | |
182 | swait() | |
183 | intensity = intensity - 0.05*Intensity/Length | |
184 | rotM = rotM - 0.0005*Intensity/Length | |
185 | hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) | |
186 | cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM) | |
187 | end | |
188 | Humanoid.CameraOffset = Vec3(0, 0, 0) | |
189 | end)) | |
190 | end | |
191 | CamShake=function(Part,Distan,Power,Times) | |
192 | local de=Part.Position | |
193 | for i,v in pairs(workspace:children()) do | |
194 | if v:IsA("Model") and v:findFirstChild("Humanoid") then | |
195 | for _,c in pairs(v:children()) do | |
196 | if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then | |
197 | local Noob=v.Humanoid | |
198 | if Noob~=nil then | |
199 | coroutine.resume(coroutine.create(function() | |
200 | FV = Instance.new("BoolValue", Noob) | |
201 | FV.Name = "CameraShake" | |
202 | for ShakeNum=1,Times do | |
203 | swait() | |
204 | local ef=Power | |
205 | if ef>=1 then | |
206 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
207 | else | |
208 | ef=Power*10 | |
209 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
210 | end | |
211 | end | |
212 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
213 | FV:Destroy() | |
214 | end)) | |
215 | CameraShake(Times, Power, Noob) | |
216 | end | |
217 | end | |
218 | end | |
219 | end | |
220 | end | |
221 | end | |
222 | ||
223 | local toggleTag = true | |
224 | local bilguit = Instance.new("BillboardGui", hed) | |
225 | bilguit.Adornee = nil | |
226 | bilguit.Name = "ModeName" | |
227 | bilguit.Size = UDim2.new(4, 0, 1.2, 0) | |
228 | bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0) | |
229 | local modet = Instance.new("TextLabel", bilguit) | |
230 | modet.Size = UDim2.new(10/2, 0, 7/2, 0) | |
231 | modet.FontSize = "Size8" | |
232 | modet.TextScaled = true | |
233 | modet.TextTransparency = 0 | |
234 | modet.BackgroundTransparency = 1 | |
235 | modet.TextTransparency = 0 | |
236 | modet.TextStrokeTransparency = 0 | |
237 | modet.Font = "Antique" | |
238 | modet.TextStrokeColor3 = Color3.new(0,0,0) | |
239 | modet.TextColor3 = Color3.new(0,0,0) | |
240 | modet.Text = "Solitude" | |
241 | ||
242 | ||
243 | function chatfunc(text,color,typet,font,timeex) | |
244 | local chat = coroutine.wrap(function() | |
245 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
246 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
247 | end | |
248 | local naeeym2 = Instance.new("BillboardGui",Character) | |
249 | naeeym2.Size = UDim2.new(0,100,0,40) | |
250 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
251 | naeeym2.Adornee = Character.Head | |
252 | naeeym2.Name = "TalkingBillBoard" | |
253 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
254 | tecks2.BackgroundTransparency = 1 | |
255 | tecks2.BorderSizePixel = 0 | |
256 | tecks2.Text = "" | |
257 | tecks2.Font = font | |
258 | tecks2.TextSize = 30 | |
259 | tecks2.TextStrokeTransparency = 0 | |
260 | tecks2.TextColor3 = color | |
261 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
262 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
263 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
264 | tecks3.BackgroundTransparency = 1 | |
265 | tecks3.BorderSizePixel = 0 | |
266 | tecks3.Text = "" | |
267 | tecks3.Font = font | |
268 | tecks3.TextSize = 30 | |
269 | tecks3.TextStrokeTransparency = 0 | |
270 | if typet == "Inverted" then | |
271 | tecks3.TextColor3 = Color3.new(0,0,0) | |
272 | tecks3.TextStrokeColor3 = color | |
273 | elseif typet == "Normal" then | |
274 | tecks3.TextColor3 = color | |
275 | tecks3.TextStrokeColor3 = Color3.new(0,0,0) | |
276 | end | |
277 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
278 | coroutine.resume(coroutine.create(function() | |
279 | while true do | |
280 | swait(1) | |
281 | if chaosmode == true then | |
282 | tecks2.TextColor3 = BrickColor.random().Color | |
283 | tecks3.TextStrokeColor3 = BrickColor.random().Color | |
284 | end | |
285 | end | |
286 | end)) | |
287 | modet.TextTransparency = modet.TextTransparency + 1 | |
288 | modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1 | |
289 | for i = 0, 74*timeex do | |
290 | swait() | |
291 | modet.TextTransparency = 1 | |
292 | modet.TextStrokeTransparency = 1 | |
293 | tecks2.Text = text | |
294 | tecks3.Text = text | |
295 | end | |
296 | local randomrot = math.random(1,2) | |
297 | if randomrot == 1 then | |
298 | for i = 1, 50 do | |
299 | swait() | |
300 | tecks2.Text = text | |
301 | tecks3.Text = text | |
302 | modet.TextTransparency = modet.TextTransparency - .02 | |
303 | modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02 | |
304 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
305 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
306 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
307 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
308 | end | |
309 | elseif randomrot == 2 then | |
310 | for i = 1, 50 do | |
311 | swait() | |
312 | tecks2.Text = text | |
313 | tecks3.Text = text | |
314 | modet.TextTransparency = modet.TextTransparency - .02 | |
315 | modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02 | |
316 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
317 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
318 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
319 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
320 | end | |
321 | end | |
322 | modet.TextTransparency = 0 | |
323 | modet.TextStrokeTransparency = 0 | |
324 | if toggleTag == false then | |
325 | modet.TextTransparency = 1 | |
326 | modet.TextStrokeTransparency = 1 | |
327 | end | |
328 | naeeym2:Destroy() | |
329 | end) | |
330 | chat() | |
331 | end | |
332 | ||
333 | function bosschatfunc(text,color,watval) | |
334 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
335 | coroutine.resume(coroutine.create(function() | |
336 | if v.PlayerGui:FindFirstChild("Dialog")~= nil then | |
337 | v.PlayerGui:FindFirstChild("Dialog"):destroy() | |
338 | end | |
339 | local scrg = Instance.new("ScreenGui",v.PlayerGui) | |
340 | CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1) | |
341 | scrg.Name = "Dialog" | |
342 | local txtlb = Instance.new("TextLabel",scrg) | |
343 | txtlb.Text = "" | |
344 | txtlb.Font = "Bodoni" | |
345 | txtlb.TextColor3 = Color3.new(0,0,0) | |
346 | txtlb.TextStrokeTransparency = 0 | |
347 | txtlb.BackgroundTransparency = 0.75 | |
348 | txtlb.BackgroundColor3 = Color3.new(0,0,0) | |
349 | txtlb.TextStrokeColor3 = color | |
350 | txtlb.TextScaled = true | |
351 | txtlb.Size = UDim2.new(1,0,0.25,0) | |
352 | txtlb.TextXAlignment = "Left" | |
353 | txtlb.Position = UDim2.new(0,0,0.75 + 1,0) | |
354 | local txtlb2 = Instance.new("TextLabel",scrg) | |
355 | txtlb2.Text = plr.Name | |
356 | txtlb2.Font = "Arcade" | |
357 | txtlb2.TextColor3 = Color3.new(0,0,0) | |
358 | txtlb2.TextStrokeTransparency = 0 | |
359 | txtlb2.BackgroundTransparency = 1 | |
360 | txtlb2.TextStrokeColor3 = color | |
361 | txtlb2.TextSize = 40 | |
362 | txtlb2.Size = UDim2.new(1,0,0.25,0) | |
363 | txtlb2.TextXAlignment = "Left" | |
364 | txtlb2.Position = UDim2.new(0,0,1,0) | |
365 | local fvalen = 0.55 | |
366 | local fval = -0.49 | |
367 | coroutine.resume(coroutine.create(function() | |
368 | while true do | |
369 | swait() | |
370 | if chaosmode == true then | |
371 | txtlb.Rotation = math.random(-1,1) | |
372 | txtlb2.Rotation = math.random(-1,1) | |
373 | txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5) | |
374 | txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5) | |
375 | txtlb.TextStrokeColor3 = BrickColor.random().Color | |
376 | txtlb2.TextStrokeColor3 = BrickColor.random().Color | |
377 | end | |
378 | end | |
379 | end)) | |
380 | coroutine.resume(coroutine.create(function() | |
381 | while true do | |
382 | swait() | |
383 | if scrg.Parent ~= nil then | |
384 | fvalen = fvalen - 0.0001 | |
385 | elseif scrg.Parent == nil then | |
386 | break | |
387 | end | |
388 | end | |
389 | end)) | |
390 | local flol = 1.75 | |
391 | local flil = 1.6 | |
392 | coroutine.resume(coroutine.create(function() | |
393 | for i = 0, 9 do | |
394 | swait() | |
395 | fval = fval + 0.05 | |
396 | flol = flol - 0.1 | |
397 | flil = flil - 0.1 | |
398 | txtlb.Text = "" | |
399 | txtlb.Position = UDim2.new(0,0,flol,0) | |
400 | txtlb2.Position = UDim2.new(0,0,flil,0) | |
401 | end | |
402 | txtlb.Text = text | |
403 | wait(watval) | |
404 | local valinc = 0 | |
405 | for i = 0, 99 do | |
406 | swait() | |
407 | valinc = valinc + 0.0001 | |
408 | flol = flol + valinc | |
409 | flil = flil + valinc | |
410 | txtlb.Rotation = txtlb.Rotation + valinc*20 | |
411 | txtlb2.Rotation = txtlb2.Rotation - valinc*50 | |
412 | txtlb.Position = UDim2.new(0,0,flol,0) | |
413 | txtlb2.Position = UDim2.new(0,0,flil,0) | |
414 | txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01 | |
415 | txtlb.TextTransparency = txtlb.TextTransparency + 0.01 | |
416 | txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01 | |
417 | txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01 | |
418 | txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025 | |
419 | end | |
420 | scrg:Destroy() | |
421 | end)) | |
422 | end)) | |
423 | end | |
424 | end | |
425 | ||
426 | ||
427 | local Create = LoadLibrary("RbxUtility").Create | |
428 | ||
429 | CFuncs = { | |
430 | ["Part"] = { | |
431 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
432 | local Part = Create("Part"){ | |
433 | Parent = Parent, | |
434 | Reflectance = Reflectance, | |
435 | Transparency = Transparency, | |
436 | CanCollide = false, | |
437 | Locked = true, | |
438 | BrickColor = BrickColor.new(tostring(BColor)), | |
439 | Name = Name, | |
440 | Size = Size, | |
441 | Material = Material, | |
442 | } | |
443 | RemoveOutlines(Part) | |
444 | return Part | |
445 | end; | |
446 | }; | |
447 | ||
448 | ["Mesh"] = { | |
449 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
450 | local Msh = Create(Mesh){ | |
451 | Parent = Part, | |
452 | Offset = OffSet, | |
453 | Scale = Scale, | |
454 | } | |
455 | if Mesh == "SpecialMesh" then | |
456 | Msh.MeshType = MeshType | |
457 | Msh.MeshId = MeshId | |
458 | end | |
459 | return Msh | |
460 | end; | |
461 | }; | |
462 | ||
463 | ["Mesh"] = { | |
464 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
465 | local Msh = Create(Mesh){ | |
466 | Parent = Part, | |
467 | Offset = OffSet, | |
468 | Scale = Scale, | |
469 | } | |
470 | if Mesh == "SpecialMesh" then | |
471 | Msh.MeshType = MeshType | |
472 | Msh.MeshId = MeshId | |
473 | end | |
474 | return Msh | |
475 | end; | |
476 | }; | |
477 | ||
478 | ["Weld"] = { | |
479 | Create = function(Parent, Part0, Part1, C0, C1) | |
480 | local Weld = Create("Weld"){ | |
481 | Parent = Parent, | |
482 | Part0 = Part0, | |
483 | Part1 = Part1, | |
484 | C0 = C0, | |
485 | C1 = C1, | |
486 | } | |
487 | return Weld | |
488 | end; | |
489 | }; | |
490 | ||
491 | ["Sound"] = { | |
492 | Create = function(id, par, vol, pit) | |
493 | coroutine.resume(coroutine.create(function() | |
494 | local S = Create("Sound"){ | |
495 | Volume = vol, | |
496 | Name = "EffectSoundo", | |
497 | Pitch = pit or 1, | |
498 | SoundId = id, | |
499 | Parent = par or workspace, | |
500 | } | |
501 | wait() | |
502 | S:play() | |
503 | game:GetService("Debris"):AddItem(S, 10) | |
504 | end)) | |
505 | end; | |
506 | }; | |
507 | ||
508 | ["TimeSound"] = { | |
509 | Create = function(id, par, vol, pit, timepos) | |
510 | coroutine.resume(coroutine.create(function() | |
511 | local S = Create("Sound"){ | |
512 | Volume = vol, | |
513 | Name = "EffectSoundo", | |
514 | Pitch = pit or 1, | |
515 | SoundId = id, | |
516 | TimePosition = timepos, | |
517 | Parent = par or workspace, | |
518 | } | |
519 | wait() | |
520 | S:play() | |
521 | game:GetService("Debris"):AddItem(S, 10) | |
522 | end)) | |
523 | end; | |
524 | }; | |
525 | ["EchoSound"] = { | |
526 | Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl) | |
527 | coroutine.resume(coroutine.create(function() | |
528 | local Sas = Create("Sound"){ | |
529 | Volume = vol, | |
530 | Name = "EffectSoundo", | |
531 | Pitch = pit or 1, | |
532 | SoundId = id, | |
533 | TimePosition = timepos, | |
534 | Parent = par or workspace, | |
535 | } | |
536 | local E = Create("EchoSoundEffect"){ | |
537 | Delay = echodelay, | |
538 | Name = "Echo", | |
539 | Feedback = fedb, | |
540 | DryLevel = dryl, | |
541 | Parent = Sas, | |
542 | } | |
543 | wait() | |
544 | Sas:play() | |
545 | game:GetService("Debris"):AddItem(Sas, delays) | |
546 | end)) | |
547 | end; | |
548 | }; | |
549 | ||
550 | ["LongSound"] = { | |
551 | Create = function(id, par, vol, pit) | |
552 | coroutine.resume(coroutine.create(function() | |
553 | local S = Create("Sound"){ | |
554 | Volume = vol, | |
555 | Pitch = pit or 1, | |
556 | SoundId = id, | |
557 | Parent = par or workspace, | |
558 | } | |
559 | wait() | |
560 | S:play() | |
561 | game:GetService("Debris"):AddItem(S, 60) | |
562 | end)) | |
563 | end; | |
564 | }; | |
565 | ||
566 | ["ParticleEmitter"] = { | |
567 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
568 | local fp = Create("ParticleEmitter"){ | |
569 | Parent = Parent, | |
570 | Color = ColorSequence.new(Color1, Color2), | |
571 | LightEmission = LightEmission, | |
572 | Size = Size, | |
573 | Texture = Texture, | |
574 | Transparency = Transparency, | |
575 | ZOffset = ZOffset, | |
576 | Acceleration = Accel, | |
577 | Drag = Drag, | |
578 | LockedToPart = LockedToPart, | |
579 | VelocityInheritance = VelocityInheritance, | |
580 | EmissionDirection = EmissionDirection, | |
581 | Enabled = Enabled, | |
582 | Lifetime = LifeTime, | |
583 | Rate = Rate, | |
584 | Rotation = Rotation, | |
585 | RotSpeed = RotSpeed, | |
586 | Speed = Speed, | |
587 | VelocitySpread = VelocitySpread, | |
588 | } | |
589 | return fp | |
590 | end; | |
591 | }; | |
592 | ||
593 | CreateTemplate = { | |
594 | ||
595 | }; | |
596 | } | |
597 | ||
598 | ||
599 | ||
600 | New = function(Object, Parent, Name, Data) | |
601 | local Object = Instance.new(Object) | |
602 | for Index, Value in pairs(Data or {}) do | |
603 | Object[Index] = Value | |
604 | end | |
605 | Object.Parent = Parent | |
606 | Object.Name = Name | |
607 | return Object | |
608 | end | |
609 | local halocolor = BrickColor.new("Pastel light blue") | |
610 | local halocolor2 = BrickColor.new("Cool yellow") | |
611 | local starcolor = BrickColor.new("Bright yellow") | |
612 | local lunacolor = BrickColor.new("Navy blue") | |
613 | local lunacolor2 = BrickColor.new("Bright blue") | |
614 | local wepcolor = BrickColor.new("Really black") | |
615 | local maincolor = BrickColor.new("Really black") | |
616 | local m = Instance.new("Model",char) | |
617 | local m2 = Instance.new("Model",char) | |
618 | local m3 = Instance.new("Model",char) | |
619 | local mw1 = Instance.new("Model",char) | |
620 | local mw2 = Instance.new("Model",char) | |
621 | ||
622 | ||
623 | gui = function(GuiType, parent, text, backtrans, backcol, pos, size) | |
624 | local gui = it(GuiType) | |
625 | gui.Parent = parent | |
626 | gui.Text = text | |
627 | gui.BackgroundTransparency = backtrans | |
628 | gui.BackgroundColor3 = backcol | |
629 | gui.SizeConstraint = "RelativeXY" | |
630 | gui.TextXAlignment = "Center" | |
631 | gui.TextYAlignment = "Center" | |
632 | gui.Position = pos | |
633 | gui.Size = size | |
634 | gui.Font = "SourceSans" | |
635 | gui.FontSize = "Size14" | |
636 | gui.TextWrapped = false | |
637 | gui.TextStrokeTransparency = 0 | |
638 | gui.TextColor = BrickColor.new("White") | |
639 | return gui | |
640 | end | |
641 | --------------------------- GUI STUFF | |
642 | local basgui = it("GuiMain") | |
643 | basgui.Parent = plr.PlayerGui | |
644 | basgui.Name = "VISgui" | |
645 | local fullscreenz = it("Frame") | |
646 | fullscreenz.Parent = basgui | |
647 | fullscreenz.BackgroundColor3 = Color3.new(0,0,0) | |
648 | fullscreenz.BackgroundTransparency = 1 | |
649 | fullscreenz.BorderColor3 = Color3.new(0,0,0) | |
650 | fullscreenz.Size = UDim2.new(1, 0, 1, 0) | |
651 | fullscreenz.Position = UDim2.new(0, 0, 0, 0) | |
652 | local imgl2 = Instance.new("ImageLabel",fullscreenz) | |
653 | imgl2.BackgroundTransparency = 1 | |
654 | imgl2.BorderSizePixel = 0 | |
655 | imgl2.ImageTransparency = 0.5 | |
656 | imgl2.ImageColor3 = Color3.new(0,0,0) | |
657 | imgl2.Position = UDim2.new(0.75,-200,0.55,-200) | |
658 | imgl2.Size = UDim2.new(0,1000,0,1000) | |
659 | imgl2.Image = "rbxassetid://2325939897" | |
660 | local techc = imgl2:Clone() | |
661 | techc.Parent = fullscreenz | |
662 | techc.ImageTransparency = 0 | |
663 | techc.Size = UDim2.new(0,900,0,900) | |
664 | techc.Position = UDim2.new(0.75,-150,0.55,-150) | |
665 | techc.ImageColor3 = Color3.new(0,0,0) | |
666 | techc.Image = "rbxassetid://2273224484" | |
667 | local circl = imgl2:Clone() | |
668 | circl.Parent = fullscreenz | |
669 | circl.ImageTransparency = 0 | |
670 | circl.Size = UDim2.new(0,550,0,550) | |
671 | circl.Position = UDim2.new(0.75,25,0.55,25) | |
672 | circl.ImageColor3 = Color3.new(0,0,0) | |
673 | circl.Image = "rbxassetid://2312119891" | |
674 | local circl2 = imgl2:Clone() | |
675 | circl2.Parent = fullscreenz | |
676 | circl2.ImageTransparency = 0 | |
677 | circl2.Size = UDim2.new(0,700,0,700) | |
678 | circl2.Position = UDim2.new(0.75,-50,0.55,-50) | |
679 | circl2.ImageColor3 = Color3.new(0,0,0) | |
680 | circl2.Image = "rbxassetid://2312119891" | |
681 | local imgl2b = imgl2:Clone() | |
682 | imgl2b.Parent = fullscreenz | |
683 | imgl2b.ImageTransparency = 0 | |
684 | imgl2b.Size = UDim2.new(0,800,0,800) | |
685 | imgl2b.Position = UDim2.new(0.75,-100,0.55,-100) | |
686 | imgl2b.ImageColor3 = Color3.new(0,0,0) | |
687 | local ned = Instance.new("TextLabel",fullscreenz) | |
688 | ned.ZIndex = 2 | |
689 | ned.Font = "Arcade" | |
690 | ned.BackgroundTransparency = 1 | |
691 | ned.BorderSizePixel = 0.65 | |
692 | ned.Size = UDim2.new(0.3,0,0.2,0) | |
693 | ned.Position = UDim2.new(0.7,0,0.8,0) | |
694 | ned.TextColor3 = BrickColor.new("Black").Color | |
695 | ned.TextStrokeColor3 = BrickColor.new("Really black").Color | |
696 | ned.TextScaled = true | |
697 | ned.TextStrokeTransparency = 0 | |
698 | ned.Text = "Solitude" | |
699 | ned.TextSize = 24 | |
700 | ned.Rotation = 1 | |
701 | ned.TextXAlignment = "Right" | |
702 | ned.TextYAlignment = "Bottom" | |
703 | ||
704 | local extrawingmod1 = Instance.new("Model",char) | |
705 | local extrawingmod2 = Instance.new("Model",char) | |
706 | ||
707 | function CreateParta(parent,transparency,reflectance,material,brickcolor) | |
708 | local p = Instance.new("Part") | |
709 | p.TopSurface = 0 | |
710 | p.BottomSurface = 0 | |
711 | p.Parent = parent | |
712 | p.Size = Vector3.new(0.1,0.1,0.1) | |
713 | p.Transparency = transparency | |
714 | p.Reflectance = reflectance | |
715 | p.CanCollide = false | |
716 | p.Locked = true | |
717 | p.BrickColor = brickcolor | |
718 | p.Material = material | |
719 | return p | |
720 | end | |
721 | ||
722 | function CreateMesh(parent,meshtype,x1,y1,z1) | |
723 | local mesh = Instance.new("SpecialMesh",parent) | |
724 | mesh.MeshType = meshtype | |
725 | mesh.Scale = Vector3.new(x1*10,y1*10,z1*10) | |
726 | return mesh | |
727 | end | |
728 | ||
729 | function CreateSpecialMesh(parent,meshid,x1,y1,z1) | |
730 | local mesh = Instance.new("SpecialMesh",parent) | |
731 | mesh.MeshType = "FileMesh" | |
732 | mesh.MeshId = meshid | |
733 | mesh.Scale = Vector3.new(x1,y1,z1) | |
734 | return mesh | |
735 | end | |
736 | ||
737 | ||
738 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
739 | local mesh = Instance.new("SpecialMesh",parent) | |
740 | mesh.MeshType = "FileMesh" | |
741 | mesh.MeshId = meshid | |
742 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
743 | mesh.Scale = Vector3.new(x1,y1,z1) | |
744 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
745 | return mesh | |
746 | end | |
747 | ||
748 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
749 | local weld = Instance.new("Weld") | |
750 | weld.Parent = parent | |
751 | weld.Part0 = part0 | |
752 | weld.Part1 = part1 | |
753 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
754 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
755 | return weld | |
756 | end | |
757 | ||
758 | ||
759 | -------------- | |
760 | -------------- | |
761 | local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
762 | CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
763 | local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
764 | CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
765 | ||
766 | local handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
767 | CreateMesh(handle,"Brick",0,0,0) | |
768 | local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
769 | local valuaring = 10 | |
770 | for i = 0, 49 do | |
771 | valuaring = valuaring + 10 | |
772 | rn = CreateParta(mw2,0,0,"Neon",halocolor) | |
773 | CreateMesh(rn,"Brick",0.25,0.1,0.1) | |
774 | CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
775 | end | |
776 | ||
777 | handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
778 | CreateMesh(handle,"Brick",0,0,0) | |
779 | CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
780 | local valuaring = 10 | |
781 | for i = 0, 49 do | |
782 | valuaring = valuaring + 10 | |
783 | rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
784 | CreateMesh(rn,"Brick",0.5,0.2,0.2) | |
785 | CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
786 | end | |
787 | ||
788 | ||
789 | local handle = CreateParta(m,1,1,"Neon",maincolor) | |
790 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
791 | local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
792 | ||
793 | --- Left wing. | |
794 | ||
795 | local lwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
796 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
797 | local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
798 | ||
799 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
800 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
801 | CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
802 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
803 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
804 | CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
805 | A0 = Instance.new('Attachment',wed) | |
806 | A0.Position = vt(0,0.25,0.25) | |
807 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
808 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
809 | CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
810 | A1 = Instance.new('Attachment',wed) | |
811 | A1.Position = vt(0,-0.25,-2) | |
812 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
813 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
814 | CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
815 | ||
816 | tl1 = Instance.new('Trail',wed) | |
817 | tl1.Attachment0 = A1 | |
818 | tl1.Attachment1 = A0 | |
819 | tl1.Texture = "rbxassetid://2108945559" | |
820 | tl1.LightEmission = 1 | |
821 | tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
822 | tl1.Color = ColorSequence.new(BrickColor.new('Black').Color) | |
823 | tl1.Lifetime = 0.6 | |
824 | ||
825 | ||
826 | local lwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
827 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
828 | local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
829 | ||
830 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
831 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
832 | CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
833 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
834 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
835 | CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
836 | A0 = Instance.new('Attachment',wed) | |
837 | A0.Position = vt(0,0.25,0.25) | |
838 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
839 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
840 | CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
841 | A1 = Instance.new('Attachment',wed) | |
842 | A1.Position = vt(0,-0.25,-2) | |
843 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
844 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
845 | CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
846 | ||
847 | tl2 = Instance.new('Trail',wed) | |
848 | tl2.Attachment0 = A1 | |
849 | tl2.Attachment1 = A0 | |
850 | tl2.Texture = "rbxassetid://2108945559" | |
851 | tl2.LightEmission = 1 | |
852 | tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
853 | tl2.Color = ColorSequence.new(BrickColor.new('Black').Color) | |
854 | tl2.Lifetime = 0.6 | |
855 | ||
856 | local lwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
857 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
858 | local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
859 | ||
860 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
861 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
862 | CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
863 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
864 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
865 | CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
866 | A0 = Instance.new('Attachment',wed) | |
867 | A0.Position = vt(0,0.25,0.25) | |
868 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
869 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
870 | CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
871 | A1 = Instance.new('Attachment',wed) | |
872 | A1.Position = vt(0,-0.25,-2) | |
873 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
874 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
875 | CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
876 | ||
877 | tl3 = Instance.new('Trail',wed) | |
878 | tl3.Attachment0 = A1 | |
879 | tl3.Attachment1 = A0 | |
880 | tl3.Texture = "rbxassetid://2108945559" | |
881 | tl3.LightEmission = 1 | |
882 | tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
883 | tl3.Color = ColorSequence.new(BrickColor.new('Black').Color) | |
884 | tl3.Lifetime = 0.6 | |
885 | ||
886 | tl1.Enabled = false | |
887 | tl2.Enabled = false | |
888 | tl3.Enabled = false | |
889 | local lwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
890 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
891 | local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
892 | ||
893 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
894 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
895 | CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
896 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
897 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
898 | CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
899 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
900 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
901 | CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
902 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
903 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
904 | CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
905 | ||
906 | local lwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
907 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
908 | local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
909 | ||
910 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
911 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
912 | CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
913 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
914 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
915 | CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
916 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
917 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
918 | CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
919 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
920 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
921 | CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
922 | ||
923 | local lwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
924 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
925 | local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
926 | ||
927 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
928 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
929 | CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
930 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
931 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
932 | CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
933 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
934 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
935 | CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
936 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
937 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
938 | CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
939 | ||
940 | -- Right wing. | |
941 | ||
942 | local rwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
943 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
944 | local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
945 | ||
946 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
947 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
948 | CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
949 | A0 = Instance.new('Attachment',wed) | |
950 | A0.Position = vt(0,0.25,0.25) | |
951 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
952 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
953 | CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
954 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
955 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
956 | CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
957 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
958 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
959 | CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
960 | A1 = Instance.new('Attachment',wed) | |
961 | A1.Position = vt(0,2,0.25) | |
962 | ||
963 | tr1 = Instance.new('Trail',wed) | |
964 | tr1.Attachment0 = A1 | |
965 | tr1.Attachment1 = A0 | |
966 | tr1.Texture = "rbxassetid://2108945559" | |
967 | tr1.LightEmission = 1 | |
968 | tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
969 | tr1.Color = ColorSequence.new(BrickColor.new('Black').Color) | |
970 | tr1.Lifetime = 0.6 | |
971 | ||
972 | local rwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
973 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
974 | local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
975 | ||
976 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
977 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
978 | CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
979 | A0 = Instance.new('Attachment',wed) | |
980 | A0.Position = vt(0,0.25,0.25) | |
981 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
982 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
983 | CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
984 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
985 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
986 | CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
987 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
988 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
989 | CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
990 | A1 = Instance.new('Attachment',wed) | |
991 | A1.Position = vt(0,2,0.25) | |
992 | ||
993 | tr2 = Instance.new('Trail',wed) | |
994 | tr2.Attachment0 = A1 | |
995 | tr2.Attachment1 = A0 | |
996 | tr2.Texture = "rbxassetid://2108945559" | |
997 | tr2.LightEmission = 1 | |
998 | tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
999 | tr2.Color = ColorSequence.new(BrickColor.new('Black').Color) | |
1000 | tr2.Lifetime = 0.6 | |
1001 | ||
1002 | local rwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
1003 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
1004 | local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1005 | ||
1006 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
1007 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
1008 | CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1009 | A0 = Instance.new('Attachment',wed) | |
1010 | A0.Position = vt(0,0.25,0.25) | |
1011 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
1012 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
1013 | CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1014 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
1015 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
1016 | CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1017 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
1018 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
1019 | CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1020 | A1 = Instance.new('Attachment',wed) | |
1021 | A1.Position = vt(0,2,0.25) | |
1022 | ||
1023 | tr3 = Instance.new('Trail',wed) | |
1024 | tr3.Attachment0 = A1 | |
1025 | tr3.Attachment1 = A0 | |
1026 | tr3.Texture = "rbxassetid://2108945559" | |
1027 | tr3.LightEmission = 1 | |
1028 | tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
1029 | tr3.Color = ColorSequence.new(BrickColor.new('Black').Color) | |
1030 | tr3.Lifetime = 0.6 | |
1031 | ||
1032 | ||
1033 | local rwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
1034 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
1035 | local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1036 | ||
1037 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
1038 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
1039 | CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1040 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
1041 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
1042 | CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1043 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
1044 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
1045 | CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1046 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
1047 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
1048 | CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1049 | ||
1050 | local rwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
1051 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
1052 | local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1053 | ||
1054 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
1055 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
1056 | CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1057 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
1058 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
1059 | CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1060 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
1061 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
1062 | CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1063 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
1064 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
1065 | CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1066 | ||
1067 | local rwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
1068 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
1069 | local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1070 | ||
1071 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
1072 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
1073 | CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1074 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
1075 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
1076 | CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1077 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
1078 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
1079 | CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1080 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
1081 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
1082 | CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1083 | ||
1084 | --HERES THE RING | |
1085 | ||
1086 | ||
1087 | --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) | |
1088 | CreateMesh(ran,"Wedge",1.02,1.02,1.02) | |
1089 | CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1090 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1091 | CreateMesh(ran,"Wedge",0.9,0.9,1.025) | |
1092 | CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1093 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1094 | CreateMesh(ran,"Wedge",1.025,0.9,0.9) | |
1095 | CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1096 | ||
1097 | ||
1098 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1099 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
1100 | CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1101 | ||
1102 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1103 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
1104 | CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1105 | ||
1106 | ||
1107 | ||
1108 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
1109 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
1110 | CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1111 | ||
1112 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
1113 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
1114 | CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1115 | ||
1116 | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) | |
1117 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
1118 | CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1119 | ||
1120 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1121 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
1122 | CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1123 | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) | |
1124 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
1125 | CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]-- | |
1126 | ||
1127 | --- second ring | |
1128 | ||
1129 | ||
1130 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1131 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
1132 | CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1133 | ||
1134 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1135 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
1136 | CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1137 | ||
1138 | ||
1139 | ||
1140 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
1141 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
1142 | CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1143 | ||
1144 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
1145 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
1146 | CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1147 | ||
1148 | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) | |
1149 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
1150 | CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1151 | ||
1152 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1153 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
1154 | CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1155 | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) | |
1156 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
1157 | CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1158 | ||
1159 | ||
1160 | ||
1161 | for i, v in pairs(m:GetChildren()) do | |
1162 | if v:IsA("Part") then | |
1163 | v.BrickColor = BrickColor.new("Black") | |
1164 | v.Material = "Glass" | |
1165 | end | |
1166 | end | |
1167 | for i, v in pairs(m2:GetChildren()) do | |
1168 | if v:IsA("Part") then | |
1169 | v.BrickColor = BrickColor.new("Black") | |
1170 | v.Material = "Granite" | |
1171 | end | |
1172 | end | |
1173 | for i, v in pairs(m3:GetChildren()) do | |
1174 | if v:IsA("Part") then | |
1175 | v.BrickColor = BrickColor.new("Black") | |
1176 | v.Material = "Neon" | |
1177 | end | |
1178 | end | |
1179 | for i, v in pairs(mw2:GetChildren()) do | |
1180 | if v:IsA("Part") then | |
1181 | v.BrickColor = BrickColor.new("Black") | |
1182 | v.Material = "Neon" | |
1183 | end | |
1184 | end | |
1185 | for i, v in pairs(mw1:GetChildren()) do | |
1186 | if v:IsA("Part") then | |
1187 | v.Transparency = 1 | |
1188 | v.BrickColor = BrickColor.new("Black") | |
1189 | v.Material = "Neon" | |
1190 | end | |
1191 | end | |
1192 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
1193 | if v:IsA("Part") then | |
1194 | v.Transparency = 1 | |
1195 | v.BrickColor = BrickColor.new("White") | |
1196 | v.Material = "Neon" | |
1197 | end | |
1198 | end | |
1199 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
1200 | if v:IsA("Part") then | |
1201 | v.Transparency = 1 | |
1202 | v.BrickColor = BrickColor.new("White") | |
1203 | v.Material = "Neon" | |
1204 | end | |
1205 | end | |
1206 | local MAINRUINCOLOR = BrickColor.new("Black") | |
1207 | ------ | |
1208 | ||
1209 | ||
1210 | function RemoveOutlines(part) | |
1211 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
1212 | end | |
1213 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
1214 | local Part = Create("Part")({ | |
1215 | Parent = Parent, | |
1216 | Reflectance = Reflectance, | |
1217 | Transparency = Transparency, | |
1218 | CanCollide = false, | |
1219 | Locked = true, | |
1220 | BrickColor = BrickColor.new(tostring(BColor)), | |
1221 | Name = Name, | |
1222 | Size = Size, | |
1223 | Material = Material | |
1224 | }) | |
1225 | Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
1226 | RemoveOutlines(Part) | |
1227 | return Part | |
1228 | end | |
1229 | function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
1230 | local Msh = Create(Mesh)({ | |
1231 | Parent = Part, | |
1232 | Offset = OffSet, | |
1233 | Scale = Scale | |
1234 | }) | |
1235 | if Mesh == "SpecialMesh" then | |
1236 | Msh.MeshType = MeshType | |
1237 | Msh.MeshId = MeshId | |
1238 | end | |
1239 | return Msh | |
1240 | end | |
1241 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
1242 | local Weld = Create("Weld")({ | |
1243 | Parent = Parent, | |
1244 | Part0 = Part0, | |
1245 | Part1 = Part1, | |
1246 | C0 = C0, | |
1247 | C1 = C1 | |
1248 | }) | |
1249 | return Weld | |
1250 | end | |
1251 | ||
1252 | Player = plr | |
1253 | Character=Player.Character | |
1254 | PlayerGui=Player.PlayerGui | |
1255 | Backpack=Player.Backpack | |
1256 | Torso=Character.Torso | |
1257 | Head=Character.Head | |
1258 | Humanoid=Character.Humanoid | |
1259 | m=Instance.new('Model',Character) | |
1260 | LeftArm=Character["Left Arm"] | |
1261 | LeftLeg=Character["Left Leg"] | |
1262 | RightArm=Character["Right Arm"] | |
1263 | RightLeg=Character["Right Leg"] | |
1264 | LS=Torso["Left Shoulder"] | |
1265 | LH=Torso["Left Hip"] | |
1266 | RS=Torso["Right Shoulder"] | |
1267 | RH=Torso["Right Hip"] | |
1268 | Face = Head.face | |
1269 | Neck=Torso.Neck | |
1270 | it=Instance.new | |
1271 | attacktype=1 | |
1272 | vt=Vector3.new | |
1273 | cf=CFrame.new | |
1274 | euler=CFrame.fromEulerAnglesXYZ | |
1275 | angles=CFrame.Angles | |
1276 | cloaked=false | |
1277 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
1278 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
1279 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
1280 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
1281 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
1282 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
1283 | RootPart=Character.HumanoidRootPart | |
1284 | RootJoint=RootPart.RootJoint | |
1285 | RootCF=euler(-1.57,0,3.14) | |
1286 | attack = false | |
1287 | attackdebounce = false | |
1288 | deb=false | |
1289 | equipped=true | |
1290 | hand=false | |
1291 | combo=0 | |
1292 | mana=0 | |
1293 | trispeed=.2 | |
1294 | attackmode='none' | |
1295 | local idle=0 | |
1296 | local Anim="Idle" | |
1297 | local Effects={} | |
1298 | local gun=false | |
1299 | local shoot=false | |
1300 | local sine = 0 | |
1301 | local change = 1 | |
1302 | ||
1303 | function RecolorTextAndRename(name,col1,col2,font) | |
1304 | modet.TextStrokeColor3 = col2 | |
1305 | modet.TextColor3 = col1 | |
1306 | modet.Font = font | |
1307 | modet.Text = name | |
1308 | techc.ImageColor3 = col2 | |
1309 | circl.ImageColor3 = col2 | |
1310 | circl2.ImageColor3 = col1 | |
1311 | imgl2.ImageColor3 = col1 | |
1312 | imgl2b.ImageColor3 = col2 | |
1313 | ned.Text = name | |
1314 | ned.TextColor3 = col1 | |
1315 | ned.TextStrokeColor3 = col2 | |
1316 | end | |
1317 | --save shoulders | |
1318 | RSH, LSH=nil, nil | |
1319 | --welds | |
1320 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
1321 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
1322 | LH=Torso["Left Hip"] | |
1323 | RH=Torso["Right Hip"] | |
1324 | TorsoColor=Torso.BrickColor | |
1325 | function NoOutline(Part) | |
1326 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
1327 | end | |
1328 | ch=Character | |
1329 | RSH=ch.Torso["Right Shoulder"] | |
1330 | LSH=ch.Torso["Left Shoulder"] | |
1331 | -- | |
1332 | RSH.Parent=nil | |
1333 | LSH.Parent=nil | |
1334 | -- | |
1335 | RW.Name="Right Shoulder" | |
1336 | RW.Part0=ch.Torso | |
1337 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
1338 | RW.C1=cf(0, 0.5, 0) | |
1339 | RW.Part1=ch["Right Arm"] | |
1340 | RW.Parent=ch.Torso | |
1341 | -- | |
1342 | LW.Name="Left Shoulder" | |
1343 | LW.Part0=ch.Torso | |
1344 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
1345 | LW.C1=cf(0, 0.5, 0) | |
1346 | LW.Part1=ch["Left Arm"] | |
1347 | LW.Parent=ch.Torso | |
1348 | ||
1349 | local Stats=Instance.new("BoolValue") | |
1350 | Stats.Name="Stats" | |
1351 | Stats.Parent=Character | |
1352 | local Atk=Instance.new("NumberValue") | |
1353 | Atk.Name="Damage" | |
1354 | Atk.Parent=Stats | |
1355 | Atk.Value=1 | |
1356 | local Def=Instance.new("NumberValue") | |
1357 | Def.Name="Defense" | |
1358 | Def.Parent=Stats | |
1359 | Def.Value=1 | |
1360 | local Speed=Instance.new("NumberValue") | |
1361 | Speed.Name="Speed" | |
1362 | Speed.Parent=Stats | |
1363 | Speed.Value=1 | |
1364 | local Mvmt=Instance.new("NumberValue") | |
1365 | Mvmt.Name="Movement" | |
1366 | Mvmt.Parent=Stats | |
1367 | Mvmt.Value=1 | |
1368 | ||
1369 | local donum=0 | |
1370 | local ast = {744586075,385254610} | |
1371 | ||
1372 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
1373 | local fp=it("Part") | |
1374 | fp.formFactor=formfactor | |
1375 | fp.Parent=parent | |
1376 | fp.Reflectance=reflectance | |
1377 | fp.Transparency=transparency | |
1378 | fp.CanCollide=false | |
1379 | fp.Locked=true | |
1380 | fp.BrickColor=brickcolor | |
1381 | fp.Name=name | |
1382 | fp.Size=size | |
1383 | fp.Position=Torso.Position | |
1384 | NoOutline(fp) | |
1385 | fp.Material="SmoothPlastic" | |
1386 | fp:BreakJoints() | |
1387 | return fp | |
1388 | end | |
1389 | ||
1390 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
1391 | local mesh=it(Mesh) | |
1392 | mesh.Parent=part | |
1393 | if Mesh=="SpecialMesh" then | |
1394 | mesh.MeshType=meshtype | |
1395 | if meshid~="nil" then | |
1396 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
1397 | end | |
1398 | end | |
1399 | mesh.Offset=offset | |
1400 | mesh.Scale=scale | |
1401 | return mesh | |
1402 | end | |
1403 | ||
1404 | function weld(parent,part0,part1,c0) | |
1405 | local weld=it("Weld") | |
1406 | weld.Parent=parent | |
1407 | weld.Part0=part0 | |
1408 | weld.Part1=part1 | |
1409 | weld.C0=c0 | |
1410 | return weld | |
1411 | end | |
1412 | ||
1413 | local Color1=Torso.BrickColor | |
1414 | ||
1415 | local bodvel=Instance.new("BodyVelocity") | |
1416 | local bg=Instance.new("BodyGyro") | |
1417 | ||
1418 | --------- SazEreno's Artificial HB -------------- | |
1419 | ArtificialHB = Instance.new("BindableEvent", script) | |
1420 | ArtificialHB.Name = "ArtificialHB" | |
1421 | ||
1422 | script:WaitForChild("ArtificialHB") | |
1423 | Frame_Speed = 1 / 60 | |
1424 | frame = Frame_Speed | |
1425 | tf = 0 | |
1426 | allowframeloss = false | |
1427 | tossremainder = false | |
1428 | lastframe = tick() | |
1429 | script.ArtificialHB:Fire() | |
1430 | ||
1431 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
1432 | tf = tf + s | |
1433 | if tf >= frame then | |
1434 | if allowframeloss then | |
1435 | script.ArtificialHB:Fire() | |
1436 | lastframe = tick() | |
1437 | else | |
1438 | for i = 1, math.floor(tf / frame) do | |
1439 | script.ArtificialHB:Fire() | |
1440 | end | |
1441 | lastframe = tick() | |
1442 | end | |
1443 | if tossremainder then | |
1444 | tf = 0 | |
1445 | else | |
1446 | tf = tf - frame * math.floor(tf / frame) | |
1447 | end | |
1448 | end | |
1449 | end) | |
1450 | ||
1451 | ------------------ | |
1452 | function swait(num) | |
1453 | if num == 0 or num == nil then | |
1454 | ArtificialHB.Event:wait() | |
1455 | else | |
1456 | for i = 1, num do | |
1457 | ArtificialHB.Event:wait() | |
1458 | end | |
1459 | end | |
1460 | end | |
1461 | -------- RAINBOW LEAVE IT TO ME | |
1462 | local r = 255 | |
1463 | local g = 0 | |
1464 | local b = 0 | |
1465 | coroutine.resume(coroutine.create(function() | |
1466 | while wait() do | |
1467 | for i = 0, 254/5 do | |
1468 | swait() | |
1469 | g = g + 5 | |
1470 | end | |
1471 | for i = 0, 254/5 do | |
1472 | swait() | |
1473 | r = r - 5 | |
1474 | end | |
1475 | for i = 0, 254/5 do | |
1476 | swait() | |
1477 | b = b + 5 | |
1478 | end | |
1479 | for i = 0, 254/5 do | |
1480 | swait() | |
1481 | g = g - 5 | |
1482 | end | |
1483 | for i = 0, 254/5 do | |
1484 | swait() | |
1485 | r = r + 5 | |
1486 | end | |
1487 | for i = 0, 254/5 do | |
1488 | swait() | |
1489 | b = b - 5 | |
1490 | end | |
1491 | end | |
1492 | end)) | |
1493 | ||
1494 | ||
1495 | so = function(id,par,vol,pit) | |
1496 | coroutine.resume(coroutine.create(function() | |
1497 | local sou = Instance.new("Sound",par or workspace) | |
1498 | sou.Volume=vol | |
1499 | sou.Pitch=pit or 1 | |
1500 | sou.SoundId=id | |
1501 | swait() | |
1502 | sou:play() | |
1503 | game:GetService("Debris"):AddItem(sou,6) | |
1504 | end)) | |
1505 | end | |
1506 | ||
1507 | function clerp(a,b,t) | |
1508 | local qa = {QuaternionFromCFrame(a)} | |
1509 | local qb = {QuaternionFromCFrame(b)} | |
1510 | local ax, ay, az = a.x, a.y, a.z | |
1511 | local bx, by, bz = b.x, b.y, b.z | |
1512 | local _t = 1-t | |
1513 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
1514 | end | |
1515 | ||
1516 | function QuaternionFromCFrame(cf) | |
1517 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1518 | local trace = m00 + m11 + m22 | |
1519 | if trace > 0 then | |
1520 | local s = math.sqrt(1 + trace) | |
1521 | local recip = 0.5/s | |
1522 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
1523 | else | |
1524 | local i = 0 | |
1525 | if m11 > m00 then | |
1526 | i = 1 | |
1527 | end | |
1528 | if m22 > (i == 0 and m00 or m11) then | |
1529 | i = 2 | |
1530 | end | |
1531 | if i == 0 then | |
1532 | local s = math.sqrt(m00-m11-m22+1) | |
1533 | local recip = 0.5/s | |
1534 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
1535 | elseif i == 1 then | |
1536 | local s = math.sqrt(m11-m22-m00+1) | |
1537 | local recip = 0.5/s | |
1538 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
1539 | elseif i == 2 then | |
1540 | local s = math.sqrt(m22-m00-m11+1) | |
1541 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
1542 | end | |
1543 | end | |
1544 | end | |
1545 | ||
1546 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1547 | local xs, ys, zs = x + x, y + y, z + z | |
1548 | local wx, wy, wz = w*xs, w*ys, w*zs | |
1549 | local xx = x*xs | |
1550 | local xy = x*ys | |
1551 | local xz = x*zs | |
1552 | local yy = y*ys | |
1553 | local yz = y*zs | |
1554 | local zz = z*zs | |
1555 | return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
1556 | end | |
1557 | ||
1558 | function QuaternionSlerp(a, b, t) | |
1559 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
1560 | local startInterp, finishInterp; | |
1561 | if cosTheta >= 0.0001 then | |
1562 | if (1 - cosTheta) > 0.0001 then | |
1563 | local theta = math.acos(cosTheta) | |
1564 | local invSinTheta = 1/math.sin(theta) | |
1565 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
1566 | finishInterp = math.sin(t*theta)*invSinTheta | |
1567 | else | |
1568 | startInterp = 1-t | |
1569 | finishInterp = t | |
1570 | end | |
1571 | else | |
1572 | if (1+cosTheta) > 0.0001 then | |
1573 | local theta = math.acos(-cosTheta) | |
1574 | local invSinTheta = 1/math.sin(theta) | |
1575 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
1576 | finishInterp = math.sin(t*theta)*invSinTheta | |
1577 | else | |
1578 | startInterp = t-1 | |
1579 | finishInterp = t | |
1580 | end | |
1581 | end | |
1582 | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp | |
1583 | end | |
1584 | ||
1585 | local function CFrameFromTopBack(at, top, back) | |
1586 | local right = top:Cross(back) | |
1587 | return CFrame.new(at.x, at.y, at.z, | |
1588 | right.x, top.x, back.x, | |
1589 | right.y, top.y, back.y, | |
1590 | right.z, top.z, back.z) | |
1591 | end | |
1592 | ||
1593 | function Triangle(a, b, c) | |
1594 | local edg1 = (c-a):Dot((b-a).unit) | |
1595 | local edg2 = (a-b):Dot((c-b).unit) | |
1596 | local edg3 = (b-c):Dot((a-c).unit) | |
1597 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
1598 | a, b, c = a, b, c | |
1599 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
1600 | a, b, c = b, c, a | |
1601 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
1602 | a, b, c = c, a, b | |
1603 | else | |
1604 | assert(false, "unreachable") | |
1605 | end | |
1606 | ||
1607 | local len1 = (c-a):Dot((b-a).unit) | |
1608 | local len2 = (b-a).magnitude - len1 | |
1609 | local width = (a + (b-a).unit*len1 - c).magnitude | |
1610 | ||
1611 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
1612 | ||
1613 | local list = {} | |
1614 | ||
1615 | if len1 > 0.01 then | |
1616 | local w1 = Instance.new('WedgePart', m) | |
1617 | game:GetService("Debris"):AddItem(w1,5) | |
1618 | w1.Material = "SmoothPlastic" | |
1619 | w1.FormFactor = 'Custom' | |
1620 | w1.BrickColor = BrickColor.new("Really red") | |
1621 | w1.Transparency = 0 | |
1622 | w1.Reflectance = 0 | |
1623 | w1.Material = "SmoothPlastic" | |
1624 | w1.CanCollide = false | |
1625 | local l1 = Instance.new("PointLight",w1) | |
1626 | l1.Color = Color3.new(170,0,0) | |
1627 | NoOutline(w1) | |
1628 | local sz = Vector3.new(0.2, width, len1) | |
1629 | w1.Size = sz | |
1630 | local sp = Instance.new("SpecialMesh",w1) | |
1631 | sp.MeshType = "Wedge" | |
1632 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
1633 | w1:BreakJoints() | |
1634 | w1.Anchored = true | |
1635 | w1.Parent = workspace | |
1636 | w1.Transparency = 0.7 | |
1637 | table.insert(Effects,{w1,"Disappear",.01}) | |
1638 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
1639 | table.insert(list,w1) | |
1640 | end | |
1641 | ||
1642 | if len2 > 0.01 then | |
1643 | local w2 = Instance.new('WedgePart', m) | |
1644 | game:GetService("Debris"):AddItem(w2,5) | |
1645 | w2.Material = "SmoothPlastic" | |
1646 | w2.FormFactor = 'Custom' | |
1647 | w2.BrickColor = BrickColor.new("Really red") | |
1648 | w2.Transparency = 0 | |
1649 | w2.Reflectance = 0 | |
1650 | w2.Material = "SmoothPlastic" | |
1651 | w2.CanCollide = false | |
1652 | local l2 = Instance.new("PointLight",w2) | |
1653 | l2.Color = Color3.new(170,0,0) | |
1654 | NoOutline(w2) | |
1655 | local sz = Vector3.new(0.2, width, len2) | |
1656 | w2.Size = sz | |
1657 | local sp = Instance.new("SpecialMesh",w2) | |
1658 | sp.MeshType = "Wedge" | |
1659 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
1660 | w2:BreakJoints() | |
1661 | w2.Anchored = true | |
1662 | w2.Parent = workspace | |
1663 | w2.Transparency = 0.7 | |
1664 | table.insert(Effects,{w2,"Disappear",.01}) | |
1665 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
1666 | table.insert(list,w2) | |
1667 | end | |
1668 | return unpack(list) | |
1669 | end | |
1670 | ||
1671 | ||
1672 | function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
1673 | if hit.Parent == nil then | |
1674 | return | |
1675 | end | |
1676 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1677 | for _, v in pairs(hit.Parent:children()) do | |
1678 | if v:IsA("Humanoid") then | |
1679 | h = v | |
1680 | end | |
1681 | end | |
1682 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then | |
1683 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
1684 | return | |
1685 | end | |
1686 | local c = Create("ObjectValue")({ | |
1687 | Name = "creator", | |
1688 | Value = game:GetService("Players").Diamondzingo125, | |
1689 | Parent = h | |
1690 | }) | |
1691 | game:GetService("Debris"):AddItem(c, 0.5) | |
1692 | if HitSound ~= nil and HitPitch ~= nil then | |
1693 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
1694 | end | |
1695 | local Damage = math.random(minim, maxim) | |
1696 | local blocked = false | |
1697 | local block = hit.Parent:findFirstChild("Block") | |
1698 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
1699 | blocked = true | |
1700 | block.Value = block.Value - 1 | |
1701 | print(block.Value) | |
1702 | end | |
1703 | if blocked == false then | |
1704 | HitHealth = h.Health | |
1705 | h.MaxHealth = 100 | |
1706 | h.Health = h.Health - Damage | |
1707 | if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then | |
1708 | print("gained kill") | |
1709 | dmg(h.Parent) | |
1710 | end | |
1711 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1712 | else | |
1713 | h.Health = h.Health - Damage / 2 | |
1714 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1715 | end | |
1716 | if Type == "Knockdown" then | |
1717 | local hum = hit.Parent.Humanoid | |
1718 | hum.PlatformStand = true | |
1719 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1720 | swait(1) | |
1721 | HHumanoid.PlatformStand = false | |
1722 | end), hum) | |
1723 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
1724 | local bodvol = Create("BodyVelocity")({ | |
1725 | velocity = angle * knockback, | |
1726 | P = 5000, | |
1727 | maxForce = Vector3.new(8000, 8000, 8000), | |
1728 | Parent = hit | |
1729 | }) | |
1730 | local rl = Create("BodyAngularVelocity")({ | |
1731 | P = 3000, | |
1732 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
1733 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
1734 | Parent = hit | |
1735 | }) | |
1736 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
1737 | game:GetService("Debris"):AddItem(rl, 0.5) | |
1738 | elseif Type == "Normal" then | |
1739 | local vp = Create("BodyVelocity")({ | |
1740 | P = 500, | |
1741 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
1742 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
1743 | }) | |
1744 | if knockback > 0 then | |
1745 | vp.Parent = hit.Parent.Head | |
1746 | end | |
1747 | game:GetService("Debris"):AddItem(vp, 0.5) | |
1748 | elseif Type == "Up" then | |
1749 | local bodyVelocity = Create("BodyVelocity")({ | |
1750 | velocity = Vector3.new(0, 20, 0), | |
1751 | P = 5000, | |
1752 | maxForce = Vector3.new(8000, 8000, 8000), | |
1753 | Parent = hit | |
1754 | }) | |
1755 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
1756 | local bodyVelocity = Create("BodyVelocity")({ | |
1757 | velocity = Vector3.new(0, 20, 0), | |
1758 | P = 5000, | |
1759 | maxForce = Vector3.new(8000, 8000, 8000), | |
1760 | Parent = hit | |
1761 | }) | |
1762 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1763 | elseif Type == "Leech" then | |
1764 | local hum = hit.Parent.Humanoid | |
1765 | if hum ~= nil then | |
1766 | for i = 0, 2 do | |
1767 | Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02) | |
1768 | end | |
1769 | Humanoid.Health = Humanoid.Health + 10 | |
1770 | end | |
1771 | elseif Type == "UpKnock" then | |
1772 | local hum = hit.Parent.Humanoid | |
1773 | hum.PlatformStand = true | |
1774 | if hum ~= nil then | |
1775 | hitr = true | |
1776 | end | |
1777 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1778 | swait(5) | |
1779 | HHumanoid.PlatformStand = false | |
1780 | hitr = false | |
1781 | end), hum) | |
1782 | local bodyVelocity = Create("BodyVelocity")({ | |
1783 | velocity = Vector3.new(0, 20, 0), | |
1784 | P = 5000, | |
1785 | maxForce = Vector3.new(8000, 8000, 8000), | |
1786 | Parent = hit | |
1787 | }) | |
1788 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
1789 | local bodyVelocity = Create("BodyVelocity")({ | |
1790 | velocity = Vector3.new(0, 20, 0), | |
1791 | P = 5000, | |
1792 | maxForce = Vector3.new(8000, 8000, 8000), | |
1793 | Parent = hit | |
1794 | }) | |
1795 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1796 | elseif Type == "Snare" then | |
1797 | local bp = Create("BodyPosition")({ | |
1798 | P = 2000, | |
1799 | D = 100, | |
1800 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1801 | position = hit.Parent.Torso.Position, | |
1802 | Parent = hit.Parent.Torso | |
1803 | }) | |
1804 | game:GetService("Debris"):AddItem(bp, 1) | |
1805 | elseif Type == "Slashnare" then | |
1806 | Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07) | |
1807 | for i = 1, math.random(4, 5) do | |
1808 | Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02) | |
1809 | end | |
1810 | local bp = Create("BodyPosition")({ | |
1811 | P = 2000, | |
1812 | D = 100, | |
1813 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1814 | position = hit.Parent.Torso.Position, | |
1815 | Parent = hit.Parent.Torso | |
1816 | }) | |
1817 | game:GetService("Debris"):AddItem(bp, 1) | |
1818 | elseif Type == "Spike" then | |
1819 | CreateBigIceSword(hit.Parent.Torso.CFrame) | |
1820 | local bp = Create("BodyPosition")({ | |
1821 | P = 2000, | |
1822 | D = 100, | |
1823 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1824 | position = hit.Parent.Torso.Position, | |
1825 | Parent = hit.Parent.Torso | |
1826 | }) | |
1827 | game:GetService("Debris"):AddItem(bp, 1) | |
1828 | elseif Type == "Freeze" then | |
1829 | local BodPos = Create("BodyPosition")({ | |
1830 | P = 50000, | |
1831 | D = 1000, | |
1832 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1833 | position = hit.Parent.Torso.Position, | |
1834 | Parent = hit.Parent.Torso | |
1835 | }) | |
1836 | local BodGy = Create("BodyGyro")({ | |
1837 | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, | |
1838 | P = 20000, | |
1839 | Parent = hit.Parent.Torso, | |
1840 | cframe = hit.Parent.Torso.CFrame | |
1841 | }) | |
1842 | hit.Parent.Torso.Anchored = true | |
1843 | coroutine.resume(coroutine.create(function(Part) | |
1844 | swait(1.5) | |
1845 | Part.Anchored = false | |
1846 | end), hit.Parent.Torso) | |
1847 | game:GetService("Debris"):AddItem(BodPos, 3) | |
1848 | game:GetService("Debris"):AddItem(BodGy, 3) | |
1849 | end | |
1850 | local debounce = Create("BoolValue")({ | |
1851 | Name = "DebounceHit", | |
1852 | Parent = hit.Parent, | |
1853 | Value = true | |
1854 | }) | |
1855 | game:GetService("Debris"):AddItem(debounce, Delay) | |
1856 | c = Instance.new("ObjectValue") | |
1857 | c.Name = "creator" | |
1858 | c.Value = Player | |
1859 | c.Parent = h | |
1860 | game:GetService("Debris"):AddItem(c, 0.5) | |
1861 | end | |
1862 | end | |
1863 | function ShowDamage(Pos, Text, Time, Color) | |
1864 | local Rate = 0.03333333333333333 | |
1865 | local Pos = Pos or Vector3.new(0, 0, 0) | |
1866 | local Text = Text or "" | |
1867 | local Time = Time or 2 | |
1868 | local Color = Color or Color3.new(1, 0, 1) | |
1869 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
1870 | EffectPart.Anchored = true | |
1871 | local BillboardGui = Create("BillboardGui")({ | |
1872 | Size = UDim2.new(3, 0, 3, 0), | |
1873 | Adornee = EffectPart, | |
1874 | Parent = EffectPart | |
1875 | }) | |
1876 | local TextLabel = Create("TextLabel")({ | |
1877 | BackgroundTransparency = 1, | |
1878 | Size = UDim2.new(1, 0, 1, 0), | |
1879 | Text = Text, | |
1880 | TextColor3 = Color, | |
1881 | TextScaled = true, | |
1882 | Font = Enum.Font.ArialBold, | |
1883 | Parent = BillboardGui | |
1884 | }) | |
1885 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
1886 | EffectPart.Parent = game:GetService("Workspace") | |
1887 | delay(0, function() | |
1888 | local Frames = Time / Rate | |
1889 | for Frame = 1, Frames do | |
1890 | wait(Rate) | |
1891 | local Percent = Frame / Frames | |
1892 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
1893 | TextLabel.TextTransparency = Percent | |
1894 | end | |
1895 | if EffectPart and EffectPart.Parent then | |
1896 | EffectPart:Destroy() | |
1897 | end | |
1898 | end) | |
1899 | end | |
1900 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
1901 | for _, c in pairs(workspace:children()) do | |
1902 | local hum = c:findFirstChildOfClass("Humanoid") | |
1903 | if hum ~= nil then | |
1904 | local head = c:findFirstChild("Head") | |
1905 | if head ~= nil then | |
1906 | local targ = head.Position - Part.Position | |
1907 | local mag = targ.magnitude | |
1908 | if magni >= mag and c.Name ~= Player.Name then | |
1909 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
1910 | end | |
1911 | end | |
1912 | end | |
1913 | end | |
1914 | end | |
1915 | ||
1916 | function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type) | |
1917 | for _, c in pairs(workspace:children()) do | |
1918 | local hum = c:findFirstChild("Humanoid") | |
1919 | if hum ~= nil then | |
1920 | local head = c:findFirstChild("Torso") | |
1921 | if head ~= nil then | |
1922 | local targ = head.Position - Part.Position | |
1923 | local mag = targ.magnitude | |
1924 | if magni >= mag and c.Name ~= Player.Name then | |
1925 | MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05) | |
1926 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
1927 | end | |
1928 | end | |
1929 | end | |
1930 | end | |
1931 | end | |
1932 | ||
1933 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
1934 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1935 | end | |
1936 | ||
1937 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
1938 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1939 | prt.Anchored=true | |
1940 | prt.CFrame=cframe | |
1941 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1)) | |
1942 | --http://www.roblox.com/asset/?id=4770560 | |
1943 | game:GetService("Debris"):AddItem(prt,2) | |
1944 | CF=prt.CFrame | |
1945 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
1946 | for i=0,1,0.2 do | |
1947 | wait() | |
1948 | Part.CFrame=CF*cf(0,0,-0.4) | |
1949 | end | |
1950 | for i=0,1,delay do | |
1951 | wait() | |
1952 | --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5) | |
1953 | Mesh.Scale=Mesh.Scale | |
1954 | end | |
1955 | for i=0,1,0.1 do | |
1956 | wait() | |
1957 | Part.Transparency=i | |
1958 | end | |
1959 | Part.Parent=nil | |
1960 | end),prt,msh,CF) | |
1961 | end | |
1962 | ||
1963 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1964 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1965 | prt.Anchored=true | |
1966 | prt.Material = "Neon" | |
1967 | prt.CFrame=cframe | |
1968 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1969 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1970 | game:GetService("Debris"):AddItem(prt,5) | |
1971 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1972 | for i=0,1,delay do | |
1973 | swait() | |
1974 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1975 | Part.Transparency=i | |
1976 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1977 | end | |
1978 | Part.Parent=nil | |
1979 | end),prt,msh) | |
1980 | end | |
1981 | ||
1982 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
1983 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1984 | prt.Anchored=true | |
1985 | prt.Material = "Neon" | |
1986 | prt.CFrame=cframe | |
1987 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1988 | game:GetService("Debris"):AddItem(prt,5) | |
1989 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1990 | local rtype = rottype | |
1991 | for i=0,1,delay do | |
1992 | swait() | |
1993 | if rtype == 1 then | |
1994 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1995 | elseif rtype == 2 then | |
1996 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1997 | end | |
1998 | Part.Transparency=i | |
1999 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2000 | end | |
2001 | Part.Parent=nil | |
2002 | end),prt,msh) | |
2003 | end | |
2004 | ||
2005 | function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2006 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2007 | prt.Anchored=true | |
2008 | prt.CFrame=cframe | |
2009 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2010 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
2011 | game:GetService("Debris"):AddItem(prt,5) | |
2012 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2013 | for i=0,1,delay do | |
2014 | wait() | |
2015 | Part.Transparency=i | |
2016 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2017 | end | |
2018 | Part.Parent=nil | |
2019 | end),prt,msh) | |
2020 | end | |
2021 | ||
2022 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
2023 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2024 | prt.Anchored=true | |
2025 | prt.Material = "Neon" | |
2026 | prt.CFrame=cframe | |
2027 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2028 | game:GetService("Debris"):AddItem(prt,5) | |
2029 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2030 | local rtype = rottype | |
2031 | for i=0,1,delay do | |
2032 | swait() | |
2033 | if rtype == 1 then | |
2034 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
2035 | elseif rtype == 2 then | |
2036 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
2037 | end | |
2038 | Part.Transparency=i | |
2039 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2040 | end | |
2041 | Part.Parent=nil | |
2042 | end),prt,msh) | |
2043 | end | |
2044 | ||
2045 | function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
2046 | local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2047 | prt.Anchored=true | |
2048 | prt.Material = "Neon" | |
2049 | prt.CFrame=cframe | |
2050 | local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
2051 | local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
2052 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01)) | |
2053 | game:GetService("Debris"):AddItem(prt,5) | |
2054 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2055 | local rtype = rottype | |
2056 | for i=0,1,delay do | |
2057 | swait() | |
2058 | if rtype == 1 then | |
2059 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
2060 | elseif rtype == 2 then | |
2061 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
2062 | end | |
2063 | dec.Transparency=i | |
2064 | dec2.Transparency=i | |
2065 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
2066 | end | |
2067 | Part.Parent=nil | |
2068 | end),prt,msh) | |
2069 | end | |
2070 | ||
2071 | function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
2072 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2073 | prt.Anchored=true | |
2074 | prt.Material = "Neon" | |
2075 | prt.CFrame=cframe | |
2076 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01)) | |
2077 | game:GetService("Debris"):AddItem(prt,5) | |
2078 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2079 | local rtype = rottype | |
2080 | for i=0,1,delay do | |
2081 | swait() | |
2082 | if rtype == 1 then | |
2083 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
2084 | elseif rtype == 2 then | |
2085 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
2086 | end | |
2087 | prt.Transparency=i | |
2088 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
2089 | end | |
2090 | Part.Parent=nil | |
2091 | end),prt,msh) | |
2092 | end | |
2093 | ||
2094 | function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype) | |
2095 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2096 | prt.Anchored=true | |
2097 | prt.Material = "Neon" | |
2098 | prt.CFrame=cframe | |
2099 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1)) | |
2100 | game:GetService("Debris"):AddItem(prt,5) | |
2101 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2102 | local rtype = rottype | |
2103 | for i=0,1,delay do | |
2104 | swait() | |
2105 | if rtype == 1 then | |
2106 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0) | |
2107 | elseif rtype == 2 then | |
2108 | prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0) | |
2109 | end | |
2110 | prt.Transparency=i | |
2111 | Mesh.Scale=Mesh.Scale+vt(x3,0,z3) | |
2112 | end | |
2113 | Part.Parent=nil | |
2114 | end),prt,msh) | |
2115 | end | |
2116 | ||
2117 | function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype) | |
2118 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2119 | prt.Anchored=true | |
2120 | prt.Material = "Neon" | |
2121 | prt.CFrame=cframe | |
2122 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2123 | game:GetService("Debris"):AddItem(prt,5) | |
2124 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2125 | local rtype = rottype | |
2126 | for i=0,1,delay do | |
2127 | swait() | |
2128 | if rtype == 1 then | |
2129 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
2130 | elseif rtype == 2 then | |
2131 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
2132 | end | |
2133 | prt.Transparency=i | |
2134 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
2135 | end | |
2136 | Part.Parent=nil | |
2137 | end),prt,msh) | |
2138 | end | |
2139 | ||
2140 | function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
2141 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2142 | prt.Anchored=true | |
2143 | prt.Material = "Neon" | |
2144 | prt.CFrame=cframe | |
2145 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2146 | game:GetService("Debris"):AddItem(prt,5) | |
2147 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2148 | local rtype = rottype | |
2149 | for i=0,1,delay do | |
2150 | swait() | |
2151 | if rtype == 1 then | |
2152 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
2153 | elseif rtype == 2 then | |
2154 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
2155 | end | |
2156 | prt.Transparency=i | |
2157 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2158 | end | |
2159 | Part.Parent=nil | |
2160 | end),prt,msh) | |
2161 | end | |
2162 | ||
2163 | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
2164 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2165 | prt.Anchored=false | |
2166 | prt.CFrame=cframe | |
2167 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2168 | local wld=weld(prt,prt,Parent,cframe) | |
2169 | game:GetService("Debris"):AddItem(prt,5) | |
2170 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
2171 | for i=0,1,delay do | |
2172 | wait() | |
2173 | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe | |
2174 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2175 | Part.Transparency=i | |
2176 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2177 | end | |
2178 | Part.Parent=nil | |
2179 | end),prt,msh,wld) | |
2180 | end | |
2181 | ||
2182 | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
2183 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2184 | prt.Anchored=false | |
2185 | prt.CFrame=cframe | |
2186 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2187 | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) | |
2188 | game:GetService("Debris"):AddItem(prt,5) | |
2189 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
2190 | for i=0,1,delay do | |
2191 | wait() | |
2192 | Weld.C0=euler(i*20,0,0) | |
2193 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2194 | Part.Transparency=i | |
2195 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2196 | end | |
2197 | Part.Parent=nil | |
2198 | end),prt,msh,wld) | |
2199 | end | |
2200 | ||
2201 | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2202 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2203 | prt.Anchored=true | |
2204 | prt.CFrame=cframe | |
2205 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2206 | game:GetService("Debris"):AddItem(prt,2) | |
2207 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2208 | for i=0,1,delay do | |
2209 | wait() | |
2210 | Part.CFrame=Part.CFrame | |
2211 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2212 | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2213 | prt2.Anchored=true | |
2214 | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2215 | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5)) | |
2216 | game:GetService("Debris"):AddItem(prt2,2) | |
2217 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2218 | for i=0,1,0.1 do | |
2219 | wait() | |
2220 | Part.CFrame=Part.CFrame*cf(0,0.5,0) | |
2221 | end | |
2222 | Part.Parent=nil | |
2223 | end),prt2,msh2) | |
2224 | end | |
2225 | for i=0,1,delay*2 do | |
2226 | wait() | |
2227 | Part.CFrame=Part.CFrame | |
2228 | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) | |
2229 | end | |
2230 | Part.Parent=nil | |
2231 | end),prt,msh) | |
2232 | end | |
2233 | ||
2234 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2235 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2236 | prt.Anchored=true | |
2237 | prt.CFrame=cframe | |
2238 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
2239 | game:GetService("Debris"):AddItem(prt,2) | |
2240 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2241 | for i=0,1,delay do | |
2242 | wait() | |
2243 | Part.CFrame=Part.CFrame | |
2244 | Part.Transparency=i | |
2245 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2246 | end | |
2247 | Part.Parent=nil | |
2248 | end),prt,msh) | |
2249 | end | |
2250 | ||
2251 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
2252 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2253 | prt.Anchored=true | |
2254 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2255 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
2256 | game:GetService("Debris"):AddItem(prt,2) | |
2257 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
2258 | CF=Part.CFrame | |
2259 | Numbb=0 | |
2260 | randnumb=math.random()/10 | |
2261 | rand1=math.random()/10 | |
2262 | for i=0,1,rand1 do | |
2263 | wait() | |
2264 | CF=CF*cf(0,math.random()/2,0) | |
2265 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
2266 | Part.CFrame=CF*euler(Numbb,0,0) | |
2267 | Part.Transparency=i | |
2268 | Numbb=Numbb+randnumb | |
2269 | end | |
2270 | Part.Parent=nil | |
2271 | end),prt,CF,Numbb,randnumb) | |
2272 | end | |
2273 | ||
2274 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2275 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2276 | prt.Anchored=true | |
2277 | prt.CFrame=cframe | |
2278 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1)) | |
2279 | game:GetService("Debris"):AddItem(prt,5) | |
2280 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2281 | for i=0,1,delay do | |
2282 | wait() | |
2283 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
2284 | Part.Transparency=i | |
2285 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2286 | end | |
2287 | Part.Parent=nil | |
2288 | end),prt,msh) | |
2289 | end | |
2290 | ||
2291 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2292 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2293 | prt.Anchored=true | |
2294 | prt.CFrame=cframe | |
2295 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1)) | |
2296 | game:GetService("Debris"):AddItem(prt,2) | |
2297 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2298 | for i=0,1,delay do | |
2299 | wait() | |
2300 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
2301 | Part.Transparency=i | |
2302 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2303 | end | |
2304 | Part.Parent=nil | |
2305 | end),prt,msh) | |
2306 | end | |
2307 | ||
2308 | function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay) | |
2309 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2310 | prt.Anchored=true | |
2311 | prt.CFrame=cframe*cf(x,y,z) | |
2312 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1)) | |
2313 | game:GetService("Debris"):AddItem(prt,5) | |
2314 | coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) | |
2315 | local num=math.random() | |
2316 | local num2=math.random(-3,2)+math.random() | |
2317 | local numm=0 | |
2318 | for i=0,1,delay*2 do | |
2319 | swait() | |
2320 | Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0) | |
2321 | Part.Transparency=i | |
2322 | numm=numm+0.01 | |
2323 | end | |
2324 | Part.Parent=nil | |
2325 | Mesh.Parent=nil | |
2326 | end),prt,msh,x,y,z) | |
2327 | end | |
2328 | ||
2329 | function dmgstart(dmg,what) | |
2330 | hitcon = what.Touched:connect(function(hit) | |
2331 | local hum = hit.Parent:FindFirstChild("Humanoid") | |
2332 | if hum and not hum:IsDescendantOf(Character) then | |
2333 | hum:TakeDamage(dmg) | |
2334 | end | |
2335 | end) | |
2336 | end | |
2337 | ||
2338 | function dmgstop() | |
2339 | hitcon:disconnect() | |
2340 | end | |
2341 | ||
2342 | function Cloak() | |
2343 | Face.Parent=nil | |
2344 | cloaked=true | |
2345 | for _,v in pairs(Torso.Parent:children()) do | |
2346 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
2347 | coroutine.resume(coroutine.create(function() | |
2348 | for i=0,1,0.2 do | |
2349 | wait() | |
2350 | v.Transparency=i | |
2351 | end | |
2352 | v.Transparency=1 | |
2353 | end)) | |
2354 | end | |
2355 | if v.className=="Hat" then | |
2356 | hatp=v.Handle | |
2357 | coroutine.resume(coroutine.create(function(derp) | |
2358 | for i=0,1,0.2 do | |
2359 | wait() | |
2360 | derp.Transparency=i | |
2361 | end | |
2362 | derp.Transparency=1 | |
2363 | end),hatp) | |
2364 | end | |
2365 | end | |
2366 | for _,v in pairs(m:children()) do | |
2367 | if v.className=="Part" then | |
2368 | coroutine.resume(coroutine.create(function() | |
2369 | for i=0,1,0.2 do | |
2370 | wait() | |
2371 | v.Transparency=i | |
2372 | end | |
2373 | v.Transparency=1 | |
2374 | end)) | |
2375 | end | |
2376 | end | |
2377 | end | |
2378 | ||
2379 | function UnCloak() | |
2380 | so("http://roblox.com/asset/?id=2767090",Torso,1,1.1) | |
2381 | Face.Parent=Head | |
2382 | cloaked=false | |
2383 | for _,v in pairs(Torso.Parent:children()) do | |
2384 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
2385 | coroutine.resume(coroutine.create(function() | |
2386 | for i=0,1,0.1 do | |
2387 | wait() | |
2388 | v.Transparency=v.Transparency-0.1 | |
2389 | end | |
2390 | v.Transparency=0 | |
2391 | end)) | |
2392 | end | |
2393 | if v.className=="Hat" then | |
2394 | hatp=v.Handle | |
2395 | coroutine.resume(coroutine.create(function(derp) | |
2396 | for i=0,1,0.1 do | |
2397 | wait() | |
2398 | derp.Transparency=derp.Transparency-0.1 | |
2399 | end | |
2400 | derp.Transparency=0 | |
2401 | end),hatp) | |
2402 | end | |
2403 | end | |
2404 | for _,v in pairs(m:children()) do | |
2405 | if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then | |
2406 | coroutine.resume(coroutine.create(function() | |
2407 | for i=0,1,0.1 do | |
2408 | wait() | |
2409 | v.Transparency=v.Transparency-0.1 | |
2410 | end | |
2411 | v.Transparency=0 | |
2412 | end)) | |
2413 | v.Transparency=0 | |
2414 | end | |
2415 | end | |
2416 | end | |
2417 | ||
2418 | local origcolor = BrickColor.new("Pastel light blue") | |
2419 | ---- This section of explosions. | |
2420 | ||
2421 | ---- | |
2422 | ||
2423 | ||
2424 | function ring(type,pos,scale,value) | |
2425 | local type = type | |
2426 | local rng = Instance.new("Part", char) | |
2427 | rng.Anchored = true | |
2428 | rng.BrickColor = origcolor | |
2429 | rng.CanCollide = false | |
2430 | rng.FormFactor = 3 | |
2431 | rng.Name = "Ring" | |
2432 | rng.Size = Vector3.new(1, 1, 1) | |
2433 | rng.Transparency = 0 | |
2434 | rng.TopSurface = 0 | |
2435 | rng.BottomSurface = 0 | |
2436 | rng.CFrame = pos | |
2437 | local rngm = Instance.new("SpecialMesh", rng) | |
2438 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2439 | rngm.Scale = scale | |
2440 | local scaler2 = 1 | |
2441 | if type == "Add" then | |
2442 | scaler2 = 1*value | |
2443 | elseif type == "Divide" then | |
2444 | scaler2 = 1/value | |
2445 | end | |
2446 | coroutine.resume(coroutine.create(function() | |
2447 | for i = 0,10,0.1 do | |
2448 | swait() | |
2449 | if type == "Add" then | |
2450 | scaler2 = scaler2 - 0.01*value | |
2451 | elseif type == "Divide" then | |
2452 | scaler2 = scaler2 - 0.01/value | |
2453 | end | |
2454 | rng.Transparency = rng.Transparency + 0.01 | |
2455 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
2456 | end | |
2457 | rng:Destroy() | |
2458 | end)) | |
2459 | end | |
2460 | ||
2461 | ||
2462 | function wave(type,pos,scale,value) | |
2463 | local type = type | |
2464 | local rng = Instance.new("Part", char) | |
2465 | rng.Anchored = true | |
2466 | rng.BrickColor = origcolor | |
2467 | rng.CanCollide = false | |
2468 | rng.FormFactor = 3 | |
2469 | rng.Name = "Ring" | |
2470 | rng.Size = Vector3.new(1, 1, 1) | |
2471 | rng.Transparency = 0 | |
2472 | rng.TopSurface = 0 | |
2473 | rng.BottomSurface = 0 | |
2474 | rng.CFrame = pos | |
2475 | local rngm = Instance.new("SpecialMesh", rng) | |
2476 | rngm.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
2477 | rngm.Scale = scale | |
2478 | local scaler2 = 1 | |
2479 | if type == "Add" then | |
2480 | scaler2 = 1*value | |
2481 | elseif type == "Divide" then | |
2482 | scaler2 = 1/value | |
2483 | end | |
2484 | coroutine.resume(coroutine.create(function() | |
2485 | for i = 0,10,0.1 do | |
2486 | swait() | |
2487 | if type == "Add" then | |
2488 | scaler2 = scaler2 - 0.01*value | |
2489 | elseif type == "Divide" then | |
2490 | scaler2 = scaler2 - 0.01/value | |
2491 | end | |
2492 | rng.Transparency = rng.Transparency + 0.01 | |
2493 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
2494 | end | |
2495 | rng:Destroy() | |
2496 | end)) | |
2497 | end | |
2498 | ||
2499 | function wind(type,pos,scale,value,speed) | |
2500 | local type = type | |
2501 | local rng = Instance.new("Part", char) | |
2502 | rng.Anchored = true | |
2503 | rng.BrickColor = origcolor | |
2504 | rng.CanCollide = false | |
2505 | rng.FormFactor = 3 | |
2506 | rng.Name = "Ring" | |
2507 | rng.Size = Vector3.new(1, 1, 1) | |
2508 | rng.Transparency = 0 | |
2509 | rng.TopSurface = 0 | |
2510 | rng.BottomSurface = 0 | |
2511 | rng.CFrame = pos | |
2512 | local rngm = Instance.new("SpecialMesh", rng) | |
2513 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
2514 | rngm.Scale = scale | |
2515 | local scaler2 = 1 | |
2516 | if type == "Add" then | |
2517 | scaler2 = 1*value | |
2518 | elseif type == "Divide" then | |
2519 | scaler2 = 1/value | |
2520 | end | |
2521 | coroutine.resume(coroutine.create(function() | |
2522 | for i = 0,10,0.1 do | |
2523 | swait() | |
2524 | if type == "Add" then | |
2525 | scaler2 = scaler2 - 0.01*value | |
2526 | elseif type == "Divide" then | |
2527 | scaler2 = scaler2 - 0.01/value | |
2528 | end | |
2529 | rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0) | |
2530 | rng.Transparency = rng.Transparency + 0.01 | |
2531 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
2532 | end | |
2533 | rng:Destroy() | |
2534 | end)) | |
2535 | end | |
2536 | ||
2537 | function groundwind(type,pos,scale,value,speed) | |
2538 | local type = type | |
2539 | local rng = Instance.new("Part", char) | |
2540 | rng.Anchored = true | |
2541 | rng.BrickColor = origcolor | |
2542 | rng.CanCollide = false | |
2543 | rng.FormFactor = 3 | |
2544 | rng.Name = "Ring" | |
2545 | rng.Size = Vector3.new(1, 1, 1) | |
2546 | rng.Transparency = 0 | |
2547 | rng.TopSurface = 0 | |
2548 | rng.BottomSurface = 0 | |
2549 | rng.CFrame = pos | |
2550 | local rngm = Instance.new("SpecialMesh", rng) | |
2551 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
2552 | rngm.Scale = scale | |
2553 | local scaler2 = 1 | |
2554 | if type == "Add" then | |
2555 | scaler2 = 1*value | |
2556 | elseif type == "Divide" then | |
2557 | scaler2 = 1/value | |
2558 | end | |
2559 | coroutine.resume(coroutine.create(function() | |
2560 | for i = 0,10,0.1 do | |
2561 | swait() | |
2562 | if type == "Add" then | |
2563 | scaler2 = scaler2 - 0.01*value | |
2564 | elseif type == "Divide" then | |
2565 | scaler2 = scaler2 - 0.01/value | |
2566 | end | |
2567 | rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0) | |
2568 | rng.Transparency = rng.Transparency + 0.01 | |
2569 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2) | |
2570 | end | |
2571 | rng:Destroy() | |
2572 | end)) | |
2573 | end | |
2574 | ||
2575 | function CameraManager() | |
2576 | if TwoD and not CamInterrupt then | |
2577 | if Humanoid.Health > 0 then | |
2578 | Camera.CameraSubject = Humanoid | |
2579 | Camera.CameraType = "Scriptable" | |
2580 | Humanoid.AutoRotate = false | |
2581 | if Booleans.GyroUse then | |
2582 | Directer.MaxTorque = Vec3(0, huge, 0) | |
2583 | else | |
2584 | Directer.MaxTorque = Vec3(0, 0, 0) | |
2585 | end | |
2586 | if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then | |
2587 | if Booleans.CamFollow then | |
2588 | CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z)) | |
2589 | Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position) | |
2590 | else | |
2591 | CPart.Position = RootPart.Position | |
2592 | end | |
2593 | else | |
2594 | local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p | |
2595 | CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z)) | |
2596 | end | |
2597 | Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2) | |
2598 | else | |
2599 | Camera.CameraSubject = Humanoid | |
2600 | Camera.CameraType = "Custom" | |
2601 | Controller.Disabled = false | |
2602 | end | |
2603 | end | |
2604 | end | |
2605 | ||
2606 | function ring(type,pos,scale,value) | |
2607 | local type = type | |
2608 | local rng = Instance.new("Part", char) | |
2609 | rng.Anchored = true | |
2610 | rng.BrickColor = origcolor | |
2611 | rng.CanCollide = false | |
2612 | rng.FormFactor = 3 | |
2613 | rng.Name = "Ring" | |
2614 | rng.Size = Vector3.new(1, 1, 1) | |
2615 | rng.Transparency = 0 | |
2616 | rng.TopSurface = 0 | |
2617 | rng.BottomSurface = 0 | |
2618 | rng.CFrame = pos | |
2619 | local rngm = Instance.new("SpecialMesh", rng) | |
2620 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2621 | rngm.Scale = scale | |
2622 | local scaler2 = 1 | |
2623 | if type == "Add" then | |
2624 | scaler2 = 1*value | |
2625 | elseif type == "Divide" then | |
2626 | scaler2 = 1/value | |
2627 | end | |
2628 | coroutine.resume(coroutine.create(function() | |
2629 | for i = 0,10,0.1 do | |
2630 | swait() | |
2631 | if type == "Add" then | |
2632 | scaler2 = scaler2 - 0.01*value | |
2633 | elseif type == "Divide" then | |
2634 | scaler2 = scaler2 - 0.01/value | |
2635 | end | |
2636 | rng.Transparency = rng.Transparency + 0.01 | |
2637 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
2638 | end | |
2639 | rng:Destroy() | |
2640 | end)) | |
2641 | end | |
2642 | ||
2643 | ||
2644 | function wave(type,pos,scale,value) | |
2645 | local type = type | |
2646 | local rng = Instance.new("Part", char) | |
2647 | rng.Anchored = true | |
2648 | rng.BrickColor = origcolor | |
2649 | rng.CanCollide = false | |
2650 | rng.FormFactor = 3 | |
2651 | rng.Name = "Ring" | |
2652 | rng.Size = Vector3.new(1, 1, 1) | |
2653 | rng.Transparency = 0 | |
2654 | rng.TopSurface = 0 | |
2655 | rng.BottomSurface = 0 | |
2656 | rng.CFrame = pos | |
2657 | local rngm = Instance.new("SpecialMesh", rng) | |
2658 | rngm.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
2659 | rngm.Scale = scale | |
2660 | local scaler2 = 1 | |
2661 | if type == "Add" then | |
2662 | scaler2 = 1*value | |
2663 | elseif type == "Divide" then | |
2664 | scaler2 = 1/value | |
2665 | end | |
2666 | coroutine.resume(coroutine.create(function() | |
2667 | for i = 0,10,0.1 do | |
2668 | swait() | |
2669 | if type == "Add" then | |
2670 | scaler2 = scaler2 - 0.01*value | |
2671 | elseif type == "Divide" then | |
2672 | scaler2 = scaler2 - 0.01/value | |
2673 | end | |
2674 | rng.Transparency = rng.Transparency + 0.01 | |
2675 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
2676 | end | |
2677 | rng:Destroy() | |
2678 | end)) | |
2679 | end | |
2680 | ||
2681 | function sphere(bonuspeed,type,pos,scale,value,color) | |
2682 | local type = type | |
2683 | local rng = Instance.new("Part", char) | |
2684 | rng.Anchored = true | |
2685 | if ModeOfGlitch ~= 9 then | |
2686 | rng.BrickColor = color | |
2687 | elseif ModeOfGlitch == 9 then | |
2688 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
2689 | end | |
2690 | rng.CanCollide = false | |
2691 | rng.FormFactor = 3 | |
2692 | rng.Name = "Ring" | |
2693 | rng.Material = "Neon" | |
2694 | rng.Size = Vector3.new(1, 1, 1) | |
2695 | rng.Transparency = 0 | |
2696 | rng.TopSurface = 0 | |
2697 | rng.BottomSurface = 0 | |
2698 | rng.CFrame = pos | |
2699 | local rngm = Instance.new("SpecialMesh", rng) | |
2700 | rngm.MeshType = "Sphere" | |
2701 | rngm.Scale = scale | |
2702 | if rainbowmode == true then | |
2703 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2704 | end | |
2705 | if ModeOfGlitch == 9 then | |
2706 | coroutine.resume(coroutine.create(function() | |
2707 | while true do | |
2708 | swait() | |
2709 | if rng.Parent ~= nil then | |
2710 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
2711 | else | |
2712 | break | |
2713 | end | |
2714 | end | |
2715 | end)) | |
2716 | end | |
2717 | local scaler2 = 1 | |
2718 | if type == "Add" then | |
2719 | scaler2 = 1*value | |
2720 | elseif type == "Divide" then | |
2721 | scaler2 = 1/value | |
2722 | end | |
2723 | coroutine.resume(coroutine.create(function() | |
2724 | for i = 0,10/bonuspeed,0.1 do | |
2725 | swait() | |
2726 | if rainbowmode == true then | |
2727 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2728 | end | |
2729 | if type == "Add" then | |
2730 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2731 | elseif type == "Divide" then | |
2732 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2733 | end | |
2734 | if chaosmode == true then | |
2735 | rng.BrickColor = BrickColor.random() | |
2736 | end | |
2737 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2738 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2739 | end | |
2740 | rng:Destroy() | |
2741 | end)) | |
2742 | end | |
2743 | ||
2744 | function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color) | |
2745 | local type = type | |
2746 | local rng = Instance.new("Part", char) | |
2747 | rng.Anchored = true | |
2748 | if ModeOfGlitch ~= 9 then | |
2749 | rng.BrickColor = color | |
2750 | elseif ModeOfGlitch == 9 then | |
2751 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
2752 | end | |
2753 | rng.CanCollide = false | |
2754 | rng.FormFactor = 3 | |
2755 | rng.Name = "Ring" | |
2756 | rng.Material = "Neon" | |
2757 | rng.Size = Vector3.new(1, 1, 1) | |
2758 | rng.Transparency = 0 | |
2759 | rng.TopSurface = 0 | |
2760 | rng.BottomSurface = 0 | |
2761 | rng.CFrame = pos | |
2762 | local rngm = Instance.new("SpecialMesh", rng) | |
2763 | rngm.MeshType = "Sphere" | |
2764 | rngm.Scale = scale | |
2765 | local scaler2 = 1 | |
2766 | local scaler2b = 1 | |
2767 | local scaler2c = 1 | |
2768 | if type == "Add" then | |
2769 | scaler2 = 1*value | |
2770 | scaler2b = 1*value2 | |
2771 | scaler2c = 1*value3 | |
2772 | elseif type == "Divide" then | |
2773 | scaler2 = 1/value | |
2774 | scaler2b = 1/value2 | |
2775 | scaler2c = 1/value3 | |
2776 | end | |
2777 | if ModeOfGlitch == 9 then | |
2778 | coroutine.resume(coroutine.create(function() | |
2779 | while true do | |
2780 | swait() | |
2781 | if rng.Parent ~= nil then | |
2782 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
2783 | else | |
2784 | break | |
2785 | end | |
2786 | end | |
2787 | end)) | |
2788 | end | |
2789 | coroutine.resume(coroutine.create(function() | |
2790 | for i = 0,10/bonuspeed,0.1 do | |
2791 | swait() | |
2792 | if type == "Add" then | |
2793 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2794 | scaler2b = scaler2b - 0.01*value/bonuspeed | |
2795 | scaler2c = scaler2c - 0.01*value/bonuspeed | |
2796 | elseif type == "Divide" then | |
2797 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2798 | scaler2b = scaler2b - 0.01/value*bonuspeed | |
2799 | scaler2c = scaler2c - 0.01/value*bonuspeed | |
2800 | end | |
2801 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2802 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed) | |
2803 | end | |
2804 | rng:Destroy() | |
2805 | end)) | |
2806 | end | |
2807 | ||
2808 | function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color) | |
2809 | local type = type | |
2810 | local rotenable = rotatingop | |
2811 | local rng = Instance.new("Part", char) | |
2812 | rng.Anchored = true | |
2813 | rng.BrickColor = color | |
2814 | rng.CanCollide = false | |
2815 | rng.FormFactor = 3 | |
2816 | rng.Name = "Ring" | |
2817 | rng.Material = "Neon" | |
2818 | rng.Size = Vector3.new(1, 1, 1) | |
2819 | rng.Transparency = 0 | |
2820 | if typeoftrans == "In" then | |
2821 | rng.Transparency = 1 | |
2822 | end | |
2823 | rng.TopSurface = 0 | |
2824 | rng.BottomSurface = 0 | |
2825 | rng.CFrame = pos | |
2826 | local rngm = Instance.new("SpecialMesh", rng) | |
2827 | rngm.MeshType = "FileMesh" | |
2828 | if typeofshape == "Normal" then | |
2829 | rngm.MeshId = "rbxassetid://662586858" | |
2830 | elseif typeofshape == "Round" then | |
2831 | rngm.MeshId = "rbxassetid://662585058" | |
2832 | end | |
2833 | rngm.Scale = scale | |
2834 | local scaler2 = 1/10 | |
2835 | if type == "Add" then | |
2836 | scaler2 = 1*value/10 | |
2837 | elseif type == "Divide" then | |
2838 | scaler2 = 1/value/10 | |
2839 | end | |
2840 | local randomrot = math.random(1,2) | |
2841 | coroutine.resume(coroutine.create(function() | |
2842 | for i = 0,10/bonuspeed,0.1 do | |
2843 | swait() | |
2844 | if type == "Add" then | |
2845 | scaler2 = scaler2 - 0.01*value/bonuspeed/10 | |
2846 | elseif type == "Divide" then | |
2847 | scaler2 = scaler2 - 0.01/value*bonuspeed/10 | |
2848 | end | |
2849 | if rotenable == true then | |
2850 | if randomrot == 1 then | |
2851 | rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0) | |
2852 | elseif randomrot == 2 then | |
2853 | rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0) | |
2854 | end | |
2855 | end | |
2856 | if typeoftrans == "Out" then | |
2857 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2858 | elseif typeoftrans == "In" then | |
2859 | rng.Transparency = rng.Transparency - 0.01*bonuspeed | |
2860 | end | |
2861 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10) | |
2862 | end | |
2863 | rng:Destroy() | |
2864 | end)) | |
2865 | end | |
2866 | ||
2867 | function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2868 | local type = type | |
2869 | local rng = Instance.new("Part", char) | |
2870 | rng.Anchored = true | |
2871 | rng.BrickColor = color | |
2872 | rng.CanCollide = false | |
2873 | rng.FormFactor = 3 | |
2874 | rng.Name = "Ring" | |
2875 | rng.Material = "Neon" | |
2876 | rng.Size = Vector3.new(1, 1, 1) | |
2877 | rng.Transparency = 0 | |
2878 | rng.TopSurface = 0 | |
2879 | rng.BottomSurface = 0 | |
2880 | rng.CFrame = pos | |
2881 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2882 | local rngm = Instance.new("SpecialMesh", rng) | |
2883 | rngm.MeshType = "Brick" | |
2884 | rngm.Scale = vt(x1,y1,z1) | |
2885 | if rainbowmode == true then | |
2886 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2887 | end | |
2888 | local scaler2 = 1 | |
2889 | local speeder = FastSpeed/10 | |
2890 | if type == "Add" then | |
2891 | scaler2 = 1*value | |
2892 | elseif type == "Divide" then | |
2893 | scaler2 = 1/value | |
2894 | end | |
2895 | coroutine.resume(coroutine.create(function() | |
2896 | for i = 0,10/bonuspeed,0.1 do | |
2897 | swait() | |
2898 | if rainbowmode == true then | |
2899 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2900 | end | |
2901 | if type == "Add" then | |
2902 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2903 | elseif type == "Divide" then | |
2904 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2905 | end | |
2906 | if chaosmode == true then | |
2907 | rng.BrickColor = BrickColor.random() | |
2908 | end | |
2909 | speeder = speeder - 0.01*FastSpeed*bonuspeed/10 | |
2910 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
2911 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2912 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2913 | end | |
2914 | rng:Destroy() | |
2915 | end)) | |
2916 | end | |
2917 | ||
2918 | function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2919 | local type = type | |
2920 | local rng = Instance.new("Part", char) | |
2921 | rng.Anchored = true | |
2922 | rng.BrickColor = color | |
2923 | rng.CanCollide = false | |
2924 | rng.FormFactor = 3 | |
2925 | rng.Name = "Ring" | |
2926 | rng.Material = "Neon" | |
2927 | rng.Size = Vector3.new(1, 1, 1) | |
2928 | rng.Transparency = 0 | |
2929 | rng.TopSurface = 0 | |
2930 | rng.BottomSurface = 0 | |
2931 | rng.CFrame = pos | |
2932 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2933 | local rngm = Instance.new("SpecialMesh", rng) | |
2934 | rngm.MeshType = "Brick" | |
2935 | rngm.Scale = vt(x1,y1,z1) | |
2936 | if rainbowmode == true then | |
2937 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2938 | end | |
2939 | local scaler2 = 1 | |
2940 | local speeder = FastSpeed/10 | |
2941 | if type == "Add" then | |
2942 | scaler2 = 1*value | |
2943 | elseif type == "Divide" then | |
2944 | scaler2 = 1/value | |
2945 | end | |
2946 | coroutine.resume(coroutine.create(function() | |
2947 | for i = 0,10/bonuspeed,0.1 do | |
2948 | swait() | |
2949 | if rainbowmode == true then | |
2950 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2951 | end | |
2952 | if type == "Add" then | |
2953 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2954 | elseif type == "Divide" then | |
2955 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2956 | end | |
2957 | if chaosmode == true then | |
2958 | rng.BrickColor = BrickColor.random() | |
2959 | end | |
2960 | speeder = speeder - 0.01*FastSpeed*bonuspeed/10 | |
2961 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
2962 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2963 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2964 | end | |
2965 | rng:Destroy() | |
2966 | end)) | |
2967 | end | |
2968 | ||
2969 | function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2970 | local type = type | |
2971 | local rng = Instance.new("Part", char) | |
2972 | rng.Anchored = true | |
2973 | rng.BrickColor = color | |
2974 | rng.CanCollide = false | |
2975 | rng.FormFactor = 3 | |
2976 | rng.Name = "Ring" | |
2977 | rng.Material = "Neon" | |
2978 | rng.Size = Vector3.new(1, 1, 1) | |
2979 | rng.Transparency = 0 | |
2980 | rng.TopSurface = 0 | |
2981 | rng.BottomSurface = 0 | |
2982 | rng.CFrame = pos | |
2983 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2984 | local rngm = Instance.new("SpecialMesh", rng) | |
2985 | rngm.MeshType = "Brick" | |
2986 | rngm.Scale = vt(x1,y1,z1) | |
2987 | if rainbowmode == true then | |
2988 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2989 | end | |
2990 | local scaler2 = 0 | |
2991 | local speeder = FastSpeed/10 | |
2992 | if type == "Add" then | |
2993 | scaler2 = 1*value | |
2994 | elseif type == "Divide" then | |
2995 | scaler2 = 1/value | |
2996 | end | |
2997 | coroutine.resume(coroutine.create(function() | |
2998 | for i = 0,10/bonuspeed,0.1 do | |
2999 | swait() | |
3000 | if rainbowmode == true then | |
3001 | rng.Color = Color3.new(r/255,g/255,b/255) | |
3002 | end | |
3003 | if type == "Add" then | |
3004 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
3005 | elseif type == "Divide" then | |
3006 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
3007 | end | |
3008 | if chaosmode == true then | |
3009 | rng.BrickColor = BrickColor.random() | |
3010 | end | |
3011 | speeder = speeder + 0.01*FastSpeed*bonuspeed/10 | |
3012 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
3013 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
3014 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
3015 | end | |
3016 | rng:Destroy() | |
3017 | end)) | |
3018 | end | |
3019 | ||
3020 | function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3) | |
3021 | local type = type | |
3022 | local rng = Instance.new("Part", char) | |
3023 | rng.Anchored = true | |
3024 | rng.BrickColor = color | |
3025 | rng.Color = color3 | |
3026 | rng.CanCollide = false | |
3027 | rng.FormFactor = 3 | |
3028 | rng.Name = "Ring" | |
3029 | rng.Material = "Neon" | |
3030 | rng.Size = Vector3.new(1, 1, 1) | |
3031 | rng.Transparency = 0 | |
3032 | rng.TopSurface = 0 | |
3033 | rng.BottomSurface = 0 | |
3034 | rng.CFrame = pos | |
3035 | local rngm = Instance.new("SpecialMesh", rng) | |
3036 | rngm.MeshType = "Brick" | |
3037 | rngm.Scale = scale | |
3038 | local scaler2 = 1 | |
3039 | local scaler2b = 1 | |
3040 | local scaler2c = 1 | |
3041 | if type == "Add" then | |
3042 | scaler2 = 1*value | |
3043 | scaler2b = 1*value2 | |
3044 | scaler2c = 1*value3 | |
3045 | elseif type == "Divide" then | |
3046 | scaler2 = 1/value | |
3047 | scaler2b = 1/value2 | |
3048 | scaler2c = 1/value3 | |
3049 | end | |
3050 | coroutine.resume(coroutine.create(function() | |
3051 | for i = 0,10/bonuspeed,0.1 do | |
3052 | swait() | |
3053 | if type == "Add" then | |
3054 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
3055 | scaler2b = scaler2b - 0.01*value/bonuspeed | |
3056 | scaler2c = scaler2c - 0.01*value/bonuspeed | |
3057 | elseif type == "Divide" then | |
3058 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
3059 | scaler2b = scaler2b - 0.01/value*bonuspeed | |
3060 | scaler2c = scaler2c - 0.01/value*bonuspeed | |
3061 | end | |
3062 | rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
3063 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
3064 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed) | |
3065 | end | |
3066 | rng:Destroy() | |
3067 | end)) | |
3068 | end | |
3069 | ||
3070 | function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
3071 | local type = type | |
3072 | local rng = Instance.new("Part", char) | |
3073 | rng.Anchored = true | |
3074 | if ModeOfGlitch ~= 9 then | |
3075 | rng.BrickColor = color | |
3076 | elseif ModeOfGlitch == 9 then | |
3077 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
3078 | end | |
3079 | rng.CanCollide = false | |
3080 | rng.FormFactor = 3 | |
3081 | rng.Name = "Ring" | |
3082 | rng.Material = "Neon" | |
3083 | rng.Size = Vector3.new(1, 1, 1) | |
3084 | rng.Transparency = 0 | |
3085 | rng.TopSurface = 0 | |
3086 | rng.BottomSurface = 0 | |
3087 | rng.CFrame = pos | |
3088 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
3089 | local rngm = Instance.new("SpecialMesh", rng) | |
3090 | rngm.MeshType = "Sphere" | |
3091 | rngm.Scale = vt(x1,y1,z1) | |
3092 | if rainbowmode == true then | |
3093 | rng.Color = Color3.new(r/255,g/255,b/255) | |
3094 | end | |
3095 | if ModeOfGlitch == 9 then | |
3096 | coroutine.resume(coroutine.create(function() | |
3097 | while true do | |
3098 | swait() | |
3099 | if rng.Parent ~= nil then | |
3100 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
3101 | else | |
3102 | break | |
3103 | end | |
3104 | end | |
3105 | end)) | |
3106 | end | |
3107 | local scaler2 = 1 | |
3108 | local speeder = FastSpeed | |
3109 | if type == "Add" then | |
3110 | scaler2 = 1*value | |
3111 | elseif type == "Divide" then | |
3112 | scaler2 = 1/value | |
3113 | end | |
3114 | coroutine.resume(coroutine.create(function() | |
3115 | for i = 0,10/bonuspeed,0.1 do | |
3116 | swait() | |
3117 | if rainbowmode == true then | |
3118 | rng.Color = Color3.new(r/255,g/255,b/255) | |
3119 | end | |
3120 | if type == "Add" then | |
3121 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
3122 | elseif type == "Divide" then | |
3123 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
3124 | end | |
3125 | if chaosmode == true then | |
3126 | rng.BrickColor = BrickColor.random() | |
3127 | end | |
3128 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
3129 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
3130 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
3131 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
3132 | end | |
3133 | rng:Destroy() | |
3134 | end)) | |
3135 | end | |
3136 | ||
3137 | ||
3138 | function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
3139 | local type = type | |
3140 | local rng = Instance.new("Part", char) | |
3141 | rng.Anchored = true | |
3142 | if ModeOfGlitch ~= 9 then | |
3143 | rng.BrickColor = color | |
3144 | elseif ModeOfGlitch == 9 then | |
3145 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
3146 | end | |
3147 | rng.CanCollide = false | |
3148 | rng.FormFactor = 3 | |
3149 | rng.Name = "Ring" | |
3150 | rng.Material = "Neon" | |
3151 | rng.Size = Vector3.new(1, 1, 1) | |
3152 | rng.Transparency = 1 | |
3153 | rng.TopSurface = 0 | |
3154 | rng.BottomSurface = 0 | |
3155 | rng.CFrame = pos | |
3156 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
3157 | local rngm = Instance.new("SpecialMesh", rng) | |
3158 | rngm.MeshType = "Sphere" | |
3159 | rngm.Scale = vt(x1,y1,z1) | |
3160 | if rainbowmode == true then | |
3161 | rng.Color = Color3.new(r/255,g/255,b/255) | |
3162 | end | |
3163 | if ModeOfGlitch == 9 then | |
3164 | coroutine.resume(coroutine.create(function() | |
3165 | while true do | |
3166 | swait() | |
3167 | if rng.Parent ~= nil then | |
3168 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
3169 | else | |
3170 | break | |
3171 | end | |
3172 | end | |
3173 | end)) | |
3174 | end | |
3175 | local scaler2 = 1 | |
3176 | local speeder = FastSpeed | |
3177 | if type == "Add" then | |
3178 | scaler2 = 1*value | |
3179 | elseif type == "Divide" then | |
3180 | scaler2 = 1/value | |
3181 | end | |
3182 | coroutine.resume(coroutine.create(function() | |
3183 | for i = 0,10/bonuspeed,0.1 do | |
3184 | swait() | |
3185 | if rainbowmode == true then | |
3186 | rng.Color = Color3.new(r/255,g/255,b/255) | |
3187 | end | |
3188 | if type == "Add" then | |
3189 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
3190 | elseif type == "Divide" then | |
3191 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
3192 | end | |
3193 | if chaosmode == true then | |
3194 | rng.BrickColor = BrickColor.random() | |
3195 | end | |
3196 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
3197 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
3198 | rng.Transparency = rng.Transparency - 0.01*bonuspeed | |
3199 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
3200 | end | |
3201 | rng:Destroy() | |
3202 | end)) | |
3203 | end | |
3204 | ||
3205 | function dmg(dude) | |
3206 | if dude.Name ~= Character then | |
3207 | local keptcolor = MAINRUINCOLOR | |
3208 | local bgf = Instance.new("BodyGyro",dude.Head) | |
3209 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
3210 | --[[local val = Instance.new("BoolValue",dude) | |
3211 | val.Name = "IsHit"]]-- | |
3212 | local ds = coroutine.wrap(function() | |
3213 | dude:WaitForChild("Head"):BreakJoints() | |
3214 | for i, v in pairs(dude:GetChildren()) do | |
3215 | if v:IsA("Part") or v:IsA("MeshPart") then | |
3216 | v.Name = "DEMINISHED" | |
3217 | end | |
3218 | end | |
3219 | wait(0.5) | |
3220 | targetted = nil | |
3221 | CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285) | |
3222 | coroutine.resume(coroutine.create(function() | |
3223 | for i, v in pairs(dude:GetChildren()) do | |
3224 | if v:IsA("Accessory") then | |
3225 | v:Destroy() | |
3226 | end | |
3227 | if v:IsA("Humanoid") then | |
3228 | v:Destroy() | |
3229 | end | |
3230 | if v:IsA("CharacterMesh") then | |
3231 | v:Destroy() | |
3232 | end | |
3233 | if v:IsA("Model") then | |
3234 | v:Destroy() | |
3235 | end | |
3236 | if v:IsA("Part") or v:IsA("MeshPart") then | |
3237 | for x, o in pairs(v:GetChildren()) do | |
3238 | if o:IsA("Decal") then | |
3239 | o:Destroy() | |
3240 | end | |
3241 | end | |
3242 | coroutine.resume(coroutine.create(function() | |
3243 | v.Material = "Neon" | |
3244 | v.CanCollide = false | |
3245 | v.Anchored = false | |
3246 | local bld = Instance.new("ParticleEmitter",v) | |
3247 | bld.LightEmission = 0.75 | |
3248 | bld.Texture = "rbxassetid://363275192" ---284205403 | |
3249 | bld.Color = ColorSequence.new(keptcolor.Color) | |
3250 | bld.Rate = 500 | |
3251 | bld.Lifetime = NumberRange.new(1) | |
3252 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3253 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3254 | bld.Speed = NumberRange.new(2,5) | |
3255 | bld.VelocitySpread = 50000 | |
3256 | bld.Rotation = NumberRange.new(-500,500) | |
3257 | bld.RotSpeed = NumberRange.new(-500,500) | |
3258 | local sbs = Instance.new("BodyPosition", v) | |
3259 | sbs.P = 3000 | |
3260 | sbs.D = 1000 | |
3261 | sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
3262 | sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2)) | |
3263 | v.Color = keptcolor.Color | |
3264 | coroutine.resume(coroutine.create(function() | |
3265 | for i = 0, 49 do | |
3266 | swait(1) | |
3267 | v:BreakJoints() | |
3268 | v.Transparency = v.Transparency + 0.02 | |
3269 | end | |
3270 | v:BreakJoints() | |
3271 | sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor) | |
3272 | CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75) | |
3273 | bld.Speed = NumberRange.new(10,25) | |
3274 | bld.Drag = 5 | |
3275 | bld.Acceleration = vt(0,2,0) | |
3276 | wait(0.5) | |
3277 | bld.Enabled = false | |
3278 | wait(8) | |
3279 | v:Destroy() | |
3280 | dude:Destroy() | |
3281 | end)) | |
3282 | end)) | |
3283 | end | |
3284 | end | |
3285 | end)) | |
3286 | end) | |
3287 | ds() | |
3288 | end | |
3289 | end | |
3290 | ||
3291 | ||
3292 | function FindNearestHead(Position, Distance, SinglePlayer) | |
3293 | if SinglePlayer then | |
3294 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
3295 | end | |
3296 | local List = {} | |
3297 | for i, v in pairs(workspace:GetChildren()) do | |
3298 | if v:IsA("Model") then | |
3299 | if v:findFirstChild("Head") then | |
3300 | if v ~= Character then | |
3301 | if (v.Head.Position - Position).magnitude <= Distance then | |
3302 | table.insert(List, v) | |
3303 | end | |
3304 | end | |
3305 | end | |
3306 | end | |
3307 | end | |
3308 | return List | |
3309 | end | |
3310 | ||
3311 | function FaceMouse() | |
3312 | Cam = workspace.CurrentCamera | |
3313 | return { | |
3314 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
3315 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
3316 | } | |
3317 | end | |
3318 | ||
3319 | function FaceMouse2() | |
3320 | Cam = workspace.CurrentCamera | |
3321 | return { | |
3322 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)), | |
3323 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
3324 | } | |
3325 | end | |
3326 | ||
3327 | local ModeOfGlitch = 1 | |
3328 | -- Functions are ready. | |
3329 | local storehumanoidWS = 12 | |
3330 | ||
3331 | function CorruptBlink() | |
3332 | for i = 0, 14 do | |
3333 | PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0) | |
3334 | end | |
3335 | sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
3336 | CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1) | |
3337 | RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0) | |
3338 | CameraEnshaking(2,10) | |
3339 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do | |
3340 | if v:FindFirstChild('Head') then | |
3341 | dmg(v) | |
3342 | end | |
3343 | end | |
3344 | for i = 0, 14 do | |
3345 | PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0) | |
3346 | end | |
3347 | sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
3348 | end | |
3349 | function PureBomb() | |
3350 | attack = true | |
3351 | hum.WalkSpeed = 0 | |
3352 | local orb = Instance.new("Part", char) | |
3353 | orb.Anchored = true | |
3354 | orb.BrickColor = BrickColor.new("Toothpaste") | |
3355 | orb.CanCollide = false | |
3356 | orb.FormFactor = 3 | |
3357 | orb.Name = "Ring" | |
3358 | orb.Material = "Neon" | |
3359 | orb.Size = Vector3.new(1, 1, 1) | |
3360 | orb.Transparency = 0 | |
3361 | orb.TopSurface = 0 | |
3362 | orb.BottomSurface = 0 | |
3363 | local orbm = Instance.new("SpecialMesh", orb) | |
3364 | orbm.MeshType = "Sphere" | |
3365 | orbm.Name = "SizeMesh" | |
3366 | orbm.Scale = vt(0,0,0) | |
3367 | local scaled = 0.1 | |
3368 | local posid = 0 | |
3369 | CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1) | |
3370 | for i = 0, 5, 0.1 do | |
3371 | swait() | |
3372 | scaled = scaled - 0.001 | |
3373 | posid = posid - scaled | |
3374 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
3375 | local scaled = 0.1 | |
3376 | orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled) | |
3377 | sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Toothpaste"),10) | |
3378 | PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,BrickColor.new("Toothpaste"),0) | |
3379 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1) | |
3380 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1) | |
3381 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
3382 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
3383 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1) | |
3384 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1) | |
3385 | end | |
3386 | for i = 0, 2, 0.1 do | |
3387 | swait() | |
3388 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
3389 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
3390 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
3391 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4) | |
3392 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4) | |
3393 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4) | |
3394 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4) | |
3395 | end | |
3396 | coroutine.resume(coroutine.create(function() | |
3397 | orb.Anchored = false | |
3398 | CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1) | |
3399 | local a = Instance.new("Part",workspace) | |
3400 | a.Name = "Direction" | |
3401 | a.Anchored = true | |
3402 | a.BrickColor = bc("Bright red") | |
3403 | a.Material = "Neon" | |
3404 | a.Transparency = 1 | |
3405 | a.CanCollide = false | |
3406 | local ray = Ray.new( | |
3407 | orb.CFrame.p, -- origin | |
3408 | (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction | |
3409 | ) | |
3410 | local ignore = orb | |
3411 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3412 | a.BottomSurface = 10 | |
3413 | a.TopSurface = 10 | |
3414 | local distance = (orb.CFrame.p - position).magnitude | |
3415 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
3416 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
3417 | orb.CFrame = a.CFrame | |
3418 | a:Destroy() | |
3419 | local bv = Instance.new("BodyVelocity") | |
3420 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3421 | bv.velocity = orb.CFrame.lookVector*125 | |
3422 | bv.Parent = orb | |
3423 | local hitted = false | |
3424 | game:GetService("Debris"):AddItem(orb, 15) | |
3425 | wait() | |
3426 | local hit =orb.Touched:connect(function(hit) | |
3427 | if hitted == false then | |
3428 | hitted = true | |
3429 | CameraEnshaking(10,2.5) | |
3430 | CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1) | |
3431 | MagniDamage(orb, 65, 65,90, 0, "Normal") | |
3432 | sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste")) | |
3433 | sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste")) | |
3434 | for i = 0, 49 do | |
3435 | PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0) | |
3436 | end | |
3437 | for i = 0, 9 do | |
3438 | sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0) | |
3439 | sphereMK(2,5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0) | |
3440 | end | |
3441 | orb.Anchored = true | |
3442 | orb.Transparency = 1 | |
3443 | wait(8) | |
3444 | orb:Destroy() | |
3445 | end | |
3446 | end) | |
3447 | end)) | |
3448 | for i = 0, 1, 0.1 do | |
3449 | swait() | |
3450 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
3451 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
3452 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4) | |
3453 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4) | |
3454 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4) | |
3455 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4) | |
3456 | end | |
3457 | hum.WalkSpeed = storehumanoidWS | |
3458 | attack = false | |
3459 | end | |
3460 | ||
3461 | function BanishingOrb() | |
3462 | attack = true | |
3463 | hum.WalkSpeed = 0 | |
3464 | local radm = math.random(1,3) | |
3465 | if radm == 1 then | |
3466 | bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1) | |
3467 | elseif radm == 2 then | |
3468 | bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1) | |
3469 | elseif radm == 3 then | |
3470 | bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1) | |
3471 | end | |
3472 | CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1) | |
3473 | CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1) | |
3474 | local orb = Instance.new("Part", char) | |
3475 | orb.Anchored = true | |
3476 | orb.BrickColor = BrickColor.new("Lime green") | |
3477 | orb.CanCollide = false | |
3478 | orb.FormFactor = 3 | |
3479 | orb.Name = "Ring" | |
3480 | orb.Material = "Neon" | |
3481 | orb.Size = Vector3.new(1, 1, 1) | |
3482 | orb.Transparency = 0 | |
3483 | orb.TopSurface = 0 | |
3484 | orb.BottomSurface = 0 | |
3485 | local orbm = Instance.new("SpecialMesh", orb) | |
3486 | orbm.MeshType = "Sphere" | |
3487 | orbm.Name = "SizeMesh" | |
3488 | orbm.Scale = vt(0,0,0) | |
3489 | local scaled = 0.1 | |
3490 | local posid = 0 | |
3491 | CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9) | |
3492 | for i = 0, 5, 0.1 do | |
3493 | swait() | |
3494 | scaled = scaled - 0.001 | |
3495 | posid = posid - scaled | |
3496 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
3497 | local scaled = 0.1 | |
3498 | orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled) | |
3499 | sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Cool yellow"),10) | |
3500 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1) | |
3501 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1) | |
3502 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
3503 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
3504 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1) | |
3505 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1) | |
3506 | end | |
3507 | for i = 0, 2, 0.1 do | |
3508 | swait() | |
3509 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
3510 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
3511 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
3512 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4) | |
3513 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4) | |
3514 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4) | |
3515 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4) | |
3516 | end | |
3517 | coroutine.resume(coroutine.create(function() | |
3518 | orb.Anchored = false | |
3519 | CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75) | |
3520 | local a = Instance.new("Part",workspace) | |
3521 | a.Name = "Direction" | |
3522 | a.Anchored = true | |
3523 | a.BrickColor = bc("Lime green") | |
3524 | a.Material = "Neon" | |
3525 | a.Transparency = 1 | |
3526 | a.CanCollide = false | |
3527 | local ray = Ray.new( | |
3528 | orb.CFrame.p, -- origin | |
3529 | (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction | |
3530 | ) | |
3531 | local ignore = orb | |
3532 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3533 | a.BottomSurface = 10 | |
3534 | a.TopSurface = 10 | |
3535 | local distance = (orb.CFrame.p - position).magnitude | |
3536 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
3537 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
3538 | orb.CFrame = a.CFrame | |
3539 | a:Destroy() | |
3540 | local bv = Instance.new("BodyVelocity") | |
3541 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3542 | bv.velocity = orb.CFrame.lookVector*0 | |
3543 | bv.Parent = orb | |
3544 | local hitted = false | |
3545 | local rate = 0 | |
3546 | coroutine.resume(coroutine.create(function() | |
3547 | for i = 0, 24 do | |
3548 | wait(0.1) | |
3549 | rate = rate + 0.25 | |
3550 | bv.velocity = bv.velocity + orb.CFrame.lookVector*rate | |
3551 | for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do | |
3552 | if v:FindFirstChild('Head') then | |
3553 | dmg(v) | |
3554 | end | |
3555 | end | |
3556 | CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9) | |
3557 | sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green") | |
3558 | sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR) | |
3559 | end | |
3560 | orb.Anchored = true | |
3561 | orb.Transparency = 1 | |
3562 | for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do | |
3563 | if v:FindFirstChild('Head') then | |
3564 | dmg(v) | |
3565 | end | |
3566 | end | |
3567 | local eff = Instance.new("ParticleEmitter",orb) | |
3568 | eff.Texture = "rbxassetid://296874871" | |
3569 | eff.LightEmission = 0.95 | |
3570 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
3571 | eff.Rate = 1000000000 | |
3572 | eff.Lifetime = NumberRange.new(3) | |
3573 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,9,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3574 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3575 | eff.Speed = NumberRange.new(30) | |
3576 | eff.Acceleration = vt(0,-15,0) | |
3577 | eff.Rotation = NumberRange.new(-500,500) | |
3578 | eff.VelocitySpread = 100000 | |
3579 | eff.RotSpeed = NumberRange.new(-500,500) | |
3580 | coroutine.resume(coroutine.create(function() | |
3581 | wait(0.6) | |
3582 | eff.Enabled = false | |
3583 | end)) | |
3584 | CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6) | |
3585 | CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9) | |
3586 | sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green") | |
3587 | sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
3588 | sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR) | |
3589 | game:GetService("Debris"):AddItem(orb, 15) | |
3590 | end)) | |
3591 | end)) | |
3592 | for i = 0, 1, 0.1 do | |
3593 | swait() | |
3594 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
3595 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
3596 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4) | |
3597 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4) | |
3598 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4) | |
3599 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4) | |
3600 | end | |
3601 | hum.WalkSpeed = storehumanoidWS | |
3602 | attack = false | |
3603 | end | |
3604 | ||
3605 | ||
3606 | function ChaosGroundStrike() | |
3607 | attack = true | |
3608 | for i = 0, 2, 0.1 do | |
3609 | swait() | |
3610 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2) | |
3611 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2) | |
3612 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
3613 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
3614 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2) | |
3615 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2) | |
3616 | end | |
3617 | CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1) | |
3618 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1) | |
3619 | CameraEnshaking(4,12) | |
3620 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do | |
3621 | if v:FindFirstChild('Head') then | |
3622 | dmg(v) | |
3623 | end | |
3624 | end | |
3625 | sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random()) | |
3626 | sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random()) | |
3627 | sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random()) | |
3628 | for i = 0, 2, 0.1 do | |
3629 | swait() | |
3630 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0) | |
3631 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0) | |
3632 | RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4) | |
3633 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4) | |
3634 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
3635 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
3636 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4) | |
3637 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4) | |
3638 | end | |
3639 | attack = false | |
3640 | end | |
3641 | ||
3642 | ||
3643 | ||
3644 | function Starfall() | |
3645 | attack = true | |
3646 | hum.WalkSpeed = 0 | |
3647 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1) | |
3648 | for i = 0, 5, 0.1 do | |
3649 | swait() | |
3650 | PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
3651 | PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
3652 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1) | |
3653 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1) | |
3654 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
3655 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1) | |
3656 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1) | |
3657 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1) | |
3658 | end | |
3659 | local Overed = false | |
3660 | CameraEnshaking(2,20) | |
3661 | sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
3662 | sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
3663 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
3664 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1) | |
3665 | local orb = Instance.new("Part", char) | |
3666 | orb.Anchored = true | |
3667 | orb.BrickColor = BrickColor.new("Toothpaste") | |
3668 | orb.CanCollide = false | |
3669 | orb.FormFactor = 3 | |
3670 | orb.Name = "Remenant" | |
3671 | orb.Material = "Neon" | |
3672 | orb.CFrame = root.CFrame*CFrame.new(0,150,0) | |
3673 | orb.Size = Vector3.new(1, 1, 1) | |
3674 | orb.Transparency = 1 | |
3675 | orb.TopSurface = 0 | |
3676 | orb.BottomSurface = 0 | |
3677 | hum.WalkSpeed = storehumanoidWS | |
3678 | coroutine.resume(coroutine.create(function() | |
3679 | for i = 0, 9 do | |
3680 | swait(10) | |
3681 | local lb = Instance.new("Part") | |
3682 | lb.Color = MAINRUINCOLOR.Color | |
3683 | lb.CanCollide = false | |
3684 | lb.Material = "Neon" | |
3685 | lb.Anchored = true | |
3686 | lb.TopSurface = 0 | |
3687 | lb.BottomSurface = 0 | |
3688 | lb.Transparency = 0 | |
3689 | lb.Size = vt(1,1,1) | |
3690 | lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15))) | |
3691 | lb.Anchored = false | |
3692 | lb.Parent = char | |
3693 | local thingery = Instance.new("SpecialMesh",lb) | |
3694 | thingery.MeshType = "Sphere" | |
3695 | thingery.Scale = vt(20,20,20) | |
3696 | game:GetService("Debris"):AddItem(lb, 10) | |
3697 | local bv = Instance.new("BodyVelocity") | |
3698 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3699 | bv.velocity = lb.CFrame.lookVector*math.random(75,250) | |
3700 | bv.Parent = lb | |
3701 | sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR) | |
3702 | sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR) | |
3703 | CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1) | |
3704 | CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1) | |
3705 | CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1) | |
3706 | CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1) | |
3707 | local hitted = false | |
3708 | coroutine.resume(coroutine.create(function() | |
3709 | while true do | |
3710 | swait(1) | |
3711 | if lb.Parent ~= nil and hitted == false then | |
3712 | PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2) | |
3713 | elseif lb.Parent == nil then | |
3714 | break | |
3715 | end | |
3716 | end | |
3717 | end)) | |
3718 | ||
3719 | game:GetService("Debris"):AddItem(a, 0.1) | |
3720 | ||
3721 | coroutine.resume(coroutine.create(function() | |
3722 | swait(1) | |
3723 | lb.Touched:connect(function(hit) | |
3724 | if hitted == false then | |
3725 | hitted = true | |
3726 | lb.Transparency = 1 | |
3727 | lb.Anchored = true | |
3728 | CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1) | |
3729 | CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7) | |
3730 | CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75) | |
3731 | CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75) | |
3732 | CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1) | |
3733 | CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85) | |
3734 | MagniDamage(lb, 45, 45,85, 0, "Normal") | |
3735 | CameraEnshaking(1,5) | |
3736 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
3737 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
3738 | for i = 0, 9 do | |
3739 | sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0) | |
3740 | end | |
3741 | for i = 0, 49 do | |
3742 | swait() | |
3743 | MagniDamage(lb, 30, 2,4, 0, "Normal") | |
3744 | PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0) | |
3745 | end | |
3746 | end | |
3747 | end) | |
3748 | end)) | |
3749 | end | |
3750 | Overed = true | |
3751 | orb:Destroy() | |
3752 | end)) | |
3753 | ||
3754 | attack = false | |
3755 | end | |
3756 | ||
3757 | function StarfallEX() | |
3758 | attack = true | |
3759 | hum.WalkSpeed = 0 | |
3760 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7) | |
3761 | CFuncs["EchoSound"].Create("rbxassetid://907332997", char, 5, 1,0,10,0.15,0.5,1) | |
3762 | bosschatfunc("Your interference has ended.",MAINRUINCOLOR.Color,0.7) | |
3763 | for i = 0, 10, 0.1 do | |
3764 | swait() | |
3765 | PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
3766 | PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
3767 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1) | |
3768 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1) | |
3769 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
3770 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1) | |
3771 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1) | |
3772 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1) | |
3773 | end | |
3774 | local Overed = false | |
3775 | CameraEnshaking(2,20) | |
3776 | sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR) | |
3777 | sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR) | |
3778 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
3779 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9) | |
3780 | local orb = Instance.new("Part", char) | |
3781 | orb.Anchored = true | |
3782 | orb.BrickColor = BrickColor.new("Toothpaste") | |
3783 | orb.CanCollide = false | |
3784 | orb.FormFactor = 3 | |
3785 | orb.Name = "Remenant" | |
3786 | orb.Material = "Neon" | |
3787 | orb.CFrame = root.CFrame*CFrame.new(0,250,0) | |
3788 | orb.Size = Vector3.new(1, 1, 1) | |
3789 | orb.Transparency = 1 | |
3790 | orb.TopSurface = 0 | |
3791 | orb.BottomSurface = 0 | |
3792 | hum.WalkSpeed = storehumanoidWS | |
3793 | coroutine.resume(coroutine.create(function() | |
3794 | for i = 0, 25 do | |
3795 | swait(15) | |
3796 | local lb = Instance.new("Part") | |
3797 | lb.Color = MAINRUINCOLOR.Color | |
3798 | lb.CanCollide = false | |
3799 | lb.Material = "Neon" | |
3800 | lb.Anchored = true | |
3801 | lb.TopSurface = 0 | |
3802 | lb.BottomSurface = 0 | |
3803 | lb.Transparency = 0 | |
3804 | lb.Size = vt(1,1,1) | |
3805 | lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15))) | |
3806 | lb.Anchored = false | |
3807 | lb.Parent = char | |
3808 | local thingery = Instance.new("SpecialMesh",lb) | |
3809 | thingery.MeshType = "Sphere" | |
3810 | thingery.Scale = vt(50,50,50) | |
3811 | game:GetService("Debris"):AddItem(lb, 10) | |
3812 | local bv = Instance.new("BodyVelocity") | |
3813 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3814 | bv.velocity = lb.CFrame.lookVector*math.random(50,420) | |
3815 | bv.Parent = lb | |
3816 | sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR) | |
3817 | sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR) | |
3818 | CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9) | |
3819 | CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9) | |
3820 | CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9) | |
3821 | CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9) | |
3822 | local hitted = false | |
3823 | coroutine.resume(coroutine.create(function() | |
3824 | while true do | |
3825 | swait(1) | |
3826 | if lb.Parent ~= nil and hitted == false then | |
3827 | PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),25,25,25,0.25,MAINRUINCOLOR,-2) | |
3828 | elseif lb.Parent == nil then | |
3829 | break | |
3830 | end | |
3831 | end | |
3832 | end)) | |
3833 | ||
3834 | game:GetService("Debris"):AddItem(a, 0.1) | |
3835 | ||
3836 | coroutine.resume(coroutine.create(function() | |
3837 | swait(1) | |
3838 | lb.Touched:connect(function(hit) | |
3839 | if hitted == false then | |
3840 | hitted = true | |
3841 | lb.Transparency = 1 | |
3842 | lb.Anchored = true | |
3843 | CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9) | |
3844 | CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6) | |
3845 | CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65) | |
3846 | CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65) | |
3847 | CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9) | |
3848 | CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75) | |
3849 | MagniDamage(lb, 50, 60,99, 0, "Normal") | |
3850 | CameraEnshaking(1,5) | |
3851 | sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR) | |
3852 | sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR) | |
3853 | for i = 0, 9 do | |
3854 | sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,100,-0.1,MAINRUINCOLOR,0) | |
3855 | end | |
3856 | for i = 0, 99 do | |
3857 | swait() | |
3858 | MagniDamage(lb, 30, 6,18, 0, "Normal") | |
3859 | PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),32,32,32,0.32,MAINRUINCOLOR,0) | |
3860 | end | |
3861 | end | |
3862 | end) | |
3863 | end)) | |
3864 | end | |
3865 | Overed = true | |
3866 | orb:Destroy() | |
3867 | end)) | |
3868 | ||
3869 | attack = false | |
3870 | end | |
3871 | ||
3872 | function DivineBlast() | |
3873 | attack = true | |
3874 | bosschatfunc("Justice Beam!!!",MAINRUINCOLOR.Color,0.7) | |
3875 | hum.WalkSpeed = 0 | |
3876 | local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random()) | |
3877 | elocacenter.Anchored = true | |
3878 | elocacenter.CFrame = sorb.CFrame | |
3879 | local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
3880 | eloca1.Anchored = true | |
3881 | eloca1.CFrame = elocacenter.CFrame | |
3882 | local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
3883 | eloca2.Anchored = true | |
3884 | eloca2.CFrame = elocacenter.CFrame | |
3885 | local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
3886 | eloca3.Anchored = true | |
3887 | eloca3.CFrame = elocacenter.CFrame | |
3888 | local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
3889 | eloca4.Anchored = true | |
3890 | eloca4.CFrame = elocacenter.CFrame | |
3891 | local lookavec = 0 | |
3892 | local speeds = 0 | |
3893 | CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1) | |
3894 | for i = 0, 3, 0.1 do | |
3895 | swait() | |
3896 | --- | |
3897 | lookavec = lookavec + 0.1 | |
3898 | speeds = speeds + 10 | |
3899 | elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
3900 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
3901 | PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
3902 | ||
3903 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
3904 | PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
3905 | ||
3906 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
3907 | PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
3908 | ||
3909 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
3910 | PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
3911 | --- | |
3912 | root.CFrame = FaceMouse()[1] | |
3913 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
3914 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
3915 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
3916 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1) | |
3917 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1) | |
3918 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1) | |
3919 | end | |
3920 | for i = 0, 3, 0.1 do | |
3921 | swait() | |
3922 | --- | |
3923 | speeds = speeds + 10 | |
3924 | elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
3925 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
3926 | PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
3927 | ||
3928 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
3929 | PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
3930 | ||
3931 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
3932 | PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
3933 | ||
3934 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
3935 | PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
3936 | --- | |
3937 | root.CFrame = FaceMouse()[1] | |
3938 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
3939 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
3940 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
3941 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1) | |
3942 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1) | |
3943 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1) | |
3944 | end | |
3945 | CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1) | |
3946 | CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1) | |
3947 | for i = 0, 3, 0.1 do | |
3948 | swait() | |
3949 | --- | |
3950 | speeds = speeds + 10 | |
3951 | elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
3952 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
3953 | PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
3954 | ||
3955 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
3956 | PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
3957 | ||
3958 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
3959 | PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
3960 | ||
3961 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
3962 | PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
3963 | --- | |
3964 | root.CFrame = FaceMouse()[1] | |
3965 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
3966 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
3967 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(40)),.1) | |
3968 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(-40)),.1) | |
3969 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1) | |
3970 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1) | |
3971 | end | |
3972 | coroutine.resume(coroutine.create(function() | |
3973 | local a = Instance.new("Part",Character) | |
3974 | a.Name = "Direction" | |
3975 | a.Anchored = true | |
3976 | a.BrickColor = bc("White") | |
3977 | a.Material = "Neon" | |
3978 | a.Transparency = 0 | |
3979 | a.Shape = "Cylinder" | |
3980 | a.CanCollide = false | |
3981 | local a2 = Instance.new("Part",Character) | |
3982 | a2.Name = "Direction" | |
3983 | a2.Anchored = true | |
3984 | a2.BrickColor = bc("Bright yellow") | |
3985 | a2.Material = "Neon" | |
3986 | a2.Transparency = 0 | |
3987 | a2.Shape = "Cylinder" | |
3988 | a2.CanCollide = false | |
3989 | local b = Instance.new("Part",Character) | |
3990 | b.Name = "HitDirect" | |
3991 | b.Anchored = true | |
3992 | b.BrickColor = bc("Cool yellow") | |
3993 | b.Material = "Neon" | |
3994 | b.Transparency = 1 | |
3995 | b.CanCollide = false | |
3996 | local ray = Ray.new( | |
3997 | elocacenter.CFrame.p, -- origin | |
3998 | (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction | |
3999 | ) | |
4000 | local ignore = Character | |
4001 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4002 | a.BottomSurface = 10 | |
4003 | a.TopSurface = 10 | |
4004 | a2.BottomSurface = 10 | |
4005 | a2.TopSurface = 10 | |
4006 | local distance = (elocacenter.CFrame.p - position).magnitude | |
4007 | a.Size = Vector3.new(distance, 1, 1) | |
4008 | a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4009 | a2.Size = Vector3.new(distance, 1, 1) | |
4010 | a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4011 | b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4012 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4013 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4014 | game:GetService("Debris"):AddItem(a, 10) | |
4015 | game:GetService("Debris"):AddItem(a2, 10) | |
4016 | game:GetService("Debris"):AddItem(b, 10) | |
4017 | local eff = Instance.new("ParticleEmitter",b) | |
4018 | eff.Texture = "rbxassetid://2273224484" | |
4019 | eff.LightEmission = 1 | |
4020 | eff.Color = ColorSequence.new(Color3.new(1,1,0)) | |
4021 | eff.Rate = 500000 | |
4022 | eff.Lifetime = NumberRange.new(0.5,2) | |
4023 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
4024 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
4025 | eff.Speed = NumberRange.new(20,250) | |
4026 | eff.Drag = 5 | |
4027 | eff.Rotation = NumberRange.new(-500,500) | |
4028 | eff.VelocitySpread = 9000 | |
4029 | eff.RotSpeed = NumberRange.new(-50,50) | |
4030 | coroutine.resume(coroutine.create(function() | |
4031 | wait(0.25) | |
4032 | eff.Enabled = false | |
4033 | end)) | |
4034 | local msh = Instance.new("SpecialMesh",a) | |
4035 | msh.MeshType = "Cylinder" | |
4036 | msh.Scale = vt(1,2,2) | |
4037 | local msh2 = Instance.new("SpecialMesh",a2) | |
4038 | msh2.MeshType = "Cylinder" | |
4039 | msh2.Scale = vt(1,2.5,2.5) | |
4040 | CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75) | |
4041 | coroutine.resume(coroutine.create(function() | |
4042 | for i = 0,10,0.1 do | |
4043 | swait() | |
4044 | msh.Scale = msh.Scale + vt(0,0.05,0.05) | |
4045 | a.Transparency = a.Transparency + 0.025 | |
4046 | msh2.Scale = msh2.Scale + vt(0,0.25,0.25) | |
4047 | a2.Transparency = a2.Transparency + 0.05 | |
4048 | end | |
4049 | a:Destroy() | |
4050 | a2:Destroy() | |
4051 | end)) | |
4052 | CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1) | |
4053 | CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7) | |
4054 | CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75) | |
4055 | CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75) | |
4056 | CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1) | |
4057 | CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85) | |
4058 | MagniDamage(b, 25, 40,65, 0, "Normal") | |
4059 | for i = 0, 49 do | |
4060 | PixelBlock(2,math.random(10,20),"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.04,BrickColor.new("Bright yellow"),0) | |
4061 | PixelBlock(1,math.random(1,10),"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Bright yellow"),0) | |
4062 | end | |
4063 | sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White")) | |
4064 | sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow")) | |
4065 | sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow")) | |
4066 | sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow")) | |
4067 | sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow")) | |
4068 | sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow")) | |
4069 | end)) | |
4070 | game:GetService("Debris"):AddItem(elocacenter, 5) | |
4071 | hum.WalkSpeed = storehumanoidWS | |
4072 | attack = false | |
4073 | end | |
4074 | ||
4075 | function StarDivision() | |
4076 | attack = true | |
4077 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5) | |
4078 | for i = 0, 2, 0.1 do | |
4079 | swait() | |
4080 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
4081 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
4082 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
4083 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1) | |
4084 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6) | |
4085 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1) | |
4086 | end | |
4087 | local orb = Instance.new("Part", char) | |
4088 | orb.BrickColor = MAINRUINCOLOR | |
4089 | orb.CanCollide = false | |
4090 | orb.FormFactor = 3 | |
4091 | orb.Name = "Ring" | |
4092 | orb.Material = "Neon" | |
4093 | orb.Size = Vector3.new(1, 1, 1) | |
4094 | orb.Transparency = 0 | |
4095 | orb.TopSurface = 0 | |
4096 | orb.BottomSurface = 0 | |
4097 | local orbm = Instance.new("SpecialMesh", orb) | |
4098 | orbm.MeshType = "Sphere" | |
4099 | orbm.Name = "SizeMesh" | |
4100 | orbm.Scale = vt(2,2,2) | |
4101 | local a = Instance.new("Part",workspace) | |
4102 | a.Name = "Direction" | |
4103 | a.Anchored = true | |
4104 | a.BrickColor = bc("Bright red") | |
4105 | a.Material = "Neon" | |
4106 | a.Transparency = 1 | |
4107 | a.CanCollide = false | |
4108 | local ray = Ray.new( | |
4109 | sorb.CFrame.p, -- origin | |
4110 | (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction | |
4111 | ) | |
4112 | local ignore = sorb | |
4113 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4114 | a.BottomSurface = 10 | |
4115 | a.TopSurface = 10 | |
4116 | local distance = (sorb.CFrame.p - position).magnitude | |
4117 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
4118 | a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
4119 | orb.CFrame = a.CFrame | |
4120 | a:Destroy() | |
4121 | local bv = Instance.new("BodyVelocity") | |
4122 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
4123 | bv.velocity = orb.CFrame.lookVector*100 | |
4124 | bv.Parent = orb | |
4125 | local hitted = false | |
4126 | game:GetService("Debris"):AddItem(orb, 10) | |
4127 | CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15) | |
4128 | CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15) | |
4129 | CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15) | |
4130 | CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15) | |
4131 | CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15) | |
4132 | coroutine.resume(coroutine.create(function() | |
4133 | while true do | |
4134 | swait(1) | |
4135 | if orb.Parent ~= nil and hitted == false then | |
4136 | PixelBlockNeg(1,math.random(1,2),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,1,0.02,MAINRUINCOLOR,-2) | |
4137 | elseif orb.Parent == nil then | |
4138 | break | |
4139 | end | |
4140 | end | |
4141 | end)) | |
4142 | coroutine.resume(coroutine.create(function() | |
4143 | swait(1) | |
4144 | orb.Touched:connect(function(hit) | |
4145 | if hitted == false then | |
4146 | hitted = true | |
4147 | game:GetService("Debris"):AddItem(orb, 5) | |
4148 | orb.Transparency = 1 | |
4149 | orb.Anchored = true | |
4150 | local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
4151 | elocacenter.Anchored = true | |
4152 | elocacenter.CFrame = orb.CFrame | |
4153 | elocacenter.Orientation = vt(0,0,0) | |
4154 | local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
4155 | eloca1.Anchored = true | |
4156 | eloca1.CFrame = elocacenter.CFrame | |
4157 | local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
4158 | eloca2.Anchored = true | |
4159 | eloca2.CFrame = elocacenter.CFrame | |
4160 | local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
4161 | eloca3.Anchored = true | |
4162 | eloca3.CFrame = elocacenter.CFrame | |
4163 | local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
4164 | eloca4.Anchored = true | |
4165 | eloca4.CFrame = elocacenter.CFrame | |
4166 | local lookavec = 0 | |
4167 | local speeds = 0 | |
4168 | CameraEnshaking(1,1) | |
4169 | CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1) | |
4170 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4171 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4172 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4173 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4174 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4175 | for i = 0, 99 do | |
4176 | swait() | |
4177 | lookavec = lookavec + 1 | |
4178 | speeds = speeds + 0.1 | |
4179 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
4180 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
4181 | PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4182 | ||
4183 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
4184 | PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4185 | ||
4186 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
4187 | PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4188 | ||
4189 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
4190 | PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4191 | end | |
4192 | ||
4193 | for i = 0, 149 do | |
4194 | swait() | |
4195 | speeds = speeds + 0.1 | |
4196 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
4197 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
4198 | PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4199 | ||
4200 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
4201 | PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4202 | ||
4203 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
4204 | PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4205 | ||
4206 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
4207 | PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4208 | end | |
4209 | for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do | |
4210 | if v:FindFirstChild('Head') then | |
4211 | dmg(v) | |
4212 | end | |
4213 | end | |
4214 | CameraEnshaking(7,30) | |
4215 | MagniDamage(elocacenter, 225, 50,75, 0, "Normal") | |
4216 | CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1) | |
4217 | CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75) | |
4218 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1) | |
4219 | CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1) | |
4220 | sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR) | |
4221 | sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR) | |
4222 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4223 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4224 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4225 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4226 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4227 | for i = 0, 24 do | |
4228 | sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0) | |
4229 | sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0) | |
4230 | sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0) | |
4231 | sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0) | |
4232 | end | |
4233 | coroutine.resume(coroutine.create(function() | |
4234 | for i = 0, 499 do | |
4235 | swait(1) | |
4236 | MagniDamage(elocacenter, 90, 1,5, 0, "Normal") | |
4237 | PixelBlockNeg(2,math.random(1,10),"Add",elocacenter.CFrame*CFrame.new(math.random(-75,75),0,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-30,30)),math.rad(math.random(-30,30)),math.rad(math.random(-30,30))),15,15,15,0.15,MAINRUINCOLOR,-5) | |
4238 | end | |
4239 | elocacenter:Destroy() | |
4240 | eloca1:Destroy() | |
4241 | eloca2:Destroy() | |
4242 | eloca3:Destroy() | |
4243 | eloca4:Destroy() | |
4244 | end)) | |
4245 | end | |
4246 | end) | |
4247 | end)) | |
4248 | attack = false | |
4249 | end | |
4250 | ||
4251 | ||
4252 | function THE_TRUE_POWER_OF_VIOLENCE() | |
4253 | attack = true | |
4254 | hum.WalkSpeed = 0 | |
4255 | bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4) | |
4256 | for i = 0, 10, 0.1 do | |
4257 | swait() | |
4258 | PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
4259 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1) | |
4260 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1) | |
4261 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(40)),.4) | |
4262 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4) | |
4263 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4) | |
4264 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4) | |
4265 | end | |
4266 | local orb = Instance.new("Part", char) | |
4267 | orb.BrickColor = MAINRUINCOLOR | |
4268 | orb.CanCollide = false | |
4269 | orb.FormFactor = 3 | |
4270 | orb.Name = "Ring" | |
4271 | orb.Material = "Neon" | |
4272 | orb.Size = Vector3.new(1, 1, 1) | |
4273 | orb.Transparency = 0 | |
4274 | orb.TopSurface = 0 | |
4275 | orb.BottomSurface = 0 | |
4276 | orb.CFrame = sorb.CFrame | |
4277 | local orbm = Instance.new("SpecialMesh", orb) | |
4278 | orbm.MeshType = "Sphere" | |
4279 | orbm.Name = "SizeMesh" | |
4280 | orbm.Scale = vt(0,0,0) | |
4281 | local sbs = Instance.new("BodyPosition", orb) | |
4282 | sbs.P = 3000 | |
4283 | sbs.D = 1000 | |
4284 | sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000) | |
4285 | sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0) | |
4286 | CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1) | |
4287 | sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
4288 | sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
4289 | sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
4290 | sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
4291 | sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
4292 | for i = 0, 10, 0.1 do | |
4293 | swait() | |
4294 | PixelBlockNeg(1,0.01,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),6,6,6,0.12,MAINRUINCOLOR,0) | |
4295 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1) | |
4296 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1) | |
4297 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6) | |
4298 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6) | |
4299 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4) | |
4300 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6) | |
4301 | end | |
4302 | orb.Anchored = true | |
4303 | local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random()) | |
4304 | elocacenter.Anchored = true | |
4305 | elocacenter.CFrame = orb.CFrame | |
4306 | elocacenter.Orientation = vt(0,0,0) | |
4307 | local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random()) | |
4308 | eloca1.Anchored = true | |
4309 | eloca1.CFrame = elocacenter.CFrame | |
4310 | local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random()) | |
4311 | eloca2.Anchored = true | |
4312 | eloca2.CFrame = elocacenter.CFrame | |
4313 | local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random()) | |
4314 | eloca3.Anchored = true | |
4315 | eloca3.CFrame = elocacenter.CFrame | |
4316 | local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random()) | |
4317 | eloca4.Anchored = true | |
4318 | eloca4.CFrame = elocacenter.CFrame | |
4319 | local lookavec = 0 | |
4320 | local speeds = 0 | |
4321 | CameraEnshaking(1,1) | |
4322 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1) | |
4323 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1) | |
4324 | CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1) | |
4325 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1) | |
4326 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4327 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4328 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4329 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4330 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4331 | for i = 0, 99 do | |
4332 | swait() | |
4333 | lookavec = lookavec + 2.5 | |
4334 | speeds = speeds + 0.25 | |
4335 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
4336 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
4337 | PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4338 | ||
4339 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
4340 | PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4341 | ||
4342 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
4343 | PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4344 | ||
4345 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
4346 | PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4347 | end | |
4348 | ||
4349 | for i = 0, 149 do | |
4350 | swait() | |
4351 | speeds = speeds + 0.25 | |
4352 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
4353 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
4354 | PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4355 | ||
4356 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
4357 | PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4358 | ||
4359 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
4360 | PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4361 | ||
4362 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
4363 | PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4364 | end | |
4365 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75) | |
4366 | for i = 0, 99 do | |
4367 | swait() | |
4368 | lookavec = lookavec - 2.5 | |
4369 | speeds = speeds + 0.25 | |
4370 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
4371 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
4372 | PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4373 | ||
4374 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
4375 | PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4376 | ||
4377 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
4378 | PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4379 | ||
4380 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
4381 | PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4382 | end | |
4383 | local scaled = 0.1*75 | |
4384 | CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1) | |
4385 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1) | |
4386 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5) | |
4387 | CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5) | |
4388 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75) | |
4389 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5) | |
4390 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
4391 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
4392 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
4393 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
4394 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
4395 | ||
4396 | for i = 0, 10, 0.1 do | |
4397 | swait() | |
4398 | scaled = scaled - 0.001*75 | |
4399 | orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled) | |
4400 | PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
4401 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1) | |
4402 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1) | |
4403 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6) | |
4404 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6) | |
4405 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4) | |
4406 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6) | |
4407 | end | |
4408 | bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2) | |
4409 | CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1) | |
4410 | CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1) | |
4411 | for x = 0, 4 do | |
4412 | for i = 0, 9 do | |
4413 | sphereMK(0.5,0,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,100000,0,MAINRUINCOLOR,0) | |
4414 | end | |
4415 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75) | |
4416 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5) | |
4417 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
4418 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
4419 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
4420 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
4421 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
4422 | for i = 0, 5, 0.1 do | |
4423 | swait() | |
4424 | PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
4425 | PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
4426 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1) | |
4427 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1) | |
4428 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
4429 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1) | |
4430 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1) | |
4431 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1) | |
4432 | end | |
4433 | end | |
4434 | local speedearn = 0 | |
4435 | CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2) | |
4436 | CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75) | |
4437 | CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25) | |
4438 | for i = 0, 30, 0.1 do | |
4439 | swait() | |
4440 | scaled = scaled - 0.001*75/10 | |
4441 | speedearn = speedearn + 0.5 | |
4442 | for i = 0, 4 do | |
4443 | sphereMK(1+speedearn,speedearn,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
4444 | end | |
4445 | PixelBlock(1,speedearn,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1*speedearn/10,1*speedearn/10,1*speedearn/10,0.02*speedearn/10,MAINRUINCOLOR,0) | |
4446 | orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled) | |
4447 | PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
4448 | PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
4449 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1) | |
4450 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1) | |
4451 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.6) | |
4452 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6) | |
4453 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4) | |
4454 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6) | |
4455 | end | |
4456 | orb.Transparency = 1 | |
4457 | for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do | |
4458 | if v:FindFirstChild('Head') then | |
4459 | dmg(v) | |
4460 | end | |
4461 | end | |
4462 | CameraEnshaking(7,30) | |
4463 | MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal") | |
4464 | CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1) | |
4465 | CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5) | |
4466 | CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25) | |
4467 | CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1) | |
4468 | CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75) | |
4469 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1) | |
4470 | CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1) | |
4471 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1) | |
4472 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1) | |
4473 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5) | |
4474 | CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85) | |
4475 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1) | |
4476 | CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05) | |
4477 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
4478 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
4479 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
4480 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
4481 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
4482 | for i = 0, 99 do | |
4483 | PixelBlock(1,math.random(50,1000),"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.4,MAINRUINCOLOR,0) | |
4484 | PixelBlock(2,math.random(250,1000),"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,MAINRUINCOLOR,0) | |
4485 | end | |
4486 | for i = 0, 24 do | |
4487 | sphereMK(0.5,0,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,100000,0,MAINRUINCOLOR,0) | |
4488 | sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0) | |
4489 | sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0) | |
4490 | sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0) | |
4491 | sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0) | |
4492 | end | |
4493 | game:GetService("Debris"):AddItem(orb, 10) | |
4494 | hum.WalkSpeed = storehumanoidWS | |
4495 | attack = false | |
4496 | end | |
4497 | ||
4498 | ||
4499 | function ViolentRing() | |
4500 | attack = true | |
4501 | CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1) | |
4502 | bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7) | |
4503 | CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1) | |
4504 | CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1) | |
4505 | for i = 0, 2, 0.1 do | |
4506 | swait() | |
4507 | local snap = math.random(1,10) | |
4508 | if snap == 1 then | |
4509 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(-50 + math.random(-10,10))),1) | |
4510 | end | |
4511 | PixelBlockX(5,0.5,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0) | |
4512 | PixelBlockNeg(5,0.5,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0) | |
4513 | PixelBlockX(5,0.25,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.65,0.65,0.65,0.0065,MAINRUINCOLOR,0) | |
4514 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.6) | |
4515 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.6) | |
4516 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.6) | |
4517 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6) | |
4518 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4) | |
4519 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6) | |
4520 | RootPart.CFrame = FaceMouse()[1] | |
4521 | end | |
4522 | local orb = Instance.new("Part", char) | |
4523 | orb.BrickColor = MAINRUINCOLOR | |
4524 | orb.CanCollide = false | |
4525 | orb.FormFactor = 3 | |
4526 | orb.Name = "Ring" | |
4527 | orb.Material = "Neon" | |
4528 | orb.Size = Vector3.new(1, 1, 1) | |
4529 | orb.Transparency = 0 | |
4530 | orb.TopSurface = 0 | |
4531 | orb.BottomSurface = 0 | |
4532 | local orbm = Instance.new("SpecialMesh", orb) | |
4533 | orbm.MeshType = "Sphere" | |
4534 | orbm.Name = "SizeMesh" | |
4535 | orbm.Scale = vt(2,2,2) | |
4536 | orb.CFrame = mouse.Hit | |
4537 | local bv = Instance.new("BodyVelocity") | |
4538 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
4539 | bv.velocity = orb.CFrame.lookVector*100 | |
4540 | bv.Parent = orb | |
4541 | local hitted = false | |
4542 | coroutine.resume(coroutine.create(function() | |
4543 | game:GetService("Debris"):AddItem(orb, 5) | |
4544 | orb.Transparency = 1 | |
4545 | orb.Anchored = true | |
4546 | local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
4547 | elocacenter.Anchored = true | |
4548 | elocacenter.CFrame = orb.CFrame | |
4549 | elocacenter.Orientation = vt(0,0,0) | |
4550 | local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
4551 | eloca1.Anchored = true | |
4552 | eloca1.CFrame = elocacenter.CFrame | |
4553 | local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
4554 | eloca2.Anchored = true | |
4555 | eloca2.CFrame = elocacenter.CFrame | |
4556 | local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
4557 | eloca3.Anchored = true | |
4558 | eloca3.CFrame = elocacenter.CFrame | |
4559 | local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
4560 | eloca4.Anchored = true | |
4561 | eloca4.CFrame = elocacenter.CFrame | |
4562 | local lookavec = 0 | |
4563 | local speeds = 0 | |
4564 | CameraEnshaking(1,1) | |
4565 | CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1) | |
4566 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4567 | sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4568 | sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4569 | sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4570 | sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4571 | for i = 0, 24 do | |
4572 | swait() | |
4573 | lookavec = lookavec + 3.5 | |
4574 | speeds = speeds + 1 | |
4575 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
4576 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
4577 | PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4578 | ||
4579 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
4580 | PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4581 | ||
4582 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
4583 | PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4584 | ||
4585 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
4586 | PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4587 | end | |
4588 | ||
4589 | local risen = 0 | |
4590 | for i = 0, 49 do | |
4591 | swait() | |
4592 | risen = risen + 0.05 | |
4593 | speeds = speeds + 0.1 | |
4594 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
4595 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
4596 | PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4597 | ||
4598 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
4599 | PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4600 | ||
4601 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
4602 | PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4603 | ||
4604 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
4605 | PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
4606 | end | |
4607 | for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do | |
4608 | if v:FindFirstChild('Head') then | |
4609 | dmg(v) | |
4610 | end | |
4611 | end | |
4612 | CameraEnshaking(4,10) | |
4613 | MagniDamage(elocacenter, 150, 50,75, 0, "Normal") | |
4614 | CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1) | |
4615 | CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75) | |
4616 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1) | |
4617 | CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1) | |
4618 | CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05) | |
4619 | local eff = Instance.new("ParticleEmitter",elocacenter) | |
4620 | eff.Texture = "rbxassetid://2273224484" | |
4621 | eff.LightEmission = 1 | |
4622 | eff.Color = ColorSequence.new(Color3.new(1,1,0)) | |
4623 | eff.Rate = 1000000 | |
4624 | eff.Lifetime = NumberRange.new(0.5,2) | |
4625 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
4626 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
4627 | eff.Speed = NumberRange.new(20,250) | |
4628 | eff.Drag = 5 | |
4629 | eff.Rotation = NumberRange.new(-500,500) | |
4630 | eff.VelocitySpread = 5000000 | |
4631 | eff.RotSpeed = NumberRange.new(-50,50) | |
4632 | coroutine.resume(coroutine.create(function() | |
4633 | wait(1) | |
4634 | eff.Enabled = false | |
4635 | end)) | |
4636 | sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR) | |
4637 | sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR) | |
4638 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4639 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4640 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4641 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4642 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4643 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR) | |
4644 | for i = 0, 24 do | |
4645 | sphereMK(2,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.25,MAINRUINCOLOR,0) | |
4646 | sphereMK(4,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0) | |
4647 | sphereMK(6,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0) | |
4648 | sphereMK(8,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0) | |
4649 | end | |
4650 | coroutine.resume(coroutine.create(function() | |
4651 | wait(10) | |
4652 | elocacenter:Destroy() | |
4653 | eloca1:Destroy() | |
4654 | eloca2:Destroy() | |
4655 | eloca3:Destroy() | |
4656 | eloca4:Destroy() | |
4657 | end)) | |
4658 | end)) | |
4659 | attack = false | |
4660 | end | |
4661 | ||
4662 | function UniversalCollapse() | |
4663 | attack = true | |
4664 | local speedearn = 0 | |
4665 | hum.WalkSpeed = 0 | |
4666 | local sbs = Instance.new("BodyPosition", root) | |
4667 | sbs.P = 3000 | |
4668 | sbs.D = 1000 | |
4669 | sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000) | |
4670 | sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0) | |
4671 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1) | |
4672 | for i = 0, 85, 0.1 do | |
4673 | swait() | |
4674 | speedearn = speedearn + 0.1 | |
4675 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
4676 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
4677 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
4678 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
4679 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
4680 | sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR) | |
4681 | RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1) | |
4682 | LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1) | |
4683 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
4684 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
4685 | RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1) | |
4686 | LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1) | |
4687 | end | |
4688 | bosschatfunc("Universary..",MAINRUINCOLOR.Color,1) | |
4689 | CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1) | |
4690 | CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1) | |
4691 | for i = 0, 25, 0.1 do | |
4692 | swait() | |
4693 | speedearn = speedearn + 0.1 | |
4694 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
4695 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
4696 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
4697 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
4698 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
4699 | sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR) | |
4700 | RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1) | |
4701 | LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1) | |
4702 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
4703 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
4704 | RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1) | |
4705 | LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1) | |
4706 | end | |
4707 | bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1) | |
4708 | CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1) | |
4709 | CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1) | |
4710 | CameraEnshaking(5,50) | |
4711 | sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR) | |
4712 | for i = 0, 2 do | |
4713 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1) | |
4714 | CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75) | |
4715 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1) | |
4716 | CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1) | |
4717 | end | |
4718 | for i = 0, 49 do | |
4719 | sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0) | |
4720 | sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0) | |
4721 | sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0) | |
4722 | sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0) | |
4723 | end | |
4724 | sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR) | |
4725 | sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR) | |
4726 | sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR) | |
4727 | sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR) | |
4728 | sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR) | |
4729 | sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR) | |
4730 | sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4731 | sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4732 | sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4733 | sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4734 | sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4735 | sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4736 | for i = 0, 99 do | |
4737 | PixelBlock(1,math.random(50,1000),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.4,MAINRUINCOLOR,0) | |
4738 | PixelBlock(2,math.random(250,1000),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,MAINRUINCOLOR,0) | |
4739 | end | |
4740 | for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do | |
4741 | if v:FindFirstChild('Head') then | |
4742 | dmg(v) | |
4743 | end | |
4744 | end | |
4745 | MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal") | |
4746 | sbs:Destroy() | |
4747 | hum.WalkSpeed = storehumanoidWS | |
4748 | attack = false | |
4749 | end | |
4750 | ||
4751 | ||
4752 | function ChaosEND() | |
4753 | attack = true | |
4754 | local speedearn = 0 | |
4755 | bosschatfunc("THIS IS..",MAINRUINCOLOR.Color,0.8) | |
4756 | CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1) | |
4757 | CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1) | |
4758 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1) | |
4759 | for i = 0, 15, 0.1 do | |
4760 | swait() | |
4761 | speedearn = speedearn + 0.25 | |
4762 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0) | |
4763 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0) | |
4764 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0) | |
4765 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0) | |
4766 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0) | |
4767 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2) | |
4768 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2) | |
4769 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
4770 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
4771 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2) | |
4772 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2) | |
4773 | end | |
4774 | CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1) | |
4775 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1) | |
4776 | bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,2) | |
4777 | CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1) | |
4778 | CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1) | |
4779 | CameraEnshaking(5,25) | |
4780 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do | |
4781 | if v:FindFirstChild('Head') then | |
4782 | dmg(v) | |
4783 | end | |
4784 | end | |
4785 | sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random()) | |
4786 | sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random()) | |
4787 | sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random()) | |
4788 | for i = 0, 3, 0.1 do | |
4789 | swait() | |
4790 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0) | |
4791 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0) | |
4792 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0) | |
4793 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0) | |
4794 | RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4) | |
4795 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4) | |
4796 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
4797 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
4798 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4) | |
4799 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4) | |
4800 | end | |
4801 | attack = false | |
4802 | end | |
4803 | ||
4804 | function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon) | |
4805 | local orb = Instance.new("Part", char) | |
4806 | orb.Anchored = true | |
4807 | orb.BrickColor = color | |
4808 | orb.CanCollide = false | |
4809 | orb.FormFactor = 3 | |
4810 | orb.Name = "Ring" | |
4811 | orb.Material = "Neon" | |
4812 | orb.Size = Vector3.new(1, 1, 1) | |
4813 | orb.Transparency = 0 | |
4814 | orb.TopSurface = 0 | |
4815 | orb.BottomSurface = 0 | |
4816 | local orbm = Instance.new("SpecialMesh", orb) | |
4817 | orbm.MeshType = "Sphere" | |
4818 | orb.CFrame = positted | |
4819 | orbm.Name = "SizeMesh" | |
4820 | orbm.Scale = vt(1,1,1) | |
4821 | CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1) | |
4822 | sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor) | |
4823 | --[[for i = 0, 2 do | |
4824 | sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0) | |
4825 | end]]-- | |
4826 | coroutine.resume(coroutine.create(function() | |
4827 | wait(timer) | |
4828 | CameraEnshaking(3,ShakePower) | |
4829 | orb.Transparency = 1 | |
4830 | MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal") | |
4831 | sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor) | |
4832 | --[[for i = 0, 4 do | |
4833 | sphereMK(5,0.15*MagniBoost,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0) | |
4834 | end]]-- | |
4835 | CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7) | |
4836 | wait(3) | |
4837 | orb:Destroy() | |
4838 | end)) | |
4839 | end | |
4840 | ||
4841 | function orb_spawn(positted,timer) | |
4842 | local randomcol = math.random(1,2) | |
4843 | local orb = Instance.new("Part", char) | |
4844 | orb.Anchored = true | |
4845 | if randomcol == 1 then | |
4846 | orb.BrickColor = BrickColor.new("White") | |
4847 | elseif randomcol == 2 then | |
4848 | orb.BrickColor = BrickColor.new("Really black") | |
4849 | end | |
4850 | orb.CanCollide = false | |
4851 | orb.FormFactor = 3 | |
4852 | orb.Name = "Ring" | |
4853 | orb.Material = "Neon" | |
4854 | orb.Size = Vector3.new(1, 1, 1) | |
4855 | orb.Transparency = 0 | |
4856 | orb.TopSurface = 0 | |
4857 | orb.BottomSurface = 0 | |
4858 | local orbm = Instance.new("SpecialMesh", orb) | |
4859 | orbm.MeshType = "Sphere" | |
4860 | orb.CFrame = positted | |
4861 | orbm.Name = "SizeMesh" | |
4862 | orbm.Scale = vt(1,1,1) | |
4863 | CFuncs["Sound"].Create("rbxassetid://183763506", orb, 0.15, 1) | |
4864 | sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor) | |
4865 | for i = 0, 2 do | |
4866 | sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0) | |
4867 | end | |
4868 | coroutine.resume(coroutine.create(function() | |
4869 | wait(timer) | |
4870 | CameraEnshaking(3,2) | |
4871 | orb.Transparency = 1 | |
4872 | MagniDamage(orb, 17.5, 10,50, 0, "Normal") | |
4873 | sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor) | |
4874 | for i = 0, 4 do | |
4875 | sphereMK(5,0.65,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0) | |
4876 | end | |
4877 | CFuncs["Sound"].Create("rbxassetid://192410089", orb, 0.15, 0.7) | |
4878 | wait(3) | |
4879 | orb:Destroy() | |
4880 | end)) | |
4881 | end | |
4882 | ||
4883 | function scattercorrupt() | |
4884 | attack = true | |
4885 | hum.WalkSpeed = 0 | |
4886 | for i = 0, 2, 0.1 do | |
4887 | swait() | |
4888 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
4889 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
4890 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
4891 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
4892 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2) | |
4893 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2) | |
4894 | end | |
4895 | local rot = 0 | |
4896 | local randomrotations = math.random(1,2) | |
4897 | local lookv = 2.5 | |
4898 | local power = 7 | |
4899 | bosschatfunc("I'll take you on again.",MAINRUINCOLOR.Color,1) | |
4900 | CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1) | |
4901 | for i = 0, 1, 0.1 do | |
4902 | swait() | |
4903 | RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(15),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.15) | |
4904 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(15),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.15) | |
4905 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15) | |
4906 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15) | |
4907 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15) | |
4908 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15) | |
4909 | end | |
4910 | CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1) | |
4911 | CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1) | |
4912 | sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple")) | |
4913 | sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple")) | |
4914 | for i = 0, 9 do | |
4915 | sphereMK(1,1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,45,-0.1,BrickColor.new("Royal purple"),0) | |
4916 | end | |
4917 | local hite = Instance.new("Part", char) | |
4918 | hite.Anchored = true | |
4919 | hite.CanCollide = false | |
4920 | hite.FormFactor = 3 | |
4921 | hite.Name = "Ring" | |
4922 | hite.Material = "Neon" | |
4923 | hite.Size = Vector3.new(1, 1, 1) | |
4924 | hite.Transparency = 1 | |
4925 | hite.TopSurface = 0 | |
4926 | hite.BottomSurface = 0 | |
4927 | hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0) | |
4928 | local rem = Instance.new("Part", char) | |
4929 | rem.Anchored = true | |
4930 | rem.CanCollide = false | |
4931 | rem.FormFactor = 3 | |
4932 | rem.Name = "Ring" | |
4933 | rem.Material = "Neon" | |
4934 | rem.Size = Vector3.new(1, 1, 1) | |
4935 | rem.Transparency = 1 | |
4936 | rem.TopSurface = 0 | |
4937 | rem.BottomSurface = 0 | |
4938 | rem.CFrame = hite.CFrame | |
4939 | local rem2 = rem:Clone() | |
4940 | rem2.Parent = char | |
4941 | rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4942 | local rem3 = rem:Clone() | |
4943 | rem3.Parent = char | |
4944 | rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0) | |
4945 | local rem4 = rem:Clone() | |
4946 | rem4.Parent = char | |
4947 | rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0) | |
4948 | hite:Destroy() | |
4949 | coroutine.resume(coroutine.create(function() | |
4950 | for i = 0, 24 do | |
4951 | swait(1) | |
4952 | if randomrotations == 1 then | |
4953 | rot = rot + 1 | |
4954 | elseif randomrotations == 2 then | |
4955 | rot = rot - 1 | |
4956 | end | |
4957 | power = power + 0.5 | |
4958 | lookv = lookv + 7.5 | |
4959 | rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0) | |
4960 | rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4961 | rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0) | |
4962 | rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0) | |
4963 | orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1) | |
4964 | orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1) | |
4965 | orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1) | |
4966 | orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1) | |
4967 | end | |
4968 | end)) | |
4969 | wait(2) | |
4970 | hum.WalkSpeed = storehumanoidWS | |
4971 | attack = false | |
4972 | end | |
4973 | function yinyangi() | |
4974 | attack = true | |
4975 | for i = 0, 2, 0.1 do | |
4976 | swait() | |
4977 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2) | |
4978 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.2) | |
4979 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2) | |
4980 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
4981 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2) | |
4982 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
4983 | end | |
4984 | local bv = Instance.new("BodyVelocity") | |
4985 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
4986 | bv.velocity = root.CFrame.lookVector*175 | |
4987 | bv.Parent = root | |
4988 | for Rotations = 0, 9 do | |
4989 | for i = 0, 1, 0.5 do | |
4990 | swait() | |
4991 | bv.velocity = root.CFrame.lookVector*175 | |
4992 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5) | |
4993 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5) | |
4994 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(90)),.5) | |
4995 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
4996 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
4997 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
4998 | end | |
4999 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
5000 | for i = 0, 1, 0.5 do | |
5001 | swait() | |
5002 | bv.velocity = root.CFrame.lookVector*175 | |
5003 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5) | |
5004 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5) | |
5005 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(180)),.5) | |
5006 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
5007 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
5008 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
5009 | end | |
5010 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
5011 | for i = 0, 1, 0.5 do | |
5012 | swait() | |
5013 | bv.velocity = root.CFrame.lookVector*175 | |
5014 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5) | |
5015 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5) | |
5016 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(270)),.5) | |
5017 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
5018 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
5019 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
5020 | end | |
5021 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
5022 | for i = 0, 1, 0.5 do | |
5023 | swait() | |
5024 | bv.velocity = root.CFrame.lookVector*175 | |
5025 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5) | |
5026 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5) | |
5027 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(360)),.5) | |
5028 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
5029 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
5030 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
5031 | end | |
5032 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
5033 | end | |
5034 | bv:Destroy() | |
5035 | attack = false | |
5036 | end | |
5037 | ||
5038 | function createBGCircle(size,parent,color) | |
5039 | local bgui = Instance.new("BillboardGui",parent) | |
5040 | bgui.Size = UDim2.new(size, 0, size, 0) | |
5041 | local imgc = Instance.new("ImageLabel",bgui) | |
5042 | imgc.BackgroundTransparency = 1 | |
5043 | imgc.ImageTransparency = 0 | |
5044 | imgc.Size = UDim2.new(1,0,1,0) | |
5045 | imgc.Image = "rbxassetid://997291547" --997291547,521073910 | |
5046 | imgc.ImageColor3 = color | |
5047 | return bgui,imgc | |
5048 | end | |
5049 | ||
5050 | function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay) | |
5051 | local bgui,imgc = createBGCircle(size,guipar,color) | |
5052 | bgui.AlwaysOnTop = true | |
5053 | imgc.Image = "rbxassetid://" ..img | |
5054 | local rrot = math.random(1,2) | |
5055 | CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit) | |
5056 | coroutine.resume(coroutine.create(function() | |
5057 | for i = 0, 24*delay do | |
5058 | swait() | |
5059 | if rotationenabled == true then | |
5060 | if rrot == 1 then | |
5061 | imgc.Rotation = imgc.Rotation + rotsp | |
5062 | elseif rrot == 2 then | |
5063 | imgc.Rotation = imgc.Rotation - rotsp | |
5064 | end | |
5065 | end | |
5066 | bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0) | |
5067 | imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay | |
5068 | end | |
5069 | bgui:Destroy() | |
5070 | end)) | |
5071 | end | |
5072 | function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled) | |
5073 | for i, v in pairs(mw2:GetChildren()) do | |
5074 | if v:IsA("Part") then | |
5075 | v.BrickColor = one | |
5076 | v.Material = "Neon" | |
5077 | end | |
5078 | end | |
5079 | CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1) | |
5080 | symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1) | |
5081 | symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1) | |
5082 | tr1.Color = ColorSequence.new(one.Color) | |
5083 | tr2.Color = ColorSequence.new(one.Color) | |
5084 | tr3.Color = ColorSequence.new(one.Color) | |
5085 | for i, v in pairs(mw1:GetChildren()) do | |
5086 | if v:IsA("Part") then | |
5087 | if secondaryenabled == false then | |
5088 | v.Transparency = 1 | |
5089 | elseif secondaryenabled == true then | |
5090 | v.Transparency = 0 | |
5091 | end | |
5092 | v.BrickColor = two | |
5093 | v.Material = "Neon" | |
5094 | end | |
5095 | end | |
5096 | if secondaryenabled == false then | |
5097 | tl1.Enabled = false | |
5098 | tl2.Enabled = false | |
5099 | tl3.Enabled = false | |
5100 | elseif secondaryenabled == true then | |
5101 | tl1.Enabled = true | |
5102 | tl2.Enabled = true | |
5103 | tl3.Enabled = true | |
5104 | end | |
5105 | tl1.Color = ColorSequence.new(two.Color) | |
5106 | tl2.Color = ColorSequence.new(two.Color) | |
5107 | tl3.Color = ColorSequence.new(two.Color) | |
5108 | for i, v in pairs(m:GetChildren()) do | |
5109 | if v:IsA("Part") then | |
5110 | v.BrickColor = three | |
5111 | v.Material = "Ice" | |
5112 | end | |
5113 | end | |
5114 | for i, v in pairs(m2:GetChildren()) do | |
5115 | if v:IsA("Part") then | |
5116 | v.BrickColor = four | |
5117 | v.Material = "Ice" | |
5118 | end | |
5119 | end | |
5120 | for i, v in pairs(m3:GetChildren()) do | |
5121 | if v:IsA("Part") then | |
5122 | v.BrickColor = five | |
5123 | v.Material = "Neon" | |
5124 | end | |
5125 | end | |
5126 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
5127 | if v:IsA("Part") then | |
5128 | v.Transparency = exonetran | |
5129 | v.BrickColor = exone | |
5130 | v.Material = "Neon" | |
5131 | end | |
5132 | end | |
5133 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
5134 | if v:IsA("Part") then | |
5135 | v.Transparency = extwotran | |
5136 | v.BrickColor = extwo | |
5137 | v.Material = "Neon" | |
5138 | end | |
5139 | end | |
5140 | end | |
5141 | ||
5142 | ||
5143 | function normalmog() | |
5144 | attack = true | |
5145 | hum.WalkSpeed = 0 | |
5146 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25) | |
5147 | for i = 0,6,0.1 do | |
5148 | swait() | |
5149 | sphereMK(2.5,-1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3.5,3.5,45,-0.035,MAINRUINCOLOR,100) | |
5150 | slash(math.random(30,60)/10,5,true,"Round","Add","In",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.01,0.5),-0.5,MAINRUINCOLOR) | |
5151 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.2) | |
5152 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.2) | |
5153 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2) | |
5154 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.2) | |
5155 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2) | |
5156 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2) | |
5157 | end | |
5158 | CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1) | |
5159 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1) | |
5160 | CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1) | |
5161 | CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75) | |
5162 | CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1) | |
5163 | CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1) | |
5164 | CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1) | |
5165 | rainbowmode = false | |
5166 | chaosmode = false | |
5167 | ModeOfGlitch = 1 | |
5168 | storehumanoidWS = 12 | |
5169 | newTheme("rbxassetid://723652641",48.6,1,1.25) | |
5170 | RecolorTextAndRename("Solitude",Color3.new(0,0,0),Color3.new(0,0,0),"Antique") | |
5171 | CameraEnshaking(5,2.5) | |
5172 | MAINRUINCOLOR = BrickColor.new("Black") | |
5173 | sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5174 | for i = 0, 49 do | |
5175 | PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.04,MAINRUINCOLOR,0) | |
5176 | end | |
5177 | for i = 0, 24 do | |
5178 | sphere2(2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,7,-0.01,MAINRUINCOLOR) | |
5179 | slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(150,350)/250,BrickColor.new("White")) | |
5180 | end | |
5181 | for i = 0,3,0.1 do | |
5182 | sphereMK(2.5,-1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,MAINRUINCOLOR,0) | |
5183 | end | |
5184 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false) | |
5185 | for i = 0,2,0.1 do | |
5186 | swait() | |
5187 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5) | |
5188 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5) | |
5189 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5) | |
5190 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5) | |
5191 | RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5) | |
5192 | LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5) | |
5193 | end | |
5194 | hum.WalkSpeed = storehumanoidWS | |
5195 | attack = false | |
5196 | end | |
5197 | ||
5198 | function attackone() | |
5199 | attack = true | |
5200 | local keptcolor = MAINRUINCOLOR | |
5201 | for i = 0,1,0.1 do | |
5202 | swait() | |
5203 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3) | |
5204 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3) | |
5205 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3) | |
5206 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
5207 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),.3) | |
5208 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5),math.rad(0),math.rad(0)),.3) | |
5209 | end | |
5210 | local distlook = 5 | |
5211 | coroutine.resume(coroutine.create(function() | |
5212 | for i = 0, 4 do | |
5213 | swait(2) | |
5214 | CameraEnshaking(2,3) | |
5215 | local hite = Instance.new("Part", char) | |
5216 | hite.Anchored = true | |
5217 | hite.CanCollide = false | |
5218 | hite.FormFactor = 3 | |
5219 | hite.Name = "Ring" | |
5220 | hite.Material = "Neon" | |
5221 | hite.Size = Vector3.new(1, 1, 1) | |
5222 | hite.Transparency = 1 | |
5223 | hite.TopSurface = 0 | |
5224 | hite.BottomSurface = 0 | |
5225 | hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook) | |
5226 | sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0,1,0),0.2,0.001,0.2,keptcolor) | |
5227 | sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(8,1,8),-0.045,0.15,-0.045,keptcolor) | |
5228 | sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(4,1,4),-0.025,0.25,-0.025,keptcolor) | |
5229 | sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(2,1,2),-0.015,0.35,-0.015,keptcolor) | |
5230 | MagniDamage(hite, 9, 10,25, 0, "Normal") | |
5231 | for i = 0, 14 do | |
5232 | local rsiz = math.random(5,20) | |
5233 | sphereMK(math.random(1,3),0.25,"Add",hite.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0) | |
5234 | end | |
5235 | CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1) | |
5236 | CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1) | |
5237 | game:GetService("Debris"):AddItem(hite, 5) | |
5238 | distlook = distlook + 10 | |
5239 | end | |
5240 | end)) | |
5241 | for i = 0,1,0.1 do | |
5242 | swait() | |
5243 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5) | |
5244 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5) | |
5245 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5) | |
5246 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5) | |
5247 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-10)),.5) | |
5248 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.5) | |
5249 | end | |
5250 | attack = false | |
5251 | end | |
5252 | ||
5253 | function attacktwo() | |
5254 | attack = true | |
5255 | hum.WalkSpeed = 2 | |
5256 | local keptcolor = MAINRUINCOLOR | |
5257 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1) | |
5258 | sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color) | |
5259 | sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.2,0.2,0.2,keptcolor,keptcolor.Color) | |
5260 | for i = 0, 14 do | |
5261 | PixelBlock(1,math.random(1,3),"Add",rarm.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,keptcolor,0) | |
5262 | end | |
5263 | for i = 0,1,0.1 do | |
5264 | swait() | |
5265 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
5266 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.3) | |
5267 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.3) | |
5268 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3) | |
5269 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3) | |
5270 | RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3) | |
5271 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3) | |
5272 | end | |
5273 | for i = 0, 1 do | |
5274 | CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1) | |
5275 | for i = 0,1,0.6 do | |
5276 | swait() | |
5277 | sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
5278 | slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White")) | |
5279 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
5280 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
5281 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6) | |
5282 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6) | |
5283 | RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6) | |
5284 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6) | |
5285 | end | |
5286 | for i = 0,1,0.6 do | |
5287 | swait() | |
5288 | sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
5289 | slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White")) | |
5290 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
5291 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
5292 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6) | |
5293 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6) | |
5294 | RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6) | |
5295 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6) | |
5296 | end | |
5297 | for i = 0,1,0.6 do | |
5298 | swait() | |
5299 | sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
5300 | slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White")) | |
5301 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
5302 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
5303 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6) | |
5304 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6) | |
5305 | RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6) | |
5306 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6) | |
5307 | end | |
5308 | for i = 0,1,0.6 do | |
5309 | swait() | |
5310 | sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
5311 | slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White")) | |
5312 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
5313 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
5314 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6) | |
5315 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6) | |
5316 | RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6) | |
5317 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6) | |
5318 | end | |
5319 | local rot = 0 | |
5320 | local dis = CreateParta(char,0.5,1,"Neon",keptcolor) | |
5321 | CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1) | |
5322 | dis.CFrame = root.CFrame*CFrame.new(0,2,-3) | |
5323 | CreateMesh(dis,"Sphere",10,1,10) | |
5324 | local at1 = Instance.new("Attachment",dis) | |
5325 | at1.Position = vt(-5,0,0) | |
5326 | local at2 = Instance.new("Attachment",dis) | |
5327 | at2.Position = vt(5,0,0) | |
5328 | local trl = Instance.new('Trail',wed) | |
5329 | trl.Attachment0 = at1 | |
5330 | trl.Attachment1 = at2 | |
5331 | trl.Texture = "rbxassetid://1049219073" | |
5332 | trl.LightEmission = 1 | |
5333 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
5334 | trl.Color = ColorSequence.new(dis.Color) | |
5335 | trl.Lifetime = 0.6 | |
5336 | local a = Instance.new("Part",workspace) | |
5337 | a.Name = "Direction" | |
5338 | a.Anchored = true | |
5339 | a.BrickColor = bc("Bright red") | |
5340 | a.Material = "Neon" | |
5341 | a.Transparency = 1 | |
5342 | a.CanCollide = false | |
5343 | local ray = Ray.new( | |
5344 | dis.CFrame.p, -- origin | |
5345 | (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction | |
5346 | ) | |
5347 | local ignore = dis | |
5348 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
5349 | a.BottomSurface = 10 | |
5350 | a.TopSurface = 10 | |
5351 | local distance = (dis.CFrame.p - position).magnitude | |
5352 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
5353 | a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0) | |
5354 | dis.CFrame = a.CFrame | |
5355 | dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0) | |
5356 | a:Destroy() | |
5357 | local bv = Instance.new("BodyVelocity") | |
5358 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
5359 | bv.velocity = dis.CFrame.lookVector*250 | |
5360 | bv.Parent = dis | |
5361 | game:GetService("Debris"):AddItem(dis, 5) | |
5362 | local hitted = false | |
5363 | coroutine.resume(coroutine.create(function() | |
5364 | dis.Touched:connect(function(hit) | |
5365 | if hitted == false and hit.Parent ~= char then | |
5366 | hitted = true | |
5367 | CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1) | |
5368 | MagniDamage(dis, 30, 33,56, 0, "Normal") | |
5369 | sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color) | |
5370 | sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color) | |
5371 | sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color) | |
5372 | coroutine.resume(coroutine.create(function() | |
5373 | for i = 0, 9 do | |
5374 | local disr = CreateParta(char,1,1,"Neon",keptcolor) | |
5375 | disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
5376 | local at1 = Instance.new("Attachment",disr) | |
5377 | at1.Position = vt(-5,0,0) | |
5378 | local at2 = Instance.new("Attachment",disr) | |
5379 | at2.Position = vt(5,0,0) | |
5380 | local trl = Instance.new('Trail',disr) | |
5381 | trl.Attachment0 = at1 | |
5382 | trl.FaceCamera = true | |
5383 | trl.Attachment1 = at2 | |
5384 | trl.Texture = "rbxassetid://2342682798" | |
5385 | trl.LightEmission = 1 | |
5386 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
5387 | trl.Color = ColorSequence.new(keptcolor.Color) | |
5388 | trl.Lifetime = 0.5 | |
5389 | local bv = Instance.new("BodyVelocity") | |
5390 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
5391 | bv.velocity = disr.CFrame.lookVector*math.random(50,200) | |
5392 | bv.Parent = disr | |
5393 | local val = 0 | |
5394 | coroutine.resume(coroutine.create(function() | |
5395 | swait(30) | |
5396 | for i = 0, 9 do | |
5397 | swait() | |
5398 | val = val + 0.1 | |
5399 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)}) | |
5400 | end | |
5401 | game:GetService("Debris"):AddItem(disr, 3) | |
5402 | end)) | |
5403 | end | |
5404 | local eff = Instance.new("ParticleEmitter",dis) | |
5405 | eff.Texture = "rbxassetid://2273224484" | |
5406 | eff.LightEmission = 1 | |
5407 | eff.Color = ColorSequence.new(keptcolor.Color) | |
5408 | eff.Rate = 500000 | |
5409 | eff.Lifetime = NumberRange.new(0.5,2) | |
5410 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
5411 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
5412 | eff.Speed = NumberRange.new(20,250) | |
5413 | eff.Drag = 5 | |
5414 | eff.Rotation = NumberRange.new(-500,500) | |
5415 | eff.VelocitySpread = 9000 | |
5416 | eff.RotSpeed = NumberRange.new(-50,50) | |
5417 | wait(0.25) | |
5418 | eff.Enabled = false | |
5419 | end)) | |
5420 | for i = 0, 9 do | |
5421 | slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White")) | |
5422 | end | |
5423 | for i = 0, 19 do | |
5424 | PixelBlock(1,math.random(5,20),"Add",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,keptcolor,0) | |
5425 | end | |
5426 | coroutine.resume(coroutine.create(function() | |
5427 | for i = 0, 19 do | |
5428 | swait() | |
5429 | hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70) | |
5430 | end | |
5431 | hum.CameraOffset = vt(0,0,0) | |
5432 | end)) | |
5433 | dis.Anchored = true | |
5434 | dis.Transparency = 1 | |
5435 | wait(8) | |
5436 | dis:Destroy() | |
5437 | end | |
5438 | end) | |
5439 | end)) | |
5440 | rot = rot - 15 | |
5441 | end | |
5442 | for i = 0,2,0.1 do | |
5443 | swait() | |
5444 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3) | |
5445 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.3) | |
5446 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3) | |
5447 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3) | |
5448 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3) | |
5449 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3) | |
5450 | end | |
5451 | attack = false | |
5452 | hum.WalkSpeed = storehumanoidWS | |
5453 | end | |
5454 | ||
5455 | function attackthree() | |
5456 | attack = true | |
5457 | local keptcolor = MAINRUINCOLOR | |
5458 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5) | |
5459 | for i = 0,2,0.1 do | |
5460 | swait() | |
5461 | sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
5462 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3) | |
5463 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3) | |
5464 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3) | |
5465 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3) | |
5466 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-50),math.rad(-10)),.3) | |
5467 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(40)),.3) | |
5468 | end | |
5469 | CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1) | |
5470 | CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9) | |
5471 | CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5) | |
5472 | CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1) | |
5473 | sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR) | |
5474 | sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR) | |
5475 | for i = 0, 24 do | |
5476 | slash(math.random(10,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),math.rad(0)),vt(0.01,0.01,0.01),math.random(50,200)/250,BrickColor.new("White")) | |
5477 | end | |
5478 | for i = 0,4,0.1 do | |
5479 | swait() | |
5480 | root.CFrame = root.CFrame + root.CFrame.lookVector*5 | |
5481 | local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR) | |
5482 | CreateMesh(dis,"Sphere",1,1,1) | |
5483 | dis.Anchored = true | |
5484 | dis.CFrame = larm.CFrame*CFrame.new(0,-3,0) | |
5485 | sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color) | |
5486 | coroutine.resume(coroutine.create(function() | |
5487 | swait(30) | |
5488 | dis.Transparency = 1 | |
5489 | coroutine.resume(coroutine.create(function() | |
5490 | for i = 0, 19 do | |
5491 | swait() | |
5492 | hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40) | |
5493 | end | |
5494 | hum.CameraOffset = vt(0,0,0) | |
5495 | end)) | |
5496 | coroutine.resume(coroutine.create(function() | |
5497 | local eff = Instance.new("ParticleEmitter",dis) | |
5498 | eff.Texture = "rbxassetid://2273224484" | |
5499 | eff.LightEmission = 1 | |
5500 | eff.Color = ColorSequence.new(dis.Color) | |
5501 | eff.Rate = 500000 | |
5502 | eff.Lifetime = NumberRange.new(0.5,2) | |
5503 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
5504 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
5505 | eff.Speed = NumberRange.new(50,450) | |
5506 | eff.Drag = 5 | |
5507 | eff.Rotation = NumberRange.new(-500,500) | |
5508 | eff.VelocitySpread = 9000 | |
5509 | eff.RotSpeed = NumberRange.new(-50,50) | |
5510 | wait(0.125) | |
5511 | eff.Enabled = false | |
5512 | end)) | |
5513 | MagniDamage(dis, 30, 45,50, 0, "Normal") | |
5514 | for i = 0, 2 do | |
5515 | slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,150)/250,dis.BrickColor) | |
5516 | end | |
5517 | CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1) | |
5518 | CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5) | |
5519 | CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65) | |
5520 | sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color) | |
5521 | end)) | |
5522 | game:GetService("Debris"):AddItem(dis, 5) | |
5523 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5) | |
5524 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5) | |
5525 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5) | |
5526 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5) | |
5527 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-8),math.rad(0),math.rad(-20)),.5) | |
5528 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(9),math.rad(0),math.rad(20)),.5) | |
5529 | end | |
5530 | attack = false | |
5531 | end | |
5532 | ----------------------------------- Abilities | |
5533 | ||
5534 | function ExtinctiveHeartbreak() | |
5535 | local targetted = nil | |
5536 | if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
5537 | targetted = mouse.Target.Parent | |
5538 | end | |
5539 | if targetted ~= nil then | |
5540 | attack = true | |
5541 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1) | |
5542 | for i = 0, 9 do | |
5543 | sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Black"),0) | |
5544 | end | |
5545 | for i = 0, 24 do | |
5546 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really black"),0) | |
5547 | end | |
5548 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Black")) | |
5549 | local originalpos = root.CFrame | |
5550 | RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2) | |
5551 | for i = 0, 9 do | |
5552 | sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Black"),0) | |
5553 | end | |
5554 | for i = 0, 24 do | |
5555 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really black"),0) | |
5556 | end | |
5557 | hum.WalkSpeed = 0 | |
5558 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really black")) | |
5559 | local radm = math.random(1,3) | |
5560 | if radm == 1 then | |
5561 | bosschatfunc("LEAVE ME ALONE!!!",MAINRUINCOLOR.Color,2) | |
5562 | elseif radm == 2 then | |
5563 | bosschatfunc("STOP IT!!!",MAINRUINCOLOR.Color,2) | |
5564 | elseif radm == 3 then | |
5565 | bosschatfunc("DIE!",MAINRUINCOLOR.Color,2) | |
5566 | end | |
5567 | for i = 0,2,0.1 do | |
5568 | swait() | |
5569 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-10),math.rad(0)),.4) | |
5570 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
5571 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4) | |
5572 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8) | |
5573 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4) | |
5574 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(60)),.4) | |
5575 | end | |
5576 | CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1) | |
5577 | CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1) | |
5578 | for i = 0,2,0.1 do | |
5579 | swait() | |
5580 | coroutine.resume(coroutine.create(function() | |
5581 | targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0) | |
5582 | for i,v in pairs(targetted:GetChildren()) do | |
5583 | if v:IsA("Part") or v:IsA("MeshPart") then | |
5584 | v.Velocity = vt(0,0,0) | |
5585 | end | |
5586 | end | |
5587 | end)) | |
5588 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8) | |
5589 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.8) | |
5590 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8) | |
5591 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8) | |
5592 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8) | |
5593 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(-80)),.8) | |
5594 | end | |
5595 | CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1) | |
5596 | CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1) | |
5597 | for i = 0, 1 do | |
5598 | CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1) | |
5599 | end | |
5600 | CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1) | |
5601 | --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75) | |
5602 | for i = 0,4,0.1 do | |
5603 | swait() | |
5604 | coroutine.resume(coroutine.create(function() | |
5605 | local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR) | |
5606 | dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
5607 | local at1 = Instance.new("Attachment",dis) | |
5608 | at1.Position = vt(-25000,0,0) | |
5609 | local at2 = Instance.new("Attachment",dis) | |
5610 | at2.Position = vt(25000,0,0) | |
5611 | local trl = Instance.new('Trail',dis) | |
5612 | trl.Attachment0 = at1 | |
5613 | trl.FaceCamera = true | |
5614 | trl.Attachment1 = at2 | |
5615 | trl.Texture = "rbxassetid://1049219073" | |
5616 | trl.LightEmission = 1 | |
5617 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
5618 | trl.Color = ColorSequence.new(Color3.new(1,0,0)) | |
5619 | trl.Lifetime = 5 | |
5620 | local bv = Instance.new("BodyVelocity") | |
5621 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
5622 | bv.velocity = dis.CFrame.lookVector*math.random(500,2500) | |
5623 | bv.Parent = dis | |
5624 | game:GetService("Debris"):AddItem(dis, 5) | |
5625 | targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0) | |
5626 | CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1) | |
5627 | CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1) | |
5628 | CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150) | |
5629 | CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150) | |
5630 | CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75) | |
5631 | sphere2(5,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(3,3,3),-0.03,15,-0.03,MAINRUINCOLOR) | |
5632 | targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5) | |
5633 | for i = 0, 2 do | |
5634 | slash(5,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,350)/250,BrickColor.new("Really black")) | |
5635 | end | |
5636 | symbolizeBlink(targetted.Head,0,2092248396,Color3.new(1,0,0),math.random(3,35),0,0,0,targetted.Head,true,math.random(3,9),0.25) | |
5637 | for i,v in pairs(targetted:GetChildren()) do | |
5638 | if v:IsA("Part") or v:IsA("MeshPart") then | |
5639 | v.Velocity = vt(0,0,0) | |
5640 | end | |
5641 | end | |
5642 | end)) | |
5643 | hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25) | |
5644 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8) | |
5645 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.8) | |
5646 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8) | |
5647 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8) | |
5648 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(40)),.8) | |
5649 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(170),math.rad(0),math.rad(-30)),.8) | |
5650 | end | |
5651 | hum.CameraOffset = vt(0,0,0) | |
5652 | for i = 0, 49 do | |
5653 | local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR) | |
5654 | dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
5655 | local at1 = Instance.new("Attachment",dis) | |
5656 | at1.Position = vt(-50000,0,0) | |
5657 | local at2 = Instance.new("Attachment",dis) | |
5658 | at2.Position = vt(50000,0,0) | |
5659 | local trl = Instance.new('Trail',dis) | |
5660 | trl.Attachment0 = at1 | |
5661 | trl.FaceCamera = true | |
5662 | trl.Attachment1 = at2 | |
5663 | trl.Texture = "rbxassetid://1049219073" | |
5664 | trl.LightEmission = 1 | |
5665 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
5666 | trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1)) | |
5667 | trl.Lifetime = 5 | |
5668 | local bv = Instance.new("BodyVelocity") | |
5669 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
5670 | bv.velocity = dis.CFrame.lookVector*math.random(500,2500) | |
5671 | bv.Parent = dis | |
5672 | game:GetService("Debris"):AddItem(dis, 5) | |
5673 | end | |
5674 | for i = 0, 49 do | |
5675 | sphere2(math.random(10,75)/10,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,5,5),-0.05,50,-0.05,MAINRUINCOLOR) | |
5676 | slash(math.random(10,30)/15,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(40,500)/250,BrickColor.new("Really black")) | |
5677 | end | |
5678 | CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1) | |
5679 | for i = 0, 1 do | |
5680 | CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9) | |
5681 | CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75) | |
5682 | end | |
5683 | for i = 0, 4 do | |
5684 | CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1) | |
5685 | end | |
5686 | symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1) | |
5687 | symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2) | |
5688 | symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4) | |
5689 | dmg(targetted) | |
5690 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1) | |
5691 | for i = 0, 9 do | |
5692 | sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Black"),0) | |
5693 | end | |
5694 | for i = 0, 24 do | |
5695 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Black"),0) | |
5696 | end | |
5697 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red")) | |
5698 | root.CFrame = originalpos | |
5699 | for i = 0, 9 do | |
5700 | sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Black"),0) | |
5701 | end | |
5702 | for i = 0, 24 do | |
5703 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Black"),0) | |
5704 | end | |
5705 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really black")) | |
5706 | attack = false | |
5707 | kan:Resume() | |
5708 | hum.WalkSpeed = storehumanoidWS | |
5709 | end | |
5710 | end | |
5711 | ||
5712 | function CorruptionEvent() | |
5713 | attack = true | |
5714 | hum.WalkSpeed = 0 | |
5715 | CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1) | |
5716 | CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1) | |
5717 | local keptcolor = MAINRUINCOLOR | |
5718 | for i = 0,4,0.1 do | |
5719 | swait() | |
5720 | hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100) | |
5721 | block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
5722 | RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5),math.rad(-20)),.1) | |
5723 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1) | |
5724 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1) | |
5725 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1) | |
5726 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1) | |
5727 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1) | |
5728 | end | |
5729 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1) | |
5730 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5) | |
5731 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3) | |
5732 | CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1) | |
5733 | CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1) | |
5734 | CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1) | |
5735 | CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1) | |
5736 | CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1) | |
5737 | hum.CameraOffset = vt(0,0,0) | |
5738 | sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
5739 | sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
5740 | for i = 0, 24 do | |
5741 | slash(math.random(15,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.new("Really black")) | |
5742 | end | |
5743 | local rrot = 0 | |
5744 | coroutine.resume(coroutine.create(function() | |
5745 | for i = 0, 4 do | |
5746 | rrot = rrot + 45 | |
5747 | local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random()) | |
5748 | xa.Anchored = true | |
5749 | local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random()) | |
5750 | xb.Anchored = true | |
5751 | local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random()) | |
5752 | xc.Anchored = true | |
5753 | local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random()) | |
5754 | xd.Anchored = true | |
5755 | CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75) | |
5756 | CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95) | |
5757 | CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1) | |
5758 | CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75) | |
5759 | CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95) | |
5760 | CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1) | |
5761 | CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75) | |
5762 | CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95) | |
5763 | CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1) | |
5764 | CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75) | |
5765 | CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95) | |
5766 | CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1) | |
5767 | xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75) | |
5768 | xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75) | |
5769 | xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0) | |
5770 | xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0) | |
5771 | MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal") | |
5772 | MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal") | |
5773 | MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal") | |
5774 | MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal") | |
5775 | for i = 0, 9 do | |
5776 | slash(math.random(15,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black")) | |
5777 | slash(math.random(15,50)/10,5,true,"Round","Add","Out",xb.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black")) | |
5778 | slash(math.random(15,50)/10,5,true,"Round","Add","Out",xc.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black")) | |
5779 | slash(math.random(15,50)/10,5,true,"Round","Add","Out",xd.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black")) | |
5780 | end | |
5781 | block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color) | |
5782 | block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color) | |
5783 | block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color) | |
5784 | block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color) | |
5785 | sphere2(2,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color) | |
5786 | sphere2(2,"Add",xb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color) | |
5787 | sphere2(2,"Add",xc.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color) | |
5788 | sphere2(2,"Add",xd.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color) | |
5789 | sphere2(4,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0)) | |
5790 | sphere2(4,"Add",xb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0)) | |
5791 | sphere2(4,"Add",xc.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0)) | |
5792 | sphere2(4,"Add",xd.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0)) | |
5793 | game:GetService("Debris"):AddItem(xa, 5) | |
5794 | game:GetService("Debris"):AddItem(xb, 5) | |
5795 | game:GetService("Debris"):AddItem(xc, 5) | |
5796 | game:GetService("Debris"):AddItem(xd, 5) | |
5797 | coroutine.resume(coroutine.create(function() | |
5798 | for i = 0, 19 do | |
5799 | swait() | |
5800 | hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50) | |
5801 | end | |
5802 | hum.CameraOffset = vt(0,0,0) | |
5803 | end)) | |
5804 | swait(9) | |
5805 | end | |
5806 | end)) | |
5807 | for i = 0,2,0.1 do | |
5808 | swait() | |
5809 | RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(10)),.8) | |
5810 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(10)),.8) | |
5811 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8) | |
5812 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8) | |
5813 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8) | |
5814 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8) | |
5815 | end | |
5816 | attack = false | |
5817 | hum.WalkSpeed = storehumanoidWS | |
5818 | end | |
5819 | ||
5820 | function EndGROUND() | |
5821 | attack = true | |
5822 | hum.WalkSpeed = 0.5 | |
5823 | bosschatfunc("i've had... ENOUGH!!!",MAINRUINCOLOR.Color,1) | |
5824 | --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1) | |
5825 | CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1) | |
5826 | CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1) | |
5827 | CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1) | |
5828 | local keptcolor = MAINRUINCOLOR | |
5829 | for i = 0,4,0.1 do | |
5830 | swait() | |
5831 | hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100) | |
5832 | block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
5833 | slash(math.random(25,50)/10,5,true,"Round","Add","Out",rarm.CFrame*CFrame.new(0,-6,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.01,0.1),-0.1,BrickColor.new("Really black")) | |
5834 | RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-15),math.rad(-20)),.1) | |
5835 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1) | |
5836 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1) | |
5837 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1) | |
5838 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1) | |
5839 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1) | |
5840 | end | |
5841 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1) | |
5842 | CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1) | |
5843 | CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1) | |
5844 | CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1) | |
5845 | CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1) | |
5846 | CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1) | |
5847 | coroutine.resume(coroutine.create(function() | |
5848 | local shval = 10 | |
5849 | for i = 0, 99 do | |
5850 | swait() | |
5851 | shval = shval - 0.1 | |
5852 | hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15) | |
5853 | end | |
5854 | hum.CameraOffset = vt(0,0,0) | |
5855 | end)) | |
5856 | sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
5857 | sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
5858 | for i = 0, 24 do | |
5859 | slash(math.random(15,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.new("Really black")) | |
5860 | end | |
5861 | local rrot = 0 | |
5862 | local xam = 1 | |
5863 | coroutine.resume(coroutine.create(function() | |
5864 | for i = 0, 14 do | |
5865 | --swait() | |
5866 | rrot = rrot + 40*xam | |
5867 | xam = xam + 0.25 | |
5868 | local bonus = xam | |
5869 | local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random()) | |
5870 | xa.Anchored = true | |
5871 | xa.Color = Color3.new(0,0,0) | |
5872 | xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75) | |
5873 | CreateMesh(xa,"Sphere",30*bonus,1,30*bonus) | |
5874 | local xc = 0 | |
5875 | coroutine.resume(coroutine.create(function() | |
5876 | for i = 0, 99 do | |
5877 | swait() | |
5878 | xc = xc + 0.01 | |
5879 | xa.Color = Color3.new(xc,0,0) | |
5880 | end | |
5881 | xa.Transparency = 1 | |
5882 | CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75) | |
5883 | MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal") | |
5884 | for i = 0, 9 do | |
5885 | slash(math.random(15,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01*bonus,0.01,0.01*bonus),math.random(50,125)/250*bonus,BrickColor.new("Really black")) | |
5886 | end | |
5887 | block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30*bonus,30*bonus,30*bonus),0.3,0.3,0.3,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
5888 | sphere2(2,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25*bonus,1,25*bonus),0.05*bonus,1.5*bonus,0.05*bonus,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
5889 | sphere2(4,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30*bonus,1,30*bonus),0.05*bonus,1.5*bonus,0.05*bonus,BrickColor.new("Really black"),Color3.new(0,0,0)) | |
5890 | game:GetService("Debris"):AddItem(xa, 5) | |
5891 | coroutine.resume(coroutine.create(function() | |
5892 | for i = 0, 19 do | |
5893 | swait() | |
5894 | hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50) | |
5895 | end | |
5896 | hum.CameraOffset = vt(0,0,0) | |
5897 | end)) | |
5898 | end)) | |
5899 | end | |
5900 | end)) | |
5901 | for i = 0,2,0.1 do | |
5902 | swait() | |
5903 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-25),math.rad(30)),.8) | |
5904 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.8) | |
5905 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8) | |
5906 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8) | |
5907 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8) | |
5908 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8) | |
5909 | end | |
5910 | attack = false | |
5911 | hum.WalkSpeed = storehumanoidWS | |
5912 | end | |
5913 | ||
5914 | function HeavenlyDisk() | |
5915 | attack = true | |
5916 | hum.WalkSpeed = 2 | |
5917 | local keptcolor = MAINRUINCOLOR | |
5918 | local radm = math.random(1,3) | |
5919 | if radm == 1 then | |
5920 | bosschatfunc("Dont make this too easy for you.",MAINRUINCOLOR.Color,1) | |
5921 | elseif radm == 2 then | |
5922 | bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1) | |
5923 | elseif radm == 3 then | |
5924 | bosschatfunc("Take it!",MAINRUINCOLOR.Color,1) | |
5925 | end | |
5926 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1) | |
5927 | CFuncs["EchoSound"].Create("rbxassetid://1625448638", char, 4, 1,0,10,0.15,0.5,1) | |
5928 | sphere2(5,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color) | |
5929 | sphere2(5,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.2,0.2,0.2,keptcolor,keptcolor.Color) | |
5930 | for i = 0, 14 do | |
5931 | PixelBlock(1,math.random(1,3),"Add",larm.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,BrickColor.new("Toothpaste"),0) | |
5932 | end | |
5933 | for i = 0,2,0.1 do | |
5934 | swait() | |
5935 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
5936 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.3) | |
5937 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.3) | |
5938 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3) | |
5939 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3) | |
5940 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3) | |
5941 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3) | |
5942 | end | |
5943 | CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1) | |
5944 | for i = 0,1,0.6 do | |
5945 | swait() | |
5946 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
5947 | slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White")) | |
5948 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
5949 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
5950 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6) | |
5951 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6) | |
5952 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6) | |
5953 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6) | |
5954 | end | |
5955 | for i = 0,1,0.6 do | |
5956 | swait() | |
5957 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
5958 | slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White")) | |
5959 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
5960 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
5961 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6) | |
5962 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6) | |
5963 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6) | |
5964 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6) | |
5965 | end | |
5966 | for i = 0,1,0.6 do | |
5967 | swait() | |
5968 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
5969 | slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White")) | |
5970 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
5971 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
5972 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6) | |
5973 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6) | |
5974 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6) | |
5975 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6) | |
5976 | end | |
5977 | for i = 0,1,0.6 do | |
5978 | swait() | |
5979 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
5980 | slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White")) | |
5981 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
5982 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
5983 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6) | |
5984 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6) | |
5985 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6) | |
5986 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6) | |
5987 | end | |
5988 | local rot = 15 | |
5989 | for i = 0, 2 do | |
5990 | local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste")) | |
5991 | CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1) | |
5992 | dis.CFrame = root.CFrame*CFrame.new(0,2,-3) | |
5993 | CreateMesh(dis,"Sphere",10,1,10) | |
5994 | local at1 = Instance.new("Attachment",dis) | |
5995 | at1.Position = vt(-5,0,0) | |
5996 | local at2 = Instance.new("Attachment",dis) | |
5997 | at2.Position = vt(5,0,0) | |
5998 | local trl = Instance.new('Trail',wed) | |
5999 | trl.Attachment0 = at1 | |
6000 | trl.Attachment1 = at2 | |
6001 | trl.Texture = "rbxassetid://1049219073" | |
6002 | trl.LightEmission = 1 | |
6003 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
6004 | trl.Color = ColorSequence.new(dis.Color) | |
6005 | trl.Lifetime = 0.6 | |
6006 | local a = Instance.new("Part",workspace) | |
6007 | a.Name = "Direction" | |
6008 | a.Anchored = true | |
6009 | a.BrickColor = bc("Bright red") | |
6010 | a.Material = "Neon" | |
6011 | a.Transparency = 1 | |
6012 | a.CanCollide = false | |
6013 | local ray = Ray.new( | |
6014 | dis.CFrame.p, -- origin | |
6015 | (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction | |
6016 | ) | |
6017 | local ignore = dis | |
6018 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
6019 | a.BottomSurface = 10 | |
6020 | a.TopSurface = 10 | |
6021 | local distance = (dis.CFrame.p - position).magnitude | |
6022 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
6023 | a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0) | |
6024 | dis.CFrame = a.CFrame | |
6025 | dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0) | |
6026 | a:Destroy() | |
6027 | local bv = Instance.new("BodyVelocity") | |
6028 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
6029 | bv.velocity = dis.CFrame.lookVector*250 | |
6030 | bv.Parent = dis | |
6031 | game:GetService("Debris"):AddItem(dis, 5) | |
6032 | local hitted = false | |
6033 | coroutine.resume(coroutine.create(function() | |
6034 | dis.Touched:connect(function(hit) | |
6035 | if hitted == false and hit.Parent ~= char then | |
6036 | hitted = true | |
6037 | CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1) | |
6038 | MagniDamage(dis, 30, 82,34575, 0, "Normal") | |
6039 | sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color) | |
6040 | sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color) | |
6041 | sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1)) | |
6042 | coroutine.resume(coroutine.create(function() | |
6043 | for i = 0, 9 do | |
6044 | local disr = CreateParta(char,1,1,"Neon",keptcolor) | |
6045 | disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
6046 | local at1 = Instance.new("Attachment",disr) | |
6047 | at1.Position = vt(-2,0,0) | |
6048 | local at2 = Instance.new("Attachment",disr) | |
6049 | at2.Position = vt(2,0,0) | |
6050 | local trl = Instance.new('Trail',disr) | |
6051 | trl.Attachment0 = at1 | |
6052 | trl.FaceCamera = true | |
6053 | trl.Attachment1 = at2 | |
6054 | trl.Texture = "rbxassetid://2342682798" | |
6055 | trl.LightEmission = 1 | |
6056 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
6057 | trl.Color = ColorSequence.new(Color3.new(0.3,1,1)) | |
6058 | trl.Lifetime = 0.5 | |
6059 | local bv = Instance.new("BodyVelocity") | |
6060 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
6061 | bv.velocity = disr.CFrame.lookVector*math.random(50,200) | |
6062 | bv.Parent = disr | |
6063 | local val = 0 | |
6064 | coroutine.resume(coroutine.create(function() | |
6065 | swait(30) | |
6066 | for i = 0, 9 do | |
6067 | swait() | |
6068 | val = val + 0.1 | |
6069 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)}) | |
6070 | end | |
6071 | game:GetService("Debris"):AddItem(disr, 3) | |
6072 | end)) | |
6073 | end | |
6074 | local eff = Instance.new("ParticleEmitter",dis) | |
6075 | eff.Texture = "rbxassetid://2273224484" | |
6076 | eff.LightEmission = 1 | |
6077 | eff.Color = ColorSequence.new(Color3.new(0.3,1,1)) | |
6078 | eff.Rate = 500000 | |
6079 | eff.Lifetime = NumberRange.new(0.5,2) | |
6080 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
6081 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
6082 | eff.Speed = NumberRange.new(20,250) | |
6083 | eff.Drag = 5 | |
6084 | eff.Rotation = NumberRange.new(-500,500) | |
6085 | eff.VelocitySpread = 9000 | |
6086 | eff.RotSpeed = NumberRange.new(-50,50) | |
6087 | wait(0.25) | |
6088 | eff.Enabled = false | |
6089 | end)) | |
6090 | for i = 0, 9 do | |
6091 | slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White")) | |
6092 | end | |
6093 | for i = 0, 19 do | |
6094 | PixelBlock(1,math.random(5,20),"Add",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0) | |
6095 | end | |
6096 | coroutine.resume(coroutine.create(function() | |
6097 | for i = 0, 19 do | |
6098 | swait() | |
6099 | hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70) | |
6100 | end | |
6101 | hum.CameraOffset = vt(0,0,0) | |
6102 | end)) | |
6103 | dis.Anchored = true | |
6104 | dis.Transparency = 1 | |
6105 | wait(8) | |
6106 | dis:Destroy() | |
6107 | end | |
6108 | end) | |
6109 | end)) | |
6110 | rot = rot - 15 | |
6111 | end | |
6112 | for i = 0,2,0.1 do | |
6113 | swait() | |
6114 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3) | |
6115 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.3) | |
6116 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3) | |
6117 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3) | |
6118 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3) | |
6119 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3) | |
6120 | end | |
6121 | attack = false | |
6122 | hum.WalkSpeed = storehumanoidWS | |
6123 | end | |
6124 | ||
6125 | function notonmychristianminecraftserver() | |
6126 | warn'not in my christian minecraft server' | |
6127 | bosschatfunc("Access denied",MAINRUINCOLOR.Color,0.5) | |
6128 | CFuncs["Sound"].Create("rbxassetid://2347643831",char,2,1) | |
6129 | CFuncs["Sound"].Create("rbxassetid://970428619",char,2,1) | |
6130 | ||
6131 | end | |
6132 | function fugg() | |
6133 | local whom = (mouse.Target and mouse.Target.Parent) | |
6134 | --[[local fuckThisBoi = false | |
6135 | if(whom and whom:FindFirstChildOfClass'Humanoid')then | |
6136 | for _,v in next, ODers do | |
6137 | if(v == whom)then | |
6138 | fuckThisBoi = false | |
6139 | end | |
6140 | end | |
6141 | end | |
6142 | if(not fuckThisBoi)then | |
6143 | attack = false | |
6144 | warn'to fuck that boi you need to target them with z' | |
6145 | else]] | |
6146 | if(whom and whom:FindFirstChildOfClass'Humanoid' and whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso')then | |
6147 | local hed = whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' | |
6148 | local hum = whom:FindFirstChildOfClass'Humanoid' | |
6149 | local ocf = RootPart.CFrame | |
6150 | hum.WalkSpeed = 0 | |
6151 | ||
6152 | hed.Anchored = true | |
6153 | RootPart.Anchored = true | |
6154 | RootPart.CFrame = hed.CFrame*cf(0,0,1.35) | |
6155 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1) | |
6156 | for i = 0, 9 do | |
6157 | sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Pink"),0) | |
6158 | end | |
6159 | for i = 0, 24 do | |
6160 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Pink"),0) | |
6161 | end | |
6162 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Pink")) | |
6163 | attack = true | |
6164 | bosschatfunc("fucc u",MAINRUINCOLOR.Color,1) | |
6165 | local speed = 1 | |
6166 | local heck; | |
6167 | local stopitlol = false; | |
6168 | heck = mouse.KeyUp:connect(function(k) | |
6169 | if(k:lower() == 'x')then | |
6170 | stopitlol = true | |
6171 | heck:disconnect() | |
6172 | end | |
6173 | end) | |
6174 | local times = 0 | |
6175 | repeat swait() | |
6176 | speed = speed - .01 | |
6177 | times = times + 1 | |
6178 | if(speed < .1)then | |
6179 | speed = .1 | |
6180 | end | |
6181 | for i = 0, speed, .05 do | |
6182 | RootPart.CFrame = hed.CFrame*cf(0,0,1.35) | |
6183 | swait() | |
6184 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(50),0,0)*angles(0,math.rad(90),0),.4) | |
6185 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4) | |
6186 | RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(-25),0,0)*RootCF,.4) | |
6187 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8) | |
6188 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.4) | |
6189 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.4) | |
6190 | end | |
6191 | CameraEnshaking(5,5) | |
6192 | ||
6193 | CFuncs["Sound"].Create("rbxassetid://2150821806", Torso, 10,1) | |
6194 | ||
6195 | for i = 0, speed, .05 do | |
6196 | RootPart.CFrame = hed.CFrame*cf(0,0,1.35) | |
6197 | swait() | |
6198 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-50),0,0)*angles(0,math.rad(90),0),.4) | |
6199 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4) | |
6200 | RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(25),0,0)*RootCF,.4) | |
6201 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8) | |
6202 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4) | |
6203 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4) | |
6204 | end | |
6205 | until stopitlol and times >= 3 | |
6206 | for i = 1, 3 do | |
6207 | for i = 0, 1.5, .05 do | |
6208 | RootPart.CFrame = hed.CFrame*cf(0,0,1.35) | |
6209 | swait() | |
6210 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(50),0,0)*angles(0,math.rad(90),0),.4) | |
6211 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4) | |
6212 | RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(-25),0,0)*RootCF,.4) | |
6213 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8) | |
6214 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.4) | |
6215 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.4) | |
6216 | end | |
6217 | CameraEnshaking(5,25) | |
6218 | ||
6219 | CFuncs["Sound"].Create("rbxassetid://2150821806", Torso, 10,1.2) | |
6220 | ||
6221 | ||
6222 | coroutine.resume(coroutine.create(function() | |
6223 | bld = Instance.new("ParticleEmitter",whom:WaitForChild("Torso")) | |
6224 | bld.LightEmission = 0.1 | |
6225 | bld.Texture = "rbxassetid://284205403" | |
6226 | bld.Color = ColorSequence.new(Color3.new(1,1,1)) | |
6227 | bld.Rate = 500 | |
6228 | bld.Lifetime = NumberRange.new(1) | |
6229 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
6230 | bld.Acceleration = vt(0,-25,0) | |
6231 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
6232 | bld.Speed = NumberRange.new(10,50) | |
6233 | bld.EmissionDirection = "Back" | |
6234 | bld.VelocitySpread = 25 | |
6235 | bld.Rotation = NumberRange.new(-500,500) | |
6236 | bld.RotSpeed = NumberRange.new(-500,500) | |
6237 | bld.Enabled = false | |
6238 | bld:Emit(250) | |
6239 | end)) | |
6240 | coroutine.resume(coroutine.create(function() | |
6241 | bld = Instance.new("ParticleEmitter",whom:WaitForChild("LowerTorso")) | |
6242 | bld.LightEmission = 0.1 | |
6243 | bld.Texture = "rbxassetid://284205403" | |
6244 | bld.Color = ColorSequence.new(Color3.new(1,1,1)) | |
6245 | bld.Rate = 500 | |
6246 | bld.Lifetime = NumberRange.new(1) | |
6247 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
6248 | bld.Acceleration = vt(0,-25,0) | |
6249 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
6250 | bld.Speed = NumberRange.new(10,50) | |
6251 | bld.EmissionDirection = "Back" | |
6252 | bld.VelocitySpread = 25 | |
6253 | bld.Rotation = NumberRange.new(-500,500) | |
6254 | bld.RotSpeed = NumberRange.new(-500,500) | |
6255 | bld.Enabled = false | |
6256 | bld:Emit(250) | |
6257 | end)) | |
6258 | for i = 0, 1.5, .05 do | |
6259 | RootPart.CFrame = hed.CFrame*cf(0,0,1.35) | |
6260 | swait() | |
6261 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-50),0,0)*angles(0,math.rad(90),0),.4) | |
6262 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4) | |
6263 | RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(25),0,0)*RootCF,.4) | |
6264 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8) | |
6265 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4) | |
6266 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4) | |
6267 | end | |
6268 | end | |
6269 | for i = 0, 4, .05 do | |
6270 | RootPart.CFrame = hed.CFrame*cf(0,0,1.35) | |
6271 | swait() | |
6272 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(100),0,0)*angles(0,math.rad(90),0),.1) | |
6273 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(100),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
6274 | RootJoint.C0=clerp(RootJoint.C0,cf(0,-.75,0)*angles(math.rad(-50),0,0)*RootCF,.1) | |
6275 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.1) | |
6276 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.1) | |
6277 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.1) | |
6278 | end | |
6279 | CameraEnshaking(5,25) | |
6280 | CFuncs["Sound"].Create("rbxassetid://2050481695", Torso,10,1) | |
6281 | dmg(whom) | |
6282 | coroutine.resume(coroutine.create(function() | |
6283 | bld = Instance.new("ParticleEmitter",whom:WaitForChild("Torso")) | |
6284 | bld.LightEmission = 0.1 | |
6285 | bld.Texture = "rbxassetid://284205403" | |
6286 | bld.Color = ColorSequence.new(Color3.new(1,1,1)) | |
6287 | bld.Rate = 500 | |
6288 | bld.Lifetime = NumberRange.new(1) | |
6289 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
6290 | bld.Acceleration = vt(0,-25,0) | |
6291 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
6292 | bld.Speed = NumberRange.new(10,50) | |
6293 | bld.EmissionDirection = "Back" | |
6294 | bld.VelocitySpread = 25 | |
6295 | bld.Rotation = NumberRange.new(-500,500) | |
6296 | bld.RotSpeed = NumberRange.new(-500,500) | |
6297 | bld.Enabled = true | |
6298 | end)) | |
6299 | coroutine.resume(coroutine.create(function() | |
6300 | bld = Instance.new("ParticleEmitter",whom:WaitForChild("LowerTorso")) | |
6301 | bld.LightEmission = 0.1 | |
6302 | bld.Texture = "rbxassetid://284205403" | |
6303 | bld.Color = ColorSequence.new(Color3.new(1,1,1)) | |
6304 | bld.Rate = 500 | |
6305 | bld.Lifetime = NumberRange.new(1) | |
6306 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
6307 | bld.Acceleration = vt(0,-25,0) | |
6308 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
6309 | bld.Speed = NumberRange.new(10,50) | |
6310 | bld.EmissionDirection = "Back" | |
6311 | bld.VelocitySpread = 25 | |
6312 | bld.Rotation = NumberRange.new(-500,500) | |
6313 | bld.RotSpeed = NumberRange.new(-500,500) | |
6314 | bld.Enabled = true | |
6315 | end)) | |
6316 | for i = 0, 3, .05 do | |
6317 | RootPart.CFrame = hed.CFrame*cf(0,0,1.35) | |
6318 | swait() | |
6319 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-100),0,0)*angles(0,math.rad(90),0),.4) | |
6320 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-100),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4) | |
6321 | RootJoint.C0=clerp(RootJoint.C0,cf(0,-.75,0)*angles(math.rad(50),0,0)*RootCF,.4) | |
6322 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8) | |
6323 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4) | |
6324 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4) | |
6325 | end | |
6326 | ||
6327 | RootPart.CFrame = ocf | |
6328 | for i = 0, 9 do | |
6329 | sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Pink"),0) | |
6330 | end | |
6331 | for i = 0, 24 do | |
6332 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Pink"),0) | |
6333 | end | |
6334 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Pink")) | |
6335 | RootPart.Anchored = false | |
6336 | Humanoid.WalkSpeed = storehumanoidWS | |
6337 | bosschatfunc("that felt horrible",MAINRUINCOLOR.Color,0.5) | |
6338 | attack = false | |
6339 | end | |
6340 | end | |
6341 | ||
6342 | ||
6343 | function RapidBurst() | |
6344 | attack = true | |
6345 | hum.WalkSpeed = 0 | |
6346 | CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5) | |
6347 | CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5) | |
6348 | CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1) | |
6349 | bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.8) | |
6350 | bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.9) | |
6351 | bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2) | |
6352 | local keptcolor = MAINRUINCOLOR | |
6353 | for i = 0,8,0.1 do | |
6354 | swait() | |
6355 | hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100) | |
6356 | slash(math.random(25,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,25,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,0.01,2),-2,BrickColor.random()) | |
6357 | block(10,"Add",root.CFrame*CFrame.new(0,25,0),vt(0,0,0),0.5,0.5,0.5,BrickColor.random(),BrickColor.random().Color) | |
6358 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-15 - 2 * math.cos(sine / 32))),.1) | |
6359 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 + 2 * math.cos(sine / 32))),.1) | |
6360 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.15 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(-15 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
6361 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
6362 | RW.C0=clerp(RW.C0,cf(1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-10 + 3 * math.cos(sine / 45))),.1) | |
6363 | LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(13 - 3 * math.cos(sine / 45))),.1) | |
6364 | end | |
6365 | for i = 0, 99 do | |
6366 | local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR) | |
6367 | dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
6368 | local at1 = Instance.new("Attachment",dis) | |
6369 | at1.Position = vt(-25000,0,0) | |
6370 | local at2 = Instance.new("Attachment",dis) | |
6371 | at2.Position = vt(25000,0,0) | |
6372 | local trl = Instance.new('Trail',dis) | |
6373 | trl.Attachment0 = at1 | |
6374 | trl.FaceCamera = true | |
6375 | trl.Attachment1 = at2 | |
6376 | trl.Texture = "rbxassetid://1049219073" | |
6377 | trl.LightEmission = 1 | |
6378 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
6379 | trl.Color = ColorSequence.new(BrickColor.random().Color) | |
6380 | trl.Lifetime = 5 | |
6381 | local bv = Instance.new("BodyVelocity") | |
6382 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
6383 | bv.velocity = dis.CFrame.lookVector*math.random(500,2500) | |
6384 | bv.Parent = dis | |
6385 | game:GetService("Debris"):AddItem(dis, 5) | |
6386 | end | |
6387 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1) | |
6388 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5) | |
6389 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3) | |
6390 | sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color) | |
6391 | sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color) | |
6392 | sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color) | |
6393 | sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color) | |
6394 | CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1) | |
6395 | CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8) | |
6396 | CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1) | |
6397 | hum.CameraOffset = vt(0,0,0) | |
6398 | for i = 0, 24 do | |
6399 | slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(500,1500)/250,BrickColor.random()) | |
6400 | end | |
6401 | local distam = 0 | |
6402 | coroutine.resume(coroutine.create(function() | |
6403 | for i = 0, 99 do | |
6404 | wait() | |
6405 | distam = distam + 1 | |
6406 | local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random()) | |
6407 | xa.Anchored = true | |
6408 | xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam)) | |
6409 | game:GetService("Debris"):AddItem(xa, 5) | |
6410 | for i = 0, 4 do | |
6411 | slash(math.random(25,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.random()) | |
6412 | end | |
6413 | coroutine.resume(coroutine.create(function() | |
6414 | local eff = Instance.new("ParticleEmitter",xa) | |
6415 | eff.Texture = "rbxassetid://2273224484" | |
6416 | eff.LightEmission = 1 | |
6417 | eff.Color = ColorSequence.new(BrickColor.random().Color) | |
6418 | eff.Rate = 500000 | |
6419 | eff.Lifetime = NumberRange.new(1,3) | |
6420 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,30,0),NumberSequenceKeypoint.new(0.2,5,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
6421 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
6422 | eff.Speed = NumberRange.new(50,500) | |
6423 | eff.Drag = 5 | |
6424 | eff.Rotation = NumberRange.new(-500,500) | |
6425 | eff.VelocitySpread = 9000 | |
6426 | eff.RotSpeed = NumberRange.new(-50,50) | |
6427 | wait(0.25) | |
6428 | eff.Enabled = false | |
6429 | end)) | |
6430 | coroutine.resume(coroutine.create(function() | |
6431 | for i = 0, 19 do | |
6432 | swait() | |
6433 | hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10) | |
6434 | end | |
6435 | hum.CameraOffset = vt(0,0,0) | |
6436 | end)) | |
6437 | CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200) | |
6438 | sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color) | |
6439 | sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color) | |
6440 | MagniDamage(xa, 60, 9999,99999, 0, "Normal") | |
6441 | end | |
6442 | end)) | |
6443 | attack = false | |
6444 | hum.WalkSpeed = storehumanoidWS | |
6445 | end | |
6446 | ||
6447 | function RapidBurst() | |
6448 | attack = true | |
6449 | hum.WalkSpeed = 0 | |
6450 | CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5) | |
6451 | CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5) | |
6452 | CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1) | |
6453 | bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.8) | |
6454 | bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.9) | |
6455 | bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2) | |
6456 | local keptcolor = MAINRUINCOLOR | |
6457 | for i = 0,8,0.1 do | |
6458 | swait() | |
6459 | hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100) | |
6460 | slash(math.random(25,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,25,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,0.01,2),-2,BrickColor.random()) | |
6461 | block(10,"Add",root.CFrame*CFrame.new(0,25,0),vt(0,0,0),0.5,0.5,0.5,BrickColor.random(),BrickColor.random().Color) | |
6462 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-15 - 2 * math.cos(sine / 32))),.1) | |
6463 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 + 2 * math.cos(sine / 32))),.1) | |
6464 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.15 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(-15 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
6465 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
6466 | RW.C0=clerp(RW.C0,cf(1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-10 + 3 * math.cos(sine / 45))),.1) | |
6467 | LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(13 - 3 * math.cos(sine / 45))),.1) | |
6468 | end | |
6469 | for i = 0, 99 do | |
6470 | local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR) | |
6471 | dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
6472 | local at1 = Instance.new("Attachment",dis) | |
6473 | at1.Position = vt(-25000,0,0) | |
6474 | local at2 = Instance.new("Attachment",dis) | |
6475 | at2.Position = vt(25000,0,0) | |
6476 | local trl = Instance.new('Trail',dis) | |
6477 | trl.Attachment0 = at1 | |
6478 | trl.FaceCamera = true | |
6479 | trl.Attachment1 = at2 | |
6480 | trl.Texture = "rbxassetid://1049219073" | |
6481 | trl.LightEmission = 1 | |
6482 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
6483 | trl.Color = ColorSequence.new(BrickColor.random().Color) | |
6484 | trl.Lifetime = 5 | |
6485 | local bv = Instance.new("BodyVelocity") | |
6486 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
6487 | bv.velocity = dis.CFrame.lookVector*math.random(500,2500) | |
6488 | bv.Parent = dis | |
6489 | game:GetService("Debris"):AddItem(dis, 5) | |
6490 | end | |
6491 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1) | |
6492 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5) | |
6493 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3) | |
6494 | sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color) | |
6495 | sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color) | |
6496 | sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color) | |
6497 | sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color) | |
6498 | CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1) | |
6499 | CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8) | |
6500 | CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1) | |
6501 | hum.CameraOffset = vt(0,0,0) | |
6502 | for i = 0, 24 do | |
6503 | slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(500,1500)/250,BrickColor.random()) | |
6504 | end | |
6505 | local distam = 0 | |
6506 | coroutine.resume(coroutine.create(function() | |
6507 | for i = 0, 99 do | |
6508 | wait() | |
6509 | distam = distam + 1 | |
6510 | local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random()) | |
6511 | xa.Anchored = true | |
6512 | xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam)) | |
6513 | game:GetService("Debris"):AddItem(xa, 5) | |
6514 | for i = 0, 4 do | |
6515 | slash(math.random(25,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.random()) | |
6516 | end | |
6517 | coroutine.resume(coroutine.create(function() | |
6518 | local eff = Instance.new("ParticleEmitter",xa) | |
6519 | eff.Texture = "rbxassetid://2273224484" | |
6520 | eff.LightEmission = 1 | |
6521 | eff.Color = ColorSequence.new(BrickColor.random().Color) | |
6522 | eff.Rate = 500000 | |
6523 | eff.Lifetime = NumberRange.new(1,3) | |
6524 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,30,0),NumberSequenceKeypoint.new(0.2,5,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
6525 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
6526 | eff.Speed = NumberRange.new(50,500) | |
6527 | eff.Drag = 5 | |
6528 | eff.Rotation = NumberRange.new(-500,500) | |
6529 | eff.VelocitySpread = 9000 | |
6530 | eff.RotSpeed = NumberRange.new(-50,50) | |
6531 | wait(0.25) | |
6532 | eff.Enabled = false | |
6533 | end)) | |
6534 | coroutine.resume(coroutine.create(function() | |
6535 | for i = 0, 19 do | |
6536 | swait() | |
6537 | hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10) | |
6538 | end | |
6539 | hum.CameraOffset = vt(0,0,0) | |
6540 | end)) | |
6541 | CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200) | |
6542 | sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color) | |
6543 | sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color) | |
6544 | MagniDamage(xa, 60, 9999,99999, 0, "Normal") | |
6545 | end | |
6546 | end)) | |
6547 | attack = false | |
6548 | hum.WalkSpeed = storehumanoidWS | |
6549 | end | |
6550 | ||
6551 | ||
6552 | function FallenOrbs() | |
6553 | attack = true | |
6554 | hum.WalkSpeed = 2 | |
6555 | local keptcolor = MAINRUINCOLOR | |
6556 | CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1) | |
6557 | CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1) | |
6558 | local radm = math.random(1,3) | |
6559 | if radm == 1 then | |
6560 | bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1) | |
6561 | elseif radm == 2 then | |
6562 | bosschatfunc("How about this?",MAINRUINCOLOR.Color,1) | |
6563 | elseif radm == 3 then | |
6564 | bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1) | |
6565 | end | |
6566 | coroutine.resume(coroutine.create(function() | |
6567 | for i = 0, 29 do | |
6568 | swait(2) | |
6569 | local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR) | |
6570 | dis.Anchored = true | |
6571 | CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5) | |
6572 | dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35)) | |
6573 | CreateMesh(dis,"Sphere",2,2,2) | |
6574 | sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color) | |
6575 | slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(10,50)/250,BrickColor.new("White")) | |
6576 | coroutine.resume(coroutine.create(function() | |
6577 | wait(0.5) | |
6578 | dis.Anchored = false | |
6579 | CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1) | |
6580 | local at1 = Instance.new("Attachment",dis) | |
6581 | at1.Position = vt(-1,0,0) | |
6582 | local at2 = Instance.new("Attachment",dis) | |
6583 | at2.Position = vt(1,0,0) | |
6584 | local trl = Instance.new('Trail',dis) | |
6585 | trl.Attachment0 = at1 | |
6586 | trl.FaceCamera = true | |
6587 | trl.Attachment1 = at2 | |
6588 | trl.Texture = "rbxassetid://1049219073" | |
6589 | trl.LightEmission = 1 | |
6590 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
6591 | trl.Color = ColorSequence.new(dis.Color) | |
6592 | trl.Lifetime = 0.6 | |
6593 | local a = Instance.new("Part",workspace) | |
6594 | a.Name = "Direction" | |
6595 | a.Anchored = true | |
6596 | a.BrickColor = bc("Bright red") | |
6597 | a.Material = "Neon" | |
6598 | a.Transparency = 1 | |
6599 | a.CanCollide = false | |
6600 | local ray = Ray.new( | |
6601 | dis.CFrame.p, -- origin | |
6602 | (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction | |
6603 | ) | |
6604 | local ignore = dis | |
6605 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
6606 | a.BottomSurface = 10 | |
6607 | a.TopSurface = 10 | |
6608 | local distance = (dis.CFrame.p - position).magnitude | |
6609 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
6610 | a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0) | |
6611 | dis.CFrame = a.CFrame | |
6612 | a:Destroy() | |
6613 | local bv = Instance.new("BodyVelocity") | |
6614 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
6615 | bv.velocity = dis.CFrame.lookVector*500 | |
6616 | bv.Parent = dis | |
6617 | game:GetService("Debris"):AddItem(dis, 5) | |
6618 | local hitted = false | |
6619 | coroutine.resume(coroutine.create(function() | |
6620 | dis.Touched:connect(function(hit) | |
6621 | if hitted == false and hit.Parent ~= char then | |
6622 | hitted = true | |
6623 | CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1) | |
6624 | MagniDamage(dis, 60, 25456,124672, 0, "Normal") | |
6625 | sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color) | |
6626 | sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1)) | |
6627 | coroutine.resume(coroutine.create(function() | |
6628 | for i = 0, 4 do | |
6629 | local disr = CreateParta(char,1,1,"Neon",keptcolor) | |
6630 | disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
6631 | local at1 = Instance.new("Attachment",disr) | |
6632 | at1.Position = vt(-10,0,0) | |
6633 | local at2 = Instance.new("Attachment",disr) | |
6634 | at2.Position = vt(10,0,0) | |
6635 | local trl = Instance.new('Trail',disr) | |
6636 | trl.Attachment0 = at1 | |
6637 | trl.FaceCamera = true | |
6638 | trl.Attachment1 = at2 | |
6639 | trl.Texture = "rbxassetid://2342682798" | |
6640 | trl.LightEmission = 1 | |
6641 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
6642 | trl.Color = ColorSequence.new(disr.Color) | |
6643 | trl.Lifetime = 0.5 | |
6644 | local bv = Instance.new("BodyVelocity") | |
6645 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
6646 | bv.velocity = disr.CFrame.lookVector*math.random(125,250) | |
6647 | bv.Parent = disr | |
6648 | local val = 0 | |
6649 | coroutine.resume(coroutine.create(function() | |
6650 | swait(30) | |
6651 | for i = 0, 9 do | |
6652 | swait() | |
6653 | val = val + 0.1 | |
6654 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)}) | |
6655 | end | |
6656 | game:GetService("Debris"):AddItem(disr, 3) | |
6657 | end)) | |
6658 | end | |
6659 | local eff = Instance.new("ParticleEmitter",dis) | |
6660 | eff.Texture = "rbxassetid://1049219073" | |
6661 | eff.LightEmission = 1 | |
6662 | eff.Color = ColorSequence.new(dis.Color) | |
6663 | eff.Rate = 500000 | |
6664 | eff.Lifetime = NumberRange.new(0.5,2) | |
6665 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
6666 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
6667 | eff.Speed = NumberRange.new(20,250) | |
6668 | eff.Drag = 5 | |
6669 | eff.Rotation = NumberRange.new(-500,500) | |
6670 | eff.VelocitySpread = 9000 | |
6671 | eff.RotSpeed = NumberRange.new(-50,50) | |
6672 | wait(0.5) | |
6673 | eff.Enabled = false | |
6674 | end)) | |
6675 | for i = 0, 4 do | |
6676 | slash(math.random(20,50)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White")) | |
6677 | end | |
6678 | coroutine.resume(coroutine.create(function() | |
6679 | for i = 0, 19 do | |
6680 | swait() | |
6681 | hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70) | |
6682 | end | |
6683 | hum.CameraOffset = vt(0,0,0) | |
6684 | end)) | |
6685 | dis.Anchored = true | |
6686 | dis.Transparency = 1 | |
6687 | wait(8) | |
6688 | dis:Destroy() | |
6689 | end | |
6690 | end) | |
6691 | end)) | |
6692 | end)) | |
6693 | end | |
6694 | end)) | |
6695 | for i = 0,9,0.1 do | |
6696 | swait() | |
6697 | sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
6698 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 32))),.3) | |
6699 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 2 * math.cos(sine / 32))),.3) | |
6700 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(90)),.3) | |
6701 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(-15 + 1 * math.cos(sine / 58)),math.rad(-90 + 2 * math.cos(sine / 53))),.3) | |
6702 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(90 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(90 + 2 * math.cos(sine / 45))),.3) | |
6703 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(8 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(-9 - 4 * math.cos(sine / 45))),.3) | |
6704 | end | |
6705 | attack = false | |
6706 | hum.WalkSpeed = storehumanoidWS | |
6707 | end | |
6708 | ||
6709 | function CyberSlash() | |
6710 | local posit = -2 | |
6711 | attack = true | |
6712 | hum.WalkSpeed = 5 | |
6713 | CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1) | |
6714 | local radm = math.random(1,3) | |
6715 | if radm == 1 then | |
6716 | bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1) | |
6717 | elseif radm == 2 then | |
6718 | bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1) | |
6719 | elseif radm == 3 then | |
6720 | bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1) | |
6721 | end | |
6722 | CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1) | |
6723 | for i = 0,2,0.1 do | |
6724 | swait() | |
6725 | sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR) | |
6726 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5) | |
6727 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5) | |
6728 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5) | |
6729 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5) | |
6730 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(8 - 6 * math.cos(sine / 67)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-18 - 5 * math.cos(sine / 32))),.1) | |
6731 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-15 - 8 * math.cos(sine / 74)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(31 + 8 * math.cos(sine / 38))),.1) | |
6732 | end | |
6733 | for i = 0, 2 do | |
6734 | CameraEnshaking(1,2) | |
6735 | local hite = Instance.new("Part", char) | |
6736 | hite.Anchored = true | |
6737 | hite.CanCollide = false | |
6738 | hite.FormFactor = 3 | |
6739 | hite.Name = "Ring" | |
6740 | hite.Material = "Neon" | |
6741 | hite.Size = Vector3.new(1, 1, 1) | |
6742 | hite.Transparency = 1 | |
6743 | hite.TopSurface = 0 | |
6744 | hite.BottomSurface = 0 | |
6745 | hite.CFrame = root.CFrame*CFrame.new(0,posit,-5) | |
6746 | CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9) | |
6747 | CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8) | |
6748 | coroutine.resume(coroutine.create(function() | |
6749 | for i = 0, 1 do | |
6750 | swait() | |
6751 | sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR) | |
6752 | sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR) | |
6753 | sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR) | |
6754 | end | |
6755 | end)) | |
6756 | sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(2,2,2),0.5,-0.01,-0.01,MAINRUINCOLOR) | |
6757 | MagniDamage(hite, 3, 30,40, 0, "Normal") | |
6758 | game:GetService("Debris"):AddItem(hite, 5) | |
6759 | posit = posit + 2 | |
6760 | end | |
6761 | for i = 0,1,0.1 do | |
6762 | swait() | |
6763 | sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR) | |
6764 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5) | |
6765 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5) | |
6766 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5) | |
6767 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5) | |
6768 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(0)),.5) | |
6769 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.5) | |
6770 | end | |
6771 | for i = 0,1,0.1 do | |
6772 | swait() | |
6773 | sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR) | |
6774 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5) | |
6775 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5) | |
6776 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5) | |
6777 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5) | |
6778 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(30)),.5) | |
6779 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(40)),.5) | |
6780 | end | |
6781 | posit = -6 | |
6782 | for i = 0, 6 do | |
6783 | CameraEnshaking(1,3) | |
6784 | local hite = Instance.new("Part", char) | |
6785 | hite.Anchored = true | |
6786 | hite.CanCollide = false | |
6787 | hite.FormFactor = 3 | |
6788 | hite.Name = "Ring" | |
6789 | hite.Material = "Neon" | |
6790 | hite.Size = Vector3.new(1, 1, 1) | |
6791 | hite.Transparency = 1 | |
6792 | hite.TopSurface = 0 | |
6793 | hite.BottomSurface = 0 | |
6794 | hite.CFrame = root.CFrame*CFrame.new(posit,0,-5) | |
6795 | CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2) | |
6796 | CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1) | |
6797 | sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),-0.01,1,-0.01,MAINRUINCOLOR) | |
6798 | coroutine.resume(coroutine.create(function() | |
6799 | for i = 0, 2 do | |
6800 | swait() | |
6801 | sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR) | |
6802 | sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR) | |
6803 | sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR) | |
6804 | end | |
6805 | end)) | |
6806 | MagniDamage(hite, 5, 40,70, 0, "Normal") | |
6807 | game:GetService("Debris"):AddItem(hite, 5) | |
6808 | posit = posit + 2 | |
6809 | end | |
6810 | for i = 0,1,0.1 do | |
6811 | swait() | |
6812 | sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR) | |
6813 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5) | |
6814 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5) | |
6815 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5) | |
6816 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5) | |
6817 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(10),math.rad(-10)),.5) | |
6818 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(60)),.5) | |
6819 | end | |
6820 | hum.WalkSpeed = storehumanoidWS | |
6821 | attack = false | |
6822 | end | |
6823 | ||
6824 | function EquinoxOrbs() | |
6825 | hum.WalkSpeed = 0 | |
6826 | attack = true | |
6827 | local radm = math.random(1,3) | |
6828 | if radm == 1 then | |
6829 | bosschatfunc("NOX-DASH!!!",MAINRUINCOLOR.Color,1) | |
6830 | elseif radm == 2 then | |
6831 | bosschatfunc("Beware from behind",MAINRUINCOLOR.Color,1) | |
6832 | elseif radm == 3 then | |
6833 | bosschatfunc("I'M COMING!!",MAINRUINCOLOR.Color,1) | |
6834 | end | |
6835 | for i = 0,1,0.1 do | |
6836 | swait() | |
6837 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20)),.2) | |
6838 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20)),.2) | |
6839 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
6840 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2) | |
6841 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3) | |
6842 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3) | |
6843 | end | |
6844 | sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR) | |
6845 | sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR) | |
6846 | for i = 0, 24 do | |
6847 | slash(math.random(10,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),math.rad(0)),vt(0.01,0.01,0.01),math.random(100,400)/250,BrickColor.new("White")) | |
6848 | end | |
6849 | CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1) | |
6850 | CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8) | |
6851 | CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5) | |
6852 | CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9) | |
6853 | for i = 0,4,0.1 do | |
6854 | swait() | |
6855 | root.CFrame = root.CFrame + root.CFrame.lookVector*7.5 | |
6856 | local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR) | |
6857 | CreateMesh(dis,"Sphere",1,1,1) | |
6858 | dis.Anchored = true | |
6859 | dis.CFrame = larm.CFrame*CFrame.new(0,-3,0) | |
6860 | local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black")) | |
6861 | CreateMesh(dis2,"Sphere",1,1,1) | |
6862 | dis2.Anchored = true | |
6863 | dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0) | |
6864 | sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color) | |
6865 | sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color) | |
6866 | coroutine.resume(coroutine.create(function() | |
6867 | swait(60) | |
6868 | dis.Transparency = 1 | |
6869 | dis2.Transparency = 1 | |
6870 | coroutine.resume(coroutine.create(function() | |
6871 | for i = 0, 19 do | |
6872 | swait() | |
6873 | hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40) | |
6874 | end | |
6875 | hum.CameraOffset = vt(0,0,0) | |
6876 | end)) | |
6877 | coroutine.resume(coroutine.create(function() | |
6878 | local eff = Instance.new("ParticleEmitter",dis) | |
6879 | eff.Texture = "rbxassetid://2273224484" | |
6880 | eff.LightEmission = 1 | |
6881 | eff.Color = ColorSequence.new(dis.Color) | |
6882 | eff.Rate = 500000 | |
6883 | eff.Lifetime = NumberRange.new(0.5,2) | |
6884 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
6885 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
6886 | eff.Speed = NumberRange.new(50,450) | |
6887 | eff.Drag = 5 | |
6888 | eff.Rotation = NumberRange.new(-500,500) | |
6889 | eff.VelocitySpread = 9000 | |
6890 | eff.RotSpeed = NumberRange.new(-50,50) | |
6891 | local eff2 = eff:Clone() | |
6892 | eff2.Parent = dis2 | |
6893 | eff2.LightEmission = 0 | |
6894 | eff2.Color = ColorSequence.new(dis2.Color) | |
6895 | wait(0.25) | |
6896 | eff.Enabled = false | |
6897 | eff2.Enabled = false | |
6898 | end)) | |
6899 | MagniDamage(dis, 55, 89,219788936, 0, "Normal") | |
6900 | MagniDamage(dis2, 55, 89,219788936, 0, "Normal") | |
6901 | for i = 0, 2 do | |
6902 | slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(100,300)/250,dis.BrickColor) | |
6903 | slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(100,300)/250,dis2.BrickColor) | |
6904 | end | |
6905 | CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75) | |
6906 | CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75) | |
6907 | CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25) | |
6908 | CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25) | |
6909 | CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15) | |
6910 | CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15) | |
6911 | sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color) | |
6912 | sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color) | |
6913 | end)) | |
6914 | game:GetService("Debris"):AddItem(dis, 5) | |
6915 | game:GetService("Debris"):AddItem(dis2, 5) | |
6916 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20)),.2) | |
6917 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20)),.2) | |
6918 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
6919 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2) | |
6920 | RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1) | |
6921 | LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1) | |
6922 | end | |
6923 | attack = false | |
6924 | hum.WalkSpeed = storehumanoidWS | |
6925 | end | |
6926 | function FallenDEMISE() | |
6927 | attack = true | |
6928 | hum.WalkSpeed = 0 | |
6929 | local keptcolor = MAINRUINCOLOR | |
6930 | bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3) | |
6931 | CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75) | |
6932 | CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5) | |
6933 | for i = 0, 15, 0.1 do | |
6934 | swait() | |
6935 | local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR) | |
6936 | dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
6937 | local at1 = Instance.new("Attachment",dis) | |
6938 | at1.Position = vt(-25000,0,0) | |
6939 | local at2 = Instance.new("Attachment",dis) | |
6940 | at2.Position = vt(25000,0,0) | |
6941 | local trl = Instance.new('Trail',dis) | |
6942 | trl.Attachment0 = at1 | |
6943 | trl.FaceCamera = true | |
6944 | trl.Attachment1 = at2 | |
6945 | trl.Texture = "rbxassetid://1049219073" | |
6946 | trl.LightEmission = 1 | |
6947 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
6948 | trl.Color = ColorSequence.new(dis.Color) | |
6949 | trl.Lifetime = 5 | |
6950 | local bv = Instance.new("BodyVelocity") | |
6951 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
6952 | bv.velocity = dis.CFrame.lookVector*math.random(500,2500) | |
6953 | bv.Parent = dis | |
6954 | game:GetService("Debris"):AddItem(dis, 1) | |
6955 | sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR) | |
6956 | slash(math.random(30,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(1,0.01,1),math.random(100,500)/250,BrickColor.new("Toothpaste")) | |
6957 | slash(math.random(30,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(1,0.01,1),math.random(100,500)/250,BrickColor.new("Deep orange")) | |
6958 | RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-35)),.1) | |
6959 | LH.C0=clerp(LH.C0,cf(-1,-0.45,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(35)),.1) | |
6960 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1) | |
6961 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
6962 | RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1) | |
6963 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1) | |
6964 | end | |
6965 | CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1) | |
6966 | for i = 0, 30, 0.1 do | |
6967 | swait() | |
6968 | coroutine.resume(coroutine.create(function() | |
6969 | for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do | |
6970 | if v:FindFirstChild('Head') then | |
6971 | dmg(v) | |
6972 | end | |
6973 | end | |
6974 | end)) | |
6975 | local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR) | |
6976 | dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
6977 | local at1 = Instance.new("Attachment",dis) | |
6978 | at1.Position = vt(-50000,0,0) | |
6979 | local at2 = Instance.new("Attachment",dis) | |
6980 | at2.Position = vt(50000,0,0) | |
6981 | local trl = Instance.new('Trail',dis) | |
6982 | trl.Attachment0 = at1 | |
6983 | trl.FaceCamera = true | |
6984 | trl.Attachment1 = at2 | |
6985 | trl.Texture = "rbxassetid://1049219073" | |
6986 | trl.LightEmission = 1 | |
6987 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
6988 | trl.Color = ColorSequence.new(dis.Color) | |
6989 | trl.Lifetime = 10 | |
6990 | local bv = Instance.new("BodyVelocity") | |
6991 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
6992 | bv.velocity = dis.CFrame.lookVector*math.random(1500,10000) | |
6993 | bv.Parent = dis | |
6994 | game:GetService("Debris"):AddItem(dis, math.random(1,4)) | |
6995 | sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR) | |
6996 | sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR) | |
6997 | sphere2(2,"Add",root.CFrame*CFrame.new(math.random(-2000,2000),math.random(-2000,2000),math.random(-2000,2000)),vt(0,0,0),5,5,5,BrickColor.new("Deep orange")) | |
6998 | sphere2(2,"Add",root.CFrame*CFrame.new(math.random(-2000,2000),math.random(-2000,2000),math.random(-2000,2000)),vt(0,0,0),5,5,5,BrickColor.new("Toothpaste")) | |
6999 | slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,0.01,5),math.random(500,5000)/250,BrickColor.new("Deep orange")) | |
7000 | slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,0.01,5),math.random(500,5000)/250,BrickColor.new("Toothpaste")) | |
7001 | for i = 0, 2 do | |
7002 | slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,math.random(-3,1000),0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(2,0.01,2),math.random(250,750)/250,MAINRUINCOLOR) | |
7003 | end | |
7004 | RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-35)),.1) | |
7005 | LH.C0=clerp(LH.C0,cf(-1,-0.45,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(35)),.1) | |
7006 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1) | |
7007 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
7008 | RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1) | |
7009 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1) | |
7010 | end | |
7011 | attack = false | |
7012 | hum.WalkSpeed = storehumanoidWS | |
7013 | end | |
7014 | ||
7015 | function SpeedDrop() | |
7016 | attack = true | |
7017 | hum.WalkSpeed = 0 | |
7018 | CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1) | |
7019 | CFuncs["EchoSound"].Create("rbxassetid://907332670", char, 5, 1,0,10,0.15,0.5,1) | |
7020 | local poste = 3 | |
7021 | local rotation = 0 | |
7022 | local rate = 0 | |
7023 | bosschatfunc("Your death is assured.",MAINRUINCOLOR.Color,2) | |
7024 | for i = 0, 124 do | |
7025 | swait() | |
7026 | rotation = rotation + rate | |
7027 | poste = poste + 0.1 | |
7028 | rate = rate + 0.1 | |
7029 | sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR) | |
7030 | sphere2(8,"Add",root.CFrame*CFrame.new(math.random(-20,20),-3,math.random(-20,20)),vt(1,1,1),-0.01,0.5,-0.01,MAINRUINCOLOR) | |
7031 | sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR) | |
7032 | sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(90 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR) | |
7033 | sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(180 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR) | |
7034 | sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(270 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR) | |
7035 | RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(30)),.5) | |
7036 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.5) | |
7037 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5) | |
7038 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5) | |
7039 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5) | |
7040 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5) | |
7041 | end | |
7042 | CameraEnshaking(3,7) | |
7043 | bosschatfunc("Speed Drop!!!",MAINRUINCOLOR.Color,2) | |
7044 | local loc = Instance.new("Part", char) | |
7045 | loc.BrickColor = MAINRUINCOLOR | |
7046 | loc.CanCollide = false | |
7047 | loc.FormFactor = 3 | |
7048 | loc.Name = "Ring" | |
7049 | loc.Material = "Neon" | |
7050 | loc.Size = Vector3.new(1, 1, 1) | |
7051 | loc.Transparency = 1 | |
7052 | loc.TopSurface = 0 | |
7053 | loc.BottomSurface = 0 | |
7054 | loc.Anchored = true | |
7055 | loc.CFrame = root.CFrame + root.CFrame.lookVector*100 | |
7056 | CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1) | |
7057 | CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1) | |
7058 | MagniDamage(loc, 95, 500,6000, 0, "Normal") | |
7059 | sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR) | |
7060 | sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR) | |
7061 | sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR) | |
7062 | sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR) | |
7063 | coroutine.resume(coroutine.create(function() | |
7064 | local eff = Instance.new("ParticleEmitter",loc) | |
7065 | eff.Texture = "rbxassetid://363275192" | |
7066 | eff.LightEmission = 0.95 | |
7067 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7068 | eff.Rate = 10000 | |
7069 | eff.Lifetime = NumberRange.new(1) | |
7070 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)}) | |
7071 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
7072 | eff.Speed = NumberRange.new(100,500) | |
7073 | eff.Drag = 5 | |
7074 | eff.Rotation = NumberRange.new(-500,500) | |
7075 | eff.VelocitySpread = 9000 | |
7076 | eff.RotSpeed = NumberRange.new(-50,50) | |
7077 | wait(0.5) | |
7078 | eff.Enabled = false | |
7079 | end)) | |
7080 | for i = 0, 49 do | |
7081 | sphere2(math.random(100,300)/100,"Add",loc.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR) | |
7082 | end | |
7083 | for i = 0, 9 do | |
7084 | sphere2(3,"Add",loc.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),0),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR) | |
7085 | end | |
7086 | game:GetService("Debris"):AddItem(loc, 5) | |
7087 | root.CFrame = root.CFrame + root.CFrame.lookVector*200 | |
7088 | hum.WalkSpeed = storehumanoidWS | |
7089 | attack = false | |
7090 | end | |
7091 | ||
7092 | function cutesigh() | |
7093 | attack = true | |
7094 | hum.WalkSpeed = 0 | |
7095 | bosschatfunc("sigh~~",MAINRUINCOLOR.Color,2) | |
7096 | local blush = Instance.new("Decal",hed) | |
7097 | blush.Texture = "rbxassetid://898404027" | |
7098 | blush.Face = "Front" | |
7099 | CFuncs["Sound"].Create("rbxassetid://294861193", char, 9,1) | |
7100 | for i = 0, 9, 0.1 do | |
7101 | swait() | |
7102 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(19 + 8 * math.cos(sine / 62)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-20 - 3 * math.cos(sine / 34))),.1) | |
7103 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 - 1 * math.cos(sine / 55)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(26 + 5 * math.cos(sine / 41))),.1) | |
7104 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(-13 - 2 * math.cos(sine / 32)),math.rad(3),math.rad(10 - 4 * math.cos(sine / 67))),.1) | |
7105 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 8 * math.cos(sine / 37)),math.rad(-21 + 2 * math.cos(sine / 58)),math.rad(-10 + 2 * math.cos(sine / 53))),.1) | |
7106 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(0 + 0 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 5 * math.cos(sine / 51))),.1) | |
7107 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(0 - 0 * math.cos(sine / 73)),math.rad(2 - 3 * math.cos(sine / 53)),math.rad(-33 - 5 * math.cos(sine / 51))),.1) | |
7108 | end | |
7109 | coroutine.resume(coroutine.create(function() | |
7110 | for i = 0, 49 do | |
7111 | swait() | |
7112 | blush.Transparency = blush.Transparency + 0.02 | |
7113 | end | |
7114 | blush:Destroy() | |
7115 | end)) | |
7116 | hum.WalkSpeed = storehumanoidWS | |
7117 | attack = false | |
7118 | end | |
7119 | ||
7120 | function smiter() | |
7121 | local targetted = nil | |
7122 | if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
7123 | targetted = mouse.Target.Parent | |
7124 | end | |
7125 | if targetted ~= nil then | |
7126 | RootPart.CFrame = FaceMouse()[1] | |
7127 | attack = true | |
7128 | local radm = math.random(1,3) | |
7129 | if radm == 1 then | |
7130 | bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1) | |
7131 | elseif radm == 2 then | |
7132 | bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1) | |
7133 | elseif radm == 3 then | |
7134 | bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1) | |
7135 | end | |
7136 | hum.WalkSpeed = 0 | |
7137 | coroutine.resume(coroutine.create(function() | |
7138 | CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1) | |
7139 | sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR) | |
7140 | local vel = Instance.new("BodyPosition", targetted.Head) | |
7141 | vel.P = 12500 | |
7142 | vel.D = 1000 | |
7143 | vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000) | |
7144 | vel.position = targetted.Head.CFrame.p | |
7145 | end)) | |
7146 | CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2) | |
7147 | CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1) | |
7148 | CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1) | |
7149 | for i = 0,4,0.1 do | |
7150 | swait() | |
7151 | sphere2(4,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.125,-0.01,MAINRUINCOLOR) | |
7152 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2) | |
7153 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2) | |
7154 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2) | |
7155 | LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2) | |
7156 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 32))),.1) | |
7157 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 2 * math.cos(sine / 32))),.1) | |
7158 | end | |
7159 | coroutine.resume(coroutine.create(function() | |
7160 | CameraEnshaking(6,5) | |
7161 | MagniDamage(targetted.Head, 18, 18,30, 0, "Normal") | |
7162 | CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8) | |
7163 | CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8) | |
7164 | CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8) | |
7165 | sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR) | |
7166 | sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR) | |
7167 | sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR) | |
7168 | sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR) | |
7169 | coroutine.resume(coroutine.create(function() | |
7170 | local eff = Instance.new("ParticleEmitter",targetted.Head) | |
7171 | eff.Texture = "rbxassetid://2273224484" | |
7172 | eff.LightEmission = 1 | |
7173 | eff.Color = ColorSequence.new(Color3.new(0.3,1,1)) | |
7174 | eff.Rate = 500000 | |
7175 | eff.Lifetime = NumberRange.new(0.5,2) | |
7176 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
7177 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
7178 | eff.Speed = NumberRange.new(20,250) | |
7179 | eff.Drag = 5 | |
7180 | eff.Rotation = NumberRange.new(-500,500) | |
7181 | eff.VelocitySpread = 9000 | |
7182 | eff.RotSpeed = NumberRange.new(-50,50) | |
7183 | wait(0.25) | |
7184 | eff.Enabled = false | |
7185 | local eff = Instance.new("ParticleEmitter",targetted.Head) | |
7186 | eff.Texture = "rbxassetid://363275192" | |
7187 | eff.LightEmission = 0.95 | |
7188 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7189 | eff.Rate = 10000 | |
7190 | eff.Lifetime = NumberRange.new(1.5) | |
7191 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)}) | |
7192 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
7193 | eff.Speed = NumberRange.new(25,150) | |
7194 | eff.Drag = 5 | |
7195 | eff.Rotation = NumberRange.new(-500,500) | |
7196 | eff.VelocitySpread = 9000 | |
7197 | eff.RotSpeed = NumberRange.new(-50,50) | |
7198 | local eff2 = eff:Clone() | |
7199 | eff2.Parent = targetted.Head | |
7200 | eff2.Texture = "rbxassetid://284205403" | |
7201 | eff2.Rate = 10000 | |
7202 | eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
7203 | eff2.Drag = 5 | |
7204 | eff2.Rotation = NumberRange.new(-500,500) | |
7205 | eff2.VelocitySpread = 9000 | |
7206 | wait(0.5) | |
7207 | eff2.Enabled = false | |
7208 | eff.Enabled = false | |
7209 | end)) | |
7210 | for i = 0, 9 do | |
7211 | sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,3,-0.02,MAINRUINCOLOR) | |
7212 | end | |
7213 | for i = 0, 49 do | |
7214 | local rsiz = math.random(10,50) | |
7215 | sphereMK(math.random(1,4),1,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0) | |
7216 | end | |
7217 | game:GetService("Debris"):AddItem(vel,1) | |
7218 | dmg(targetted) | |
7219 | end)) | |
7220 | for i = 0,1,0.1 do | |
7221 | swait() | |
7222 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5) | |
7223 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5) | |
7224 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2) | |
7225 | LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2) | |
7226 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 32))),.1) | |
7227 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 2 * math.cos(sine / 32))),.1) | |
7228 | end | |
7229 | attack = false | |
7230 | hum.WalkSpeed = storehumanoidWS | |
7231 | end | |
7232 | end | |
7233 | ||
7234 | function shytaunty() | |
7235 | attack = true | |
7236 | hum.WalkSpeed = 0 | |
7237 | CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1) | |
7238 | local blush = Instance.new("Decal",hed) | |
7239 | blush.Texture = "rbxassetid://898404027" | |
7240 | blush.Face = "Front" | |
7241 | for i = 0, 13, 0.1 do | |
7242 | swait() | |
7243 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7 - 5 * math.cos(sine / 44)),math.rad(0),math.rad(-6 - 3 * math.cos(sine / 34))),.1) | |
7244 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 + 5 * math.cos(sine / 44)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 34))),.1) | |
7245 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.05 * math.cos(sine / 44),0 + 0.03 * math.cos(sine / 34),1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 - 5 * math.cos(sine / 44)),math.rad(-5)),.1) | |
7246 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2 - 2.5 * math.cos(sine / 28)),math.rad(20 + 5 * math.cos(sine / 62)),math.rad(35 + 5 * math.cos(sine / 59))),.1) | |
7247 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 1 * math.cos(sine / 53)),math.rad(0),math.rad(-60 + 2 * math.cos(sine / 37))),.1) | |
7248 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(26 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(59 - 3 * math.cos(sine / 57) )),.1) | |
7249 | end | |
7250 | coroutine.resume(coroutine.create(function() | |
7251 | for i = 0, 49 do | |
7252 | swait() | |
7253 | blush.Transparency = blush.Transparency + 0.02 | |
7254 | end | |
7255 | blush:Destroy() | |
7256 | end)) | |
7257 | hum.WalkSpeed = storehumanoidWS | |
7258 | attack = false | |
7259 | end | |
7260 | ||
7261 | function PureBomb() | |
7262 | attack = true | |
7263 | CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1) | |
7264 | CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1) | |
7265 | bosschatfunc("Purified..",MAINRUINCOLOR.Color,2) | |
7266 | local orb = Instance.new("Part", char) | |
7267 | orb.Anchored = true | |
7268 | orb.BrickColor = BrickColor.new("Toothpaste") | |
7269 | orb.CanCollide = false | |
7270 | orb.FormFactor = 3 | |
7271 | orb.Name = "Ring" | |
7272 | orb.Material = "Neon" | |
7273 | orb.Size = Vector3.new(1, 1, 1) | |
7274 | orb.Transparency = 0 | |
7275 | orb.TopSurface = 0 | |
7276 | orb.BottomSurface = 0 | |
7277 | local orbm = Instance.new("SpecialMesh", orb) | |
7278 | orbm.MeshType = "Sphere" | |
7279 | orbm.Name = "SizeMesh" | |
7280 | orbm.Scale = vt(0,0,0) | |
7281 | local scaled = 0.1 | |
7282 | local posid = 0 | |
7283 | CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1) | |
7284 | for i = 0, 5, 0.1 do | |
7285 | swait() | |
7286 | scaled = scaled - 0.001 | |
7287 | posid = posid - scaled | |
7288 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
7289 | orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled) | |
7290 | sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Toothpaste"),10) | |
7291 | PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,BrickColor.new("Toothpaste"),0) | |
7292 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1) | |
7293 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1) | |
7294 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
7295 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
7296 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1) | |
7297 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1) | |
7298 | end | |
7299 | for i = 0, 2, 0.1 do | |
7300 | swait() | |
7301 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
7302 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
7303 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
7304 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4) | |
7305 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4) | |
7306 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4) | |
7307 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4) | |
7308 | end | |
7309 | CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1) | |
7310 | CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1) | |
7311 | bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2) | |
7312 | coroutine.resume(coroutine.create(function() | |
7313 | orb.Anchored = false | |
7314 | CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1) | |
7315 | local a = Instance.new("Part",workspace) | |
7316 | a.Name = "Direction" | |
7317 | a.Anchored = true | |
7318 | a.BrickColor = bc("Bright red") | |
7319 | a.Material = "Neon" | |
7320 | a.Transparency = 1 | |
7321 | a.CanCollide = false | |
7322 | local ray = Ray.new( | |
7323 | orb.CFrame.p, -- origin | |
7324 | (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction | |
7325 | ) | |
7326 | local ignore = orb | |
7327 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
7328 | a.BottomSurface = 10 | |
7329 | a.TopSurface = 10 | |
7330 | local distance = (orb.CFrame.p - position).magnitude | |
7331 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
7332 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
7333 | orb.CFrame = a.CFrame | |
7334 | a:Destroy() | |
7335 | local bv = Instance.new("BodyVelocity") | |
7336 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
7337 | bv.velocity = orb.CFrame.lookVector*125 | |
7338 | bv.Parent = orb | |
7339 | local hitted = false | |
7340 | game:GetService("Debris"):AddItem(orb, 15) | |
7341 | wait() | |
7342 | local hit =orb.Touched:connect(function(hit) | |
7343 | if hitted == false then | |
7344 | hitted = true | |
7345 | CameraEnshaking(10,2.5) | |
7346 | MagniDamage(orb, 65, 65,90, 0, "Normal") | |
7347 | sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste")) | |
7348 | sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste")) | |
7349 | for i = 0, 49 do | |
7350 | PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0) | |
7351 | end | |
7352 | local eff = Instance.new("ParticleEmitter",orb) | |
7353 | eff.Texture = "rbxassetid://2273224484" | |
7354 | eff.LightEmission = 1 | |
7355 | eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255)) | |
7356 | eff.Rate = 500000 | |
7357 | eff.Lifetime = NumberRange.new(0.5,2) | |
7358 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
7359 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
7360 | eff.Speed = NumberRange.new(20,250) | |
7361 | eff.Drag = 5 | |
7362 | eff.Rotation = NumberRange.new(-500,500) | |
7363 | eff.VelocitySpread = 9000 | |
7364 | eff.RotSpeed = NumberRange.new(-50,50) | |
7365 | coroutine.resume(coroutine.create(function() | |
7366 | wait(0.25) | |
7367 | eff.Enabled = false | |
7368 | end)) | |
7369 | CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1) | |
7370 | for i = 0, 9 do | |
7371 | sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0) | |
7372 | sphereMK(2,5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0) | |
7373 | end | |
7374 | orb.Anchored = true | |
7375 | orb.Transparency = 1 | |
7376 | local eff = Instance.new("ParticleEmitter",orb) | |
7377 | eff.Texture = "rbxassetid://2273224484" | |
7378 | eff.LightEmission = 1 | |
7379 | eff.Color = ColorSequence.new(Color3.new(M)) | |
7380 | eff.Rate = 500000 | |
7381 | eff.Lifetime = NumberRange.new(0.5,2) | |
7382 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
7383 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
7384 | eff.Speed = NumberRange.new(20,250) | |
7385 | eff.Drag = 5 | |
7386 | eff.Rotation = NumberRange.new(-500,500) | |
7387 | eff.VelocitySpread = 9000 | |
7388 | eff.RotSpeed = NumberRange.new(-50,50) | |
7389 | coroutine.resume(coroutine.create(function() | |
7390 | wait(1) | |
7391 | eff.Enabled = false | |
7392 | end)) | |
7393 | wait(8) | |
7394 | orb:Destroy() | |
7395 | end | |
7396 | end) | |
7397 | end)) | |
7398 | for i = 0, 1, 0.1 do | |
7399 | swait() | |
7400 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
7401 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
7402 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4) | |
7403 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4) | |
7404 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4) | |
7405 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4) | |
7406 | end | |
7407 | attack = false | |
7408 | end | |
7409 | ||
7410 | ||
7411 | function BeamOfDeath() | |
7412 | coroutine.resume(coroutine.create(function() | |
7413 | attack = true | |
7414 | hum.WalkSpeed = 0 | |
7415 | for i = 0, 11, 0.1 do | |
7416 | swait() | |
7417 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1) | |
7418 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1) | |
7419 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1) | |
7420 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1) | |
7421 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),-0.15)*angles(math.rad(125 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 14 * math.cos(sine / 45))),.1) | |
7422 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(35 - 8 * math.cos(sine / 51))),.1) | |
7423 | end | |
7424 | for i = 0, 1, 0.1 do | |
7425 | swait() | |
7426 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1) | |
7427 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1) | |
7428 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1) | |
7429 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1) | |
7430 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.15)*angles(math.rad(-5 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 14 * math.cos(sine / 45))),.1) | |
7431 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(35 - 8 * math.cos(sine / 51))),.1) | |
7432 | end | |
7433 | hum.WalkSpeed = storehumanoidWS | |
7434 | attack = false | |
7435 | end)) | |
7436 | CFuncs["Sound"].Create("rbxassetid://137473066", char, 5, 1,0,10,0.10,0.25,1) | |
7437 | bosschatfunc("Hahahahahah.",MAINRUINCOLOR.Color,1) | |
7438 | local keptcolor = MAINRUINCOLOR | |
7439 | local orb = Instance.new("Part", char) | |
7440 | orb.BrickColor = keptcolor | |
7441 | orb.CanCollide = false | |
7442 | orb.FormFactor = 3 | |
7443 | orb.Name = "Ring" | |
7444 | orb.Material = "Neon" | |
7445 | orb.Size = Vector3.new(1, 1, 1) | |
7446 | orb.Transparency = 1 | |
7447 | orb.TopSurface = 0 | |
7448 | orb.BottomSurface = 0 | |
7449 | local orbm = Instance.new("SpecialMesh", orb) | |
7450 | orbm.MeshType = "Sphere" | |
7451 | orbm.Name = "SizeMesh" | |
7452 | orbm.Scale = vt(22.5,10000,22.5) | |
7453 | orb.CFrame = mouse.Hit | |
7454 | orb.Anchored = true | |
7455 | orb.Orientation = vt(0,0,0) | |
7456 | orb.CFrame = orb.CFrame*CFrame.new(0,1,0) | |
7457 | CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 0.5, 1.2) | |
7458 | coroutine.resume(coroutine.create(function() | |
7459 | coroutine.resume(coroutine.create(function() | |
7460 | for i = 0, 175 do | |
7461 | swait() | |
7462 | orbm.Scale = orbm.Scale - vt(0.1,0,0.1) | |
7463 | orb.Transparency = orb.Transparency - 0.005 | |
7464 | end | |
7465 | end)) | |
7466 | wait(2) | |
7467 | coroutine.resume(coroutine.create(function() | |
7468 | local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char) | |
7469 | if hfr ~= nil then | |
7470 | for i = 0, 24.5 do | |
7471 | local deb = Instance.new("Part", char) | |
7472 | deb.Anchored = true | |
7473 | deb.CanCollide = false | |
7474 | deb.FormFactor = 3 | |
7475 | deb.Name = "Ring" | |
7476 | deb.Material = hitfloor.Material | |
7477 | deb.Color = hitfloor.Color | |
7478 | deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55)) | |
7479 | deb.Transparency = 0 | |
7480 | deb.TopSurface = 0 | |
7481 | deb.BottomSurface = 0 | |
7482 | deb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),-5,math.random(-150,150))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
7483 | local deb2 = Instance.new("Part", char) | |
7484 | deb2.CanCollide = false | |
7485 | deb2.FormFactor = 3 | |
7486 | deb2.Name = "Ring" | |
7487 | deb2.Material = hitfloor.Material | |
7488 | deb2.Color = hitfloor.Color | |
7489 | deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38)) | |
7490 | deb2.Transparency = 0 | |
7491 | deb2.TopSurface = 0 | |
7492 | deb2.BottomSurface = 0 | |
7493 | deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150)) | |
7494 | deb2.CFrame = orb.CFrame*CFrame.new(math.random(-60,60),-5,math.random(-60,60))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
7495 | local eff = Instance.new("ParticleEmitter",deb) | |
7496 | eff.Texture = "rbxassetid://363275192" | |
7497 | eff.LightEmission = 0.95 | |
7498 | eff.Color = ColorSequence.new(keptcolor.Color) | |
7499 | eff.Rate = 100 | |
7500 | eff.Lifetime = NumberRange.new(1) | |
7501 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)}) | |
7502 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
7503 | eff.Speed = NumberRange.new(0,5) | |
7504 | eff.Rotation = NumberRange.new(-500,500) | |
7505 | eff.VelocitySpread = 9000 | |
7506 | eff.RotSpeed = NumberRange.new(-10,10) | |
7507 | local at1 = Instance.new('Attachment',deb2) | |
7508 | at1.Position = vt(0,15,0) | |
7509 | local at2 = Instance.new('Attachment',deb2) | |
7510 | at2.Position = vt(0,-15,0) | |
7511 | local tl = Instance.new('Trail',deb2) | |
7512 | tl.Attachment0 = at1 | |
7513 | tl.Attachment1 = at2 | |
7514 | tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
7515 | tl.Color = ColorSequence.new(BrickColor.new('White').Color) | |
7516 | tl.Lifetime = 1 | |
7517 | game:GetService("Debris"):AddItem(deb,30) | |
7518 | game:GetService("Debris"):AddItem(deb2,30) | |
7519 | coroutine.resume(coroutine.create(function() | |
7520 | wait(15) | |
7521 | eff.Enabled = false | |
7522 | for i = 0, 49 do | |
7523 | swait() | |
7524 | deb.Transparency = deb.Transparency + 0.02 | |
7525 | end | |
7526 | wait(1) | |
7527 | deb:Destroy() | |
7528 | end)) | |
7529 | end | |
7530 | end | |
7531 | end)) | |
7532 | for i = 0, 199 do | |
7533 | swait(1.5) | |
7534 | for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do | |
7535 | if v:FindFirstChild('Head') then | |
7536 | dmg(v) | |
7537 | end | |
7538 | end | |
7539 | CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1) | |
7540 | sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),5,5,5,keptcolor) | |
7541 | sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),1,35,1,keptcolor) | |
7542 | sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),0,50,0,keptcolor) | |
7543 | sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor) | |
7544 | end | |
7545 | orb:Destroy() | |
7546 | end)) | |
7547 | end | |
7548 | ||
7549 | function Beams() | |
7550 | attack = true | |
7551 | hum.WalkSpeed = 0 | |
7552 | CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1) | |
7553 | CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1) | |
7554 | bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2) | |
7555 | local keptcolor = MAINRUINCOLOR | |
7556 | coroutine.resume(coroutine.create(function() | |
7557 | for i = 0, 96 do | |
7558 | swait(5) | |
7559 | local orb = Instance.new("Part", char) | |
7560 | CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1) | |
7561 | orb.BrickColor = keptcolor | |
7562 | orb.CanCollide = false | |
7563 | orb.FormFactor = 3 | |
7564 | orb.Name = "Ring" | |
7565 | orb.Material = "Neon" | |
7566 | orb.Size = Vector3.new(1, 1, 1) | |
7567 | orb.Transparency = 0 | |
7568 | orb.TopSurface = 0 | |
7569 | orb.BottomSurface = 0 | |
7570 | orb.Anchored = true | |
7571 | local orbm = Instance.new("SpecialMesh", orb) | |
7572 | orbm.MeshType = "Sphere" | |
7573 | orbm.Name = "SizeMesh" | |
7574 | orbm.Scale = vt(1.25,1.25,1.25) | |
7575 | orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6)) | |
7576 | sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor) | |
7577 | coroutine.resume(coroutine.create(function() | |
7578 | wait(0.5) | |
7579 | CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1) | |
7580 | sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor) | |
7581 | sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor) | |
7582 | orb.Transparency = 1 | |
7583 | local a = Instance.new("Part",char) | |
7584 | a.Name = "Direction" | |
7585 | a.Anchored = true | |
7586 | a.BrickColor = keptcolor | |
7587 | a.Material = "Neon" | |
7588 | a.Transparency = 0.25 | |
7589 | a.Shape = "Cylinder" | |
7590 | local ht = Instance.new("Part",char) | |
7591 | ht.Name = "DirectionHit" | |
7592 | ht.Anchored = true | |
7593 | ht.BrickColor = keptcolor | |
7594 | ht.CanCollide = false | |
7595 | ht.Transparency = 1 | |
7596 | ht.Size = vt(0.1,0.1,0.1) | |
7597 | CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6) | |
7598 | a.CanCollide = false | |
7599 | local ray = Ray.new( | |
7600 | orb.CFrame.p, -- origin | |
7601 | (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction | |
7602 | ) | |
7603 | local ignore = char | |
7604 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
7605 | a.BottomSurface = 10 | |
7606 | a.TopSurface = 10 | |
7607 | local distance = (orb.CFrame.p - position).magnitude | |
7608 | a.Size = Vector3.new(distance,1,1) | |
7609 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
7610 | ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
7611 | sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor) | |
7612 | sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor) | |
7613 | MagniDamage(ht, 9, 30,60, 0, "Normal") | |
7614 | coroutine.resume(coroutine.create(function() | |
7615 | local eff = Instance.new("ParticleEmitter",ht) | |
7616 | eff.Texture = "rbxassetid://284205403" | |
7617 | eff.LightEmission = 0.95 | |
7618 | eff.Color = ColorSequence.new(keptcolor.Color) | |
7619 | eff.Rate = 500 | |
7620 | eff.Lifetime = NumberRange.new(0.5) | |
7621 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)}) | |
7622 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
7623 | eff.Speed = NumberRange.new(10,50) | |
7624 | eff.Drag = 5 | |
7625 | eff.Rotation = NumberRange.new(-500,500) | |
7626 | eff.VelocitySpread = 9000 | |
7627 | eff.RotSpeed = NumberRange.new(-500,500) | |
7628 | wait(0.25) | |
7629 | eff.Enabled = false | |
7630 | end)) | |
7631 | for i = 0, 4 do | |
7632 | sphere2(8,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.005,0.125,-0.005,keptcolor) | |
7633 | sphere2(4,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.01,0.5,-0.01,keptcolor) | |
7634 | local rsiz = math.random(10,30) | |
7635 | sphereMK(math.random(2,4),0.25,"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0) | |
7636 | end | |
7637 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
7638 | local msh = Instance.new("SpecialMesh",a) | |
7639 | msh.MeshType = "Cylinder" | |
7640 | msh.Scale = vt(1,1,1) | |
7641 | for i = 0, 49 do | |
7642 | swait() | |
7643 | msh.Scale = msh.Scale + vt(0,0.01,0.01) | |
7644 | a.Transparency = a.Transparency + 0.02 | |
7645 | end | |
7646 | orb:Destroy() | |
7647 | a:Destroy() | |
7648 | ht:Destroy() | |
7649 | end)) | |
7650 | game:GetService("Debris"):AddItem(orb, 10) | |
7651 | end | |
7652 | end)) | |
7653 | for i = 0,6,0.1 do | |
7654 | swait() | |
7655 | sphere2(7,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,keptcolor) | |
7656 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.2 * math.cos(sine / 35))* angles(math.rad(0),math.rad(0),math.rad(40)),0.3) | |
7657 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3) | |
7658 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3) | |
7659 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3) | |
7660 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 6 * math.cos(sine / 39))),.1) | |
7661 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 45))),.1) | |
7662 | end | |
7663 | hum.WalkSpeed = storehumanoidWS | |
7664 | attack = false | |
7665 | end | |
7666 | ||
7667 | function CalamityTrans() | |
7668 | attack = true | |
7669 | rainbowmode = false | |
7670 | chaosmode = false | |
7671 | ModeOfGlitch = 8889 | |
7672 | hum.WalkSpeed = 0 | |
7673 | newThemeCust("rbxassetid://1359036559",0,1,1.25) | |
7674 | local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random()) | |
7675 | elocacenter.Anchored = true | |
7676 | elocacenter.CFrame = root.CFrame | |
7677 | local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
7678 | eloca1.Anchored = true | |
7679 | eloca1.CFrame = elocacenter.CFrame | |
7680 | local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
7681 | eloca2.Anchored = true | |
7682 | eloca2.CFrame = elocacenter.CFrame | |
7683 | local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
7684 | eloca3.Anchored = true | |
7685 | eloca3.CFrame = elocacenter.CFrame | |
7686 | local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
7687 | eloca4.Anchored = true | |
7688 | eloca4.CFrame = elocacenter.CFrame | |
7689 | local lookavec = 0 | |
7690 | local speeds = 0 | |
7691 | CameraEnshaking(3,2.5) | |
7692 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR) | |
7693 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR) | |
7694 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR) | |
7695 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR) | |
7696 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR) | |
7697 | CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1) | |
7698 | CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1) | |
7699 | for i = 0, 5, 0.1 do | |
7700 | swait() | |
7701 | --- | |
7702 | lookavec = lookavec + 1 | |
7703 | speeds = speeds + 10 | |
7704 | elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
7705 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
7706 | PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
7707 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
7708 | PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
7709 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
7710 | PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
7711 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
7712 | PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
7713 | --- | |
7714 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1) | |
7715 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1) | |
7716 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
7717 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1) | |
7718 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1) | |
7719 | LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1) | |
7720 | end | |
7721 | for i = 0, 5, 0.1 do | |
7722 | swait() | |
7723 | --- | |
7724 | speeds = speeds + 10 | |
7725 | elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
7726 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
7727 | PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
7728 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
7729 | PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
7730 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
7731 | PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
7732 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
7733 | PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
7734 | --- | |
7735 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1) | |
7736 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1) | |
7737 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
7738 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1) | |
7739 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1) | |
7740 | LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1) | |
7741 | end | |
7742 | MAINRUINCOLOR = BrickColor.new("Bright violet") | |
7743 | CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1) | |
7744 | CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1) | |
7745 | CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1) | |
7746 | CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1) | |
7747 | CameraEnshaking(1,3) | |
7748 | for i = 0, 24 do | |
7749 | PixelBlock(1,math.random(5,25),"Add",eloca1.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0) | |
7750 | PixelBlock(1,math.random(5,25),"Add",eloca2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0) | |
7751 | PixelBlock(1,math.random(5,25),"Add",eloca3.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0) | |
7752 | PixelBlock(1,math.random(5,25),"Add",eloca4.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0) | |
7753 | end | |
7754 | sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
7755 | sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
7756 | sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
7757 | sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
7758 | sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
7759 | sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
7760 | sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
7761 | sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
7762 | sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
7763 | sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
7764 | sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
7765 | sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
7766 | for i = 0, 5, 0.1 do | |
7767 | swait() | |
7768 | --- | |
7769 | lookavec = lookavec - 1 | |
7770 | speeds = speeds + 10 | |
7771 | elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
7772 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
7773 | PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
7774 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
7775 | PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
7776 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
7777 | PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
7778 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
7779 | PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
7780 | --- | |
7781 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1) | |
7782 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1) | |
7783 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
7784 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1) | |
7785 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1) | |
7786 | LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1) | |
7787 | end | |
7788 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
7789 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
7790 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
7791 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
7792 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
7793 | for i = 0, 49 do | |
7794 | PixelBlock(1,math.random(8,16),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,MAINRUINCOLOR,0) | |
7795 | PixelBlock(2,math.random(16,32),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.05,MAINRUINCOLOR,0) | |
7796 | end | |
7797 | CameraEnshaking(5,6) | |
7798 | CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1) | |
7799 | CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1) | |
7800 | CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1) | |
7801 | CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1) | |
7802 | CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1) | |
7803 | CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85) | |
7804 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1) | |
7805 | storehumanoidWS = 100 | |
7806 | hum.WalkSpeed = 100 | |
7807 | rainbowmode = false | |
7808 | chaosmode = false | |
7809 | tl1.Enabled = true | |
7810 | tl2.Enabled = true | |
7811 | tl3.Enabled = true | |
7812 | RecolorTextAndRename("CALAMITY",Color3.new(10,1,1),Color3.new(0.5,0,1),"Code") | |
7813 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7814 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7815 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7816 | for i, v in pairs(mw2:GetChildren()) do | |
7817 | if v:IsA("Part") then | |
7818 | v.BrickColor = MAINRUINCOLOR | |
7819 | v.Material = "Neon" | |
7820 | end | |
7821 | end | |
7822 | for i, v in pairs(mw1:GetChildren()) do | |
7823 | if v:IsA("Part") then | |
7824 | v.Transparency = 0 | |
7825 | v.BrickColor = MAINRUINCOLOR | |
7826 | v.Material = "Neon" | |
7827 | end | |
7828 | end | |
7829 | for i, v in pairs(m:GetChildren()) do | |
7830 | if v:IsA("Part") then | |
7831 | v.Color = Color3.new(0.5,0,1) | |
7832 | v.Material = "Neon" | |
7833 | end | |
7834 | end | |
7835 | for i, v in pairs(m2:GetChildren()) do | |
7836 | if v:IsA("Part") then | |
7837 | v.Color = Color3.new(0.25,0,1) | |
7838 | v.Material = "Neon" | |
7839 | end | |
7840 | end | |
7841 | for i, v in pairs(m3:GetChildren()) do | |
7842 | if v:IsA("Part") then | |
7843 | v.Color = Color3.new(0.45,0,1) | |
7844 | v.Material = "Neon" | |
7845 | end | |
7846 | end | |
7847 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
7848 | if v:IsA("Part") then | |
7849 | v.Transparency = 0.75 | |
7850 | v.Color = Color3.new(0.25,0,1) | |
7851 | v.Material = "Neon" | |
7852 | end | |
7853 | end | |
7854 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
7855 | if v:IsA("Part") then | |
7856 | v.Transparency = 0.75 | |
7857 | v.Color = Color3.new(0.5,0,1) | |
7858 | v.Material = "Neon" | |
7859 | end | |
7860 | end | |
7861 | attack = false | |
7862 | end | |
7863 | ||
7864 | function GleamingBeam() | |
7865 | attack = true | |
7866 | bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3) | |
7867 | CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1) | |
7868 | CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1) | |
7869 | local rsiz = math.random(1,15) | |
7870 | local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random()) | |
7871 | hb.Anchored = true | |
7872 | hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0) | |
7873 | CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25) | |
7874 | for i = 0, 16, 0.1 do | |
7875 | swait() | |
7876 | rsiz = math.random(5,15) | |
7877 | hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0) | |
7878 | sphereMK(math.random(3,9),0.25,"Add",sorb.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,-15) | |
7879 | sphere2(5,"Add",sorb.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4,4,4),0.01,0.01,0.01,MAINRUINCOLOR) | |
7880 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1) | |
7881 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1) | |
7882 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(40)),.1) | |
7883 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1) | |
7884 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1) | |
7885 | LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1) | |
7886 | end | |
7887 | CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6) | |
7888 | CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5) | |
7889 | for i = 0, 2 do | |
7890 | CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1) | |
7891 | end | |
7892 | sphere2(3,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR) | |
7893 | sphere2(6,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR) | |
7894 | sphere2(9,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR) | |
7895 | for i = 0, 49 do | |
7896 | local rsiza = math.random(1,15) | |
7897 | sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0) | |
7898 | end | |
7899 | local a = Instance.new("Part",Character) | |
7900 | a.Name = "Direction" | |
7901 | a.Anchored = true | |
7902 | a.BrickColor = MAINRUINCOLOR | |
7903 | a.Material = "Neon" | |
7904 | a.Transparency = 0 | |
7905 | a.Shape = "Cylinder" | |
7906 | a.CanCollide = false | |
7907 | local ba = Instance.new("Part",Character) | |
7908 | ba.Name = "HitDirect" | |
7909 | ba.Anchored = true | |
7910 | ba.BrickColor = bc("Cool yellow") | |
7911 | ba.Material = "Neon" | |
7912 | ba.Transparency = 1 | |
7913 | ba.CanCollide = false | |
7914 | local ray = Ray.new( | |
7915 | hb.CFrame.p, -- origin | |
7916 | (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction | |
7917 | ) | |
7918 | local ignore = Character | |
7919 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
7920 | a.BottomSurface = 10 | |
7921 | a.TopSurface = 10 | |
7922 | local distance = (hb.CFrame.p - position).magnitude | |
7923 | a.Size = Vector3.new(distance, 1, 1) | |
7924 | a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
7925 | ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
7926 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
7927 | local msh = Instance.new("SpecialMesh",a) | |
7928 | msh.MeshType = "Cylinder" | |
7929 | msh.Scale = vt(1,4,4) | |
7930 | game:GetService("Debris"):AddItem(a, 30) | |
7931 | game:GetService("Debris"):AddItem(ba, 30) | |
7932 | for i = 0, 25, 0.1 do | |
7933 | swait() | |
7934 | hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0) | |
7935 | ray = Ray.new( | |
7936 | hb.CFrame.p, -- origin | |
7937 | (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction | |
7938 | ) | |
7939 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
7940 | distance = (hb.CFrame.p - position).magnitude | |
7941 | a.Size = Vector3.new(distance, 1, 1) | |
7942 | a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
7943 | ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
7944 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
7945 | rsiz = math.random(5,25) | |
7946 | MagniDamage(ba, 12, 40000,900000, 0, "Normal") | |
7947 | sphereMK(math.random(4,8),0.25,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,MAINRUINCOLOR,0) | |
7948 | for c = 0, 2 do | |
7949 | sphereMK(math.random(3,6),0.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,MAINRUINCOLOR,2) | |
7950 | end | |
7951 | sphere2(5,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4.2,4.2,4.2),0.01,0.01,0.01,MAINRUINCOLOR) | |
7952 | sphere2(5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(12,12,12),0.05,0.05,0.05,MAINRUINCOLOR) | |
7953 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.6) | |
7954 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.6) | |
7955 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(80)),.6) | |
7956 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6) | |
7957 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6) | |
7958 | LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6) | |
7959 | end | |
7960 | CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8) | |
7961 | CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9) | |
7962 | CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8) | |
7963 | CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9) | |
7964 | MagniDamage(ba, 30, 400000,9000000, 0, "Normal") | |
7965 | sphere2(1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR) | |
7966 | sphere2(2,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR) | |
7967 | sphere2(3,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR) | |
7968 | sphere2(3,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR) | |
7969 | sphere2(6,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR) | |
7970 | sphere2(9,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR) | |
7971 | for i = 0, 49 do | |
7972 | local rsiza = math.random(1,15) | |
7973 | sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0) | |
7974 | end | |
7975 | for i = 0, 49 do | |
7976 | rsiz = math.random(1,8) | |
7977 | sphereMK(math.random(1,3),1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz,rsiz,rsiz,0,MAINRUINCOLOR,2) | |
7978 | end | |
7979 | coroutine.resume(coroutine.create(function() | |
7980 | for i = 0, 99 do | |
7981 | swait() | |
7982 | a.Transparency = a.Transparency + 0.01 | |
7983 | end | |
7984 | a:Destroy() | |
7985 | ba:Destroy() | |
7986 | end)) | |
7987 | hb:Destroy() | |
7988 | attack = false | |
7989 | end | |
7990 | ||
7991 | function DualGleamingBeam() | |
7992 | attack = true | |
7993 | hum.WalkSpeed = 0 | |
7994 | CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1) | |
7995 | CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1) | |
7996 | local radm = math.random(1,3) | |
7997 | if radm == 1 then | |
7998 | bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1) | |
7999 | elseif radm == 2 then | |
8000 | bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1) | |
8001 | elseif radm == 3 then | |
8002 | bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1) | |
8003 | end | |
8004 | local rsiz = math.random(1,15) | |
8005 | local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random()) | |
8006 | hb.Anchored = true | |
8007 | hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0) | |
8008 | local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random()) | |
8009 | hb2.Anchored = true | |
8010 | hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0) | |
8011 | CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25) | |
8012 | for i = 0, 14, 0.1 do | |
8013 | swait() | |
8014 | rsiz = math.random(5,15) | |
8015 | hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0) | |
8016 | hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0) | |
8017 | sphereMK(math.random(3,9),0.25,"Add",sorb.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,-15) | |
8018 | sphere2(5,"Add",sorb.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4,4,4),0.01,0.01,0.01,MAINRUINCOLOR) | |
8019 | sphereMK(math.random(3,9),0.25,"Add",sorb2.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,BrickColor.new("Lime green"),-15) | |
8020 | sphere2(5,"Add",sorb2.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4,4,4),0.01,0.01,0.01,BrickColor.new("Lime green")) | |
8021 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-4 - 2 * math.cos(sine / 53)),math.rad(0 - 2 * math.cos(sine / 32))),.1) | |
8022 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(9 - 2 * math.cos(sine / 53)),math.rad(0 + 2 * math.cos(sine / 32))),.1) | |
8023 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.3 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
8024 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1) | |
8025 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1) | |
8026 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1) | |
8027 | end | |
8028 | CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6) | |
8029 | CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5) | |
8030 | CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6) | |
8031 | CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5) | |
8032 | CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1) | |
8033 | CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1) | |
8034 | sphere2(3,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR) | |
8035 | sphere2(6,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR) | |
8036 | sphere2(9,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR) | |
8037 | sphere2(3,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,BrickColor.new("Lime green")) | |
8038 | sphere2(6,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,BrickColor.new("Lime green")) | |
8039 | sphere2(9,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,BrickColor.new("Lime green")) | |
8040 | for i = 0, 49 do | |
8041 | local rsiza = math.random(1,15) | |
8042 | sphereMK(math.random(1,5),0.75,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0) | |
8043 | sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0) | |
8044 | end | |
8045 | local a = Instance.new("Part",Character) | |
8046 | a.Name = "Direction" | |
8047 | a.Anchored = true | |
8048 | a.BrickColor = MAINRUINCOLOR | |
8049 | a.Material = "Neon" | |
8050 | a.Transparency = 0 | |
8051 | a.Shape = "Cylinder" | |
8052 | a.CanCollide = false | |
8053 | local a2 = Instance.new("Part",Character) | |
8054 | a2.Name = "Direction" | |
8055 | a2.Anchored = true | |
8056 | a2.BrickColor = MAINRUINCOLOR | |
8057 | a2.Material = "Neon" | |
8058 | a2.Transparency = 0 | |
8059 | a2.Shape = "Cylinder" | |
8060 | a2.CanCollide = false | |
8061 | local ba = Instance.new("Part",Character) | |
8062 | ba.Name = "HitDirect" | |
8063 | ba.Anchored = true | |
8064 | ba.BrickColor = MAINRUINCOLOR | |
8065 | ba.Material = "Neon" | |
8066 | ba.Transparency = 1 | |
8067 | ba.CanCollide = false | |
8068 | local ba2 = Instance.new("Part",Character) | |
8069 | ba2.Name = "HitDirect" | |
8070 | ba2.Anchored = true | |
8071 | ba2.BrickColor = MAINRUINCOLOR | |
8072 | ba2.Material = "Neon" | |
8073 | ba2.Transparency = 1 | |
8074 | ba2.CanCollide = false | |
8075 | local ray = Ray.new( | |
8076 | hb.CFrame.p, -- origin | |
8077 | (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction | |
8078 | ) | |
8079 | local ignore = Character | |
8080 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
8081 | local ray2 = Ray.new( | |
8082 | hb2.CFrame.p, -- origin | |
8083 | (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction | |
8084 | ) | |
8085 | local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore) | |
8086 | local distance2 = (hb2.CFrame.p - position).magnitude | |
8087 | ||
8088 | a.BottomSurface = 10 | |
8089 | a.TopSurface = 10 | |
8090 | local distance = (hb.CFrame.p - position).magnitude | |
8091 | a.Size = Vector3.new(distance, 1, 1) | |
8092 | a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
8093 | a2.BottomSurface = 10 | |
8094 | a2.TopSurface = 10 | |
8095 | a2.Size = Vector3.new(distance2, 1, 1) | |
8096 | a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2) | |
8097 | ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
8098 | ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2) | |
8099 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
8100 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
8101 | local msh = Instance.new("SpecialMesh",a) | |
8102 | msh.MeshType = "Cylinder" | |
8103 | msh.Scale = vt(1,4,4) | |
8104 | local msh2 = Instance.new("SpecialMesh",a2) | |
8105 | msh2.MeshType = "Cylinder" | |
8106 | msh2.Scale = vt(1,4,4) | |
8107 | game:GetService("Debris"):AddItem(a, 30) | |
8108 | game:GetService("Debris"):AddItem(a2, 30) | |
8109 | game:GetService("Debris"):AddItem(ba, 30) | |
8110 | game:GetService("Debris"):AddItem(ba2, 30) | |
8111 | for i = 0, 20, 0.1 do | |
8112 | swait() | |
8113 | hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0) | |
8114 | hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0) | |
8115 | ray = Ray.new( | |
8116 | hb.CFrame.p, -- origin | |
8117 | (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction | |
8118 | ) | |
8119 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
8120 | distance = (hb.CFrame.p - position).magnitude | |
8121 | ray2 = Ray.new( | |
8122 | hb2.CFrame.p, -- origin | |
8123 | (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction | |
8124 | ) | |
8125 | hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore) | |
8126 | distance2 = (hb2.CFrame.p - position).magnitude | |
8127 | a.Size = Vector3.new(distance, 1, 1) | |
8128 | a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
8129 | a2.Size = Vector3.new(distance2, 1, 1) | |
8130 | a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2) | |
8131 | ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
8132 | ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2) | |
8133 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
8134 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
8135 | rsiz = math.random(5,25) | |
8136 | MagniDamage(ba, 12, 800,18000, 0, "Normal") | |
8137 | MagniDamage(ba2, 12, 800,18000, 0, "Normal") | |
8138 | for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do | |
8139 | if v:FindFirstChild('Head') then | |
8140 | dmg(v) | |
8141 | end | |
8142 | end | |
8143 | coroutine.resume(coroutine.create(function() | |
8144 | local bx = Instance.new("Part",Character) | |
8145 | bx.Name = "Location" | |
8146 | bx.Anchored = true | |
8147 | bx.BrickColor = MAINRUINCOLOR | |
8148 | bx.Material = "Neon" | |
8149 | bx.Transparency = 1 | |
8150 | bx.CanCollide = false | |
8151 | bx.Position = ba.Position | |
8152 | sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR) | |
8153 | wait(math.random(1,2)) | |
8154 | sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green")) | |
8155 | sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR) | |
8156 | sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green")) | |
8157 | CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7) | |
8158 | CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8) | |
8159 | MagniDamage(bx, 20, 80000,900000, 0, "Normal") | |
8160 | for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do | |
8161 | if v:FindFirstChild('Head') then | |
8162 | dmg(v) | |
8163 | end | |
8164 | end | |
8165 | wait(5) | |
8166 | bx:Destroy() | |
8167 | end)) | |
8168 | sphereMK(math.random(4,8),0.25,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,BrickColor.new("Lime green"),0) | |
8169 | sphereMK(math.random(4,8),0.25,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,BrickColor.new("Lime green"),0) | |
8170 | for c = 0, 2 do | |
8171 | sphereMK(math.random(3,6),0.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,BrickColor.new("Lime green"),2) | |
8172 | end | |
8173 | sphere2(5,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4.2,4.2,4.2),0.01,0.01,0.01,MAINRUINCOLOR) | |
8174 | sphere2(5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(12,12,12),0.05,0.05,0.05,MAINRUINCOLOR) | |
8175 | sphere2(5,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4.2,4.2,4.2),0.01,0.01,0.01,MAINRUINCOLOR) | |
8176 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-4 - 2 * math.cos(sine / 53)),math.rad(0 - 2 * math.cos(sine / 32))),.1) | |
8177 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(9 - 2 * math.cos(sine / 53)),math.rad(0 + 2 * math.cos(sine / 32))),.1) | |
8178 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.3 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.05) | |
8179 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05) | |
8180 | RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05) | |
8181 | LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05) | |
8182 | end | |
8183 | for i = 0, 1 do | |
8184 | CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8) | |
8185 | CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9) | |
8186 | CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8) | |
8187 | CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9) | |
8188 | end | |
8189 | MagniDamage(ba, 30, 8000,180000, 0, "Normal") | |
8190 | MagniDamage(ba2, 30, 8000,180000, 0, "Normal") | |
8191 | for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do | |
8192 | if v:FindFirstChild('Head') then | |
8193 | dmg(v) | |
8194 | end | |
8195 | end | |
8196 | sphere2(1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR) | |
8197 | sphere2(2,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR) | |
8198 | sphere2(3,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR) | |
8199 | sphere2(3,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR) | |
8200 | sphere2(6,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR) | |
8201 | sphere2(9,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR) | |
8202 | sphere2(3,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,bc("Lime green")) | |
8203 | sphere2(6,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,bc("Lime green")) | |
8204 | sphere2(9,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,bc("Lime green")) | |
8205 | for i = 0, 49 do | |
8206 | local rsiza = math.random(1,15) | |
8207 | sphereMK(math.random(1,5),0.75,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,bc("Lime green"),0) | |
8208 | sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,bc("Lime green"),0) | |
8209 | end | |
8210 | for i = 0, 49 do | |
8211 | rsiz = math.random(1,8) | |
8212 | sphereMK(math.random(1,3),1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz,rsiz,rsiz,0,bc("Lime green"),2) | |
8213 | end | |
8214 | coroutine.resume(coroutine.create(function() | |
8215 | for i = 0, 99 do | |
8216 | swait() | |
8217 | a.Transparency = a.Transparency + 0.01 | |
8218 | a2.Transparency = a2.Transparency + 0.01 | |
8219 | end | |
8220 | a:Destroy() | |
8221 | ba:Destroy() | |
8222 | a2:Destroy() | |
8223 | ba2:Destroy() | |
8224 | end)) | |
8225 | hum.WalkSpeed = storehumanoidWS | |
8226 | hb:Destroy() | |
8227 | hb2:Destroy() | |
8228 | attack = false | |
8229 | end | |
8230 | ||
8231 | function dragin() | |
8232 | local targetted = nil | |
8233 | if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
8234 | targetted = mouse.Target.Parent | |
8235 | end | |
8236 | if targetted ~= nil then | |
8237 | RootPart.CFrame = FaceMouse()[1] | |
8238 | attack = true | |
8239 | hum.WalkSpeed = 0 | |
8240 | for x = 0, 1 do | |
8241 | for i = 0,1,0.5 do | |
8242 | swait() | |
8243 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(8 - 6 * math.cos(sine / 67)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-18 - 5 * math.cos(sine / 32))),.1) | |
8244 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-15 - 8 * math.cos(sine / 74)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(31 + 8 * math.cos(sine / 38))),.1) | |
8245 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
8246 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3) | |
8247 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
8248 | LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3) | |
8249 | end | |
8250 | for i = 0,1,0.5 do | |
8251 | swait() | |
8252 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3) | |
8253 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3) | |
8254 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3) | |
8255 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3) | |
8256 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
8257 | LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3) | |
8258 | end | |
8259 | for i = 0,1,0.5 do | |
8260 | swait() | |
8261 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3) | |
8262 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3) | |
8263 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3) | |
8264 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3) | |
8265 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
8266 | LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3) | |
8267 | end | |
8268 | for i = 0,1,0.5 do | |
8269 | swait() | |
8270 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3) | |
8271 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3) | |
8272 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
8273 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3) | |
8274 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
8275 | LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3) | |
8276 | end | |
8277 | end | |
8278 | coroutine.resume(coroutine.create(function() | |
8279 | targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50 | |
8280 | CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1) | |
8281 | CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1) | |
8282 | end)) | |
8283 | local A1 = Instance.new("Attachment",targetted.Head) | |
8284 | local A2 = Instance.new("Attachment",sorb) | |
8285 | local Beem = Instance.new("Beam",tors) | |
8286 | Beem.Attachment0 = A1 | |
8287 | Beem.Attachment1 = A2 | |
8288 | Beem.Texture = "rbxassetid://897585362" | |
8289 | Beem.LightEmission = 0.75 | |
8290 | Beem.FaceCamera = true | |
8291 | Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)}) | |
8292 | Beem.Width0 = 1 | |
8293 | Beem.Width1 = 1 | |
8294 | Beem.TextureMode = "Wrap" | |
8295 | Beem.TextureLength = 1 | |
8296 | Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
8297 | sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),0.15,0.15,0.15,MAINRUINCOLOR) | |
8298 | sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),0.2,0.2,0.2,MAINRUINCOLOR) | |
8299 | for x = 0, 24 do | |
8300 | local rsiz = math.random(5,15) | |
8301 | sphereMK(math.random(1,5),0.25,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0) | |
8302 | end | |
8303 | ||
8304 | CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1) | |
8305 | CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1) | |
8306 | local radm = math.random(1,2) | |
8307 | if radm == 1 then | |
8308 | bosschatfunc("GOTCHA!!",MAINRUINCOLOR.Color,1) | |
8309 | elseif radm == 2 then | |
8310 | bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1) | |
8311 | end | |
8312 | for i = 0,3,0.1 do | |
8313 | swait() | |
8314 | coroutine.resume(coroutine.create(function() | |
8315 | local rsiz = math.random(5,15) | |
8316 | targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10 | |
8317 | sphereMK(math.random(1,5),0.01,"Add",targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0) | |
8318 | end)) | |
8319 | sphere2(8,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR) | |
8320 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(8 - 6 * math.cos(sine / 67)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-18 - 5 * math.cos(sine / 32))),.1) | |
8321 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-15 - 8 * math.cos(sine / 74)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(31 + 8 * math.cos(sine / 38))),.1) | |
8322 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6) | |
8323 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6) | |
8324 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(50)),.6) | |
8325 | LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.6) | |
8326 | end | |
8327 | CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9) | |
8328 | CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1) | |
8329 | local vel = Instance.new("BodyPosition", targetted.Head) | |
8330 | vel.P = 12500 | |
8331 | vel.D = 1000 | |
8332 | vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000) | |
8333 | vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75 | |
8334 | for i = 0,4,0.1 do | |
8335 | swait() | |
8336 | coroutine.resume(coroutine.create(function() | |
8337 | local rsiz = math.random(5,15) | |
8338 | targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10 | |
8339 | sphereMK(math.random(1,5),0.01,"Add",targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0) | |
8340 | end)) | |
8341 | sphere2(8,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR) | |
8342 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2) | |
8343 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.2) | |
8344 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2) | |
8345 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2) | |
8346 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-50)),.2) | |
8347 | LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.2) | |
8348 | end | |
8349 | local visibility = 0 | |
8350 | coroutine.resume(coroutine.create(function() | |
8351 | for i = 0, 49 do | |
8352 | swait() | |
8353 | visibility = visibility + 0.02 | |
8354 | Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)}) | |
8355 | end | |
8356 | Beem:Destroy() | |
8357 | A1:Destroy() | |
8358 | A2:Destroy() | |
8359 | end)) | |
8360 | game:GetService("Debris"):AddItem(vel,0.75) | |
8361 | attack = false | |
8362 | hum.WalkSpeed = storehumanoidWS | |
8363 | ||
8364 | end | |
8365 | end | |
8366 | ||
8367 | function hugg() | |
8368 | attack = true | |
8369 | hum.WalkSpeed = 5 | |
8370 | local rsiz = math.random(5,15) | |
8371 | for i = 0, 2, 0.1 do | |
8372 | swait() | |
8373 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(90),math.rad(0))*angles(math.rad(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3) | |
8374 | LH.C0=clerp(LH.C0,cf(-1,-0.8 - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3) | |
8375 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0.5 *Cos(sine / 56),0,1 + 0.45 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(0 + 2 * math.cos(sine / 44))),.1) | |
8376 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(0)),.3) | |
8377 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3) | |
8378 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3) | |
8379 | end | |
8380 | CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1) | |
8381 | local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random()) | |
8382 | hb.Anchored = true | |
8383 | hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2 | |
8384 | local huggedperson = nil | |
8385 | local act = false | |
8386 | local alreadydid = false | |
8387 | for i = 0, 3, 0.1 do | |
8388 | swait() | |
8389 | if act == false then | |
8390 | for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do | |
8391 | if v:FindFirstChild('Head') then | |
8392 | if alreadydid == false then | |
8393 | huggedperson = v | |
8394 | hum.WalkSpeed = 0 | |
8395 | CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1) | |
8396 | CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15) | |
8397 | CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1) | |
8398 | CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1) | |
8399 | local radm = math.random(1,3) | |
8400 | if radm == 1 then | |
8401 | bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1) | |
8402 | elseif radm == 2 then | |
8403 | bosschatfunc("I..I apoligize for anything I have done wrong to you.",MAINRUINCOLOR.Color,1) | |
8404 | elseif radm == 3 then | |
8405 | bosschatfunc("Don't worry.. I'm with you...",MAINRUINCOLOR.Color,1) | |
8406 | end | |
8407 | root.Anchored = true | |
8408 | coroutine.resume(coroutine.create(function() | |
8409 | huggedperson.Humanoid.WalkSpeed = 0 | |
8410 | huggedperson:WaitForChild("HumanoidRootPart").Anchored = true | |
8411 | end)) | |
8412 | --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1) | |
8413 | alreadydid = true | |
8414 | act = true | |
8415 | print(huggedperson.Name) | |
8416 | end | |
8417 | end | |
8418 | end | |
8419 | hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2 | |
8420 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(0)),.3) | |
8421 | elseif act == true then | |
8422 | coroutine.resume(coroutine.create(function() | |
8423 | huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2 | |
8424 | end)) | |
8425 | rsiz = math.random(5,15) | |
8426 | sphereMK(math.random(1,4),0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-8,-4),math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),rsiz/20,rsiz/20,rsiz/20,0,MAINRUINCOLOR,0) | |
8427 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(40)),.1) | |
8428 | huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0) | |
8429 | print'whats this OwO' | |
8430 | end | |
8431 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(90),math.rad(0))*angles(math.rad(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3) | |
8432 | LH.C0=clerp(LH.C0,cf(-1,-0.8 - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3) | |
8433 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0.5 *Cos(sine / 56),0,1 + 0.45 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(0 + 2 * math.cos(sine / 44))),.1) | |
8434 | RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3) | |
8435 | LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3) | |
8436 | end | |
8437 | hb:Destroy() | |
8438 | if act == true then | |
8439 | for x = 0, 2 do | |
8440 | for i = 0, 2, 0.1 do | |
8441 | swait() | |
8442 | coroutine.resume(coroutine.create(function() | |
8443 | huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2 | |
8444 | end)) | |
8445 | rsiz = math.random(5,15) | |
8446 | sphereMK(math.random(1,4),0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-8,-4),math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),rsiz/20,rsiz/20,rsiz/20,0,MAINRUINCOLOR,0) | |
8447 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(45)),.1) | |
8448 | huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0) | |
8449 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3) | |
8450 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3) | |
8451 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
8452 | RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3) | |
8453 | LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3) | |
8454 | end | |
8455 | for i = 0, 2, 0.1 do | |
8456 | swait() | |
8457 | coroutine.resume(coroutine.create(function() | |
8458 | huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2 | |
8459 | end)) | |
8460 | rsiz = math.random(5,15) | |
8461 | sphereMK(math.random(1,4),0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-8,-4),math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),rsiz/20,rsiz/20,rsiz/20,0,MAINRUINCOLOR,0) | |
8462 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(35)),.1) | |
8463 | huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0) | |
8464 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3) | |
8465 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3) | |
8466 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
8467 | RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3) | |
8468 | LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3) | |
8469 | end | |
8470 | end | |
8471 | end | |
8472 | hum.WalkSpeed = storehumanoidWS | |
8473 | root.Anchored = false | |
8474 | if act == true then | |
8475 | coroutine.resume(coroutine.create(function() | |
8476 | huggedperson.Humanoid.WalkSpeed = 16 | |
8477 | huggedperson:WaitForChild("HumanoidRootPart").Anchored = false | |
8478 | end)) | |
8479 | end | |
8480 | hum.WalkSpeed = storehumanoidWS | |
8481 | attack = false | |
8482 | end | |
8483 | ||
8484 | function Counter() | |
8485 | hum.WalkSpeed = 0 | |
8486 | CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1) | |
8487 | CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1) | |
8488 | bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1) | |
8489 | attack = true | |
8490 | for i = 0,1,0.1 do | |
8491 | swait() | |
8492 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3) | |
8493 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
8494 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3) | |
8495 | LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3) | |
8496 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(10)),.3) | |
8497 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.3) | |
8498 | end | |
8499 | CameraEnshaking(3,4) | |
8500 | MagniDamageWithEffect(root, 24, 0,0, 75, "Normal") | |
8501 | sphere2(10,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(50)),vt(5,5,5),0.35,0.35,0.35,MAINRUINCOLOR) | |
8502 | sphere2(1.5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(50)),vt(5,5,5),0.35,0.35,0.35,MAINRUINCOLOR) | |
8503 | sphere2(20,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(50)),vt(5,5,5),0.35,0.35,0.35,MAINRUINCOLOR) | |
8504 | coroutine.resume(coroutine.create(function() | |
8505 | local eff = Instance.new("ParticleEmitter",root) | |
8506 | eff.Texture = "rbxassetid://363275192" | |
8507 | eff.LightEmission = 0.95 | |
8508 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
8509 | eff.Rate = 10000 | |
8510 | eff.Lifetime = NumberRange.new(1) | |
8511 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)}) | |
8512 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)}) | |
8513 | eff.Speed = NumberRange.new(10,125) | |
8514 | eff.Drag = 5 | |
8515 | eff.Rotation = NumberRange.new(-500,500) | |
8516 | eff.VelocitySpread = 9000 | |
8517 | eff.RotSpeed = NumberRange.new(-50,50) | |
8518 | local eff2 = eff:Clone() | |
8519 | eff2.Parent = root | |
8520 | eff2.Texture = "rbxassetid://284205403" | |
8521 | eff2.Rate = 10000 | |
8522 | eff2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,30,0),NumberSequenceKeypoint.new(1,0,0)}) | |
8523 | eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)}) | |
8524 | eff2.Drag = 5 | |
8525 | eff2.Speed = NumberRange.new(10,50) | |
8526 | eff2.Rotation = NumberRange.new(-500,500) | |
8527 | eff2.VelocitySpread = 9000 | |
8528 | wait(0.25) | |
8529 | eff2.Enabled = false | |
8530 | eff.Enabled = false | |
8531 | wait(3) | |
8532 | eff2:Destroy() | |
8533 | eff:Destroy() | |
8534 | end)) | |
8535 | for i = 0, 9 do | |
8536 | sphere2(1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.0025,1,-0.0025,MAINRUINCOLOR) | |
8537 | end | |
8538 | for i = 0, 24 do | |
8539 | local rsiz = math.random(5,20) | |
8540 | sphereMK(math.random(2,10),0.75,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/8,rsiz/8,rsiz/8,0,MAINRUINCOLOR,0) | |
8541 | end | |
8542 | CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1) | |
8543 | CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1) | |
8544 | CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1) | |
8545 | for i = 0,2,0.1 do | |
8546 | swait() | |
8547 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3) | |
8548 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
8549 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3) | |
8550 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3) | |
8551 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-10)),.3) | |
8552 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.3) | |
8553 | end | |
8554 | hum.WalkSpeed = storehumanoidWS | |
8555 | attack = false | |
8556 | end | |
8557 | hum.WalkSpeed = 12 | |
8558 | function superjump() | |
8559 | attack = true | |
8560 | hum.WalkSpeed = 0 | |
8561 | sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color) | |
8562 | sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color) | |
8563 | CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1) | |
8564 | for i = 0, 2, 0.1 do | |
8565 | swait() | |
8566 | root.Velocity = vt(0,0,0) | |
8567 | slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,250)/250,BrickColor.new("White")) | |
8568 | RH.C0=clerp(RH.C0,cf(1,-0.45,-0.45)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(20)),.4) | |
8569 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(40)),.4) | |
8570 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4) | |
8571 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4) | |
8572 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4) | |
8573 | LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4) | |
8574 | end | |
8575 | MagniDamage(root, 28, 25,50, 25, "Normal") | |
8576 | CFuncs["Sound"].Create("rbxassetid://477843807", char, 17, 1.05) | |
8577 | hum.Jump = true | |
8578 | swait() | |
8579 | root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250 | |
8580 | sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(-45),0,0),vt(25,1,25),0.3,5,0.3,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color) | |
8581 | sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(-45),0,0),vt(25,1,25),0.2,4,0.2,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color) | |
8582 | CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1) | |
8583 | for i = 0, 3, 0.1 do | |
8584 | swait() | |
8585 | RH.C0=clerp(RH.C0,cf(1,-0.45,-0.45)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(-20)),.4) | |
8586 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(30)),.4) | |
8587 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4) | |
8588 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4) | |
8589 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4) | |
8590 | LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4) | |
8591 | end | |
8592 | attack = false | |
8593 | hum.WalkSpeed = 24 | |
8594 | end | |
8595 | ||
8596 | ||
8597 | ------------------------------------- | |
8598 | ||
8599 | ||
8600 | ||
8601 | Humanoid.Animator.Parent = nil | |
8602 | ||
8603 | ||
8604 | ||
8605 | ------------------------------------- | |
8606 | ||
8607 | local attacktype = 1 | |
8608 | mouse.Button1Down:connect(function() | |
8609 | if attack == false and attacktype == 1 then | |
8610 | attacktype = 2 | |
8611 | attackone() | |
8612 | elseif attack == false and attacktype == 2 then | |
8613 | attacktype = 3 | |
8614 | attacktwo() | |
8615 | elseif attack == false and attacktype == 3 then | |
8616 | attacktype = 1 | |
8617 | attackthree() | |
8618 | elseif attack == false and attacktype == 4 then | |
8619 | attacktype = 1 | |
8620 | --attackfour() | |
8621 | end | |
8622 | end) | |
8623 | mouse.KeyDown:connect(function(k) | |
8624 | if k == "q" and attack == false and ModeOfGlitch ~= 1 then | |
8625 | --normalmog() | |
8626 | ModeOfGlitch = 1 | |
8627 | storehumanoidWS = 12 | |
8628 | hum.WalkSpeed = 12 | |
8629 | rainbowmode = false | |
8630 | chaosmode = false | |
8631 | newTheme("rbxassetid://1564523997",48.6,1,0.85) | |
8632 | RecolorTextAndRename("Solitude",Color3.new(0,0,0),Color3.new(0,0,0),"Antique") | |
8633 | MAINRUINCOLOR = BrickColor.new("Black") | |
8634 | ned.TextColor3 = BrickColor.new("Black").Color | |
8635 | ned.TextStrokeColor3 = BrickColor.new("Really black").Color | |
8636 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false) | |
8637 | end | |
8638 | if k == "e" and attack == false and ModeOfGlitch ~= 2 then | |
8639 | ModeOfGlitch = 2 | |
8640 | storehumanoidWS = 16 | |
8641 | hum.WalkSpeed = 16 | |
8642 | rainbowmode = false | |
8643 | chaosmode = false | |
8644 | RecolorTextAndRename("PURITY",Color3.new(0,1,1),Color3.new(1,1,1),"Code") | |
8645 | newTheme("rbxassetid://1539245059",0,1,0.85) | |
8646 | MAINRUINCOLOR = BrickColor.new("Toothpaste") | |
8647 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8648 | end | |
8649 | if k == "r" and attack == false and ModeOfGlitch ~= 3 then | |
8650 | ModeOfGlitch = 3 | |
8651 | storehumanoidWS = 14 | |
8652 | hum.WalkSpeed = 14 | |
8653 | rainbowmode = false | |
8654 | chaosmode = false | |
8655 | RecolorTextAndRename("CORRUPTION",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique") | |
8656 | newTheme("rbxassetid://1283869370",58.15,0.98,1) | |
8657 | MAINRUINCOLOR = BrickColor.new("Royal purple") | |
8658 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8659 | end | |
8660 | if k == "t" and attack == false and ModeOfGlitch ~= 4 then | |
8661 | ModeOfGlitch = 4 | |
8662 | storehumanoidWS = 14 | |
8663 | hum.WalkSpeed = 14 | |
8664 | rainbowmode = false | |
8665 | chaosmode = true | |
8666 | RecolorTextAndRename("HAVOC",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade") | |
8667 | newTheme("rbxassetid://342274063",0,1.01,0.85) | |
8668 | MAINRUINCOLOR = BrickColor.new("Black") | |
8669 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8670 | end | |
8671 | if k == "y" and attack == false and ModeOfGlitch ~= 5 then | |
8672 | ModeOfGlitch = 5 | |
8673 | storehumanoidWS = 14 | |
8674 | hum.WalkSpeed = 14 | |
8675 | rainbowmode = false | |
8676 | chaosmode = false | |
8677 | RecolorTextAndRename("DIVINITY",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi") | |
8678 | newTheme("rbxassetid://661079869",0,1.02,0.85) | |
8679 | MAINRUINCOLOR = BrickColor.new("Bright yellow") | |
8680 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8681 | end | |
8682 | if k == "u" and attack == false and ModeOfGlitch ~= 6 then | |
8683 | ModeOfGlitch = 6 | |
8684 | storehumanoidWS = 65 | |
8685 | hum.WalkSpeed = 65 | |
8686 | rainbowmode = false | |
8687 | chaosmode = false | |
8688 | RecolorTextAndRename("EQUINOX",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy") | |
8689 | newTheme("rbxassetid://1347011178",0,1.01,0.85) | |
8690 | MAINRUINCOLOR = BrickColor.new("White") | |
8691 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8692 | end | |
8693 | if k == "f" and attack == false and ModeOfGlitch ~= 8 then | |
8694 | ModeOfGlitch = 8 | |
8695 | storehumanoidWS = 100 | |
8696 | hum.WalkSpeed = 100 | |
8697 | rainbowmode = false | |
8698 | chaosmode = false | |
8699 | RecolorTextAndRename("DESTINY",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code") | |
8700 | newTheme("rbxassetid://1495032271",0,1.01,0.85) | |
8701 | MAINRUINCOLOR = BrickColor.new("Alder") | |
8702 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8703 | end | |
8704 | if k == "g" and attack == false and ModeOfGlitch ~= 9 then | |
8705 | ModeOfGlitch = 9 | |
8706 | storehumanoidWS = 85 | |
8707 | hum.WalkSpeed = 85 | |
8708 | rainbowmode = false | |
8709 | chaosmode = false | |
8710 | RecolorTextAndRename("POISON",Color3.new(170, 0, 170),Color3.new(123, 0, 123),"Bodoni") | |
8711 | newTheme("rbxassetid://1296208488",0,1.01,0.85) | |
8712 | MAINRUINCOLOR = BrickColor.new("Magenta") | |
8713 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8714 | end | |
8715 | if k == "h" and attack == false and ModeOfGlitch ~= 5555 then | |
8716 | ModeOfGlitch = 5555 | |
8717 | storehumanoidWS = 30 | |
8718 | hum.WalkSpeed = 30 | |
8719 | rainbowmode = false | |
8720 | chaosmode = false | |
8721 | RecolorTextAndRename("L-O-V-E",Color3.new(1,1,1),BrickColor.new("Hot pink").Color,"Arcade") | |
8722 | newTheme("rbxassetid://736003449",0,1,1.25) | |
8723 | MAINRUINCOLOR = BrickColor.new("Hot pink") | |
8724 | RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8725 | end | |
8726 | if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then | |
8727 | CalamityTrans() | |
8728 | end | |
8729 | if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then | |
8730 | ModeOfGlitch = 55469696922 | |
8731 | storehumanoidWS = 95 | |
8732 | hum.WalkSpeed = 95 | |
8733 | rainbowmode = false | |
8734 | chaosmode = false | |
8735 | RecolorTextAndRename("The big Black",Color3.new(0,0,0),BrickColor.new("Black").Color,"Antique") | |
8736 | newTheme("rbxassetid://183142252",0,1.005,0.9) | |
8737 | MAINRUINCOLOR = BrickColor.new("Black") | |
8738 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8739 | end | |
8740 | if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then | |
8741 | ModeOfGlitch = 4367677813 | |
8742 | storehumanoidWS = 75 | |
8743 | hum.WalkSpeed = 75 | |
8744 | rainbowmode = false | |
8745 | chaosmode = false | |
8746 | RecolorTextAndRename("SHD",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade") | |
8747 | newTheme("rbxassetid://363284685",0,1.01,0.95) | |
8748 | MAINRUINCOLOR = BrickColor.new("Baby blue") | |
8749 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8750 | end | |
8751 | if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then | |
8752 | ModeOfGlitch = 9999999921111 | |
8753 | storehumanoidWS = 145 | |
8754 | hum.WalkSpeed = 145 | |
8755 | rainbowmode = false | |
8756 | chaosmode = false | |
8757 | RecolorTextAndRename("OMEGA",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi") | |
8758 | newTheme("rbxassetid://643309199",0,1.01,1) | |
8759 | MAINRUINCOLOR = BrickColor.new("Bright bluish green") | |
8760 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8761 | end | |
8762 | if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then | |
8763 | ModeOfGlitch = 999999999556 | |
8764 | storehumanoidWS = 115 | |
8765 | hum.WalkSpeed = 115 | |
8766 | rainbowmode = false | |
8767 | chaosmode = false | |
8768 | RecolorTextAndRename("CRAZED",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code") | |
8769 | newTheme("rbxassetid://719008519",0,1.02,0.85) | |
8770 | MAINRUINCOLOR = BrickColor.new("Navy blue") | |
8771 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8772 | end | |
8773 | if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 12 then | |
8774 | ModeOfGlitch = 12 | |
8775 | storehumanoidWS = 24 | |
8776 | hum.WalkSpeed = 24 | |
8777 | rainbowmode = false | |
8778 | chaosmode = false | |
8779 | print'Mode was meant for Vengeful Program or those other fans out there.' | |
8780 | warn'oof this mode does literally nothing' | |
8781 | RecolorTextAndRename("NEPTUNIA",BrickColor.new("Royal purple").Color,BrickColor.new("Bright blue").Color,"SciFi") | |
8782 | newTheme("rbxassetid://1873219898",0,1,1.7) | |
8783 | MAINRUINCOLOR = BrickColor.new("Royal purple") | |
8784 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8785 | end | |
8786 | ||
8787 | if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 50 then | |
8788 | sphere(0.9,"Add",root.CFrame,vt(0,100000,0),1,BrickColor.new("Institutional white")) | |
8789 | for i = 0, 49 do | |
8790 | PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),8,8,8,0.16,BrickColor.new("Institutional white"),0) | |
8791 | end | |
8792 | CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1) | |
8793 | CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1) | |
8794 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1) | |
8795 | hum.WalkSpeed = storehumanoidWS | |
8796 | attack = false | |
8797 | ModeOfGlitch = 50 | |
8798 | storehumanoidWS = 18 | |
8799 | hum.WalkSpeed = 18 | |
8800 | rainbowmode = false | |
8801 | chaosmode = false | |
8802 | RecolorTextAndRename("EnBelived",BrickColor.new("Institutional white").Color,BrickColor.new("Institutional white").Color,"Arcade") | |
8803 | newTheme("rbxassetid://435773595",0,1.01,1.5) | |
8804 | MAINRUINCOLOR = BrickColor.new("Institutional white") | |
8805 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Institutional white"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8806 | end | |
8807 | ||
8808 | if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 66 then | |
8809 | hum.WalkSpeed = 0 | |
8810 | attack = true | |
8811 | for i = 0,1,0.1 do | |
8812 | swait() | |
8813 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3) | |
8814 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
8815 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3) | |
8816 | LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3) | |
8817 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1) | |
8818 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1) | |
8819 | end | |
8820 | sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
8821 | for i = 0, 148 do | |
8822 | PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
8823 | end | |
8824 | for i = 0,3,0.1 do | |
8825 | sphereMK(2.5,-1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,MAINRUINCOLOR,0) | |
8826 | end | |
8827 | CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1) | |
8828 | CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1) | |
8829 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1) | |
8830 | hum.WalkSpeed = storehumanoidWS | |
8831 | attack = false | |
8832 | ModeOfGlitch = 66 | |
8833 | storehumanoidWS = 16 | |
8834 | hum.WalkSpeed = 16 | |
8835 | rainbowmode = false | |
8836 | chaosmode = false | |
8837 | newTheme("rbxassetid://803373182",0,1,1.35) | |
8838 | MAINRUINCOLOR = BrickColor.new("Really black") | |
8839 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8840 | for i = 0,2,0.1 do | |
8841 | swait() | |
8842 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3) | |
8843 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
8844 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3) | |
8845 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3) | |
8846 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1) | |
8847 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1) | |
8848 | end | |
8849 | end | |
8850 | ||
8851 | if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 13 then | |
8852 | hum.WalkSpeed = 0 | |
8853 | attack = true | |
8854 | for i = 0,1,0.1 do | |
8855 | swait() | |
8856 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3) | |
8857 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
8858 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3) | |
8859 | LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3) | |
8860 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1) | |
8861 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1) | |
8862 | end | |
8863 | sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
8864 | for i = 0, 49 do | |
8865 | PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.04,MAINRUINCOLOR,0) | |
8866 | end | |
8867 | for i = 0,3,0.1 do | |
8868 | sphereMK(2.5,-1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,MAINRUINCOLOR,0) | |
8869 | end | |
8870 | CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1) | |
8871 | CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1) | |
8872 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1) | |
8873 | hum.WalkSpeed = storehumanoidWS | |
8874 | attack = false | |
8875 | ModeOfGlitch = 13 | |
8876 | storehumanoidWS = 45 | |
8877 | hum.WalkSpeed = 45 | |
8878 | rainbowmode = false | |
8879 | chaosmode = false | |
8880 | RecolorTextAndRename("Judician",BrickColor.new("Dark stone grey").Color,BrickColor.new("Light blue").Color,"Bodoni") | |
8881 | newTheme("rbxassetid://190845741",0,1,1.35) | |
8882 | MAINRUINCOLOR = BrickColor.new("Dark stone grey") | |
8883 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Light blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8884 | for i = 0,2,0.1 do | |
8885 | swait() | |
8886 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3) | |
8887 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
8888 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3) | |
8889 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3) | |
8890 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1) | |
8891 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1) | |
8892 | end | |
8893 | end | |
8894 | if k == "j" and attack == false and ModeOfGlitch ~= 1002 then | |
8895 | ModeOfGlitch = 1002 | |
8896 | storehumanoidWS = 45 | |
8897 | hum.WalkSpeed = 45 | |
8898 | rainbowmode = false | |
8899 | chaosmode = false | |
8900 | RecolorTextAndRename("PIXELED",BrickColor.new("Really black").Color,BrickColor.new("Dark blue").Color,"Code") | |
8901 | newTheme("rbxassetid://1244332148",0,1,1.8) | |
8902 | MAINRUINCOLOR = BrickColor.new("Dark blue") | |
8903 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8904 | end | |
8905 | if k == "k" and attack == false and ModeOfGlitch ~= 1003 then | |
8906 | ModeOfGlitch = 1003 | |
8907 | storehumanoidWS = 90 | |
8908 | hum.WalkSpeed = 90 | |
8909 | rainbowmode = false | |
8910 | chaosmode = false | |
8911 | RecolorTextAndRename("ControlledBR",BrickColor.new("Bright red").Color,BrickColor.new("Black").Color,"Code") | |
8912 | newTheme("rbxassetid://407749940",0,1,0.85) | |
8913 | MAINRUINCOLOR = BrickColor.new("Bright red") | |
8914 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8915 | end | |
8916 | if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then | |
8917 | ModeOfGlitch = 1264532489 | |
8918 | storehumanoidWS = 175 | |
8919 | hum.WalkSpeed = 175 | |
8920 | rainbowmode = false | |
8921 | chaosmode = false | |
8922 | RecolorTextAndRename("FALLENX",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique") | |
8923 | newTheme("rbxassetid://1505487022",0,1.01,1.25) | |
8924 | MAINRUINCOLOR = BrickColor.new("Pastel green") | |
8925 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8926 | end | |
8927 | if k == "l" and mutedtog == false then | |
8928 | mutedtog = true | |
8929 | kan.Volume = 0.85 | |
8930 | elseif k == "l" and mutedtog == true then | |
8931 | mutedtog = false | |
8932 | kan.Volume = 0.85 | |
8933 | end | |
8934 | if k == "p" and toggleTag == false then | |
8935 | toggleTag = true | |
8936 | modet.TextTransparency = 0 | |
8937 | modet.TextStrokeTransparency = 0 | |
8938 | elseif k == "p" and toggleTag == true then | |
8939 | toggleTag = false | |
8940 | modet.TextTransparency = 1 | |
8941 | modet.TextStrokeTransparency = 1 | |
8942 | end | |
8943 | if k == "z" and attack == false and ModeOfGlitch == 1 then | |
8944 | ExtinctiveHeartbreak() | |
8945 | elseif k == "z" and attack == false and ModeOfGlitch == 2 then | |
8946 | HeavenlyDisk() | |
8947 | elseif k == "z" and attack == false and ModeOfGlitch == 9 then | |
8948 | DualGleamingBeam() | |
8949 | elseif k == "c" and attack == false and ModeOfGlitch == 9 then | |
8950 | BanishingOrb() | |
8951 | elseif k == "z" and attack == false and ModeOfGlitch == 5555 then | |
8952 | hugg() | |
8953 | elseif k == "b" and attack == false and ModeOfGlitch == 55469696922 then | |
8954 | cutesigh() | |
8955 | elseif k == "v" and attack == false and ModeOfGlitch == 55469696922 then | |
8956 | Counter() | |
8957 | elseif k == "v" and attack == false and ModeOfGlitch == 12 then | |
8958 | superjump() | |
8959 | elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then | |
8960 | dragin() | |
8961 | elseif k == "x" and attack == false and ModeOfGlitch == 8889 then | |
8962 | UniversalCollapse() | |
8963 | elseif k == "c" and attack == false and ModeOfGlitch == 2 then | |
8964 | PureBomb() | |
8965 | elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then | |
8966 | Beams() | |
8967 | elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then | |
8968 | BeamOfDeath() | |
8969 | elseif k == "v" and attack == false and ModeOfGlitch == 8 then | |
8970 | THE_TRUE_POWER_OF_VIOLENCE() | |
8971 | elseif k == "z" and attack == false and ModeOfGlitch == 8 then | |
8972 | GleamingBeam() | |
8973 | elseif k == "x" and attack == false and ModeOfGlitch == 5 then | |
8974 | ViolentRing() | |
8975 | elseif k == "z" and attack == false and ModeOfGlitch == 3 then | |
8976 | CorruptionEvent() | |
8977 | elseif k == "v" and attack == false and ModeOfGlitch == 3 then | |
8978 | CorruptBlink() | |
8979 | elseif k == "c" and attack == false and ModeOfGlitch == 3 then | |
8980 | scattercorrupt() | |
8981 | elseif k == "b" and attack == false and ModeOfGlitch == 5555 then | |
8982 | shytaunty() | |
8983 | elseif k == "z" and attack == false and ModeOfGlitch == 4 then | |
8984 | RapidBurst() | |
8985 | elseif k == "z" and attack == false and ModeOfGlitch == 66 then | |
8986 | RapidBurst() | |
8987 | elseif k == "x" and attack == false and ModeOfGlitch == 4 then | |
8988 | ChaosEND() | |
8989 | elseif k == "x" and attack == false and ModeOfGlitch == 66 then | |
8990 | ChaosEND() | |
8991 | elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then | |
8992 | CyberSlash() | |
8993 | elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then | |
8994 | smiter() | |
8995 | elseif k == "z" and attack == false and ModeOfGlitch == 1002 then | |
8996 | SpeedDrop() | |
8997 | elseif k == "x" and attack == false and ModeOfGlitch == 5555 and KiddoLocko == true then | |
8998 | notonmychristianminecraftserver() | |
8999 | elseif k == "x" and attack == false and ModeOfGlitch == 5555 and KiddoLocko == false then | |
9000 | fugg() | |
9001 | elseif k == "v" and attack == false and ModeOfGlitch == 5 then | |
9002 | --DivineLights() | |
9003 | elseif k == "z" and attack == false and ModeOfGlitch == 5 then | |
9004 | DivineBlast() | |
9005 | elseif k == "z" and attack == false and ModeOfGlitch == 6 then | |
9006 | EquinoxOrbs() | |
9007 | elseif k == "v" and attack == false and ModeOfGlitch == 6 then | |
9008 | yinyangi() | |
9009 | elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then | |
9010 | FallenOrbs() | |
9011 | elseif k == "z" and attack == false and ModeOfGlitch == 1003 then | |
9012 | StarfallEX() | |
9013 | end | |
9014 | if k == "v" and attack == false and ModeOfGlitch == 1264532489 then | |
9015 | FallenDEMISE() | |
9016 | end | |
9017 | if k == "x" and attack == false and ModeOfGlitch == 1 then | |
9018 | EndGROUND() | |
9019 | end | |
9020 | end) | |
9021 | ||
9022 | coroutine.resume(coroutine.create(function() | |
9023 | while true do | |
9024 | swait() | |
9025 | if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 9 or ModeOfGlitch == 8889 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then | |
9026 | sphereMK(7.5,math.random(15,50)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.75,0.75,10,-0.0075,MAINRUINCOLOR,0) | |
9027 | end | |
9028 | if ModeOfGlitch == 5555 then | |
9029 | sphereMK(5,math.random(8,14)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.25,0.25,7.5,-0.0025,MAINRUINCOLOR,0) | |
9030 | end | |
9031 | end | |
9032 | end)) | |
9033 | --[[coroutine.resume(coroutine.create(function() | |
9034 | while true do | |
9035 | swait(2) | |
9036 | if chaosmode == true then | |
9037 | tl1.Color = ColorSequence.new(BrickColor.random().Color) | |
9038 | tl2.Color = ColorSequence.new(BrickColor.random().Color) | |
9039 | tl3.Color = ColorSequence.new(BrickColor.random().Color) | |
9040 | RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy") | |
9041 | for i, v in pairs(mw1:GetChildren()) do | |
9042 | if v:IsA("Part") then | |
9043 | v.Transparency = 0.75 | |
9044 | v.BrickColor = BrickColor.random() | |
9045 | v.Material = "Neon" | |
9046 | end | |
9047 | end | |
9048 | for i, v in pairs(m2:GetChildren()) do | |
9049 | if v:IsA("Part") then | |
9050 | v.BrickColor = BrickColor.random() | |
9051 | v.Material = "Neon" | |
9052 | end | |
9053 | end | |
9054 | end | |
9055 | end | |
9056 | end))]] | |
9057 | ||
9058 | ||
9059 | ||
9060 | ff = Instance.new("ForceField",char) | |
9061 | ff.Visible = false | |
9062 | hum.Name = "Base" | |
9063 | hum.MaxHealth = 1.0E298 | |
9064 | hum.Health = 1.0E298 | |
9065 | game:GetService("RunService"):BindToRenderStep("Bbae", 0, function() | |
9066 | if hum.Health > 0.1 and hum.Health < 1.0E298 then | |
9067 | hum.MaxHealth = 1.0E298 | |
9068 | hum.Health = 1.0E298 | |
9069 | end | |
9070 | end) | |
9071 | ||
9072 | local Hair = Instance.new("Part", char) | |
9073 | Hair.Name = "Hair" | |
9074 | Hair.CanCollide = false | |
9075 | Hair.BrickColor = BrickColor.new("Institutional white") | |
9076 | Hair.Transparency = 0 | |
9077 | Hair.Material = "Plastic" | |
9078 | Hair.Size = Vector3.new(1, 1, 2) | |
9079 | Hair.TopSurface = Enum.SurfaceType.Smooth | |
9080 | Hair.BottomSurface = Enum.SurfaceType.Smooth | |
9081 | ||
9082 | ||
9083 | local bguis = Instance.new("BillboardGui",tors) | |
9084 | bguis.Size = UDim2.new(25, 0, 25, 0) | |
9085 | local imgca = Instance.new("ImageLabel",bguis) | |
9086 | imgca.BackgroundTransparency = 1 | |
9087 | imgca.ImageTransparency = 1 | |
9088 | imgca.Size = UDim2.new(1,0,1,0) | |
9089 | imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891 | |
9090 | imgca.ImageColor3 = Color3.new(0,0,0) | |
9091 | ||
9092 | ||
9093 | local bguis2 = Instance.new("BillboardGui",tors) | |
9094 | bguis2.Size = UDim2.new(25, 0, 25, 0) | |
9095 | local imgca2 = Instance.new("ImageLabel",bguis) | |
9096 | imgca2.BackgroundTransparency = 1 | |
9097 | imgca2.ImageTransparency = 1 | |
9098 | imgca2.Size = UDim2.new(1,0,1,0) | |
9099 | imgca2.Image = "rbxassetid://2406462507" --997291547,521073910,2312119891 | |
9100 | imgca2.ImageColor3 = Color3.new(0,0,0) | |
9101 | ||
9102 | ||
9103 | ||
9104 | idleanim=.4 | |
9105 | while true do | |
9106 | if mutedtog == false then | |
9107 | kan.Volume = currentVol | |
9108 | elseif mutedtog == true then | |
9109 | kan.Volume = 0 | |
9110 | end | |
9111 | kan.PlaybackSpeed = currentPitch | |
9112 | kan.Pitch = currentPitch | |
9113 | kan.SoundId = currentThemePlaying | |
9114 | kan.Looped = true | |
9115 | kan.Parent = char | |
9116 | kan:Resume() | |
9117 | if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 13 then | |
9118 | imgca.ImageTransparency = 1 | |
9119 | imgca2.ImageTransparency = 1 | |
9120 | elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then | |
9121 | imgca.ImageColor3 = MAINRUINCOLOR.Color | |
9122 | imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30) | |
9123 | elseif ModeOfGlitch == 13 then | |
9124 | imgca2.ImageColor3 = MAINRUINCOLOR.Color | |
9125 | imgca2.ImageTransparency = 0 + 0.25 * math.cos(sine / 30) | |
9126 | end | |
9127 | imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25 | |
9128 | bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0) | |
9129 | imgca2.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/60 | |
9130 | bguis2.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0) | |
9131 | coroutine.resume(coroutine.create(function() | |
9132 | if chaosmode == true then | |
9133 | for i, v in pairs(mw1:GetChildren()) do | |
9134 | if v:IsA("Part") then | |
9135 | v.Transparency = 0 | |
9136 | v.BrickColor = BrickColor.random() | |
9137 | v.Material = "Neon" | |
9138 | end | |
9139 | end | |
9140 | tl1.Color = ColorSequence.new(BrickColor.random().Color) | |
9141 | tl2.Color = ColorSequence.new(BrickColor.random().Color) | |
9142 | tl3.Color = ColorSequence.new(BrickColor.random().Color) | |
9143 | RecolorTextAndRename("H A V O C",Color3.new(0,0,0),BrickColor.random().Color,"Arcade") | |
9144 | end | |
9145 | end)) | |
9146 | coroutine.resume(coroutine.create(function() | |
9147 | if ModeOfGlitch == 66 then | |
9148 | for i, v in pairs(m:GetChildren()) do | |
9149 | if v:IsA("Part") then | |
9150 | v.Transparency = 0 | |
9151 | v.BrickColor = BrickColor.random() | |
9152 | v.Material = "Neon" | |
9153 | end | |
9154 | end | |
9155 | for i, v in pairs(m2:GetChildren()) do | |
9156 | if v:IsA("Part") then | |
9157 | v.Transparency = 0 | |
9158 | v.BrickColor = BrickColor.random() | |
9159 | v.Material = "Neon" | |
9160 | end | |
9161 | end | |
9162 | for i, v in pairs(mw1:GetChildren()) do | |
9163 | if v:IsA("Part") then | |
9164 | v.Transparency = 0 | |
9165 | v.BrickColor = BrickColor.random() | |
9166 | v.Material = "Neon" | |
9167 | end | |
9168 | end | |
9169 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
9170 | if v:IsA("Part") then | |
9171 | v.Transparency = 0.5 | |
9172 | v.BrickColor = BrickColor.random() | |
9173 | v.Material = "Neon" | |
9174 | end | |
9175 | end | |
9176 | tl1.Color = ColorSequence.new(BrickColor.random().Color) | |
9177 | tl2.Color = ColorSequence.new(BrickColor.random().Color) | |
9178 | tl3.Color = ColorSequence.new(BrickColor.random().Color) | |
9179 | gane.Color = ColorSequence.new(BrickColor.random().Color) | |
9180 | gan.Color = ColorSequence.new(BrickColor.random().Color) | |
9181 | end | |
9182 | end)) | |
9183 | ||
9184 | coroutine.resume(coroutine.create(function() | |
9185 | if ModeOfGlitch == 66 then | |
9186 | RecolorTextAndRename("I N S A N I T Y",BrickColor.random().Color,Color3.new(0,0,0),"SourceSans") | |
9187 | hum.WalkSpeed = 12 | |
9188 | storehumanoidWS = 12 | |
9189 | end | |
9190 | end)) | |
9191 | ||
9192 | if chaosmode == false then | |
9193 | modet.Position = UDim2.new(0,0,0,0) | |
9194 | modet.Rotation = -5 * math.cos(sine / 32) | |
9195 | techc.Rotation = techc.Rotation + 1 | |
9196 | circl.Rotation = circl.Rotation - kan.PlaybackLoudness/200 - 1 | |
9197 | circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/175 + 1 | |
9198 | imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/175 + 1 | |
9199 | imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/150 - 1 | |
9200 | ned.Rotation = 0 - 2 * math.cos(sine / 24) | |
9201 | ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45)) | |
9202 | else | |
9203 | techc.Rotation = techc.Rotation + 1 | |
9204 | circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5) | |
9205 | circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5) | |
9206 | imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5) | |
9207 | imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5) | |
9208 | ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3) | |
9209 | ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3)) | |
9210 | modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1)) | |
9211 | modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3) | |
9212 | end | |
9213 | CameraManager() | |
9214 | swait() | |
9215 | lwing1weld.C1=clerp(lwing1weld.C1,cf(2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(12.5 + 5 * math.cos(sine / 32))),.3) | |
9216 | lwing2weld.C1=clerp(lwing2weld.C1,cf(3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(25 + 7.5 * math.cos(sine / 32))),.3) | |
9217 | lwing3weld.C1=clerp(lwing3weld.C1,cf(3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(37.5 + 10 * math.cos(sine / 32))),.3) | |
9218 | lwing4weld.C1=clerp(lwing4weld.C1,cf(4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(50 + 12.5 * math.cos(sine / 32))),.3) | |
9219 | lwing5weld.C1=clerp(lwing5weld.C1,cf(5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(62.5 + 15 * math.cos(sine / 32))),.3) | |
9220 | lwing6weld.C1=clerp(lwing6weld.C1,cf(6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(75 + 17.5 * math.cos(sine / 32))),.3) | |
9221 | rwing1weld.C1=clerp(rwing1weld.C1,cf(-2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(-12.5 - 5 * math.cos(sine / 32))),.3) | |
9222 | rwing2weld.C1=clerp(rwing2weld.C1,cf(-3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(-25 - 7.5 * math.cos(sine / 32))),.3) | |
9223 | rwing3weld.C1=clerp(rwing3weld.C1,cf(-3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(-37.5 - 10 * math.cos(sine / 32))),.3) | |
9224 | rwing4weld.C1=clerp(rwing4weld.C1,cf(-4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(-50 - 12.5 * math.cos(sine / 32))),.3) | |
9225 | rwing5weld.C1=clerp(rwing5weld.C1,cf(-5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(-62.5 - 15 * math.cos(sine / 32))),.3) | |
9226 | rwing6weld.C1=clerp(rwing6weld.C1,cf(-6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(-75 - 17.5 * math.cos(sine / 32))),.3) | |
9227 | sine = sine + change | |
9228 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
9229 | local velderp=RootPart.Velocity.y | |
9230 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
9231 | coroutine.resume(coroutine.create(function() | |
9232 | if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1003 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 or ModeOfGlitch == 13 then | |
9233 | if hitfloor ~= nil then | |
9234 | slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(5,50)/250,BrickColor.new("White")) | |
9235 | if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 13 then | |
9236 | slash(math.random(75,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(5,150)/250,MAINRUINCOLOR) | |
9237 | end | |
9238 | end | |
9239 | end | |
9240 | end)) | |
9241 | if equipped==true or equipped==false then | |
9242 | if attack==false then | |
9243 | idle=idle+1 | |
9244 | else | |
9245 | idle=0 | |
9246 | end | |
9247 | if idle>=500 then | |
9248 | if attack==false then | |
9249 | --Sheath() | |
9250 | end | |
9251 | end | |
9252 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
9253 | Anim="Jump" | |
9254 | if attack==false then | |
9255 | RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
9256 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1) | |
9257 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1) | |
9258 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1) | |
9259 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1) | |
9260 | LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1) | |
9261 | end | |
9262 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
9263 | Anim="Fall" | |
9264 | if attack==false then | |
9265 | RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
9266 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1) | |
9267 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(10),math.rad(0),math.rad(0)),.1) | |
9268 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1) | |
9269 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(55)),.1) | |
9270 | LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(-55)),.1) | |
9271 | end | |
9272 | elseif torvel<1 and hitfloor~=nil then | |
9273 | Anim="Idle" | |
9274 | if attack==false then | |
9275 | if ModeOfGlitch == 1 then | |
9276 | local snap = math.random(1,10) | |
9277 | if snap == 1 then | |
9278 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(-23.4 + math.random(-5,5))),1) | |
9279 | end | |
9280 | RH.C0=clerp(RH.C0,cf(1,-0.95 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(40),math.rad(83 + 2.24 *Cos(sine / 52.3)),math.rad(-24.2))*angles(math.rad(-6.37),math.rad(-22 - 2 * math.cos(sine / 56)),math.rad(3.46 - 2 * math.cos(sine / 32))),.1) | |
9281 | LH.C0=clerp(LH.C0,cf(-1,-1.15 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(40),math.rad(-78 + 2 *Cos(sine / 52)),math.rad(20))*angles(math.rad(0),math.rad(22 - 2 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1) | |
9282 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 32),0 + 0.1 * math.cos(sine / 32))*angles(math.rad(20 - 2 * math.cos(sine / 32)),math.rad(4),math.rad(20 + 2 * math.cos(sine / 56))),.1) | |
9283 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 2 * math.cos(sine / 37)),math.rad(0 + 5 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(-23.4 - 2 * math.cos(sine / 56))),.1) | |
9284 | RW.C0=clerp(RW.C0,cf(1.5,0.35 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(20 + 6 * math.cos(sine / 72)),math.rad(3 - 25.4 * math.cos(sine / .2)),math.rad(20 + 20 * math.cos(sine / 45))),.1) | |
9285 | LW.C0=clerp(LW.C0,cf(-1,0.43 + 0.025 * math.cos(sine / 45),-0.26)*angles(math.rad(148 - 2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(22 - 15.64 * math.cos(sine / .2))),.1) | |
9286 | elseif ModeOfGlitch == 2 then | |
9287 | RH.C0=clerp(RH.C0,cf(1,-1.062 - 0.05 * math.cos(sine / 32),0.2)*angles(math.rad(-20),math.rad(76 + 3 *Cos(sine / 56)),math.rad(0))*angles(math.rad(0),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1) | |
9288 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-80 + 3.43 *Cos(sine / 56.2)),math.rad(0))*angles(math.rad(-0.5),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1) | |
9289 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 42))),.1) | |
9290 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 58)),math.rad(0 + 1 * math.cos(sine / 53))),.1) | |
9291 | RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1) | |
9292 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1) | |
9293 | elseif ModeOfGlitch == 2 then | |
9294 | RH.C0=clerp(RH.C0,cf(1,-0.5 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1) | |
9295 | LH.C0=clerp(LH.C0,cf(-1,-0.5 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1) | |
9296 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sine / 32),-1 + 0.05 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 42))),.1) | |
9297 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 58)),math.rad(0 + 1 * math.cos(sine / 53))),.1) | |
9298 | RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1) | |
9299 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1) | |
9300 | elseif ModeOfGlitch == 50 then | |
9301 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-10 + 2 * math.cos(sine / 43)),math.rad(0 - 2 * math.cos(sine / 34))),.1) | |
9302 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0 + 2 * math.cos(sine / 34))),.1) | |
9303 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(10 - 2 * math.cos(sine / 43))),.1) | |
9304 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0 - 2 * math.cos(sine / 47)),math.rad(-10 + 2 * math.cos(sine / 43))),.1) | |
9305 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 + 3 * math.cos(sine / 48)),math.rad(-20 - 4 * math.cos(sine / 53)),math.rad(15 - 3 * math.cos(sine / 38))),.1) | |
9306 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-10 + 2 * math.cos(sine / 45)),math.rad(0),math.rad(-20 + 2 * math.cos(sine / 39))),.1) | |
9307 | elseif ModeOfGlitch == 5555 then --5555 | |
9308 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0.5 *Cos(sine / 56),0,1 + 0.45 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1) | |
9309 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1) | |
9310 | RH.C0=clerp(RH.C0,cf(1,-1 + 0.1 *Cos(sine / 20),0)*angles(math.rad(-20),math.rad(90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1) | |
9311 | LH.C0=clerp(LH.C0,cf(-1,-0.8 + 0.1 *Cos(sine / 20),-0.2)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1) | |
9312 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 3 * math.cos(sine / 53)),math.rad(0),math.rad(-37 + 2 * math.cos(sine / 37))),.1) | |
9313 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(23 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(38 - 3 * math.cos(sine / 57) )),.1) | |
9314 | elseif ModeOfGlitch == 1002 then | |
9315 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 - 1 * math.cos(sine / 34))),.1) | |
9316 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(20),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
9317 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-20)),.1) | |
9318 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1) | |
9319 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1) | |
9320 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1) | |
9321 | elseif ModeOfGlitch == 12 then | |
9322 | RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3 + 2 * math.cos(sine / 40)),math.rad(-15),math.rad(0 + 2 * math.cos(sine / 20))),.1) | |
9323 | LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 - 2 * math.cos(sine / 40)),math.rad(1),math.rad(0 - 2 * math.cos(sine / 20))),.1) | |
9324 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.02 * math.cos(sine / 40),0 - 0.02 * math.cos(sine / 40),-0.05 - 0.05 * math.cos(sine / 20))*angles(math.rad(0 + 2 * math.cos(sine / 20)),math.rad(0 + 2 * math.cos(sine / 40)),math.rad(30 + 3 * math.cos(sine / 40))),.1) | |
9325 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2),math.rad(0 - 7 * math.cos(sine / 40)),math.rad(-30 - 3 * math.cos(sine / 40))),.1) | |
9326 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-6 + 5 * math.cos(sine / 26)),math.rad(-10 - 6 * math.cos(sine / 24)),math.rad(13 - 5 * math.cos(sine / 34))),.1) | |
9327 | LW.C0=clerp(LW.C0,cf(-1.4,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-13 - 1 * math.cos(sine / 25)),math.rad(10 + 2 * math.cos(sine / 24)),math.rad(10 + 2 * math.cos(sine / 34))),.1) | |
9328 | elseif ModeOfGlitch == 3 then | |
9329 | local snap = math.random(1,32) | |
9330 | if snap == 1 then | |
9331 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1) | |
9332 | end | |
9333 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(80),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1) | |
9334 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-80),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1) | |
9335 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.02 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 44))),.1) | |
9336 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
9337 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 3 * math.cos(sine / 45))),.1) | |
9338 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(33 - 3 * math.cos(sine / 45))),.1) | |
9339 | elseif ModeOfGlitch == 4 then | |
9340 | local snap = math.random(1,5) | |
9341 | if snap == 1 then | |
9342 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),0.6) | |
9343 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(sine / 53) + math.random(-1,1)),math.rad(1 + 3 * math.cos(sine / 45) + math.random(-1,1))),.6) | |
9344 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(sine / 55) + math.random(-1,1)),math.rad(-3 - 3 * math.cos(sine / 45) + math.random(-1,1))),.6) | |
9345 | end | |
9346 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(25 - 2 * math.cos(sine / 32))),.1) | |
9347 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-25 + 2 * math.cos(sine / 32))),.1) | |
9348 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(25 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
9349 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
9350 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(1 + 3 * math.cos(sine / 45))),.1) | |
9351 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-3 - 3 * math.cos(sine / 45))),.1) | |
9352 | elseif ModeOfGlitch == 66 then | |
9353 | local snap = math.random(1,2) | |
9354 | if snap == 1 then | |
9355 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),0.6) | |
9356 | LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(sine / 55) + math.random(-1,1)),math.rad(15 - 3 * math.cos(sine / 45) + math.random(-1,1))),.6) | |
9357 | end | |
9358 | RH.C0=clerp(RH.C0,cf(1,-0.95 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(7.5),math.rad(80),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 - 2 * math.cos(sine / 32))),.1) | |
9359 | LH.C0=clerp(LH.C0,cf(-1,-0.95 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(7.5),math.rad(-80),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 2 * math.cos(sine / 32))),.1) | |
9360 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(7.5 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
9361 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
9362 | RW.C0=clerp(RW.C0,cf(1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(15 + 3 * math.cos(sine / 45))),.1) | |
9363 | LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(25 - 3 * math.cos(sine / 45))),.1) | |
9364 | elseif ModeOfGlitch == 5 then | |
9365 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1) | |
9366 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1) | |
9367 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1) | |
9368 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(10 + 2 * math.cos(sine / 53))),.1) | |
9369 | RW.C0=clerp(RW.C0,cf(1.2,0.5 + 0.025 * math.cos(sine / 45),.2)*angles(math.rad(-22 + 5 * math.cos(sine / 74)),math.rad(5 - 3 * math.cos(sine / 53)),math.rad(-44 + 3 * math.cos(sine / 45))),.1) | |
9370 | LW.C0=clerp(LW.C0,cf(-1.2,0.5 + 0.025 * math.cos(sine / 45),.2)*angles(math.rad(-20 - 3 * math.cos(sine / 73)),math.rad(6 - 1 * math.cos(sine / 55)),math.rad(45 - 3 * math.cos(sine / 45))),.1) | |
9371 | elseif ModeOfGlitch == 6 then | |
9372 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1) | |
9373 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1) | |
9374 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
9375 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
9376 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(14 + 5 * math.cos(sine / 32))),.1) | |
9377 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-14 - 6 * math.cos(sine / 33))),.1) | |
9378 | elseif ModeOfGlitch == 13 then | |
9379 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1) | |
9380 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1) | |
9381 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
9382 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
9383 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.35)*angles(math.rad(6 + 1 * math.cos(sine / 74)),math.rad(-14 - 1 * math.cos(sine / 53)),math.rad(-86 + 5 * math.cos(sine / 32))),.1) | |
9384 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.55)*angles(math.rad(-20 - 3 * math.cos(sine / 73)),math.rad(23 - 2.25 * math.cos(sine / 55)),math.rad(86 - 6 * math.cos(sine / 33))),.1) | |
9385 | elseif ModeOfGlitch == 8 then | |
9386 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1) | |
9387 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1) | |
9388 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-20)),.1) | |
9389 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(20 + 2 * math.cos(sine / 53))),.1) | |
9390 | RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1) | |
9391 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1) | |
9392 | elseif ModeOfGlitch == 9 then | |
9393 | sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
9394 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("Lime green"),Color3.new(0,1,0)) | |
9395 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-4 - 2 * math.cos(sine / 53)),math.rad(0 - 2 * math.cos(sine / 32))),.1) | |
9396 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(9 - 2 * math.cos(sine / 53)),math.rad(0 + 2 * math.cos(sine / 32))),.1) | |
9397 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 53))),.1) | |
9398 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(19 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
9399 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(18 - 3 * math.cos(sine / 53)),math.rad(17 + 3 * math.cos(sine / 45))),.1) | |
9400 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(-11 - 1 * math.cos(sine / 55)),math.rad(-14 - 3 * math.cos(sine / 45))),.1) | |
9401 | elseif ModeOfGlitch == 1003 then | |
9402 | local snap = math.random(1,10) | |
9403 | if snap == 1 then | |
9404 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(26 + math.random(-5,5))),1) | |
9405 | end | |
9406 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1) | |
9407 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1) | |
9408 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1) | |
9409 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1) | |
9410 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(176 + 7 * math.cos(sine / 79)),math.rad(12 - 3 * math.cos(sine / 53)),math.rad(-33 + 2 * math.cos(sine / 73))),.1) | |
9411 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(15 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-27 - 6 * math.cos(sine / 33))),.1) | |
9412 | ||
9413 | elseif ModeOfGlitch == 8889 then | |
9414 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 5 * math.cos(sine / 51))),.1) | |
9415 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 44))),.1) | |
9416 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-36)),.1) | |
9417 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(36 + 2 * math.cos(sine / 53))),.1) | |
9418 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(3 + 7 * math.cos(sine / 79)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 10 * math.cos(sine / 73))),.1) | |
9419 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(15 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-27 - 6 * math.cos(sine / 33))),.1) | |
9420 | elseif ModeOfGlitch == 1264532489 then | |
9421 | sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
9422 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-14 - 5 * math.cos(sine / 48))),.1) | |
9423 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 + 7 * math.cos(sine / 51))),.1) | |
9424 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
9425 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(21 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
9426 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(13 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(28 + 2 * math.cos(sine / 45))),.1) | |
9427 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1) | |
9428 | elseif ModeOfGlitch == 9999999921111 then --9999999921111 | |
9429 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(8 - 6 * math.cos(sine / 67)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-18 - 5 * math.cos(sine / 32))),.1) | |
9430 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-15 - 8 * math.cos(sine / 74)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(31 + 8 * math.cos(sine / 38))),.1) | |
9431 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(-21 - 2 * math.cos(sine / 32)),math.rad(8),math.rad(0)),.1) | |
9432 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 6 * math.cos(sine / 37)),math.rad(-14 + 5 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
9433 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-24 + 9 * math.cos(sine / 72)),math.rad(3 - 5 * math.cos(sine / 58)),math.rad(38 + 7 * math.cos(sine / 45))),.1) | |
9434 | LW.C0=clerp(LW.C0,cf(-0.8,0.35 + 0.025 * math.cos(sine / 45),-0.75)*angles(math.rad(160 - 2 * math.cos(sine / 66)),math.rad(5 - 8 * math.cos(sine / 59)),math.rad(87 - 3 * math.cos(sine / 45))),.1) | |
9435 | elseif ModeOfGlitch == 4367677813 then | |
9436 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 32))),.1) | |
9437 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 2 * math.cos(sine / 32))),.1) | |
9438 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(10)),.1) | |
9439 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 58)),math.rad(-10 + 2 * math.cos(sine / 53))),.1) | |
9440 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(4 + 3 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(19 + 2 * math.cos(sine / 45))),.1) | |
9441 | LW.C0=clerp(LW.C0,cf(-1.25,0.5 + 0.025 * math.cos(sine / 45),-0.15)*angles(math.rad(10 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(13 - 4 * math.cos(sine / 45))),.1) | |
9442 | elseif ModeOfGlitch == 55469696922 then --5555 | |
9443 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1) | |
9444 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1) | |
9445 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1) | |
9446 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1) | |
9447 | RW.C0=clerp(RW.C0,cf(1.2,0.5 + 0.025 * math.cos(sine / 45),.2)*angles(math.rad(-22 + 5 * math.cos(sine / 74)),math.rad(5 - 3 * math.cos(sine / 53)),math.rad(-44 + 3 * math.cos(sine / 45))),.1) | |
9448 | LW.C0=clerp(LW.C0,cf(-1.2,0.5 + 0.025 * math.cos(sine / 45),.2)*angles(math.rad(-20 - 3 * math.cos(sine / 73)),math.rad(6 - 1 * math.cos(sine / 55)),math.rad(45 - 3 * math.cos(sine / 45))),.1) | |
9449 | elseif ModeOfGlitch == 999999999556 then | |
9450 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 6 * math.cos(sine / 39))),.1) | |
9451 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 45))),.1) | |
9452 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(17)),.1) | |
9453 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(29 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(-17 + 2 * math.cos(sine / 53))),.1) | |
9454 | RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1) | |
9455 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1) | |
9456 | end | |
9457 | end | |
9458 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
9459 | Anim="Walk" | |
9460 | if attack==false and ModeOfGlitch ~= 66 then | |
9461 | RH.C0=clerp(RH.C0,cf(1,-1 + 0.2 * math.cos(sine / 4),-0.2 * math.cos(sine / 8))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1) | |
9462 | LH.C0=clerp(LH.C0,cf(-1,-1 + 0.2 * math.cos(sine / 4),0.2 * math.cos(sine / 8))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1) | |
9463 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1) | |
9464 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 5 * math.cos(sine / 8))),.1) | |
9465 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 25 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1) | |
9466 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 25 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1) | |
9467 | ||
9468 | elseif attack==false and ModeOfGlitch == 66 then | |
9469 | RH.C0=clerp(RH.C0,cf(1,-1 + 0.2 * math.cos(sine / 4),-0.45 * math.cos(sine / 8))*angles(math.rad(0),math.rad(80),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1) | |
9470 | LH.C0=clerp(LH.C0,cf(-1,-1 + 0.2 * math.cos(sine / 4),0.45 * math.cos(sine / 8))*angles(math.rad(0),math.rad(-80),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1) | |
9471 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(15 + 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1) | |
9472 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
9473 | RW.C0=clerp(RW.C0,cf(1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(15 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(15 + 3 * math.cos(sine / 45))),.1) | |
9474 | LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(15 - 3 * math.cos(sine / 45))),.1) | |
9475 | end | |
9476 | elseif torvel>=22 and hitfloor~=nil then | |
9477 | Anim="Run" | |
9478 | if attack==false then | |
9479 | if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 13 and ModeOfGlitch ~= 5555 and ModeOfGlitch ~= 1003 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 8889 then | |
9480 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1) | |
9481 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1) | |
9482 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(25 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 1 * math.cos(sine / 6))),.1) | |
9483 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-6 + 2 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 1 * math.cos(sine / 6))),.1) | |
9484 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0.3)*angles(math.rad(-50 + 10 * math.cos(sine / 3)),math.rad(-10),math.rad(7 + 5 * math.cos(sine / 6))),.1) | |
9485 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.3)*angles(math.rad(-50 + 10 * math.cos(sine / 3)),math.rad(10),math.rad(-7 - 5 * math.cos(sine / 6))),.1) | |
9486 | if ModeOfGlitch == 9 then | |
9487 | sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
9488 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("Lime green"),Color3.new(0,1,0)) | |
9489 | sphereMK(2,-0.5,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),8)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,0.5,20,-0.0075,MAINRUINCOLOR,0) | |
9490 | end | |
9491 | elseif ModeOfGlitch == 6 or ModeOfGlitch == 1003 or ModeOfGlitch == 5555 or ModeOfGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then | |
9492 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2) | |
9493 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2) | |
9494 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2) | |
9495 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2) | |
9496 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-20 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2) | |
9497 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(20 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2) | |
9498 | elseif ModeOfGlitch == 13 or ModeOfGlitch == 12 then | |
9499 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2) | |
9500 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2) | |
9501 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(40),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2) | |
9502 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2) | |
9503 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.35)*angles(math.rad(6 + 3 * math.cos(sine / 74)),math.rad(-14 - 1 * math.cos(sine / 53)),math.rad(-86 + 5 * math.cos(sine / 32))),.1) | |
9504 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.55)*angles(math.rad(-20 - 5 * math.cos(sine / 73)),math.rad(23 - 2.25 * math.cos(sine / 55)),math.rad(86 - 6 * math.cos(sine / 33))),.1) | |
9505 | end | |
9506 | end | |
9507 | end | |
9508 | end | |
9509 | end |