SHOW:
|
|
- or go back to the newest paste.
1 | - | print'i dont wanna be associated with SB anymore' |
1 | + | warn'Nebbys Star Glitcher Loaded.' |
2 | warn'All purpose switcher...' | |
3 | warn'Created by Noobygames12' | |
4 | warn'Edited by Nebula_Zorua' | |
5 | warn([[Icons: | |
6 | ! = New | |
7 | ? = Spoilers | |
8 | * = Exclusivity]]) | |
9 | print([[V 3.21 (ON PROGRESS) Update Log: | |
10 | ! - Changed Judgement back to Justice | |
11 | ! - Gave Divinity an attack named Judgement. Credit to XXUNORIB | |
12 | ! - Replaced Corruption with Glitchy | |
13 | ! - Fixed some bugs, too | |
14 | ! - Changed Chaos's "B" (Chaos Begone) to a keystroke. (ddawas) | |
15 | ]]) | |
16 | ||
17 | warn([[ | |
18 | This ISN'T NebulaGlitcher. That is a seperate script, not an edit. | |
19 | ]]) | |
20 | ||
21 | warn([[ | |
22 | CONTROLS - | |
23 | SOLITUDE (MAYHEM) - Z (Like mayhem), M | |
24 | BIG BLACK (VIOLENCE) - Z (Like mayhem) | |
25 | PURITY - Z | |
26 | GLITCHY (CORRUPTION) - Z | |
27 | CHAOS - Z, M | |
28 | INSANITY - Z | |
29 | DIVINITY - Z | |
30 | JUSTICE - Z, X | |
31 | RAINBOW - Z, U | |
32 | VAPORWAVE - Z, U (no difference except song) | |
33 | CALAMITY - Z (I borked it lol), X, M | |
34 | CATASTROPHE - Z, M | |
35 | LUST - Z, M | |
36 | ||
37 | TO UNLOCK LUST'S M: Do the keystroke wwssadad | |
38 | TO UNLOCK CALAMITY'S M: Do the keystroke wwaassdd | |
39 | TO DO CHAOS'S KILL ALL: Do the keystroke DDAWAS | |
40 | ]]) | |
41 | ||
42 | --- its obs smooth af do not touch | |
43 | ---- Sources and functions might be taken from others | |
44 | plr = game:GetService("Players").LocalPlayer | |
45 | char = plr.Character | |
46 | hum = char:FindFirstChildOfClass'Humanoid' | |
47 | local cam = game.Workspace.CurrentCamera | |
48 | local Controller = plr.PlayerScripts:WaitForChild("ControlScript") | |
49 | Camera = cam | |
50 | local CamInterrupt = false | |
51 | local TwoD = false | |
52 | local TargetInfo = {nil, nil} | |
53 | cam.CameraType = "Custom" | |
54 | t = char.Torso | |
55 | h = char.Head | |
56 | ra = char["Right Arm"] | |
57 | la = char["Left Arm"] | |
58 | rl = char["Right Leg"] | |
59 | ll = char["Left Leg"] | |
60 | tors = char.Torso | |
61 | lleg = char["Left Leg"] | |
62 | root = char.HumanoidRootPart | |
63 | hed = char.Head | |
64 | rleg = char["Right Leg"] | |
65 | rarm = char["Right Arm"] | |
66 | larm = char["Left Arm"] | |
67 | radian = math.rad | |
68 | random = math.random | |
69 | Vec3 = Vector3.new | |
70 | Inst = Instance.new | |
71 | cFrame = CFrame.new | |
72 | Euler = CFrame.fromEulerAnglesXYZ | |
73 | vt = Vector3.new | |
74 | bc = BrickColor.new | |
75 | br = BrickColor.random | |
76 | it = Instance.new | |
77 | cf = CFrame.new | |
78 | ||
79 | local ODers = {} | |
80 | ||
81 | local AllowRape = false; | |
82 | local AllowCata = false; | |
83 | ||
84 | local Booleans = { | |
85 | CamFollow = true, | |
86 | GyroUse = true | |
87 | } | |
88 | ||
89 | function lerp(object, newCFrame, alpha) | |
90 | return object:lerp(newCFrame, alpha) | |
91 | end | |
92 | ||
93 | local Directer = Inst("BodyGyro", root) | |
94 | Directer.MaxTorque = Vec3(0, 0, 0) | |
95 | Directer.P = 600000 | |
96 | local CPart = Inst("Part") | |
97 | CPart.Anchored = true | |
98 | CPart.CanCollide = false | |
99 | CPart.Locked = true | |
100 | CPart.Transparency = 1 | |
101 | ||
102 | local rainbowmode = false | |
103 | local chaosmode = false | |
104 | local glitchymode = false | |
105 | kan = Instance.new("Sound",char) | |
106 | kan.Volume = 1.25 | |
107 | kan.TimePosition = 0 | |
108 | kan.PlaybackSpeed = 1 | |
109 | kan.Pitch = 1 | |
110 | kan.SoundId = "rbxassetid://1564523997" | |
111 | kan.Name = "wrecked" | |
112 | kan.Looped = true | |
113 | kan:Play() | |
114 | ||
115 | local MID = "rbxassetid://1564523997"; | |
116 | local Pitch = 1; | |
117 | ||
118 | function newTheme(ID,timepos,pitch,vol) | |
119 | local kanz = kan | |
120 | --kanz:Stop() | |
121 | --kanz.Volume = vol | |
122 | --kanz.TimePosition = timepos | |
123 | kanz.PlaybackSpeed = pitch | |
124 | kanz.Pitch = pitch | |
125 | kanz.SoundId = ID | |
126 | kanz.Name = "wrecked" | |
127 | kanz.Looped = true | |
128 | Pitch = pitch | |
129 | MID = ID | |
130 | --kanz:Play() | |
131 | --coroutine.resume(coroutine.create(function() | |
132 | --wait(0.05) | |
133 | --end)) | |
134 | end | |
135 | ||
136 | function newThemeCust(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 | MID = ID | |
144 | kanz.SoundId = ID | |
145 | kanz.Name = "wrecked" | |
146 | kanz.Looped = true | |
147 | kanz:Play() | |
148 | coroutine.resume(coroutine.create(function() | |
149 | wait(0.05) | |
150 | end)) | |
151 | end | |
152 | ||
153 | ||
154 | ||
155 | function CameraShake(Times, Power, PlayerTarget) | |
156 | coroutine.resume(coroutine.create(function() | |
157 | FV = Instance.new("BoolValue", PlayerTarget) | |
158 | FV.Name = "CameraShake" | |
159 | for ShakeNum=1,Times do | |
160 | swait() | |
161 | local ef=Power | |
162 | if ef>=1 then | |
163 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
164 | else | |
165 | ef=Power*10 | |
166 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
167 | end | |
168 | end | |
169 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
170 | FV:Destroy() | |
171 | end)) | |
172 | end | |
173 | ||
174 | function CameraEnshaking(Length,Intensity) | |
175 | coroutine.resume(coroutine.create(function() | |
176 | local intensity = 1*Intensity | |
177 | local rotM = 0.01*Intensity | |
178 | for i = 0, Length, 0.1 do | |
179 | swait() | |
180 | intensity = intensity - 0.05*Intensity/Length | |
181 | rotM = rotM - 0.0005*Intensity/Length | |
182 | hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) | |
183 | 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) | |
184 | end | |
185 | Humanoid.CameraOffset = Vec3(0, 0, 0) | |
186 | end)) | |
187 | end | |
188 | CamShake=function(Part,Distan,Power,Times) | |
189 | local de=Part.Position | |
190 | for i,v in pairs(workspace:children()) do | |
191 | if v:IsA("Model") and v:findFirstChild("Humanoid") then | |
192 | for _,c in pairs(v:children()) do | |
193 | if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then | |
194 | local Noob=vFindFirstChildOfClass'Humanoid' | |
195 | if Noob~=nil then | |
196 | coroutine.resume(coroutine.create(function() | |
197 | FV = Instance.new("BoolValue", Noob) | |
198 | FV.Name = "CameraShake" | |
199 | for ShakeNum=1,Times do | |
200 | swait() | |
201 | local ef=Power | |
202 | if ef>=1 then | |
203 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
204 | else | |
205 | ef=Power*10 | |
206 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
207 | end | |
208 | end | |
209 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
210 | FV:Destroy() | |
211 | end)) | |
212 | CameraShake(Times, Power, Noob) | |
213 | end | |
214 | end | |
215 | end | |
216 | end | |
217 | end | |
218 | end | |
219 | ||
220 | function chatfunc(text,color) | |
221 | local chat = coroutine.wrap(function() | |
222 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
223 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
224 | end | |
225 | local naeeym2 = Instance.new("BillboardGui",Character) | |
226 | naeeym2.Size = UDim2.new(0,100,0,40) | |
227 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
228 | naeeym2.Adornee = Character.Head | |
229 | naeeym2.Name = "TalkingBillBoard" | |
230 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
231 | tecks2.BackgroundTransparency = 1 | |
232 | tecks2.BorderSizePixel = 0 | |
233 | tecks2.Text = "" | |
234 | tecks2.Font = "SciFi" | |
235 | tecks2.TextSize = 30 | |
236 | tecks2.TextStrokeTransparency = 0 | |
237 | tecks2.TextColor3 = color | |
238 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
239 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
240 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
241 | tecks3.BackgroundTransparency = 1 | |
242 | tecks3.BorderSizePixel = 0 | |
243 | tecks3.Text = "" | |
244 | tecks3.Font = "SciFi" | |
245 | tecks3.TextSize = 30 | |
246 | tecks3.TextStrokeTransparency = 0 | |
247 | tecks3.TextColor3 = Color3.new(0,0,0) | |
248 | tecks3.TextStrokeColor3 = color | |
249 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
250 | coroutine.resume(coroutine.create(function() | |
251 | while true do | |
252 | swait(1) | |
253 | if chaosmode == true then | |
254 | tecks2.TextColor3 = BrickColor.random().Color | |
255 | tecks3.TextStrokeColor3 = BrickColor.random().Color | |
256 | end | |
257 | if(glitchymode)then | |
258 | local val = math.random(1,255) | |
259 | local color = Color3.fromRGB(val,val,val) | |
260 | tecks2.TextColor3 = color | |
261 | tecks3.TextStrokeColor3 = color | |
262 | end | |
263 | tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5)) | |
264 | tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5)) | |
265 | tecks2.Rotation = math.random(-5,5) | |
266 | tecks3.Rotation = math.random(-5,5) | |
267 | end | |
268 | end)) | |
269 | for i = 1,string.len(text),1 do | |
270 | CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115) | |
271 | tecks2.Text = string.sub(text,1,i) | |
272 | tecks3.Text = string.sub(text,1,i) | |
273 | swait(1) | |
274 | end | |
275 | wait(1) | |
276 | local randomrot = math.random(1,2) | |
277 | if randomrot == 1 then | |
278 | for i = 1, 50 do | |
279 | swait() | |
280 | tecks2.Rotation = tecks2.Rotation - .75 | |
281 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
282 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
283 | tecks3.Rotation = tecks2.Rotation + .75 | |
284 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
285 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
286 | end | |
287 | elseif randomrot == 2 then | |
288 | for i = 1, 50 do | |
289 | swait() | |
290 | tecks2.Rotation = tecks2.Rotation + .75 | |
291 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
292 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
293 | tecks3.Rotation = tecks2.Rotation - .75 | |
294 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
295 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
296 | end | |
297 | end | |
298 | naeeym2:Destroy() | |
299 | end) | |
300 | chat() | |
301 | end | |
302 | ||
303 | ||
304 | local Create = LoadLibrary("RbxUtility").Create | |
305 | ||
306 | CFuncs = { | |
307 | ["Part"] = { | |
308 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
309 | local Part = Create("Part"){ | |
310 | Parent = Parent, | |
311 | Reflectance = Reflectance, | |
312 | Transparency = Transparency, | |
313 | CanCollide = false, | |
314 | Locked = true, | |
315 | BrickColor = BrickColor.new(tostring(BColor)), | |
316 | Name = Name, | |
317 | Size = Size, | |
318 | Material = Material, | |
319 | } | |
320 | RemoveOutlines(Part) | |
321 | return Part | |
322 | end; | |
323 | }; | |
324 | ||
325 | ["Mesh"] = { | |
326 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
327 | local Msh = Create(Mesh){ | |
328 | Parent = Part, | |
329 | Offset = OffSet, | |
330 | Scale = Scale, | |
331 | } | |
332 | if Mesh == "SpecialMesh" then | |
333 | Msh.MeshType = MeshType | |
334 | Msh.MeshId = MeshId | |
335 | end | |
336 | return Msh | |
337 | end; | |
338 | }; | |
339 | ||
340 | ["Mesh"] = { | |
341 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
342 | local Msh = Create(Mesh){ | |
343 | Parent = Part, | |
344 | Offset = OffSet, | |
345 | Scale = Scale, | |
346 | } | |
347 | if Mesh == "SpecialMesh" then | |
348 | Msh.MeshType = MeshType | |
349 | Msh.MeshId = MeshId | |
350 | end | |
351 | return Msh | |
352 | end; | |
353 | }; | |
354 | ||
355 | ["Weld"] = { | |
356 | Create = function(Parent, Part0, Part1, C0, C1) | |
357 | local Weld = Create("Weld"){ | |
358 | Parent = Parent, | |
359 | Part0 = Part0, | |
360 | Part1 = Part1, | |
361 | C0 = C0, | |
362 | C1 = C1, | |
363 | } | |
364 | return Weld | |
365 | end; | |
366 | }; | |
367 | ||
368 | ["Sound"] = { | |
369 | Create = function(id, par, vol, pit) | |
370 | return coroutine.wrap(function() | |
371 | local S = Create("Sound"){ | |
372 | Volume = vol, | |
373 | Name = "EffectSoundo", | |
374 | Pitch = pit or 1, | |
375 | SoundId = id, | |
376 | Parent = par or workspace, | |
377 | } | |
378 | S:Play() | |
379 | S.Ended:connect(function() | |
380 | S:Destroy() | |
381 | end) | |
382 | return S; | |
383 | end)() | |
384 | end; | |
385 | }; | |
386 | ||
387 | ["LongSound"] = { | |
388 | Create = function(id, par, vol, pit) | |
389 | coroutine.resume(coroutine.create(function() | |
390 | local S = Create("Sound"){ | |
391 | Volume = vol, | |
392 | Pitch = pit or 1, | |
393 | SoundId = id, | |
394 | Parent = par or workspace, | |
395 | } | |
396 | wait() | |
397 | S:play() | |
398 | game:GetService("Debris"):AddItem(S, 30) | |
399 | end)) | |
400 | end; | |
401 | }; | |
402 | ||
403 | ["ParticleEmitter"] = { | |
404 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
405 | local fp = Create("ParticleEmitter"){ | |
406 | Parent = Parent, | |
407 | Color = ColorSequence.new(Color1, Color2), | |
408 | LightEmission = LightEmission, | |
409 | Size = Size, | |
410 | Texture = Texture, | |
411 | Transparency = Transparency, | |
412 | ZOffset = ZOffset, | |
413 | Acceleration = Accel, | |
414 | Drag = Drag, | |
415 | LockedToPart = LockedToPart, | |
416 | VelocityInheritance = VelocityInheritance, | |
417 | EmissionDirection = EmissionDirection, | |
418 | Enabled = Enabled, | |
419 | Lifetime = LifeTime, | |
420 | Rate = Rate, | |
421 | Rotation = Rotation, | |
422 | RotSpeed = RotSpeed, | |
423 | Speed = Speed, | |
424 | VelocitySpread = VelocitySpread, | |
425 | } | |
426 | return fp | |
427 | end; | |
428 | }; | |
429 | ||
430 | CreateTemplate = { | |
431 | ||
432 | }; | |
433 | } | |
434 | ||
435 | ||
436 | ||
437 | New = function(Object, Parent, Name, Data) | |
438 | local Object = Instance.new(Object) | |
439 | for Index, Value in pairs(Data or {}) do | |
440 | Object[Index] = Value | |
441 | end | |
442 | Object.Parent = Parent | |
443 | Object.Name = Name | |
444 | return Object | |
445 | end | |
446 | local halocolor = BrickColor.new("Pastel light blue") | |
447 | local halocolor2 = BrickColor.new("Cool yellow") | |
448 | local starcolor = BrickColor.new("Bright yellow") | |
449 | local lunacolor = BrickColor.new("Navy blue") | |
450 | local lunacolor2 = BrickColor.new("Bright blue") | |
451 | local wepcolor = BrickColor.new("Really black") | |
452 | local maincolor = BrickColor.new("Really black") | |
453 | local m = Instance.new("Model",char) | |
454 | local m2 = Instance.new("Model",char) | |
455 | local m3 = Instance.new("Model",char) | |
456 | local mw1 = Instance.new("Model",char) | |
457 | local mw2 = Instance.new("Model",char) | |
458 | ||
459 | local extrawingmod1 = Instance.new("Model",char) | |
460 | local extrawingmod2 = Instance.new("Model",char) | |
461 | ||
462 | function CreateParta(parent,transparency,reflectance,material,brickcolor) | |
463 | local p = Instance.new("Part") | |
464 | p.TopSurface = 0 | |
465 | p.BottomSurface = 0 | |
466 | p.Parent = parent | |
467 | p.Size = Vector3.new(0.1,0.1,0.1) | |
468 | p.Transparency = transparency | |
469 | p.Reflectance = reflectance | |
470 | p.CanCollide = false | |
471 | p.Locked = true | |
472 | p.BrickColor = brickcolor | |
473 | p.Material = material | |
474 | return p | |
475 | end | |
476 | ||
477 | function CreateMesh(parent,meshtype,x1,y1,z1) | |
478 | local mesh = Instance.new("SpecialMesh",parent) | |
479 | mesh.MeshType = meshtype | |
480 | mesh.Scale = Vector3.new(x1*10,y1*10,z1*10) | |
481 | return mesh | |
482 | end | |
483 | ||
484 | function CreateSpecialMesh(parent,meshid,x1,y1,z1) | |
485 | local mesh = Instance.new("SpecialMesh",parent) | |
486 | mesh.MeshType = "FileMesh" | |
487 | mesh.MeshId = meshid | |
488 | mesh.Scale = Vector3.new(x1,y1,z1) | |
489 | return mesh | |
490 | end | |
491 | ||
492 | ||
493 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
494 | local mesh = Instance.new("SpecialMesh",parent) | |
495 | mesh.MeshType = "FileMesh" | |
496 | mesh.MeshId = meshid | |
497 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
498 | mesh.Scale = Vector3.new(x1,y1,z1) | |
499 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
500 | return mesh | |
501 | end | |
502 | ||
503 | --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)) | |
504 | ||
505 | ||
506 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
507 | local weld = Instance.new("Weld") | |
508 | weld.Parent = parent | |
509 | weld.Part0 = part0 | |
510 | weld.Part1 = part1 | |
511 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
512 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
513 | return weld | |
514 | end | |
515 | ||
516 | local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
517 | 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)) | |
518 | local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
519 | 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)) | |
520 | ||
521 | local handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
522 | CreateMesh(handle,"Brick",0,0,0) | |
523 | 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)) | |
524 | local valuaring = 10 | |
525 | for i = 0, 49 do | |
526 | valuaring = valuaring + 10 | |
527 | rn = CreateParta(mw2,0,0,"Neon",halocolor) | |
528 | CreateMesh(rn,"Brick",0.25,0.1,0.1) | |
529 | 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)) | |
530 | end | |
531 | ||
532 | handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
533 | CreateMesh(handle,"Brick",0,0,0) | |
534 | 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)) | |
535 | local valuaring = 10 | |
536 | for i = 0, 49 do | |
537 | valuaring = valuaring + 10 | |
538 | rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
539 | CreateMesh(rn,"Brick",0.5,0.2,0.2) | |
540 | 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)) | |
541 | end | |
542 | ||
543 | ||
544 | local handle = CreateParta(m,1,1,"Neon",maincolor) | |
545 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
546 | 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)) | |
547 | ||
548 | --- Left wing. | |
549 | ||
550 | local lwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
551 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
552 | 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)) | |
553 | ||
554 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
555 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
556 | 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)) | |
557 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
558 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
559 | 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)) | |
560 | A0 = Instance.new('Attachment',wed) | |
561 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
562 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
563 | 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)) | |
564 | A1 = Instance.new('Attachment',wed) | |
565 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
566 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
567 | 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)) | |
568 | ||
569 | tl1 = Instance.new('Trail',wed) | |
570 | tl1.Attachment0 = A0 | |
571 | tl1.Attachment1 = A1 | |
572 | --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
573 | tl1.LightEmission = 1 | |
574 | tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
575 | tl1.Color = ColorSequence.new(BrickColor.new('Black').Color) | |
576 | tl1.Lifetime = 0.6 | |
577 | ||
578 | ||
579 | local lwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
580 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
581 | 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)) | |
582 | ||
583 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
584 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
585 | 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)) | |
586 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
587 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
588 | 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)) | |
589 | A0 = Instance.new('Attachment',wed) | |
590 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
591 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
592 | 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)) | |
593 | A1 = Instance.new('Attachment',wed) | |
594 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
595 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
596 | 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)) | |
597 | ||
598 | tl2 = Instance.new('Trail',wed) | |
599 | tl2.Attachment0 = A0 | |
600 | tl2.Attachment1 = A1 | |
601 | --tl2.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
602 | tl2.LightEmission = 1 | |
603 | tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
604 | tl2.Color = ColorSequence.new(BrickColor.new('Black').Color) | |
605 | tl2.Lifetime = 0.6 | |
606 | ||
607 | local lwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
608 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
609 | 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)) | |
610 | ||
611 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
612 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
613 | 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)) | |
614 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
615 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
616 | 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)) | |
617 | A0 = Instance.new('Attachment',wed) | |
618 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
619 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
620 | 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)) | |
621 | A1 = Instance.new('Attachment',wed) | |
622 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
623 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
624 | 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)) | |
625 | ||
626 | tl3 = Instance.new('Trail',wed) | |
627 | tl3.Attachment0 = A0 | |
628 | tl3.Attachment1 = A1 | |
629 | --tl3.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
630 | tl3.LightEmission = 1 | |
631 | tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
632 | tl3.Color = ColorSequence.new(BrickColor.new('Black').Color) | |
633 | tl3.Lifetime = 0.6 | |
634 | ||
635 | tl1.Enabled = false | |
636 | tl2.Enabled = false | |
637 | tl3.Enabled = false | |
638 | local lwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
639 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
640 | 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)) | |
641 | ||
642 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
643 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
644 | 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)) | |
645 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
646 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
647 | 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)) | |
648 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
649 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
650 | 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)) | |
651 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
652 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
653 | 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)) | |
654 | ||
655 | local lwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
656 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
657 | 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)) | |
658 | ||
659 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
660 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
661 | 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)) | |
662 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
663 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
664 | 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)) | |
665 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
666 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
667 | 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)) | |
668 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
669 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
670 | 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)) | |
671 | ||
672 | local lwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
673 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
674 | 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)) | |
675 | ||
676 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
677 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
678 | 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)) | |
679 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
680 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
681 | 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)) | |
682 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
683 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
684 | 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)) | |
685 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
686 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
687 | 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)) | |
688 | ||
689 | -- Right wing. | |
690 | ||
691 | local rwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
692 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
693 | 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)) | |
694 | ||
695 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
696 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
697 | 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)) | |
698 | A0 = Instance.new('Attachment',wed) | |
699 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
700 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
701 | 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)) | |
702 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
703 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
704 | 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)) | |
705 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
706 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
707 | 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)) | |
708 | A1 = Instance.new('Attachment',wed) | |
709 | ||
710 | tr1 = Instance.new('Trail',wed) | |
711 | tr1.Attachment0 = A0 | |
712 | tr1.Attachment1 = A1 | |
713 | --tr1.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
714 | tr1.LightEmission = 1 | |
715 | tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
716 | tr1.Color = ColorSequence.new(BrickColor.new('Black').Color) | |
717 | tr1.Lifetime = 0.6 | |
718 | ||
719 | local rwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
720 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
721 | 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)) | |
722 | ||
723 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
724 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
725 | 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)) | |
726 | A0 = Instance.new('Attachment',wed) | |
727 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
728 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
729 | 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)) | |
730 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
731 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
732 | 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)) | |
733 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
734 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
735 | 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)) | |
736 | A1 = Instance.new('Attachment',wed) | |
737 | ||
738 | tr2 = Instance.new('Trail',wed) | |
739 | tr2.Attachment0 = A0 | |
740 | tr2.Attachment1 = A1 | |
741 | --tr2.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
742 | tr2.LightEmission = 1 | |
743 | tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
744 | tr2.Color = ColorSequence.new(BrickColor.new('Black').Color) | |
745 | tr2.Lifetime = 0.6 | |
746 | ||
747 | local rwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
748 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
749 | 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)) | |
750 | ||
751 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
752 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
753 | 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)) | |
754 | A0 = Instance.new('Attachment',wed) | |
755 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
756 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
757 | 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)) | |
758 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
759 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
760 | 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)) | |
761 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
762 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
763 | 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)) | |
764 | A1 = Instance.new('Attachment',wed) | |
765 | ||
766 | tr3 = Instance.new('Trail',wed) | |
767 | tr3.Attachment0 = A0 | |
768 | tr3.Attachment1 = A1 | |
769 | --tr3.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
770 | tr3.LightEmission = 1 | |
771 | tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
772 | tr3.Color = ColorSequence.new(BrickColor.new('Black').Color) | |
773 | tr3.Lifetime = 0.6 | |
774 | ||
775 | ||
776 | local rwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
777 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
778 | 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)) | |
779 | ||
780 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
781 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
782 | 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)) | |
783 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
784 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
785 | 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)) | |
786 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
787 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
788 | 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)) | |
789 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
790 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
791 | 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)) | |
792 | ||
793 | local rwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
794 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
795 | 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)) | |
796 | ||
797 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
798 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
799 | 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)) | |
800 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
801 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
802 | 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)) | |
803 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
804 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
805 | 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)) | |
806 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
807 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
808 | 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)) | |
809 | ||
810 | local rwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
811 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
812 | 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)) | |
813 | ||
814 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
815 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
816 | 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)) | |
817 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
818 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
819 | 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)) | |
820 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
821 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
822 | 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)) | |
823 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
824 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
825 | 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)) | |
826 | ||
827 | ---- HERES THE RING | |
828 | ||
829 | ||
830 | --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) | |
831 | CreateMesh(ran,"Wedge",1.02,1.02,1.02) | |
832 | 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)) | |
833 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
834 | CreateMesh(ran,"Wedge",0.9,0.9,1.025) | |
835 | 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)) | |
836 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
837 | CreateMesh(ran,"Wedge",1.025,0.9,0.9) | |
838 | 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)) | |
839 | ||
840 | ||
841 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
842 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
843 | 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)) | |
844 | ||
845 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
846 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
847 | 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)) | |
848 | ||
849 | ||
850 | ||
851 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
852 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
853 | 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)) | |
854 | ||
855 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
856 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
857 | 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)) | |
858 | ||
859 | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) | |
860 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
861 | 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)) | |
862 | ||
863 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
864 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
865 | 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)) | |
866 | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) | |
867 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
868 | 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)) | |
869 | ||
870 | -- S section A | |
871 | ||
872 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
873 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
874 | CreateWeld(dotsec,larm,dotsec,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
875 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
876 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
877 | CreateWeld(dotseca,larm,dotseca,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
878 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
879 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
880 | CreateWeld(dotsecb,larm,dotsecb,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
881 | ||
882 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
883 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
884 | CreateWeld(dotsec,larm,dotsec,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
885 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
886 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
887 | CreateWeld(dotseca,larm,dotseca,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
888 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
889 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
890 | CreateWeld(dotsecb,larm,dotsecb,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
891 | ||
892 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
893 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
894 | CreateWeld(dotsec,larm,dotsec,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
895 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
896 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
897 | CreateWeld(dotseca,larm,dotseca,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
898 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
899 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
900 | CreateWeld(dotsecb,larm,dotsecb,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
901 | ||
902 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
903 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
904 | CreateWeld(dotsec,larm,dotsec,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
905 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
906 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
907 | CreateWeld(dotseca,larm,dotseca,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
908 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
909 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
910 | CreateWeld(dotsecb,larm,dotsecb,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
911 | ||
912 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
913 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
914 | CreateWeld(dotsec,larm,dotsec,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
915 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
916 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
917 | CreateWeld(dotseca,larm,dotseca,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
918 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
919 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
920 | CreateWeld(dotsecb,larm,dotsecb,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
921 | ||
922 | -- S section B | |
923 | ||
924 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
925 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
926 | CreateWeld(dotsec,larm,dotsec,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
927 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
928 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
929 | CreateWeld(dotseca,larm,dotseca,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
930 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
931 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
932 | CreateWeld(dotsecb,larm,dotsecb,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
933 | ||
934 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
935 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
936 | CreateWeld(dotsec,larm,dotsec,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
937 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
938 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
939 | CreateWeld(dotseca,larm,dotseca,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
940 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
941 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
942 | CreateWeld(dotsecb,larm,dotsecb,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
943 | ||
944 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
945 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
946 | CreateWeld(dotsec,larm,dotsec,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
947 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
948 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
949 | CreateWeld(dotseca,larm,dotseca,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
950 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
951 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
952 | CreateWeld(dotsecb,larm,dotsecb,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
953 | ||
954 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
955 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
956 | CreateWeld(dotsec,larm,dotsec,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
957 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
958 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
959 | CreateWeld(dotseca,larm,dotseca,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
960 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
961 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
962 | CreateWeld(dotsecb,larm,dotsecb,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
963 | ||
964 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
965 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
966 | CreateWeld(dotsec,larm,dotsec,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
967 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
968 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
969 | CreateWeld(dotseca,larm,dotseca,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
970 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
971 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
972 | CreateWeld(dotsecb,larm,dotsecb,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
973 | ||
974 | --- second ring | |
975 | ||
976 | ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) | |
977 | CreateMesh(ran,"Wedge",1.02,1.02,1.02) | |
978 | CreateWeld(ran,rarm,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)) | |
979 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
980 | CreateMesh(ran,"Wedge",0.9,0.9,1.025) | |
981 | CreateWeld(ran,rarm,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)) | |
982 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
983 | CreateMesh(ran,"Wedge",1.025,0.9,0.9) | |
984 | CreateWeld(ran,rarm,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)) | |
985 | ||
986 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
987 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
988 | 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)) | |
989 | ||
990 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
991 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
992 | 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)) | |
993 | ||
994 | ||
995 | ||
996 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
997 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
998 | 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)) | |
999 | ||
1000 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
1001 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
1002 | 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)) | |
1003 | ||
1004 | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) | |
1005 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
1006 | 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)) | |
1007 | ||
1008 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1009 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
1010 | 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)) | |
1011 | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) | |
1012 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
1013 | 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)) | |
1014 | ||
1015 | -- S section A | |
1016 | ||
1017 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1018 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1019 | CreateWeld(dotsec,rarm,dotsec,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1020 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1021 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1022 | CreateWeld(dotseca,rarm,dotseca,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1023 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1024 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1025 | CreateWeld(dotsecb,rarm,dotsecb,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1026 | ||
1027 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1028 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1029 | CreateWeld(dotsec,rarm,dotsec,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1030 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1031 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1032 | CreateWeld(dotseca,rarm,dotseca,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1033 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1034 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1035 | CreateWeld(dotsecb,rarm,dotsecb,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1036 | ||
1037 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1038 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1039 | CreateWeld(dotsec,rarm,dotsec,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1040 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1041 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1042 | CreateWeld(dotseca,rarm,dotseca,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1043 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1044 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1045 | CreateWeld(dotsecb,rarm,dotsecb,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1046 | ||
1047 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1048 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1049 | CreateWeld(dotsec,rarm,dotsec,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1050 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1051 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1052 | CreateWeld(dotseca,rarm,dotseca,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1053 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1054 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1055 | CreateWeld(dotsecb,rarm,dotsecb,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1056 | ||
1057 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1058 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1059 | CreateWeld(dotsec,rarm,dotsec,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1060 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1061 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1062 | CreateWeld(dotseca,rarm,dotseca,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1063 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1064 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1065 | CreateWeld(dotsecb,rarm,dotsecb,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1066 | ||
1067 | -- S section B | |
1068 | ||
1069 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1070 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1071 | CreateWeld(dotsec,rarm,dotsec,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1072 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1073 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1074 | CreateWeld(dotseca,rarm,dotseca,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1075 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1076 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1077 | CreateWeld(dotsecb,rarm,dotsecb,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1078 | ||
1079 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1080 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1081 | CreateWeld(dotsec,rarm,dotsec,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1082 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1083 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1084 | CreateWeld(dotseca,rarm,dotseca,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1085 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1086 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1087 | CreateWeld(dotsecb,rarm,dotsecb,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1088 | ||
1089 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1090 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1091 | CreateWeld(dotsec,rarm,dotsec,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1092 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1093 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1094 | CreateWeld(dotseca,rarm,dotseca,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1095 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1096 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1097 | CreateWeld(dotsecb,rarm,dotsecb,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1098 | ||
1099 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1100 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1101 | CreateWeld(dotsec,rarm,dotsec,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1102 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1103 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1104 | CreateWeld(dotseca,rarm,dotseca,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1105 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1106 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1107 | CreateWeld(dotsecb,rarm,dotsecb,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1108 | ||
1109 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1110 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1111 | CreateWeld(dotsec,rarm,dotsec,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1112 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1113 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1114 | CreateWeld(dotseca,rarm,dotseca,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1115 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1116 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1117 | CreateWeld(dotsecb,rarm,dotsecb,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]-- | |
1118 | ||
1119 | ||
1120 | for i, v in pairs(m:GetChildren()) do | |
1121 | if v:IsA("Part") then | |
1122 | v.BrickColor = BrickColor.new("Really black") | |
1123 | v.Material = "Glass" | |
1124 | end | |
1125 | end | |
1126 | for i, v in pairs(m2:GetChildren()) do | |
1127 | if v:IsA("Part") then | |
1128 | v.BrickColor = BrickColor.new("Dark stone grey") | |
1129 | v.Material = "Granite" | |
1130 | end | |
1131 | end | |
1132 | for i, v in pairs(m3:GetChildren()) do | |
1133 | if v:IsA("Part") then | |
1134 | v.BrickColor = BrickColor.new("Really black") | |
1135 | v.Material = "Neon" | |
1136 | end | |
1137 | end | |
1138 | for i, v in pairs(mw2:GetChildren()) do | |
1139 | if v:IsA("Part") then | |
1140 | v.BrickColor = BrickColor.new("Really black") | |
1141 | v.Material = "Neon" | |
1142 | end | |
1143 | end | |
1144 | for i, v in pairs(mw1:GetChildren()) do | |
1145 | if v:IsA("Part") then | |
1146 | v.Transparency = 1 | |
1147 | v.BrickColor = BrickColor.new("Really black") | |
1148 | v.Material = "Neon" | |
1149 | end | |
1150 | end | |
1151 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
1152 | if v:IsA("Part") then | |
1153 | v.Transparency = 1 | |
1154 | v.BrickColor = BrickColor.new("White") | |
1155 | v.Material = "Neon" | |
1156 | end | |
1157 | end | |
1158 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
1159 | if v:IsA("Part") then | |
1160 | v.Transparency = 1 | |
1161 | v.BrickColor = BrickColor.new("White") | |
1162 | v.Material = "Neon" | |
1163 | end | |
1164 | end | |
1165 | local MAINRUINCOLOR = BrickColor.new("Really black") | |
1166 | ------ | |
1167 | ||
1168 | ||
1169 | function RemoveOutlines(part) | |
1170 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
1171 | end | |
1172 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
1173 | local Part = Create("Part")({ | |
1174 | Parent = Parent, | |
1175 | Reflectance = Reflectance, | |
1176 | Transparency = Transparency, | |
1177 | CanCollide = false, | |
1178 | Locked = true, | |
1179 | BrickColor = BrickColor.new(tostring(BColor)), | |
1180 | Name = Name, | |
1181 | Size = Size, | |
1182 | Material = Material | |
1183 | }) | |
1184 | Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
1185 | RemoveOutlines(Part) | |
1186 | return Part | |
1187 | end | |
1188 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
1189 | local Msh = Create(Mesh)({ | |
1190 | Parent = Part, | |
1191 | Offset = OffSet, | |
1192 | Scale = Scale | |
1193 | }) | |
1194 | if Mesh == "SpecialMesh" then | |
1195 | Msh.MeshType = MeshType | |
1196 | Msh.MeshId = MeshId | |
1197 | end | |
1198 | return Msh | |
1199 | end | |
1200 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
1201 | local Weld = Create("Weld")({ | |
1202 | Parent = Parent, | |
1203 | Part0 = Part0, | |
1204 | Part1 = Part1, | |
1205 | C0 = C0, | |
1206 | C1 = C1 | |
1207 | }) | |
1208 | return Weld | |
1209 | end | |
1210 | ||
1211 | Player=game:GetService("Players").LocalPlayer | |
1212 | Character=Player.Character | |
1213 | PlayerGui=Player.PlayerGui | |
1214 | Backpack=Player.Backpack | |
1215 | Torso=Character.Torso | |
1216 | Head=Character.Head | |
1217 | Humanoid=Character:FindFirstChildOfClass'Humanoid' | |
1218 | m=Instance.new('Model',Character) | |
1219 | LeftArm=Character["Left Arm"] | |
1220 | LeftLeg=Character["Left Leg"] | |
1221 | RightArm=Character["Right Arm"] | |
1222 | RightLeg=Character["Right Leg"] | |
1223 | LS=Torso["Left Shoulder"] | |
1224 | LH=Torso["Left Hip"] | |
1225 | RS=Torso["Right Shoulder"] | |
1226 | RH=Torso["Right Hip"] | |
1227 | Face = Head.face | |
1228 | Neck=Torso.Neck | |
1229 | it=Instance.new | |
1230 | attacktype=1 | |
1231 | vt=Vector3.new | |
1232 | cf=CFrame.new | |
1233 | euler=CFrame.fromEulerAnglesXYZ | |
1234 | angles=CFrame.Angles | |
1235 | cloaked=false | |
1236 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
1237 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
1238 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
1239 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
1240 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
1241 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
1242 | RootPart=Character.HumanoidRootPart | |
1243 | RootJoint=RootPart.RootJoint | |
1244 | RootCF=euler(-1.57,0,3.14) | |
1245 | attack = false | |
1246 | attackdebounce = false | |
1247 | deb=false | |
1248 | equipped=true | |
1249 | hand=false | |
1250 | MMouse=nil | |
1251 | combo=0 | |
1252 | mana=0 | |
1253 | trispeed=.2 | |
1254 | attackmode='none' | |
1255 | local idle=0 | |
1256 | local Anim="Idle" | |
1257 | local Effects={} | |
1258 | local gun=false | |
1259 | local shoot=false | |
1260 | local sine = 0 | |
1261 | local change = 1 | |
1262 | player=nil | |
1263 | pcall(function()char.LeftWing:destroy()end) | |
1264 | pcall(function()char.Halo:destroy()end) | |
1265 | local toggleTag = true | |
1266 | local txt = Instance.new("BillboardGui", Head) | |
1267 | txt.Adornee = nil | |
1268 | txt.Name = "NameDetect" | |
1269 | txt.Size = UDim2.new(4, 0, 1.2, 0) | |
1270 | txt.StudsOffset = Vector3.new(-8, 8/1.5, 0) | |
1271 | local text = Instance.new("TextLabel", txt) | |
1272 | text.Size = UDim2.new(10/2, 0, 7/2, 0) | |
1273 | text.FontSize = "Size8" | |
1274 | text.TextScaled = true | |
1275 | text.TextTransparency = 0 | |
1276 | text.BackgroundTransparency = 1 | |
1277 | text.TextTransparency = 0 | |
1278 | text.TextStrokeTransparency = 0 | |
1279 | text.Font = "Fantasy" | |
1280 | text.TextStrokeColor3 = Color3.new(1,1,1) | |
1281 | text.TextColor3 = Color3.new(0,0,0) | |
1282 | text.Text = "Solitude" | |
1283 | ||
1284 | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'Really red' end) | |
1285 | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'Really red' end) | |
1286 | ||
1287 | function RecolorTextAndRename(name,col1,col2) | |
1288 | text.TextStrokeColor3 = col2 | |
1289 | text.TextColor3 = col1 | |
1290 | text.Text = name | |
1291 | end | |
1292 | mouse=Player:GetMouse() | |
1293 | --save shoulders | |
1294 | RSH, LSH=nil, nil | |
1295 | --welds | |
1296 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
1297 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
1298 | LH=Torso["Left Hip"] | |
1299 | RH=Torso["Right Hip"] | |
1300 | TorsoColor=Torso.BrickColor | |
1301 | function NoOutline(Part) | |
1302 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
1303 | end | |
1304 | player=Player | |
1305 | ch=Character | |
1306 | RSH=ch.Torso["Right Shoulder"] | |
1307 | LSH=ch.Torso["Left Shoulder"] | |
1308 | -- | |
1309 | RSH.Parent=nil | |
1310 | LSH.Parent=nil | |
1311 | -- | |
1312 | RW.Name="Right Shoulder" | |
1313 | RW.Part0=ch.Torso | |
1314 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
1315 | RW.C1=cf(0, 0.5, 0) | |
1316 | RW.Part1=ch["Right Arm"] | |
1317 | RW.Parent=ch.Torso | |
1318 | -- | |
1319 | LW.Name="Left Shoulder" | |
1320 | LW.Part0=ch.Torso | |
1321 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
1322 | LW.C1=cf(0, 0.5, 0) | |
1323 | LW.Part1=ch["Left Arm"] | |
1324 | LW.Parent=ch.Torso | |
1325 | ||
1326 | local Stats=Instance.new("BoolValue") | |
1327 | Stats.Name="Stats" | |
1328 | Stats.Parent=Character | |
1329 | local Atk=Instance.new("NumberValue") | |
1330 | Atk.Name="Damage" | |
1331 | Atk.Parent=Stats | |
1332 | Atk.Value=1 | |
1333 | local Def=Instance.new("NumberValue") | |
1334 | Def.Name="Defense" | |
1335 | Def.Parent=Stats | |
1336 | Def.Value=1 | |
1337 | local Speed=Instance.new("NumberValue") | |
1338 | Speed.Name="Speed" | |
1339 | Speed.Parent=Stats | |
1340 | Speed.Value=1 | |
1341 | local Mvmt=Instance.new("NumberValue") | |
1342 | Mvmt.Name="Movement" | |
1343 | Mvmt.Parent=Stats | |
1344 | Mvmt.Value=1 | |
1345 | ||
1346 | local donum=0 | |
1347 | ||
1348 | ||
1349 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
1350 | local fp=it("Part") | |
1351 | fp.formFactor=formfactor | |
1352 | fp.Parent=parent | |
1353 | fp.Reflectance=reflectance | |
1354 | fp.Transparency=transparency | |
1355 | fp.CanCollide=false | |
1356 | fp.Locked=true | |
1357 | fp.BrickColor=brickcolor | |
1358 | fp.Name=name | |
1359 | fp.Size=size | |
1360 | fp.Position=Torso.Position | |
1361 | NoOutline(fp) | |
1362 | fp.Material="SmoothPlastic" | |
1363 | fp:BreakJoints() | |
1364 | return fp | |
1365 | end | |
1366 | ||
1367 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
1368 | local mesh=it(Mesh) | |
1369 | mesh.Parent=part | |
1370 | if Mesh=="SpecialMesh" then | |
1371 | mesh.MeshType=meshtype | |
1372 | if meshid~="nil" then | |
1373 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
1374 | end | |
1375 | end | |
1376 | mesh.Offset=offset | |
1377 | mesh.Scale=scale | |
1378 | return mesh | |
1379 | end | |
1380 | ||
1381 | function weld(parent,part0,part1,c0) | |
1382 | local weld=it("Weld") | |
1383 | weld.Parent=parent | |
1384 | weld.Part0=part0 | |
1385 | weld.Part1=part1 | |
1386 | weld.C0=c0 | |
1387 | return weld | |
1388 | end | |
1389 | ||
1390 | local Color1=Torso.BrickColor | |
1391 | ||
1392 | local bodvel=Instance.new("BodyVelocity") | |
1393 | local bg=Instance.new("BodyGyro") | |
1394 | ||
1395 | --// Artificial HB \\-- | |
1396 | ||
1397 | local ArtificialHB = Instance.new("BindableEvent", script) | |
1398 | ArtificialHB.Name = "Heartbeat" | |
1399 | ||
1400 | script:WaitForChild("Heartbeat") | |
1401 | ||
1402 | local tf = 0 | |
1403 | local allowframeloss = false | |
1404 | local tossremainder = false | |
1405 | local lastframe = tick() | |
1406 | local frame = 1/60 | |
1407 | ArtificialHB:Fire() | |
1408 | ||
1409 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
1410 | tf = tf + s | |
1411 | if tf >= frame then | |
1412 | if allowframeloss then | |
1413 | script.Heartbeat:Fire() | |
1414 | lastframe = tick() | |
1415 | else | |
1416 | for i = 1, math.floor(tf / frame) do | |
1417 | ArtificialHB:Fire() | |
1418 | end | |
1419 | lastframe = tick() | |
1420 | end | |
1421 | if tossremainder then | |
1422 | tf = 0 | |
1423 | else | |
1424 | tf = tf - frame * math.floor(tf / frame) | |
1425 | end | |
1426 | end | |
1427 | end) | |
1428 | ||
1429 | function swait(num) | |
1430 | if num == 0 or num == nil then | |
1431 | ArtificialHB.Event:wait() | |
1432 | else | |
1433 | for i = 0, num do | |
1434 | ArtificialHB.Event:wait() | |
1435 | end | |
1436 | end | |
1437 | end | |
1438 | ||
1439 | -------- RAINBOW LEAVE IT TO ME | |
1440 | local r = 255 | |
1441 | local g = 0 | |
1442 | local b = 0 | |
1443 | coroutine.resume(coroutine.create(function() | |
1444 | while wait() do | |
1445 | for i = 0, 254/5 do | |
1446 | swait() | |
1447 | g = g + 5 | |
1448 | end | |
1449 | for i = 0, 254/5 do | |
1450 | swait() | |
1451 | r = r - 5 | |
1452 | end | |
1453 | for i = 0, 254/5 do | |
1454 | swait() | |
1455 | b = b + 5 | |
1456 | end | |
1457 | for i = 0, 254/5 do | |
1458 | swait() | |
1459 | g = g - 5 | |
1460 | end | |
1461 | for i = 0, 254/5 do | |
1462 | swait() | |
1463 | r = r + 5 | |
1464 | end | |
1465 | for i = 0, 254/5 do | |
1466 | swait() | |
1467 | b = b - 5 | |
1468 | end | |
1469 | end | |
1470 | end)) | |
1471 | ||
1472 | ||
1473 | so = function(id,par,vol,pit) | |
1474 | coroutine.resume(coroutine.create(function() | |
1475 | local sou = Instance.new("Sound",par or workspace) | |
1476 | sou.Volume=vol | |
1477 | sou.Pitch=pit or 1 | |
1478 | sou.SoundId=id | |
1479 | swait() | |
1480 | sou:play() | |
1481 | game:GetService("Debris"):AddItem(sou,6) | |
1482 | end)) | |
1483 | end | |
1484 | ||
1485 | function clerp(a,b,t) | |
1486 | return a:lerp(b,t) | |
1487 | end | |
1488 | ||
1489 | local function CFrameFromTopBack(at, top, back) | |
1490 | local right = top:Cross(back) | |
1491 | return CFrame.new(at.x, at.y, at.z, | |
1492 | right.x, top.x, back.x, | |
1493 | right.y, top.y, back.y, | |
1494 | right.z, top.z, back.z) | |
1495 | end | |
1496 | ||
1497 | function Triangle(a, b, c) | |
1498 | local edg1 = (c-a):Dot((b-a).unit) | |
1499 | local edg2 = (a-b):Dot((c-b).unit) | |
1500 | local edg3 = (b-c):Dot((a-c).unit) | |
1501 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
1502 | a, b, c = a, b, c | |
1503 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
1504 | a, b, c = b, c, a | |
1505 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
1506 | a, b, c = c, a, b | |
1507 | else | |
1508 | assert(false, "unreachable") | |
1509 | end | |
1510 | ||
1511 | local len1 = (c-a):Dot((b-a).unit) | |
1512 | local len2 = (b-a).magnitude - len1 | |
1513 | local width = (a + (b-a).unit*len1 - c).magnitude | |
1514 | ||
1515 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
1516 | ||
1517 | local list = {} | |
1518 | ||
1519 | if len1 > 0.01 then | |
1520 | local w1 = Instance.new('WedgePart', m) | |
1521 | game:GetService("Debris"):AddItem(w1,5) | |
1522 | w1.Material = "SmoothPlastic" | |
1523 | w1.FormFactor = 'Custom' | |
1524 | w1.BrickColor = BrickColor.new("Really black") | |
1525 | w1.Transparency = 0 | |
1526 | w1.Reflectance = 0 | |
1527 | w1.Material = "SmoothPlastic" | |
1528 | w1.CanCollide = false | |
1529 | local l1 = Instance.new("PointLight",w1) | |
1530 | l1.Color = Color3.new(170,0,0) | |
1531 | NoOutline(w1) | |
1532 | local sz = Vector3.new(0.2, width, len1) | |
1533 | w1.Size = sz | |
1534 | local sp = Instance.new("SpecialMesh",w1) | |
1535 | sp.MeshType = "Wedge" | |
1536 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
1537 | w1:BreakJoints() | |
1538 | w1.Anchored = true | |
1539 | w1.Parent = workspace | |
1540 | w1.Transparency = 0.7 | |
1541 | table.insert(Effects,{w1,"Disappear",.01}) | |
1542 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
1543 | table.insert(list,w1) | |
1544 | end | |
1545 | ||
1546 | if len2 > 0.01 then | |
1547 | local w2 = Instance.new('WedgePart', m) | |
1548 | game:GetService("Debris"):AddItem(w2,5) | |
1549 | w2.Material = "SmoothPlastic" | |
1550 | w2.FormFactor = 'Custom' | |
1551 | w2.BrickColor = BrickColor.new("Really black") | |
1552 | w2.Transparency = 0 | |
1553 | w2.Reflectance = 0 | |
1554 | w2.Material = "SmoothPlastic" | |
1555 | w2.CanCollide = false | |
1556 | local l2 = Instance.new("PointLight",w2) | |
1557 | l2.Color = Color3.new(170,0,0) | |
1558 | NoOutline(w2) | |
1559 | local sz = Vector3.new(0.2, width, len2) | |
1560 | w2.Size = sz | |
1561 | local sp = Instance.new("SpecialMesh",w2) | |
1562 | sp.MeshType = "Wedge" | |
1563 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
1564 | w2:BreakJoints() | |
1565 | w2.Anchored = true | |
1566 | w2.Parent = workspace | |
1567 | w2.Transparency = 0.7 | |
1568 | table.insert(Effects,{w2,"Disappear",.01}) | |
1569 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
1570 | table.insert(list,w2) | |
1571 | end | |
1572 | return unpack(list) | |
1573 | end | |
1574 | ||
1575 | ||
1576 | function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
1577 | if hit.Parent == nil then | |
1578 | return | |
1579 | end | |
1580 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1581 | for _, v in pairs(hit.Parent:children()) do | |
1582 | if v:IsA("Humanoid") then | |
1583 | h = v | |
1584 | end | |
1585 | end | |
1586 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then | |
1587 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
1588 | return | |
1589 | end | |
1590 | local c = Create("ObjectValue")({ | |
1591 | Name = "creator", | |
1592 | Value = game:service("Players").LocalPlayer, | |
1593 | Parent = h | |
1594 | }) | |
1595 | game:GetService("Debris"):AddItem(c, 0.5) | |
1596 | if HitSound ~= nil and HitPitch ~= nil then | |
1597 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
1598 | end | |
1599 | local Damage = math.random(minim, maxim) | |
1600 | local blocked = false | |
1601 | local block = hit.Parent:findFirstChild("Block") | |
1602 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
1603 | blocked = true | |
1604 | block.Value = block.Value - 1 | |
1605 | print(block.Value) | |
1606 | end | |
1607 | if blocked == false then | |
1608 | HitHealth = h.Health | |
1609 | h.Health = h.Health - Damage | |
1610 | if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then | |
1611 | print("gained kill") | |
1612 | end | |
1613 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1614 | else | |
1615 | h.Health = h.Health - Damage / 2 | |
1616 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1617 | end | |
1618 | if Type == "Knockdown" then | |
1619 | local hum = hit.Parent:FindFirstChildOfClass'Humanoid' | |
1620 | hum.PlatformStand = true | |
1621 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1622 | swait(1) | |
1623 | HHumanoid.PlatformStand = false | |
1624 | end), hum) | |
1625 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
1626 | local bodvol = Create("BodyVelocity")({ | |
1627 | velocity = angle * knockback, | |
1628 | P = 5000, | |
1629 | maxForce = Vector3.new(8000, 8000, 8000), | |
1630 | Parent = hit | |
1631 | }) | |
1632 | local rl = Create("BodyAngularVelocity")({ | |
1633 | P = 3000, | |
1634 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
1635 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
1636 | Parent = hit | |
1637 | }) | |
1638 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
1639 | game:GetService("Debris"):AddItem(rl, 0.5) | |
1640 | elseif Type == "Normal" then | |
1641 | local vp = Create("BodyVelocity")({ | |
1642 | P = 500, | |
1643 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
1644 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
1645 | }) | |
1646 | if knockback > 0 then | |
1647 | vp.Parent = hit.Parent.Head | |
1648 | end | |
1649 | game:GetService("Debris"):AddItem(vp, 0.5) | |
1650 | elseif Type == "Up" then | |
1651 | local bodyVelocity = Create("BodyVelocity")({ | |
1652 | velocity = Vector3.new(0, 20, 0), | |
1653 | P = 5000, | |
1654 | maxForce = Vector3.new(8000, 8000, 8000), | |
1655 | Parent = hit | |
1656 | }) | |
1657 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
1658 | local bodyVelocity = Create("BodyVelocity")({ | |
1659 | velocity = Vector3.new(0, 20, 0), | |
1660 | P = 5000, | |
1661 | maxForce = Vector3.new(8000, 8000, 8000), | |
1662 | Parent = hit | |
1663 | }) | |
1664 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1665 | elseif Type == "Leech" then | |
1666 | local hum = hit.Parent:FindFirstChildOfClass'Humanoid' | |
1667 | if hum ~= nil then | |
1668 | for i = 0, 2 do | |
1669 | 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) | |
1670 | end | |
1671 | Humanoid.Health = Humanoid.Health + 10 | |
1672 | end | |
1673 | elseif Type == "UpKnock" then | |
1674 | local hum = hit.Parent:FindFirstChildOfClass'Humanoid' | |
1675 | hum.PlatformStand = true | |
1676 | if hum ~= nil then | |
1677 | hitr = true | |
1678 | end | |
1679 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1680 | swait(5) | |
1681 | HHumanoid.PlatformStand = false | |
1682 | hitr = false | |
1683 | end), hum) | |
1684 | local bodyVelocity = Create("BodyVelocity")({ | |
1685 | velocity = Vector3.new(0, 20, 0), | |
1686 | P = 5000, | |
1687 | maxForce = Vector3.new(8000, 8000, 8000), | |
1688 | Parent = hit | |
1689 | }) | |
1690 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
1691 | local bodyVelocity = Create("BodyVelocity")({ | |
1692 | velocity = Vector3.new(0, 20, 0), | |
1693 | P = 5000, | |
1694 | maxForce = Vector3.new(8000, 8000, 8000), | |
1695 | Parent = hit | |
1696 | }) | |
1697 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1698 | elseif Type == "Snare" then | |
1699 | local bp = Create("BodyPosition")({ | |
1700 | P = 2000, | |
1701 | D = 100, | |
1702 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1703 | position = hit.Parent.Torso.Position, | |
1704 | Parent = hit.Parent.Torso | |
1705 | }) | |
1706 | game:GetService("Debris"):AddItem(bp, 1) | |
1707 | elseif Type == "Slashnare" then | |
1708 | 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) | |
1709 | for i = 1, math.random(4, 5) do | |
1710 | 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) | |
1711 | end | |
1712 | local bp = Create("BodyPosition")({ | |
1713 | P = 2000, | |
1714 | D = 100, | |
1715 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1716 | position = hit.Parent.Torso.Position, | |
1717 | Parent = hit.Parent.Torso | |
1718 | }) | |
1719 | game:GetService("Debris"):AddItem(bp, 1) | |
1720 | elseif Type == "Spike" then | |
1721 | CreateBigIceSword(hit.Parent.Torso.CFrame) | |
1722 | local bp = Create("BodyPosition")({ | |
1723 | P = 2000, | |
1724 | D = 100, | |
1725 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1726 | position = hit.Parent.Torso.Position, | |
1727 | Parent = hit.Parent.Torso | |
1728 | }) | |
1729 | game:GetService("Debris"):AddItem(bp, 1) | |
1730 | elseif Type == "Freeze" then | |
1731 | local BodPos = Create("BodyPosition")({ | |
1732 | P = 50000, | |
1733 | D = 1000, | |
1734 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1735 | position = hit.Parent.Torso.Position, | |
1736 | Parent = hit.Parent.Torso | |
1737 | }) | |
1738 | local BodGy = Create("BodyGyro")({ | |
1739 | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, | |
1740 | P = 20000, | |
1741 | Parent = hit.Parent.Torso, | |
1742 | cframe = hit.Parent.Torso.CFrame | |
1743 | }) | |
1744 | hit.Parent.Torso.Anchored = true | |
1745 | coroutine.resume(coroutine.create(function(Part) | |
1746 | swait(1.5) | |
1747 | Part.Anchored = false | |
1748 | end), hit.Parent.Torso) | |
1749 | game:GetService("Debris"):AddItem(BodPos, 3) | |
1750 | game:GetService("Debris"):AddItem(BodGy, 3) | |
1751 | end | |
1752 | local debounce = Create("BoolValue")({ | |
1753 | Name = "DebounceHit", | |
1754 | Parent = hit.Parent, | |
1755 | Value = true | |
1756 | }) | |
1757 | game:GetService("Debris"):AddItem(debounce, Delay) | |
1758 | c = Instance.new("ObjectValue") | |
1759 | c.Name = "creator" | |
1760 | c.Value = Player | |
1761 | c.Parent = h | |
1762 | game:GetService("Debris"):AddItem(c, 0.5) | |
1763 | end | |
1764 | end | |
1765 | function ShowDamage(Pos, Text, Time, Color) | |
1766 | local Rate = 0.03333333333333333 | |
1767 | local Pos = Pos or Vector3.new(0, 0, 0) | |
1768 | local Text = Text or "" | |
1769 | local Time = Time or 2 | |
1770 | local Color = Color or Color3.new(1, 0, 1) | |
1771 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
1772 | EffectPart.Anchored = true | |
1773 | local BillboardGui = Create("BillboardGui")({ | |
1774 | Size = UDim2.new(3, 0, 3, 0), | |
1775 | Adornee = EffectPart, | |
1776 | Parent = EffectPart | |
1777 | }) | |
1778 | local TextLabel = Create("TextLabel")({ | |
1779 | BackgroundTransparency = 1, | |
1780 | Size = UDim2.new(1, 0, 1, 0), | |
1781 | Text = Text, | |
1782 | TextColor3 = Color, | |
1783 | TextScaled = true, | |
1784 | Font = Enum.Font.ArialBold, | |
1785 | Parent = BillboardGui | |
1786 | }) | |
1787 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
1788 | EffectPart.Parent = game:GetService("Workspace") | |
1789 | delay(0, function() | |
1790 | local Frames = Time / Rate | |
1791 | for Frame = 1, Frames do | |
1792 | wait(Rate) | |
1793 | local Percent = Frame / Frames | |
1794 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
1795 | TextLabel.TextTransparency = Percent | |
1796 | end | |
1797 | if EffectPart and EffectPart.Parent then | |
1798 | EffectPart:Destroy() | |
1799 | end | |
1800 | end) | |
1801 | end | |
1802 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
1803 | for _, c in pairs(workspace:children()) do | |
1804 | local hum = c:findFirstChildOfClass("Humanoid") | |
1805 | if hum ~= nil then | |
1806 | local head = c:findFirstChild("Head") | |
1807 | if head ~= nil then | |
1808 | local targ = head.Position - Part.Position | |
1809 | local mag = targ.magnitude | |
1810 | if magni >= mag and c.Name ~= Player.Name then | |
1811 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
1812 | end | |
1813 | end | |
1814 | end | |
1815 | end | |
1816 | end | |
1817 | ||
1818 | function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type) | |
1819 | for _, c in pairs(workspace:children()) do | |
1820 | local hum = c:findFirstChild("Humanoid") | |
1821 | if hum ~= nil then | |
1822 | local head = c:findFirstChild("Torso") | |
1823 | if head ~= nil then | |
1824 | local targ = head.Position - Part.Position | |
1825 | local mag = targ.magnitude | |
1826 | if magni >= mag and c.Name ~= Player.Name then | |
1827 | MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05) | |
1828 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
1829 | end | |
1830 | end | |
1831 | end | |
1832 | end | |
1833 | end | |
1834 | ||
1835 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
1836 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1837 | end | |
1838 | ||
1839 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
1840 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1841 | prt.Anchored=true | |
1842 | prt.CFrame=cframe | |
1843 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1)) | |
1844 | --http://www.roblox.com/asset/?id=4770560 | |
1845 | game:GetService("Debris"):AddItem(prt,2) | |
1846 | CF=prt.CFrame | |
1847 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
1848 | for i=0,1,0.2 do | |
1849 | wait() | |
1850 | Part.CFrame=CF*cf(0,0,-0.4) | |
1851 | end | |
1852 | for i=0,1,delay do | |
1853 | wait() | |
1854 | --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) | |
1855 | Mesh.Scale=Mesh.Scale | |
1856 | end | |
1857 | for i=0,1,0.1 do | |
1858 | wait() | |
1859 | Part.Transparency=i | |
1860 | end | |
1861 | Part.Parent=nil | |
1862 | end),prt,msh,CF) | |
1863 | end | |
1864 | ||
1865 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1866 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1867 | prt.Anchored=true | |
1868 | prt.Material = "Neon" | |
1869 | prt.CFrame=cframe | |
1870 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1871 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1872 | game:GetService("Debris"):AddItem(prt,5) | |
1873 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1874 | for i=0,1,delay do | |
1875 | swait() | |
1876 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1877 | Part.Transparency=i | |
1878 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1879 | end | |
1880 | Part.Parent=nil | |
1881 | end),prt,msh) | |
1882 | end | |
1883 | ||
1884 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
1885 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1886 | prt.Anchored=true | |
1887 | prt.Material = "Neon" | |
1888 | prt.CFrame=cframe | |
1889 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1890 | game:GetService("Debris"):AddItem(prt,5) | |
1891 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1892 | local rtype = rottype | |
1893 | for i=0,1,delay do | |
1894 | swait() | |
1895 | if rtype == 1 then | |
1896 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1897 | elseif rtype == 2 then | |
1898 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1899 | end | |
1900 | Part.Transparency=i | |
1901 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1902 | end | |
1903 | Part.Parent=nil | |
1904 | end),prt,msh) | |
1905 | end | |
1906 | ||
1907 | function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1908 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1909 | prt.Anchored=true | |
1910 | prt.CFrame=cframe | |
1911 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1912 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1913 | game:GetService("Debris"):AddItem(prt,5) | |
1914 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1915 | for i=0,1,delay do | |
1916 | wait() | |
1917 | Part.Transparency=i | |
1918 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1919 | end | |
1920 | Part.Parent=nil | |
1921 | end),prt,msh) | |
1922 | end | |
1923 | ||
1924 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
1925 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1926 | prt.Anchored=true | |
1927 | prt.Material = "Neon" | |
1928 | prt.CFrame=cframe | |
1929 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1930 | game:GetService("Debris"):AddItem(prt,5) | |
1931 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1932 | local rtype = rottype | |
1933 | for i=0,1,delay do | |
1934 | swait() | |
1935 | if rtype == 1 then | |
1936 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1937 | elseif rtype == 2 then | |
1938 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1939 | end | |
1940 | Part.Transparency=i | |
1941 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1942 | end | |
1943 | Part.Parent=nil | |
1944 | end),prt,msh) | |
1945 | end | |
1946 | ||
1947 | function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
1948 | local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1949 | prt.Anchored=true | |
1950 | prt.Material = "Neon" | |
1951 | prt.CFrame=cframe | |
1952 | local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
1953 | local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
1954 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01)) | |
1955 | game:GetService("Debris"):AddItem(prt,5) | |
1956 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1957 | local rtype = rottype | |
1958 | for i=0,1,delay do | |
1959 | swait() | |
1960 | if rtype == 1 then | |
1961 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1962 | elseif rtype == 2 then | |
1963 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1964 | end | |
1965 | dec.Transparency=i | |
1966 | dec2.Transparency=i | |
1967 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
1968 | end | |
1969 | Part.Parent=nil | |
1970 | end),prt,msh) | |
1971 | end | |
1972 | ||
1973 | function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
1974 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1975 | prt.Anchored=true | |
1976 | prt.Material = "Neon" | |
1977 | prt.CFrame=cframe | |
1978 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01)) | |
1979 | game:GetService("Debris"):AddItem(prt,5) | |
1980 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1981 | local rtype = rottype | |
1982 | for i=0,1,delay do | |
1983 | swait() | |
1984 | if rtype == 1 then | |
1985 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1986 | elseif rtype == 2 then | |
1987 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1988 | end | |
1989 | prt.Transparency=i | |
1990 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
1991 | end | |
1992 | Part.Parent=nil | |
1993 | end),prt,msh) | |
1994 | end | |
1995 | ||
1996 | function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype) | |
1997 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1998 | prt.Anchored=true | |
1999 | prt.Material = "Neon" | |
2000 | prt.CFrame=cframe | |
2001 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1)) | |
2002 | game:GetService("Debris"):AddItem(prt,5) | |
2003 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2004 | local rtype = rottype | |
2005 | for i=0,1,delay do | |
2006 | swait() | |
2007 | if rtype == 1 then | |
2008 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0) | |
2009 | elseif rtype == 2 then | |
2010 | prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0) | |
2011 | end | |
2012 | prt.Transparency=i | |
2013 | Mesh.Scale=Mesh.Scale+vt(x3,0,z3) | |
2014 | end | |
2015 | Part.Parent=nil | |
2016 | end),prt,msh) | |
2017 | end | |
2018 | ||
2019 | function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype) | |
2020 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2021 | prt.Anchored=true | |
2022 | prt.Material = "Neon" | |
2023 | prt.CFrame=cframe | |
2024 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2025 | game:GetService("Debris"):AddItem(prt,5) | |
2026 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2027 | local rtype = rottype | |
2028 | for i=0,1,delay do | |
2029 | swait() | |
2030 | if rtype == 1 then | |
2031 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
2032 | elseif rtype == 2 then | |
2033 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
2034 | end | |
2035 | prt.Transparency=i | |
2036 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
2037 | end | |
2038 | Part.Parent=nil | |
2039 | end),prt,msh) | |
2040 | end | |
2041 | ||
2042 | function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
2043 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2044 | prt.Anchored=true | |
2045 | prt.Material = "Neon" | |
2046 | prt.CFrame=cframe | |
2047 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2048 | game:GetService("Debris"):AddItem(prt,5) | |
2049 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2050 | local rtype = rottype | |
2051 | for i=0,1,delay do | |
2052 | swait() | |
2053 | if rtype == 1 then | |
2054 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
2055 | elseif rtype == 2 then | |
2056 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
2057 | end | |
2058 | prt.Transparency=i | |
2059 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2060 | end | |
2061 | Part.Parent=nil | |
2062 | end),prt,msh) | |
2063 | end | |
2064 | ||
2065 | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
2066 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2067 | prt.Anchored=false | |
2068 | prt.CFrame=cframe | |
2069 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2070 | local wld=weld(prt,prt,Parent,cframe) | |
2071 | game:GetService("Debris"):AddItem(prt,5) | |
2072 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
2073 | for i=0,1,delay do | |
2074 | wait() | |
2075 | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe | |
2076 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2077 | Part.Transparency=i | |
2078 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2079 | end | |
2080 | Part.Parent=nil | |
2081 | end),prt,msh,wld) | |
2082 | end | |
2083 | ||
2084 | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
2085 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2086 | prt.Anchored=false | |
2087 | prt.CFrame=cframe | |
2088 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2089 | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) | |
2090 | game:GetService("Debris"):AddItem(prt,5) | |
2091 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
2092 | for i=0,1,delay do | |
2093 | wait() | |
2094 | Weld.C0=euler(i*20,0,0) | |
2095 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2096 | Part.Transparency=i | |
2097 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2098 | end | |
2099 | Part.Parent=nil | |
2100 | end),prt,msh,wld) | |
2101 | end | |
2102 | ||
2103 | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2104 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2105 | prt.Anchored=true | |
2106 | prt.CFrame=cframe | |
2107 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2108 | game:GetService("Debris"):AddItem(prt,2) | |
2109 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2110 | for i=0,1,delay do | |
2111 | wait() | |
2112 | Part.CFrame=Part.CFrame | |
2113 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2114 | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2115 | prt2.Anchored=true | |
2116 | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2117 | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5)) | |
2118 | game:GetService("Debris"):AddItem(prt2,2) | |
2119 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2120 | for i=0,1,0.1 do | |
2121 | wait() | |
2122 | Part.CFrame=Part.CFrame*cf(0,0.5,0) | |
2123 | end | |
2124 | Part.Parent=nil | |
2125 | end),prt2,msh2) | |
2126 | end | |
2127 | for i=0,1,delay*2 do | |
2128 | wait() | |
2129 | Part.CFrame=Part.CFrame | |
2130 | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) | |
2131 | end | |
2132 | Part.Parent=nil | |
2133 | end),prt,msh) | |
2134 | end | |
2135 | ||
2136 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2137 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2138 | prt.Anchored=true | |
2139 | prt.CFrame=cframe | |
2140 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
2141 | game:GetService("Debris"):AddItem(prt,2) | |
2142 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2143 | for i=0,1,delay do | |
2144 | wait() | |
2145 | Part.CFrame=Part.CFrame | |
2146 | Part.Transparency=i | |
2147 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2148 | end | |
2149 | Part.Parent=nil | |
2150 | end),prt,msh) | |
2151 | end | |
2152 | ||
2153 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
2154 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2155 | prt.Anchored=true | |
2156 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2157 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
2158 | game:GetService("Debris"):AddItem(prt,2) | |
2159 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
2160 | CF=Part.CFrame | |
2161 | Numbb=0 | |
2162 | randnumb=math.random()/10 | |
2163 | rand1=math.random()/10 | |
2164 | for i=0,1,rand1 do | |
2165 | wait() | |
2166 | CF=CF*cf(0,math.random()/2,0) | |
2167 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
2168 | Part.CFrame=CF*euler(Numbb,0,0) | |
2169 | Part.Transparency=i | |
2170 | Numbb=Numbb+randnumb | |
2171 | end | |
2172 | Part.Parent=nil | |
2173 | end),prt,CF,Numbb,randnumb) | |
2174 | end | |
2175 | ||
2176 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2177 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2178 | prt.Anchored=true | |
2179 | prt.CFrame=cframe | |
2180 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1)) | |
2181 | game:GetService("Debris"):AddItem(prt,5) | |
2182 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2183 | for i=0,1,delay do | |
2184 | wait() | |
2185 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
2186 | Part.Transparency=i | |
2187 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2188 | end | |
2189 | Part.Parent=nil | |
2190 | end),prt,msh) | |
2191 | end | |
2192 | ||
2193 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2194 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2195 | prt.Anchored=true | |
2196 | prt.CFrame=cframe | |
2197 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1)) | |
2198 | game:GetService("Debris"):AddItem(prt,2) | |
2199 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2200 | for i=0,1,delay do | |
2201 | wait() | |
2202 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
2203 | Part.Transparency=i | |
2204 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2205 | end | |
2206 | Part.Parent=nil | |
2207 | end),prt,msh) | |
2208 | end | |
2209 | ||
2210 | function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay) | |
2211 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2212 | prt.Anchored=true | |
2213 | prt.CFrame=cframe*cf(x,y,z) | |
2214 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1)) | |
2215 | game:GetService("Debris"):AddItem(prt,5) | |
2216 | coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) | |
2217 | local num=math.random() | |
2218 | local num2=math.random(-3,2)+math.random() | |
2219 | local numm=0 | |
2220 | for i=0,1,delay*2 do | |
2221 | swait() | |
2222 | Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0) | |
2223 | Part.Transparency=i | |
2224 | numm=numm+0.01 | |
2225 | end | |
2226 | Part.Parent=nil | |
2227 | Mesh.Parent=nil | |
2228 | end),prt,msh,x,y,z) | |
2229 | end | |
2230 | ||
2231 | function dmgstart(dmg,what) | |
2232 | hitcon = what.Touched:connect(function(hit) | |
2233 | local hum = hit.Parent:FindFirstChild("Humanoid") | |
2234 | if hum and not hum:IsDescendantOf(Character) then | |
2235 | hum:TakeDamage(dmg) | |
2236 | end | |
2237 | end) | |
2238 | end | |
2239 | ||
2240 | function dmgstop() | |
2241 | hitcon:disconnect() | |
2242 | end | |
2243 | ||
2244 | function Cloak() | |
2245 | Face.Parent=nil | |
2246 | cloaked=true | |
2247 | for _,v in pairs(Torso.Parent:children()) do | |
2248 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
2249 | coroutine.resume(coroutine.create(function() | |
2250 | for i=0,1,0.2 do | |
2251 | wait() | |
2252 | v.Transparency=i | |
2253 | end | |
2254 | v.Transparency=1 | |
2255 | end)) | |
2256 | end | |
2257 | if v.className=="Hat" then | |
2258 | hatp=v.Handle | |
2259 | coroutine.resume(coroutine.create(function(derp) | |
2260 | for i=0,1,0.2 do | |
2261 | wait() | |
2262 | derp.Transparency=i | |
2263 | end | |
2264 | derp.Transparency=1 | |
2265 | end),hatp) | |
2266 | end | |
2267 | end | |
2268 | for _,v in pairs(m:children()) do | |
2269 | if v.className=="Part" then | |
2270 | coroutine.resume(coroutine.create(function() | |
2271 | for i=0,1,0.2 do | |
2272 | wait() | |
2273 | v.Transparency=i | |
2274 | end | |
2275 | v.Transparency=1 | |
2276 | end)) | |
2277 | end | |
2278 | end | |
2279 | end | |
2280 | ||
2281 | function UnCloak() | |
2282 | so("http://roblox.com/asset/?id=2767090",Torso,1,1.1) | |
2283 | Face.Parent=Head | |
2284 | cloaked=false | |
2285 | for _,v in pairs(Torso.Parent:children()) do | |
2286 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
2287 | coroutine.resume(coroutine.create(function() | |
2288 | for i=0,1,0.1 do | |
2289 | wait() | |
2290 | v.Transparency=v.Transparency-0.1 | |
2291 | end | |
2292 | v.Transparency=0 | |
2293 | end)) | |
2294 | end | |
2295 | if v.className=="Hat" then | |
2296 | hatp=v.Handle | |
2297 | coroutine.resume(coroutine.create(function(derp) | |
2298 | for i=0,1,0.1 do | |
2299 | wait() | |
2300 | derp.Transparency=derp.Transparency-0.1 | |
2301 | end | |
2302 | derp.Transparency=0 | |
2303 | end),hatp) | |
2304 | end | |
2305 | end | |
2306 | for _,v in pairs(m:children()) do | |
2307 | if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then | |
2308 | coroutine.resume(coroutine.create(function() | |
2309 | for i=0,1,0.1 do | |
2310 | wait() | |
2311 | v.Transparency=v.Transparency-0.1 | |
2312 | end | |
2313 | v.Transparency=0 | |
2314 | end)) | |
2315 | v.Transparency=0 | |
2316 | end | |
2317 | end | |
2318 | end | |
2319 | ||
2320 | local origcolor = BrickColor.new("Pastel light blue") | |
2321 | ---- This section of explosions. | |
2322 | function Explode(rad,par,pitch,vol,mindam,maxdam) | |
2323 | local expart = Instance.new("Part",char) | |
2324 | local expart2 = Instance.new("Part",char) | |
2325 | local rin = Instance.new("Part",char) | |
2326 | local rin2 = Instance.new("Part",char) | |
2327 | local partMesh = Instance.new("SpecialMesh",expart) | |
2328 | partMesh.MeshType = "Sphere" | |
2329 | local partMesh2 = Instance.new("SpecialMesh",expart2) | |
2330 | partMesh2.MeshType = "Sphere" | |
2331 | local partMesh3 = Instance.new("SpecialMesh",rin) | |
2332 | partMesh3.MeshType = "Brick" | |
2333 | local partMesh4 = Instance.new("SpecialMesh",rin2) | |
2334 | partMesh4.MeshType = "Brick" | |
2335 | CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch) | |
2336 | partMesh.Scale = vt(rad,rad,rad) | |
2337 | expart.Size = vt(1,1,1) | |
2338 | expart.Transparency = 0 | |
2339 | expart.Anchored = true | |
2340 | expart.Material = "Neon" | |
2341 | expart.BrickColor = bc("White") | |
2342 | expart.CFrame = par.CFrame | |
2343 | partMesh2.Scale = vt(rad,rad,rad) | |
2344 | expart2.Size = vt(1.15,1.15,1.15) | |
2345 | expart2.Transparency = 0.5 | |
2346 | expart2.Anchored = true | |
2347 | expart2.Material = "Neon" | |
2348 | expart2.BrickColor = par.BrickColor | |
2349 | expart2.CFrame = par.CFrame | |
2350 | rin.Size = vt(1.15,1.15,1.15) | |
2351 | rin.Transparency = 1 | |
2352 | rin.Anchored = true | |
2353 | rin.Material = "Neon" | |
2354 | rin.BrickColor = par.BrickColor | |
2355 | rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
2356 | rin2.Size = vt(1.15,1.15,1.15) | |
2357 | rin2.Transparency = 1 | |
2358 | rin2.Anchored = true | |
2359 | rin2.Material = "Neon" | |
2360 | rin2.BrickColor = par.BrickColor | |
2361 | rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
2362 | partMesh3.Scale = vt(0,1,0) | |
2363 | partMesh4.Scale = vt(0,1,0) | |
2364 | local dec2 = Instance.new("Decal", rin) | |
2365 | dec2.Face = "Top" | |
2366 | dec2.Texture = "http://www.roblox.com/asset/?id=874580939" | |
2367 | dec2.Parent = rin | |
2368 | local dec2b = dec2:Clone() | |
2369 | dec2b.Face = "Bottom" | |
2370 | dec2b.Parent = rin | |
2371 | ||
2372 | local dec2a = Instance.new("Decal", rin2) | |
2373 | dec2a.Face = "Top" | |
2374 | dec2a.Texture = "http://www.roblox.com/asset/?id=874580939" | |
2375 | dec2a.Parent = rin2 | |
2376 | local dec2ab = dec2a:Clone() | |
2377 | dec2ab.Face = "Bottom" | |
2378 | dec2ab.Parent = rin2 | |
2379 | expart.CanCollide = false | |
2380 | expart2.CanCollide = false | |
2381 | rin.CanCollide = false | |
2382 | rin2.CanCollide = false | |
2383 | MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal") | |
2384 | local value = 1*rad/6.5 | |
2385 | for i = 0, 199 do | |
2386 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
2387 | expart.CFrame = expart.CFrame | |
2388 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
2389 | expart2.CFrame = expart.CFrame | |
2390 | value = value - 0.035*rad/30 | |
2391 | if value < 7.5 then | |
2392 | partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5) | |
2393 | rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0) | |
2394 | partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5) | |
2395 | rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0) | |
2396 | end | |
2397 | if value < 0 then | |
2398 | dec2.Transparency = dec2.Transparency + 0.025 | |
2399 | dec2a.Transparency = dec2a.Transparency + 0.025 | |
2400 | dec2b.Transparency = dec2b.Transparency + 0.025 | |
2401 | dec2ab.Transparency = dec2ab.Transparency + 0.025 | |
2402 | expart.Transparency = expart.Transparency + 0.025 | |
2403 | expart2.Transparency = expart2.Transparency + 0.025 | |
2404 | rin.Transparency = rin.Transparency + 0.025 | |
2405 | rin2.Transparency = rin2.Transparency + 0.025 | |
2406 | end | |
2407 | swait() | |
2408 | end | |
2409 | game:GetService("Debris"):AddItem(expart, 1) | |
2410 | game:GetService("Debris"):AddItem(expart2, 1) | |
2411 | game:GetService("Debris"):AddItem(rin, 1) | |
2412 | game:GetService("Debris"):AddItem(rin2, 1) | |
2413 | end | |
2414 | ||
2415 | function ExplodeShort(rad,par,pitch,vol,mindam,maxdam) | |
2416 | local expart = Instance.new("Part",char) | |
2417 | local expart2 = Instance.new("Part",char) | |
2418 | local partMesh = Instance.new("SpecialMesh",expart) | |
2419 | partMesh.MeshType = "Sphere" | |
2420 | local partMesh2 = Instance.new("SpecialMesh",expart2) | |
2421 | partMesh2.MeshType = "Sphere" | |
2422 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch) | |
2423 | partMesh.Scale = vt(rad,rad,rad) | |
2424 | expart.Size = vt(1,1,1) | |
2425 | expart.Transparency = 0 | |
2426 | expart.Anchored = true | |
2427 | expart.Material = "Neon" | |
2428 | expart.BrickColor = bc("White") | |
2429 | expart.CFrame = par.CFrame | |
2430 | partMesh2.Scale = vt(rad,rad,rad) | |
2431 | expart2.Size = vt(1.15,1.15,1.15) | |
2432 | expart2.Transparency = 0.5 | |
2433 | expart2.Anchored = true | |
2434 | expart2.Material = "Neon" | |
2435 | expart2.BrickColor = par.BrickColor | |
2436 | expart2.CFrame = par.CFrame | |
2437 | expart.CanCollide = false | |
2438 | expart2.CanCollide = false | |
2439 | MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal") | |
2440 | local value = 1*rad/6.5 | |
2441 | for i = 0, 75 do | |
2442 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
2443 | expart.CFrame = expart.CFrame | |
2444 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
2445 | expart2.CFrame = expart.CFrame | |
2446 | value = value - 0.035*rad/5 | |
2447 | if value < 0 then | |
2448 | value = 0 | |
2449 | expart.Transparency = expart.Transparency + 0.05 | |
2450 | expart2.Transparency = expart2.Transparency + 0.05 | |
2451 | end | |
2452 | swait() | |
2453 | end | |
2454 | game:GetService("Debris"):AddItem(expart, 1) | |
2455 | game:GetService("Debris"):AddItem(expart2, 1) | |
2456 | end | |
2457 | ||
2458 | function AreaDanger(rad,par,mindam,maxdam) | |
2459 | local expart = Instance.new("Part",char) | |
2460 | local partMesh = Instance.new("SpecialMesh",expart) | |
2461 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15) | |
2462 | partMesh.MeshType = "Sphere" | |
2463 | partMesh.Scale = vt(rad,rad,rad) | |
2464 | expart.Size = vt(1,1,1) | |
2465 | expart.Transparency = 0.5 | |
2466 | expart.Anchored = true | |
2467 | expart.Material = "Neon" | |
2468 | expart.CanCollide = false | |
2469 | expart.BrickColor = par.BrickColor | |
2470 | expart.CFrame = par.CFrame | |
2471 | local value = 1*rad/5 | |
2472 | MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1) | |
2473 | for i = 0, 14 do | |
2474 | wait() | |
2475 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
2476 | expart.CFrame = expart.CFrame | |
2477 | value = value - 0.035*rad | |
2478 | if value < 0 then | |
2479 | value = 0 | |
2480 | end | |
2481 | end | |
2482 | wait(0.25) | |
2483 | CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1) | |
2484 | wait(0.5) | |
2485 | CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1) | |
2486 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75) | |
2487 | MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal") | |
2488 | MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025) | |
2489 | for i = 0, 14 do | |
2490 | wait() | |
2491 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
2492 | expart.CFrame = expart.CFrame | |
2493 | value = value - 0.035*rad/2 | |
2494 | end | |
2495 | expart.Transparency = 1 | |
2496 | game:GetService("Debris"):AddItem(expart, 5) | |
2497 | end | |
2498 | ||
2499 | function Swarmsplosions(negrad,rad,par,mindam,maxdam) | |
2500 | CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2) | |
2501 | CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1) | |
2502 | CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1) | |
2503 | CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1) | |
2504 | MagniDamageWithEffect(par, 25, 5,10, 0, "Normal") | |
2505 | MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025) | |
2506 | for i = 0, 24 do | |
2507 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2)) | |
2508 | end | |
2509 | for i = 0, 24 do | |
2510 | local expart = Instance.new("Part",char) | |
2511 | expart.Transparency = 1 | |
2512 | expart.Anchored = true | |
2513 | expart.CanCollide = false | |
2514 | expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad)) | |
2515 | CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2) | |
2516 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15) | |
2517 | MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal") | |
2518 | MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025) | |
2519 | for i = 0, 9 do | |
2520 | MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2)) | |
2521 | end | |
2522 | game:GetService("Debris"):AddItem(expart, 2) | |
2523 | wait(0.1) | |
2524 | end | |
2525 | end | |
2526 | ||
2527 | function EXterPlosion(par) | |
2528 | CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1) | |
2529 | CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85) | |
2530 | CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2) | |
2531 | CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1) | |
2532 | MagniDamageWithEffect(par, 500, 80,99, 0, "Normal") | |
2533 | MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005) | |
2534 | MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1) | |
2535 | for i = 0, 24 do | |
2536 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2)) | |
2537 | end | |
2538 | for i = 0, 24 do | |
2539 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2)) | |
2540 | end | |
2541 | end | |
2542 | ---- | |
2543 | ||
2544 | ||
2545 | function ring(type,pos,scale,value) | |
2546 | local type = type | |
2547 | local rng = Instance.new("Part", char) | |
2548 | rng.Anchored = true | |
2549 | rng.BrickColor = origcolor | |
2550 | rng.CanCollide = false | |
2551 | rng.FormFactor = 3 | |
2552 | rng.Name = "Ring" | |
2553 | rng.Size = Vector3.new(1, 1, 1) | |
2554 | rng.Transparency = 0 | |
2555 | rng.TopSurface = 0 | |
2556 | rng.BottomSurface = 0 | |
2557 | rng.CFrame = pos | |
2558 | local rngm = Instance.new("SpecialMesh", rng) | |
2559 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2560 | rngm.Scale = scale | |
2561 | local scaler2 = 1 | |
2562 | if type == "Add" then | |
2563 | scaler2 = 1*value | |
2564 | elseif type == "Divide" then | |
2565 | scaler2 = 1/value | |
2566 | end | |
2567 | coroutine.resume(coroutine.create(function() | |
2568 | for i = 0,10,0.1 do | |
2569 | swait() | |
2570 | if type == "Add" then | |
2571 | scaler2 = scaler2 - 0.01*value | |
2572 | elseif type == "Divide" then | |
2573 | scaler2 = scaler2 - 0.01/value | |
2574 | end | |
2575 | rng.Transparency = rng.Transparency + 0.01 | |
2576 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
2577 | end | |
2578 | rng:Destroy() | |
2579 | end)) | |
2580 | end | |
2581 | ||
2582 | ||
2583 | function wave(type,pos,scale,value) | |
2584 | local type = type | |
2585 | local rng = Instance.new("Part", char) | |
2586 | rng.Anchored = true | |
2587 | rng.BrickColor = origcolor | |
2588 | rng.CanCollide = false | |
2589 | rng.FormFactor = 3 | |
2590 | rng.Name = "Ring" | |
2591 | rng.Size = Vector3.new(1, 1, 1) | |
2592 | rng.Transparency = 0 | |
2593 | rng.TopSurface = 0 | |
2594 | rng.BottomSurface = 0 | |
2595 | rng.CFrame = pos | |
2596 | local rngm = Instance.new("SpecialMesh", rng) | |
2597 | rngm.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
2598 | rngm.Scale = scale | |
2599 | local scaler2 = 1 | |
2600 | if type == "Add" then | |
2601 | scaler2 = 1*value | |
2602 | elseif type == "Divide" then | |
2603 | scaler2 = 1/value | |
2604 | end | |
2605 | coroutine.resume(coroutine.create(function() | |
2606 | for i = 0,10,0.1 do | |
2607 | swait() | |
2608 | if type == "Add" then | |
2609 | scaler2 = scaler2 - 0.01*value | |
2610 | elseif type == "Divide" then | |
2611 | scaler2 = scaler2 - 0.01/value | |
2612 | end | |
2613 | rng.Transparency = rng.Transparency + 0.01 | |
2614 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
2615 | end | |
2616 | rng:Destroy() | |
2617 | end)) | |
2618 | end | |
2619 | ||
2620 | function wind(type,pos,scale,value,speed) | |
2621 | local type = type | |
2622 | local rng = Instance.new("Part", char) | |
2623 | rng.Anchored = true | |
2624 | rng.BrickColor = origcolor | |
2625 | rng.CanCollide = false | |
2626 | rng.FormFactor = 3 | |
2627 | rng.Name = "Ring" | |
2628 | rng.Size = Vector3.new(1, 1, 1) | |
2629 | rng.Transparency = 0 | |
2630 | rng.TopSurface = 0 | |
2631 | rng.BottomSurface = 0 | |
2632 | rng.CFrame = pos | |
2633 | local rngm = Instance.new("SpecialMesh", rng) | |
2634 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
2635 | rngm.Scale = scale | |
2636 | local scaler2 = 1 | |
2637 | if type == "Add" then | |
2638 | scaler2 = 1*value | |
2639 | elseif type == "Divide" then | |
2640 | scaler2 = 1/value | |
2641 | end | |
2642 | coroutine.resume(coroutine.create(function() | |
2643 | for i = 0,10,0.1 do | |
2644 | swait() | |
2645 | if type == "Add" then | |
2646 | scaler2 = scaler2 - 0.01*value | |
2647 | elseif type == "Divide" then | |
2648 | scaler2 = scaler2 - 0.01/value | |
2649 | end | |
2650 | rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0) | |
2651 | rng.Transparency = rng.Transparency + 0.01 | |
2652 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
2653 | end | |
2654 | rng:Destroy() | |
2655 | end)) | |
2656 | end | |
2657 | ||
2658 | function groundwind(type,pos,scale,value,speed) | |
2659 | local type = type | |
2660 | local rng = Instance.new("Part", char) | |
2661 | rng.Anchored = true | |
2662 | rng.BrickColor = origcolor | |
2663 | rng.CanCollide = false | |
2664 | rng.FormFactor = 3 | |
2665 | rng.Name = "Ring" | |
2666 | rng.Size = Vector3.new(1, 1, 1) | |
2667 | rng.Transparency = 0 | |
2668 | rng.TopSurface = 0 | |
2669 | rng.BottomSurface = 0 | |
2670 | rng.CFrame = pos | |
2671 | local rngm = Instance.new("SpecialMesh", rng) | |
2672 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
2673 | rngm.Scale = scale | |
2674 | local scaler2 = 1 | |
2675 | if type == "Add" then | |
2676 | scaler2 = 1*value | |
2677 | elseif type == "Divide" then | |
2678 | scaler2 = 1/value | |
2679 | end | |
2680 | coroutine.resume(coroutine.create(function() | |
2681 | for i = 0,10,0.1 do | |
2682 | swait() | |
2683 | if type == "Add" then | |
2684 | scaler2 = scaler2 - 0.01*value | |
2685 | elseif type == "Divide" then | |
2686 | scaler2 = scaler2 - 0.01/value | |
2687 | end | |
2688 | rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0) | |
2689 | rng.Transparency = rng.Transparency + 0.01 | |
2690 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2) | |
2691 | end | |
2692 | rng:Destroy() | |
2693 | end)) | |
2694 | end | |
2695 | ||
2696 | function CameraManager() | |
2697 | if TwoD and not CamInterrupt then | |
2698 | if Humanoid.Health > 0 then | |
2699 | Camera.CameraSubject = Humanoid | |
2700 | Camera.CameraType = "Scriptable" | |
2701 | Humanoid.AutoRotate = false | |
2702 | if Booleans.GyroUse then | |
2703 | Directer.MaxTorque = Vec3(0, huge, 0) | |
2704 | else | |
2705 | Directer.MaxTorque = Vec3(0, 0, 0) | |
2706 | end | |
2707 | if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then | |
2708 | if Booleans.CamFollow then | |
2709 | CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z)) | |
2710 | Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position) | |
2711 | else | |
2712 | CPart.Position = RootPart.Position | |
2713 | end | |
2714 | else | |
2715 | local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p | |
2716 | CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z)) | |
2717 | end | |
2718 | Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2) | |
2719 | else | |
2720 | Camera.CameraSubject = Humanoid | |
2721 | Camera.CameraType = "Custom" | |
2722 | Controller.Disabled = false | |
2723 | end | |
2724 | end | |
2725 | end | |
2726 | ||
2727 | function sphere(bonuspeed,type,pos,scale,value,color,heart,invert,notaffectbychaosrainbow) | |
2728 | local type = type | |
2729 | local rng = Instance.new("Part", char) | |
2730 | rng.Anchored = true | |
2731 | rng.BrickColor = color | |
2732 | rng.CanCollide = false | |
2733 | rng.FormFactor = 3 | |
2734 | rng.Name = "Ring" | |
2735 | rng.Material = "Neon" | |
2736 | rng.Size = Vector3.new(1, 1, 1) | |
2737 | rng.Transparency = 0 | |
2738 | rng.TopSurface = 0 | |
2739 | rng.BottomSurface = 0 | |
2740 | rng.CFrame = pos | |
2741 | local rngm = Instance.new("SpecialMesh", rng) | |
2742 | rngm.MeshType = "Sphere" | |
2743 | ||
2744 | ||
2745 | if(heart)then | |
2746 | rngm.MeshType = Enum.MeshType.FileMesh | |
2747 | rngm.MeshId = "rbxassetid://105992239" | |
2748 | rngm.Offset = Vector3.new(0,0,-.25) | |
2749 | end | |
2750 | rngm.Scale = scale | |
2751 | if rainbowmode == true and not notaffectbychaosrainbow then | |
2752 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2753 | end | |
2754 | local scaler2 = 1 | |
2755 | if type == "Add" then | |
2756 | scaler2 = 1*value | |
2757 | elseif type == "Divide" then | |
2758 | scaler2 = 1/value | |
2759 | end | |
2760 | coroutine.resume(coroutine.create(function() | |
2761 | for i = 0,10/bonuspeed,0.1 do | |
2762 | swait() | |
2763 | if rainbowmode == true and not notaffectbychaosrainbow then | |
2764 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2765 | end | |
2766 | if type == "Add" then | |
2767 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2768 | elseif type == "Divide" then | |
2769 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2770 | end | |
2771 | if chaosmode == true and not notaffectbychaosrainbow then | |
2772 | rng.BrickColor = BrickColor.random() | |
2773 | end | |
2774 | if glitchymode then | |
2775 | local val = math.random(1,255) | |
2776 | local color = Color3.fromRGB(val,val,val) | |
2777 | rng.Color = color | |
2778 | end | |
2779 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2780 | if(invert)then | |
2781 | if(heart)then | |
2782 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
2783 | else | |
2784 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2785 | end | |
2786 | else | |
2787 | if(heart)then | |
2788 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
2789 | else | |
2790 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2791 | end | |
2792 | end | |
2793 | rng.CFrame = pos | |
2794 | end | |
2795 | rng:Destroy() | |
2796 | end)) | |
2797 | end | |
2798 | ||
2799 | function newBezier(startpos, pos2, pos3, endpos, t) | |
2800 | local A = clerp(startpos, pos2, t) | |
2801 | local B = clerp(pos2, pos3, t) | |
2802 | local C = clerp(pos3, endpos, t) | |
2803 | local lerp1 = clerp(A, B, t) | |
2804 | local lerp2 = clerp(B, C, t) | |
2805 | local cubic = clerp(lerp1, lerp2, t) | |
2806 | return cubic | |
2807 | end | |
2808 | ||
2809 | ||
2810 | function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos,heart,invert) | |
2811 | local type = type | |
2812 | local rng = Instance.new("Part", char) | |
2813 | rng.Anchored = true | |
2814 | rng.BrickColor = color | |
2815 | rng.CanCollide = false | |
2816 | rng.FormFactor = 3 | |
2817 | rng.Name = "Ring" | |
2818 | rng.Material = "Neon" | |
2819 | rng.Size = Vector3.new(1, 1, 1) | |
2820 | rng.Transparency = 0 | |
2821 | rng.TopSurface = 0 | |
2822 | rng.BottomSurface = 0 | |
2823 | rng.CFrame = pos | |
2824 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2825 | local rngm = Instance.new("SpecialMesh", rng) | |
2826 | rngm.MeshType = "Brick" | |
2827 | if(heart)then | |
2828 | rngm.MeshType = Enum.MeshType.FileMesh | |
2829 | rngm.MeshId = "rbxassetid://105992239" | |
2830 | rngm.Offset = Vector3.new(0,0,-.25) | |
2831 | end | |
2832 | rngm.Scale = vt(x1,y1,z1) | |
2833 | if rainbowmode == true then | |
2834 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2835 | end | |
2836 | local scaler2 = 1 | |
2837 | local speeder = FastSpeed/10 | |
2838 | if type == "Add" then | |
2839 | scaler2 = 1*value | |
2840 | elseif type == "Divide" then | |
2841 | scaler2 = 1/value | |
2842 | end | |
2843 | coroutine.resume(coroutine.create(function() | |
2844 | for i = 0,10/bonuspeed,0.1 do | |
2845 | swait() | |
2846 | if rainbowmode == true then | |
2847 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2848 | end | |
2849 | if type == "Add" then | |
2850 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2851 | elseif type == "Divide" then | |
2852 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2853 | end | |
2854 | if chaosmode == true then | |
2855 | rng.BrickColor = BrickColor.random() | |
2856 | end | |
2857 | if glitchymode then | |
2858 | local val = math.random(1,255) | |
2859 | local color = Color3.fromRGB(val,val,val) | |
2860 | rng.Color = color | |
2861 | end | |
2862 | speeder = speeder - 0.01*FastSpeed*bonuspeed/10 | |
2863 | if(invert)then rng.CFrame = rng.CFrame - rng.CFrame.lookVector*speeder*bonuspeed else rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed end | |
2864 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2865 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2866 | end | |
2867 | rng:Destroy() | |
2868 | end)) | |
2869 | end | |
2870 | ||
2871 | ||
2872 | function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos,heart,invert) | |
2873 | local type = type | |
2874 | local rng = Instance.new("Part", char) | |
2875 | rng.Anchored = true | |
2876 | rng.BrickColor = color | |
2877 | rng.CanCollide = false | |
2878 | rng.FormFactor = 3 | |
2879 | rng.Name = "Ring" | |
2880 | rng.Material = "Neon" | |
2881 | rng.Size = Vector3.new(1, 1, 1) | |
2882 | rng.Transparency = 0 | |
2883 | rng.TopSurface = 0 | |
2884 | rng.BottomSurface = 0 | |
2885 | rng.CFrame = pos | |
2886 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2887 | local rngm = Instance.new("SpecialMesh", rng) | |
2888 | rngm.MeshType = "Brick" | |
2889 | if(heart)then | |
2890 | rngm.MeshType = Enum.MeshType.FileMesh | |
2891 | rngm.MeshId = "rbxassetid://105992239" | |
2892 | rngm.Offset = Vector3.new(0,0,-.25) | |
2893 | end | |
2894 | rngm.Scale = vt(x1,y1,z1) | |
2895 | if rainbowmode == true then | |
2896 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2897 | end | |
2898 | local scaler2 = 0 | |
2899 | local speeder = FastSpeed/10 | |
2900 | if type == "Add" then | |
2901 | scaler2 = 1*value | |
2902 | elseif type == "Divide" then | |
2903 | scaler2 = 1/value | |
2904 | end | |
2905 | coroutine.resume(coroutine.create(function() | |
2906 | for i = 0,10/bonuspeed,0.1 do | |
2907 | swait() | |
2908 | if rainbowmode == true then | |
2909 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2910 | end | |
2911 | if type == "Add" then | |
2912 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2913 | elseif type == "Divide" then | |
2914 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2915 | end | |
2916 | if chaosmode == true then | |
2917 | rng.BrickColor = BrickColor.random() | |
2918 | end | |
2919 | if glitchymode then | |
2920 | local val = math.random(1,255) | |
2921 | local color = Color3.fromRGB(val,val,val) | |
2922 | rng.Color = color | |
2923 | end | |
2924 | speeder = speeder + 0.01*FastSpeed*bonuspeed/10 | |
2925 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
2926 | if(invert)then rng.CFrame = rng.CFrame - rng.CFrame.lookVector*speeder*bonuspeed else rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed end | |
2927 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2928 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2929 | end | |
2930 | rng:Destroy() | |
2931 | end)) | |
2932 | end | |
2933 | ||
2934 | function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2935 | local type = type | |
2936 | local rng = Instance.new("Part", char) | |
2937 | rng.Anchored = true | |
2938 | rng.BrickColor = color | |
2939 | rng.CanCollide = false | |
2940 | rng.FormFactor = 3 | |
2941 | rng.Name = "Ring" | |
2942 | rng.Material = "Neon" | |
2943 | rng.Size = Vector3.new(1, 1, 1) | |
2944 | rng.Transparency = 0 | |
2945 | rng.TopSurface = 0 | |
2946 | rng.BottomSurface = 0 | |
2947 | rng.CFrame = pos | |
2948 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2949 | local rngm = Instance.new("SpecialMesh", rng) | |
2950 | rngm.MeshType = "Sphere" | |
2951 | rngm.Scale = vt(x1,y1,z1) | |
2952 | if rainbowmode == true then | |
2953 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2954 | end | |
2955 | local scaler2 = 1 | |
2956 | local speeder = FastSpeed | |
2957 | if type == "Add" then | |
2958 | scaler2 = 1*value | |
2959 | elseif type == "Divide" then | |
2960 | scaler2 = 1/value | |
2961 | end | |
2962 | coroutine.resume(coroutine.create(function() | |
2963 | for i = 0,10/bonuspeed,0.1 do | |
2964 | swait() | |
2965 | if rainbowmode == true then | |
2966 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2967 | end | |
2968 | if type == "Add" then | |
2969 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2970 | elseif type == "Divide" then | |
2971 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2972 | end | |
2973 | if chaosmode == true then | |
2974 | rng.BrickColor = BrickColor.random() | |
2975 | end | |
2976 | if glitchymode then | |
2977 | local val = math.random(1,255) | |
2978 | local color = Color3.fromRGB(val,val,val) | |
2979 | rng.Color = color | |
2980 | end | |
2981 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
2982 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
2983 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2984 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
2985 | end | |
2986 | rng:Destroy() | |
2987 | end)) | |
2988 | end | |
2989 | ||
2990 | ||
2991 | function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2992 | local type = type | |
2993 | local rng = Instance.new("Part", char) | |
2994 | rng.Anchored = true | |
2995 | rng.BrickColor = color | |
2996 | rng.CanCollide = false | |
2997 | rng.FormFactor = 3 | |
2998 | rng.Name = "Ring" | |
2999 | rng.Material = "Neon" | |
3000 | rng.Size = Vector3.new(1, 1, 1) | |
3001 | rng.Transparency = 1 | |
3002 | rng.TopSurface = 0 | |
3003 | rng.BottomSurface = 0 | |
3004 | rng.CFrame = pos | |
3005 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
3006 | local rngm = Instance.new("SpecialMesh", rng) | |
3007 | rngm.MeshType = "Sphere" | |
3008 | rngm.Scale = vt(x1,y1,z1) | |
3009 | if rainbowmode == true then | |
3010 | rng.Color = Color3.new(r/255,g/255,b/255) | |
3011 | end | |
3012 | local scaler2 = 1 | |
3013 | local speeder = FastSpeed | |
3014 | if type == "Add" then | |
3015 | scaler2 = 1*value | |
3016 | elseif type == "Divide" then | |
3017 | scaler2 = 1/value | |
3018 | end | |
3019 | coroutine.resume(coroutine.create(function() | |
3020 | for i = 0,10/bonuspeed,0.1 do | |
3021 | swait() | |
3022 | if rainbowmode == true then | |
3023 | rng.Color = Color3.new(r/255,g/255,b/255) | |
3024 | end | |
3025 | if type == "Add" then | |
3026 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
3027 | elseif type == "Divide" then | |
3028 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
3029 | end | |
3030 | if chaosmode == true then | |
3031 | rng.BrickColor = BrickColor.random() | |
3032 | end | |
3033 | if glitchymode then | |
3034 | local val = math.random(1,255) | |
3035 | local color = Color3.fromRGB(val,val,val) | |
3036 | rng.Color = color | |
3037 | end | |
3038 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
3039 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
3040 | rng.Transparency = rng.Transparency - 0.01*bonuspeed | |
3041 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
3042 | end | |
3043 | rng:Destroy() | |
3044 | end)) | |
3045 | end | |
3046 | ||
3047 | function dmg(dude) | |
3048 | if dude.Name ~= Character then | |
3049 | local bgf = Instance.new("BodyGyro",dude.Head) | |
3050 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
3051 | local val = Instance.new("BoolValue",dude) | |
3052 | val.Name = "IsHit" | |
3053 | local ds = coroutine.wrap(function() | |
3054 | local torso = dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' | |
3055 | for i = 1, 10 do | |
3056 | sphereMK(1.5,2,"Add",torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,25,-.01,BrickColor.new("White"),0,true) | |
3057 | end | |
3058 | dude:WaitForChild("Head"):BreakJoints() | |
3059 | wait(0.5) | |
3060 | targetted = nil | |
3061 | CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3) | |
3062 | ||
3063 | coroutine.resume(coroutine.create(function() | |
3064 | for i, v in pairs(dude:GetChildren()) do | |
3065 | if v:IsA("Accessory") then | |
3066 | v:Destroy() | |
3067 | end | |
3068 | if v:IsA("Humanoid") then | |
3069 | v:Destroy() | |
3070 | end | |
3071 | if v:IsA("CharacterMesh") then | |
3072 | v:Destroy() | |
3073 | end | |
3074 | if v:IsA("Model") then | |
3075 | v:Destroy() | |
3076 | end | |
3077 | if v:IsA("Part") or v:IsA("MeshPart") then | |
3078 | for x, o in pairs(v:GetChildren()) do | |
3079 | if o:IsA("Decal") then | |
3080 | o:Destroy() | |
3081 | end | |
3082 | end | |
3083 | coroutine.resume(coroutine.create(function() | |
3084 | v.Material = "Neon" | |
3085 | v.CanCollide = false | |
3086 | local bld = Instance.new("ParticleEmitter",v) | |
3087 | bld.LightEmission = 1 | |
3088 | bld.Texture = "rbxassetid://284205403" | |
3089 | bld.Color = ColorSequence.new(Color3.new(1,1,1)) | |
3090 | bld.Rate = 50 | |
3091 | bld.Lifetime = NumberRange.new(1) | |
3092 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3093 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3094 | bld.Speed = NumberRange.new(0,0) | |
3095 | bld.VelocitySpread = 50000 | |
3096 | bld.Rotation = NumberRange.new(-500,500) | |
3097 | bld.RotSpeed = NumberRange.new(-500,500) | |
3098 | local sbs = Instance.new("BodyPosition", v) | |
3099 | sbs.P = 3000 | |
3100 | sbs.D = 1000 | |
3101 | sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
3102 | sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
3103 | v.Color = Color3.new(1,1,1) | |
3104 | coroutine.resume(coroutine.create(function() | |
3105 | for i = 0, 49 do | |
3106 | swait(1) | |
3107 | v.Transparency = v.Transparency + 0.02 | |
3108 | end | |
3109 | CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1) | |
3110 | bld.Speed = NumberRange.new(1,5) | |
3111 | bld.Acceleration = vt(0,10,0) | |
3112 | wait(0.5) | |
3113 | bld.Enabled = false | |
3114 | wait(3) | |
3115 | v:Destroy() | |
3116 | dude:Destroy() | |
3117 | end)) | |
3118 | end)) | |
3119 | end | |
3120 | end | |
3121 | end)) | |
3122 | end) | |
3123 | ds() | |
3124 | end | |
3125 | end | |
3126 | ||
3127 | ||
3128 | function FindNearestHead(Position, Distance, SinglePlayer) | |
3129 | if SinglePlayer then | |
3130 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
3131 | end | |
3132 | local List = {} | |
3133 | for i, v in pairs(workspace:GetChildren()) do | |
3134 | if v:IsA("Model") then | |
3135 | if v:findFirstChild("Head") then | |
3136 | if v ~= Character then | |
3137 | if (v.Head.Position - Position).magnitude <= Distance then | |
3138 | table.insert(List, v) | |
3139 | end | |
3140 | end | |
3141 | end | |
3142 | end | |
3143 | end | |
3144 | return List | |
3145 | end | |
3146 | ||
3147 | function FaceMouse() | |
3148 | Cam = workspace.CurrentCamera | |
3149 | return { | |
3150 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
3151 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
3152 | } | |
3153 | end | |
3154 | ||
3155 | function FaceMouse2() | |
3156 | Cam = workspace.CurrentCamera | |
3157 | return { | |
3158 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)), | |
3159 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
3160 | } | |
3161 | end | |
3162 | ||
3163 | local ModeOfGlitch = 1 | |
3164 | -- Functions are ready. | |
3165 | local storehumanoidWS = 16 | |
3166 | ||
3167 | function CorruptBlink() | |
3168 | for i = 0, 14 do | |
3169 | 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) | |
3170 | end | |
3171 | sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
3172 | CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1) | |
3173 | RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0) | |
3174 | CameraEnshaking(2,10) | |
3175 | if(ModeOfGlitch == 1 or ModeOfGlitch == 3 or ModeOfGlitch == 4 or ModeOfGlitch == 666666)then for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do | |
3176 | if v:FindFirstChild('Head') then | |
3177 | dmg(v) | |
3178 | end | |
3179 | end end | |
3180 | for i = 0, 14 do | |
3181 | 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) | |
3182 | end | |
3183 | sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
3184 | end | |
3185 | ||
3186 | function ExtinctiveHeartbreak() | |
3187 | local targetted = nil | |
3188 | if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
3189 | targetted = mouse.Target.Parent | |
3190 | end | |
3191 | if targetted ~= nil then | |
3192 | attack = true | |
3193 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1) | |
3194 | for i = 0, 9 do | |
3195 | 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("Really black"),0) | |
3196 | end | |
3197 | for i = 0, 24 do | |
3198 | 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) | |
3199 | end | |
3200 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really black")) | |
3201 | local originalpos = root.CFrame | |
3202 | RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2) | |
3203 | for i = 0, 9 do | |
3204 | 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("Really black"),0) | |
3205 | end | |
3206 | for i = 0, 24 do | |
3207 | 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) | |
3208 | end | |
3209 | hum.WalkSpeed = 0 | |
3210 | targetted.Head.Anchored = true | |
3211 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really black")) | |
3212 | for i = 0,2,0.1 do | |
3213 | swait() | |
3214 | 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)),.4) | |
3215 | 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) | |
3216 | 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) | |
3217 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8) | |
3218 | 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) | |
3219 | 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) | |
3220 | end | |
3221 | coroutine.resume(coroutine.create(function() | |
3222 | bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso")) | |
3223 | bld.LightEmission = 0.1 | |
3224 | bld.Texture = "rbxassetid://284205403" | |
3225 | bld.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
3226 | bld.Rate = 500 | |
3227 | bld.Lifetime = NumberRange.new(1) | |
3228 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3229 | bld.Acceleration = vt(0,-25,0) | |
3230 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3231 | bld.Speed = NumberRange.new(10,50) | |
3232 | bld.EmissionDirection = "Front" | |
3233 | bld.VelocitySpread = 25 | |
3234 | bld.Rotation = NumberRange.new(-500,500) | |
3235 | bld.RotSpeed = NumberRange.new(-500,500) | |
3236 | end)) | |
3237 | coroutine.resume(coroutine.create(function() | |
3238 | bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso")) | |
3239 | bld.LightEmission = 0.1 | |
3240 | bld.Texture = "rbxassetid://284205403" | |
3241 | bld.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
3242 | bld.Rate = 500 | |
3243 | bld.Lifetime = NumberRange.new(1) | |
3244 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3245 | bld.Acceleration = vt(0,-25,0) | |
3246 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3247 | bld.Speed = NumberRange.new(10,50) | |
3248 | bld.EmissionDirection = "Front" | |
3249 | bld.VelocitySpread = 25 | |
3250 | bld.Rotation = NumberRange.new(-500,500) | |
3251 | bld.RotSpeed = NumberRange.new(-500,500) | |
3252 | end)) | |
3253 | CameraEnshaking(5,5) | |
3254 | game:GetService("Debris"):AddItem(bld,3) | |
3255 | dmg(targetted) | |
3256 | CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Head, 1,1) | |
3257 | for i = 0,1,0.1 do | |
3258 | swait() | |
3259 | 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) | |
3260 | 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)),.8) | |
3261 | 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) | |
3262 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8) | |
3263 | 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) | |
3264 | 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) | |
3265 | end | |
3266 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1) | |
3267 | for i = 0, 9 do | |
3268 | 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("Really black"),0) | |
3269 | end | |
3270 | for i = 0, 24 do | |
3271 | 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) | |
3272 | end | |
3273 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really black")) | |
3274 | root.CFrame = originalpos | |
3275 | for i = 0, 9 do | |
3276 | 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("Really black"),0) | |
3277 | end | |
3278 | for i = 0, 24 do | |
3279 | 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) | |
3280 | end | |
3281 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really black")) | |
3282 | bld.Enabled = false | |
3283 | attack = false | |
3284 | hum.WalkSpeed = storehumanoidWS | |
3285 | end | |
3286 | end | |
3287 | function PureBomb() | |
3288 | attack = true | |
3289 | ||
3290 | local orb = Instance.new("Part", char) | |
3291 | orb.Anchored = true | |
3292 | orb.BrickColor = BrickColor.new("Toothpaste") | |
3293 | orb.CanCollide = false | |
3294 | orb.FormFactor = 3 | |
3295 | orb.Name = "Ring" | |
3296 | orb.Material = "Neon" | |
3297 | orb.Size = Vector3.new(1, 1, 1) | |
3298 | orb.Transparency = 0 | |
3299 | orb.TopSurface = 0 | |
3300 | orb.BottomSurface = 0 | |
3301 | local orbm = Instance.new("SpecialMesh", orb) | |
3302 | orbm.MeshType = "Sphere" | |
3303 | orbm.Name = "SizeMesh" | |
3304 | orbm.Scale = vt(0,0,0) | |
3305 | local scaled = 0.1 | |
3306 | local posid = 0 | |
3307 | CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1) | |
3308 | for i = 0, 5, 0.1 do | |
3309 | swait() | |
3310 | scaled = scaled - 0.001 | |
3311 | posid = posid - scaled | |
3312 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
3313 | orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled) | |
3314 | 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) | |
3315 | 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) | |
3316 | 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) | |
3317 | 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) | |
3318 | 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) | |
3319 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
3320 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1) | |
3321 | 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) | |
3322 | end | |
3323 | for i = 0, 2, 0.1 do | |
3324 | swait() | |
3325 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
3326 | 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) | |
3327 | 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) | |
3328 | 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) | |
3329 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4) | |
3330 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4) | |
3331 | 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) | |
3332 | end | |
3333 | coroutine.resume(coroutine.create(function() | |
3334 | orb.Anchored = false | |
3335 | CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1) | |
3336 | local a = Instance.new("Part",workspace) | |
3337 | a.Name = "Direction" | |
3338 | a.Anchored = true | |
3339 | a.BrickColor = bc("Bright red") | |
3340 | a.Material = "Neon" | |
3341 | a.Transparency = 1 | |
3342 | a.CanCollide = false | |
3343 | local ray = Ray.new( | |
3344 | orb.CFrame.p, -- origin | |
3345 | (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction | |
3346 | ) | |
3347 | local ignore = orb | |
3348 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3349 | a.BottomSurface = 10 | |
3350 | a.TopSurface = 10 | |
3351 | local distance = (orb.CFrame.p - position).magnitude | |
3352 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
3353 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
3354 | orb.CFrame = a.CFrame | |
3355 | a:Destroy() | |
3356 | local bv = Instance.new("BodyVelocity") | |
3357 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3358 | bv.velocity = orb.CFrame.lookVector*125 | |
3359 | bv.Parent = orb | |
3360 | local hitted = false | |
3361 | game:GetService("Debris"):AddItem(orb, 15) | |
3362 | wait() | |
3363 | local hit =orb.Touched:connect(function(hit) | |
3364 | if hitted == false then | |
3365 | hitted = true | |
3366 | CameraEnshaking(10,2.5) | |
3367 | CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1) | |
3368 | MagniDamage(orb, 65, 65,90, 0, "Normal") | |
3369 | sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste")) | |
3370 | sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste")) | |
3371 | for i = 0, 49 do | |
3372 | 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) | |
3373 | end | |
3374 | for i = 0, 9 do | |
3375 | 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) | |
3376 | 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) | |
3377 | end | |
3378 | orb.Anchored = true | |
3379 | orb.Transparency = 1 | |
3380 | wait(8) | |
3381 | orb:Destroy() | |
3382 | end | |
3383 | end) | |
3384 | end)) | |
3385 | for i = 0, 1, 0.1 do | |
3386 | swait() | |
3387 | 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) | |
3388 | 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) | |
3389 | 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) | |
3390 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4) | |
3391 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4) | |
3392 | 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) | |
3393 | end | |
3394 | attack = false | |
3395 | end | |
3396 | ||
3397 | function ChaosGroundStrike() | |
3398 | attack = true | |
3399 | for i = 0, 2, 0.1 do | |
3400 | swait() | |
3401 | 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) | |
3402 | 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) | |
3403 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
3404 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
3405 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2) | |
3406 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2) | |
3407 | end | |
3408 | CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1) | |
3409 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1) | |
3410 | CameraEnshaking(4,12) | |
3411 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do | |
3412 | if v:FindFirstChild('Head') then | |
3413 | dmg(v) | |
3414 | end | |
3415 | end | |
3416 | sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random()) | |
3417 | sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random()) | |
3418 | sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random()) | |
3419 | for i = 0, 2, 0.1 do | |
3420 | swait() | |
3421 | 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) | |
3422 | 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) | |
3423 | 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) | |
3424 | 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) | |
3425 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
3426 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
3427 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4) | |
3428 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4) | |
3429 | end | |
3430 | attack = false | |
3431 | end | |
3432 | ||
3433 | function InsaneGroundStrike() | |
3434 | attack = true | |
3435 | chatfunc("Succumb to the insanity!",Color3.new(0,0,0)) | |
3436 | for i = 0, 8, 0.1 do | |
3437 | swait() | |
3438 | PixelBlockNeg(2,1,"Add",RightLeg.CFrame*cf(0,-1.35,0)*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) | |
3439 | ||
3440 | 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) | |
3441 | 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) | |
3442 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
3443 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
3444 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2) | |
3445 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2) | |
3446 | end | |
3447 | CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1) | |
3448 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1) | |
3449 | CameraEnshaking(8,24) | |
3450 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 105)) do | |
3451 | if v:FindFirstChild('Head') then | |
3452 | dmg(v) | |
3453 | end | |
3454 | end | |
3455 | sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random()) | |
3456 | sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random()) | |
3457 | sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(200,0.1,200),0.01,BrickColor.random()) | |
3458 | CFuncs["Sound"].Create("rbxassetid://907329669", root, 10, 1) | |
3459 | chatfunc("Leave the dead where they fall!",Color3.new(0,0,0)) | |
3460 | for i = 0, 2, 0.1 do | |
3461 | swait() | |
3462 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-105,105),-5,math.random(-105,105))*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) | |
3463 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-105,105),-5,math.random(-105,105))*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) | |
3464 | 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) | |
3465 | 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) | |
3466 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
3467 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
3468 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4) | |
3469 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4) | |
3470 | end | |
3471 | attack = false | |
3472 | end | |
3473 | ||
3474 | function Starfall() | |
3475 | attack = true | |
3476 | hum.WalkSpeed = 0 | |
3477 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1) | |
3478 | for i = 0, 5, 0.1 do | |
3479 | swait() | |
3480 | 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) | |
3481 | 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) | |
3482 | 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) | |
3483 | 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) | |
3484 | 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) | |
3485 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1) | |
3486 | 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) | |
3487 | 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) | |
3488 | end | |
3489 | local Overed = false | |
3490 | CameraEnshaking(2,20) | |
3491 | sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
3492 | sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
3493 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
3494 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1) | |
3495 | local orb = Instance.new("Part", char) | |
3496 | orb.Anchored = true | |
3497 | orb.BrickColor = BrickColor.new("Toothpaste") | |
3498 | orb.CanCollide = false | |
3499 | orb.FormFactor = 3 | |
3500 | orb.Name = "Remenant" | |
3501 | orb.Material = "Neon" | |
3502 | orb.CFrame = root.CFrame*CFrame.new(0,150,0) | |
3503 | orb.Size = Vector3.new(1, 1, 1) | |
3504 | orb.Transparency = 1 | |
3505 | orb.TopSurface = 0 | |
3506 | orb.BottomSurface = 0 | |
3507 | hum.WalkSpeed = storehumanoidWS | |
3508 | coroutine.resume(coroutine.create(function() | |
3509 | for i = 0, 9 do | |
3510 | swait(10) | |
3511 | local lb = Instance.new("Part") | |
3512 | lb.Color = MAINRUINCOLOR.Color | |
3513 | lb.CanCollide = false | |
3514 | lb.Material = "Neon" | |
3515 | lb.Anchored = true | |
3516 | lb.TopSurface = 0 | |
3517 | lb.BottomSurface = 0 | |
3518 | lb.Transparency = 0 | |
3519 | lb.Size = vt(1,1,1) | |
3520 | 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))) | |
3521 | lb.Anchored = false | |
3522 | lb.Parent = char | |
3523 | local thingery = Instance.new("SpecialMesh",lb) | |
3524 | thingery.MeshType = "Sphere" | |
3525 | thingery.Scale = vt(20,20,20) | |
3526 | game:GetService("Debris"):AddItem(lb, 10) | |
3527 | local bv = Instance.new("BodyVelocity") | |
3528 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3529 | bv.velocity = lb.CFrame.lookVector*math.random(75,250) | |
3530 | bv.Parent = lb | |
3531 | sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR) | |
3532 | sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR) | |
3533 | CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1) | |
3534 | CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1) | |
3535 | CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1) | |
3536 | CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1) | |
3537 | local hitted = false | |
3538 | coroutine.resume(coroutine.create(function() | |
3539 | while true do | |
3540 | swait(1) | |
3541 | if lb.Parent ~= nil and hitted == false then | |
3542 | 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) | |
3543 | elseif lb.Parent == nil then | |
3544 | break | |
3545 | end | |
3546 | end | |
3547 | end)) | |
3548 | ||
3549 | game:GetService("Debris"):AddItem(a, 0.1) | |
3550 | ||
3551 | coroutine.resume(coroutine.create(function() | |
3552 | swait(1) | |
3553 | lb.Touched:connect(function(hit) | |
3554 | if hitted == false then | |
3555 | hitted = true | |
3556 | lb.Transparency = 1 | |
3557 | lb.Anchored = true | |
3558 | CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1) | |
3559 | CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7) | |
3560 | CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75) | |
3561 | CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75) | |
3562 | CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1) | |
3563 | CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85) | |
3564 | MagniDamage(lb, 45, 45,85, 0, "Normal") | |
3565 | CameraEnshaking(1,5) | |
3566 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
3567 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
3568 | for i = 0, 9 do | |
3569 | 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) | |
3570 | end | |
3571 | for i = 0, 49 do | |
3572 | swait() | |
3573 | MagniDamage(lb, 30, 2,4, 0, "Normal") | |
3574 | 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) | |
3575 | end | |
3576 | end | |
3577 | end) | |
3578 | end)) | |
3579 | end | |
3580 | Overed = true | |
3581 | orb:Destroy() | |
3582 | end)) | |
3583 | ||
3584 | attack = false | |
3585 | end | |
3586 | ||
3587 | function StarfallEX() | |
3588 | attack = true | |
3589 | hum.WalkSpeed = 0 | |
3590 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1) | |
3591 | for i = 0, 5, 0.1 do | |
3592 | swait() | |
3593 | 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) | |
3594 | 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) | |
3595 | 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) | |
3596 | 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) | |
3597 | 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) | |
3598 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1) | |
3599 | 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) | |
3600 | 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) | |
3601 | end | |
3602 | local Overed = false | |
3603 | CameraEnshaking(2,20) | |
3604 | sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
3605 | sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
3606 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
3607 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1) | |
3608 | local orb = Instance.new("Part", char) | |
3609 | orb.Anchored = true | |
3610 | orb.BrickColor = BrickColor.new("Toothpaste") | |
3611 | orb.CanCollide = false | |
3612 | orb.FormFactor = 3 | |
3613 | orb.Name = "Remenant" | |
3614 | orb.Material = "Neon" | |
3615 | orb.CFrame = root.CFrame*CFrame.new(0,150,0) | |
3616 | orb.Size = Vector3.new(1, 1, 1) | |
3617 | orb.Transparency = 1 | |
3618 | orb.TopSurface = 0 | |
3619 | orb.BottomSurface = 0 | |
3620 | hum.WalkSpeed = storehumanoidWS | |
3621 | coroutine.resume(coroutine.create(function() | |
3622 | for i = 1, 5 do | |
3623 | swait(10) | |
3624 | local lb = Instance.new("Part") | |
3625 | lb.Color = MAINRUINCOLOR.Color | |
3626 | lb.CanCollide = false | |
3627 | lb.Material = "Neon" | |
3628 | lb.Anchored = true | |
3629 | lb.TopSurface = 0 | |
3630 | lb.BottomSurface = 0 | |
3631 | lb.Transparency = 0 | |
3632 | lb.Size = vt(1,1,1) | |
3633 | lb.CFrame = orb.CFrame*CFrame.new(math.random(-75,75),0,math.random(-75,75))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15))) | |
3634 | lb.Anchored = false | |
3635 | lb.Parent = char | |
3636 | local thingery = Instance.new("SpecialMesh",lb) | |
3637 | thingery.MeshType = "Sphere" | |
3638 | thingery.Scale = vt(20,20,20) | |
3639 | game:GetService("Debris"):AddItem(lb, 10) | |
3640 | local bv = Instance.new("BodyVelocity") | |
3641 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3642 | bv.velocity = lb.CFrame.lookVector*math.random(75,250) | |
3643 | bv.Parent = lb | |
3644 | sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR) | |
3645 | sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR) | |
3646 | CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1) | |
3647 | CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1) | |
3648 | CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1) | |
3649 | CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1) | |
3650 | local hitted = false | |
3651 | coroutine.resume(coroutine.create(function() | |
3652 | while true do | |
3653 | swait(1) | |
3654 | if lb.Parent ~= nil and hitted == false then | |
3655 | 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) | |
3656 | elseif lb.Parent == nil then | |
3657 | break | |
3658 | end | |
3659 | end | |
3660 | end)) | |
3661 | ||
3662 | game:GetService("Debris"):AddItem(a, 0.1) | |
3663 | ||
3664 | coroutine.resume(coroutine.create(function() | |
3665 | swait(5) | |
3666 | lb.Touched:connect(function(hit) | |
3667 | if hitted == false and not hit:IsDescendantOf(Character) then | |
3668 | hitted = true | |
3669 | lb.Transparency = 1 | |
3670 | lb.Anchored = true | |
3671 | CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1) | |
3672 | CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7) | |
3673 | CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75) | |
3674 | CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75) | |
3675 | CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1) | |
3676 | CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85) | |
3677 | MagniDamage(lb, 45, 90,170, 0, "Normal") | |
3678 | CameraEnshaking(1,5) | |
3679 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
3680 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
3681 | for i = 0, 9 do | |
3682 | 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) | |
3683 | end | |
3684 | for i = 0, 49 do | |
3685 | swait() | |
3686 | MagniDamage(lb, 60, 20,40, 0, "Normal") | |
3687 | 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) | |
3688 | end | |
3689 | end | |
3690 | end) | |
3691 | end)) | |
3692 | end | |
3693 | Overed = true | |
3694 | orb:Destroy() | |
3695 | end)) | |
3696 | ||
3697 | attack = false | |
3698 | end | |
3699 | ||
3700 | ||
3701 | function StarDivision() | |
3702 | attack = true | |
3703 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5) | |
3704 | for i = 0, 2, 0.1 do | |
3705 | swait() | |
3706 | 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) | |
3707 | 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) | |
3708 | 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) | |
3709 | 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(90)),.6) | |
3710 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-90)),.6) | |
3711 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6) | |
3712 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.6) | |
3713 | end | |
3714 | local orb = Instance.new("Part", char) | |
3715 | orb.BrickColor = MAINRUINCOLOR | |
3716 | orb.CanCollide = false | |
3717 | orb.FormFactor = 3 | |
3718 | orb.Name = "Ring" | |
3719 | orb.Material = "Neon" | |
3720 | orb.Size = Vector3.new(1, 1, 1) | |
3721 | orb.Transparency = 0 | |
3722 | orb.TopSurface = 0 | |
3723 | orb.BottomSurface = 0 | |
3724 | local orbm = Instance.new("SpecialMesh", orb) | |
3725 | orbm.MeshType = "Sphere" | |
3726 | orbm.Name = "SizeMesh" | |
3727 | orbm.Scale = vt(2,2,2) | |
3728 | local a = Instance.new("Part",workspace) | |
3729 | a.Name = "Direction" | |
3730 | a.Anchored = true | |
3731 | a.BrickColor = bc("Bright red") | |
3732 | a.Material = "Neon" | |
3733 | a.Transparency = 1 | |
3734 | a.CanCollide = false | |
3735 | local ray = Ray.new( | |
3736 | sorb.CFrame.p, -- origin | |
3737 | (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction | |
3738 | ) | |
3739 | local ignore = sorb | |
3740 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3741 | a.BottomSurface = 10 | |
3742 | a.TopSurface = 10 | |
3743 | local distance = (sorb.CFrame.p - position).magnitude | |
3744 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
3745 | a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
3746 | orb.CFrame = a.CFrame | |
3747 | a:Destroy() | |
3748 | local bv = Instance.new("BodyVelocity") | |
3749 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3750 | bv.velocity = orb.CFrame.lookVector*100 | |
3751 | bv.Parent = orb | |
3752 | local hitted = false | |
3753 | game:GetService("Debris"):AddItem(orb, 10) | |
3754 | CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15) | |
3755 | CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15) | |
3756 | CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15) | |
3757 | CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15) | |
3758 | CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15) | |
3759 | coroutine.resume(coroutine.create(function() | |
3760 | while true do | |
3761 | swait(1) | |
3762 | if orb.Parent ~= nil and hitted == false then | |
3763 | 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) | |
3764 | elseif orb.Parent == nil then | |
3765 | break | |
3766 | end | |
3767 | end | |
3768 | end)) | |
3769 | coroutine.resume(coroutine.create(function() | |
3770 | swait(1) | |
3771 | orb.Touched:connect(function(hit) | |
3772 | if hitted == false then | |
3773 | hitted = true | |
3774 | game:GetService("Debris"):AddItem(orb, 5) | |
3775 | orb.Transparency = 1 | |
3776 | orb.Anchored = true | |
3777 | local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
3778 | elocacenter.Anchored = true | |
3779 | elocacenter.CFrame = orb.CFrame | |
3780 | elocacenter.Orientation = vt(0,0,0) | |
3781 | local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
3782 | eloca1.Anchored = true | |
3783 | eloca1.CFrame = elocacenter.CFrame | |
3784 | local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
3785 | eloca2.Anchored = true | |
3786 | eloca2.CFrame = elocacenter.CFrame | |
3787 | local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
3788 | eloca3.Anchored = true | |
3789 | eloca3.CFrame = elocacenter.CFrame | |
3790 | local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
3791 | eloca4.Anchored = true | |
3792 | eloca4.CFrame = elocacenter.CFrame | |
3793 | local lookavec = 0 | |
3794 | local speeds = 0 | |
3795 | CameraEnshaking(1,1) | |
3796 | CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1) | |
3797 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
3798 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
3799 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
3800 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
3801 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
3802 | for i = 0, 99 do | |
3803 | swait() | |
3804 | lookavec = lookavec + 1 | |
3805 | speeds = speeds + 0.1 | |
3806 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
3807 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
3808 | 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) | |
3809 | ||
3810 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
3811 | 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) | |
3812 | ||
3813 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
3814 | 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) | |
3815 | ||
3816 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
3817 | 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) | |
3818 | end | |
3819 | ||
3820 | for i = 0, 149 do | |
3821 | swait() | |
3822 | speeds = speeds + 0.1 | |
3823 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
3824 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
3825 | 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) | |
3826 | ||
3827 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
3828 | 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) | |
3829 | ||
3830 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
3831 | 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) | |
3832 | ||
3833 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
3834 | 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) | |
3835 | end | |
3836 | for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do | |
3837 | if v:FindFirstChild('Head') then | |
3838 | dmg(v) | |
3839 | end | |
3840 | end | |
3841 | CameraEnshaking(7,30) | |
3842 | MagniDamage(elocacenter, 225, 50,75, 0, "Normal") | |
3843 | CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1) | |
3844 | CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75) | |
3845 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1) | |
3846 | CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1) | |
3847 | sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR) | |
3848 | sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR) | |
3849 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
3850 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
3851 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
3852 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
3853 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
3854 | for i = 0, 24 do | |
3855 | 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) | |
3856 | 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) | |
3857 | 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) | |
3858 | 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) | |
3859 | end | |
3860 | coroutine.resume(coroutine.create(function() | |
3861 | for i = 0, 499 do | |
3862 | swait(1) | |
3863 | MagniDamage(elocacenter, 90, 1,5, 0, "Normal") | |
3864 | 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) | |
3865 | end | |
3866 | elocacenter:Destroy() | |
3867 | eloca1:Destroy() | |
3868 | eloca2:Destroy() | |
3869 | eloca3:Destroy() | |
3870 | eloca4:Destroy() | |
3871 | end)) | |
3872 | end | |
3873 | end) | |
3874 | end)) | |
3875 | attack = false | |
3876 | end | |
3877 | ||
3878 | ||
3879 | function UniversalCollapse() | |
3880 | attack = true | |
3881 | local speedearn = 0 | |
3882 | hum.WalkSpeed = 0 | |
3883 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1) | |
3884 | for i = 0, 10, 0.1 do | |
3885 | swait() | |
3886 | speedearn = speedearn + 0.1 | |
3887 | 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) | |
3888 | 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) | |
3889 | 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) | |
3890 | 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) | |
3891 | 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) | |
3892 | 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) | |
3893 | 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) | |
3894 | 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) | |
3895 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
3896 | 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) | |
3897 | 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) | |
3898 | end | |
3899 | CameraEnshaking(5,45) | |
3900 | sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR) | |
3901 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1) | |
3902 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do | |
3903 | if v:FindFirstChild('Head') then | |
3904 | dmg(v) | |
3905 | end | |
3906 | end | |
3907 | hum.WalkSpeed = storehumanoidWS | |
3908 | attack = false | |
3909 | end | |
3910 | function ChaosBegone() | |
3911 | attack = true | |
3912 | local speedearn = 0 | |
3913 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75) | |
3914 | for i = 0, 10, 0.1 do | |
3915 | swait() | |
3916 | speedearn = speedearn + 0.1 | |
3917 | 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) | |
3918 | 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) | |
3919 | 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) | |
3920 | 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) | |
3921 | 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) | |
3922 | 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) | |
3923 | 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) | |
3924 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
3925 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
3926 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2) | |
3927 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2) | |
3928 | end | |
3929 | CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1) | |
3930 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1) | |
3931 | CameraEnshaking(5,25) | |
3932 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do | |
3933 | if v:FindFirstChild('Head') then | |
3934 | dmg(v) | |
3935 | end | |
3936 | end | |
3937 | sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random()) | |
3938 | sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random()) | |
3939 | sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random()) | |
3940 | for i = 0, 3, 0.1 do | |
3941 | swait() | |
3942 | 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))),2.5,2.5,25,-0.025,BrickColor.random(),0) | |
3943 | 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))),2.5,2.5,25,-0.025,BrickColor.random(),0) | |
3944 | 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))),2.5,2.5,25,-0.025,BrickColor.random(),0) | |
3945 | 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))),2.5,2.5,25,-0.025,BrickColor.random(),0) | |
3946 | 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) | |
3947 | 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) | |
3948 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
3949 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
3950 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4) | |
3951 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4) | |
3952 | end | |
3953 | attack = false | |
3954 | end | |
3955 | ||
3956 | function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon) | |
3957 | local orb = Instance.new("Part", char) | |
3958 | orb.Anchored = true | |
3959 | orb.BrickColor = color | |
3960 | orb.CanCollide = false | |
3961 | orb.FormFactor = 3 | |
3962 | orb.Name = "Ring" | |
3963 | orb.Material = "Neon" | |
3964 | orb.Size = Vector3.new(1, 1, 1) | |
3965 | orb.Transparency = 0 | |
3966 | orb.TopSurface = 0 | |
3967 | orb.BottomSurface = 0 | |
3968 | local orbm = Instance.new("SpecialMesh", orb) | |
3969 | orbm.MeshType = "Sphere" | |
3970 | orb.CFrame = positted | |
3971 | orbm.Name = "SizeMesh" | |
3972 | orbm.Scale = vt(1,1,1) | |
3973 | coroutine.wrap(function() | |
3974 | while orb and orb.Parent do | |
3975 | if glitchymode then | |
3976 | local val = math.random(1,255) | |
3977 | local color = Color3.fromRGB(val,val,val) | |
3978 | orb.Color = color | |
3979 | end | |
3980 | swait() | |
3981 | end | |
3982 | end)() | |
3983 | CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1) | |
3984 | sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor) | |
3985 | --[[for i = 0, 2 do | |
3986 | 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) | |
3987 | end]]-- | |
3988 | coroutine.resume(coroutine.create(function() | |
3989 | wait(timer) | |
3990 | CameraEnshaking(3,ShakePower) | |
3991 | orb.Transparency = 1 | |
3992 | MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal") | |
3993 | sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor) | |
3994 | --[[for i = 0, 4 do | |
3995 | 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) | |
3996 | end]]-- | |
3997 | CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7) | |
3998 | wait(3) | |
3999 | orb:Destroy() | |
4000 | end)) | |
4001 | end | |
4002 | ||
4003 | function orb_spawn(positted,timer) | |
4004 | local orb = Instance.new("Part", char) | |
4005 | orb.Anchored = true | |
4006 | orb.BrickColor = BrickColor.new("White") | |
4007 | ||
4008 | orb.CanCollide = false | |
4009 | orb.FormFactor = 3 | |
4010 | orb.Name = "Ring" | |
4011 | orb.Material = "Neon" | |
4012 | orb.Size = Vector3.new(1, 1, 1) | |
4013 | orb.Transparency = 0 | |
4014 | orb.TopSurface = 0 | |
4015 | orb.BottomSurface = 0 | |
4016 | local orbm = Instance.new("SpecialMesh", orb) | |
4017 | orbm.MeshType = "Sphere" | |
4018 | orb.CFrame = positted | |
4019 | orbm.Name = "SizeMesh" | |
4020 | orbm.Scale = vt(1,1,1) | |
4021 | CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1) | |
4022 | sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor) | |
4023 | coroutine.wrap(function() | |
4024 | while orb and orb.Parent do | |
4025 | if glitchymode then | |
4026 | local val = math.random(1,255) | |
4027 | local color = Color3.fromRGB(val,val,val) | |
4028 | orb.Color = color | |
4029 | end | |
4030 | swait() | |
4031 | end | |
4032 | end)() | |
4033 | for i = 0, 2 do | |
4034 | 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) | |
4035 | end | |
4036 | ||
4037 | coroutine.resume(coroutine.create(function() | |
4038 | wait(timer) | |
4039 | CameraEnshaking(3,2) | |
4040 | orb.Transparency = 1 | |
4041 | MagniDamage(orb, 17.5, 10,50, 0, "Normal") | |
4042 | sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor) | |
4043 | for i = 0, 4 do | |
4044 | 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) | |
4045 | end | |
4046 | CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7) | |
4047 | wait(3) | |
4048 | orb:Destroy() | |
4049 | end)) | |
4050 | end | |
4051 | ||
4052 | function scattercorrupt() | |
4053 | attack = true | |
4054 | local rot = 0 | |
4055 | local randomrotations = math.random(1,2) | |
4056 | local lookv = 2.5 | |
4057 | local power = 5 | |
4058 | sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple")) | |
4059 | sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple")) | |
4060 | for i = 0, 9 do | |
4061 | 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) | |
4062 | end | |
4063 | CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6) | |
4064 | CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5) | |
4065 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1) | |
4066 | CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75) | |
4067 | CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5) | |
4068 | local hite = Instance.new("Part", char) | |
4069 | hite.Anchored = true | |
4070 | hite.CanCollide = false | |
4071 | hite.FormFactor = 3 | |
4072 | hite.Name = "Ring" | |
4073 | hite.Material = "Neon" | |
4074 | hite.Size = Vector3.new(1, 1, 1) | |
4075 | hite.Transparency = 1 | |
4076 | hite.TopSurface = 0 | |
4077 | hite.BottomSurface = 0 | |
4078 | hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0) | |
4079 | local rem = Instance.new("Part", char) | |
4080 | rem.Anchored = true | |
4081 | rem.CanCollide = false | |
4082 | rem.FormFactor = 3 | |
4083 | rem.Name = "Ring" | |
4084 | rem.Material = "Neon" | |
4085 | rem.Size = Vector3.new(1, 1, 1) | |
4086 | rem.Transparency = 1 | |
4087 | rem.TopSurface = 0 | |
4088 | rem.BottomSurface = 0 | |
4089 | rem.CFrame = hite.CFrame | |
4090 | local rem2 = rem:Clone() | |
4091 | rem2.Parent = char | |
4092 | rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4093 | local rem3 = rem:Clone() | |
4094 | rem3.Parent = char | |
4095 | rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0) | |
4096 | local rem4 = rem:Clone() | |
4097 | rem4.Parent = char | |
4098 | rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0) | |
4099 | hite:Destroy() | |
4100 | coroutine.resume(coroutine.create(function() | |
4101 | for i = 0, 24 do | |
4102 | swait(1) | |
4103 | if randomrotations == 1 then | |
4104 | rot = rot + 1 | |
4105 | elseif randomrotations == 2 then | |
4106 | rot = rot - 1 | |
4107 | end | |
4108 | power = power + 0.5 | |
4109 | lookv = lookv + 7.5 | |
4110 | rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0) | |
4111 | rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4112 | rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0) | |
4113 | rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0) | |
4114 | orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5) | |
4115 | orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5) | |
4116 | orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5) | |
4117 | orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5) | |
4118 | end | |
4119 | end)) | |
4120 | attack = false | |
4121 | end | |
4122 | function yinyangi() | |
4123 | attack = true | |
4124 | for i = 0, 2, 0.1 do | |
4125 | swait() | |
4126 | 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) | |
4127 | 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) | |
4128 | 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) | |
4129 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
4130 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2) | |
4131 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
4132 | end | |
4133 | local bv = Instance.new("BodyVelocity") | |
4134 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
4135 | bv.velocity = root.CFrame.lookVector*175 | |
4136 | bv.Parent = root | |
4137 | for Rotations = 0, 9 do | |
4138 | ||
4139 | for i = 0, 1, 0.5 do | |
4140 | swait() | |
4141 | bv.velocity = root.CFrame.lookVector*175 | |
4142 | 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) | |
4143 | 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) | |
4144 | 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) | |
4145 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
4146 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
4147 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
4148 | end | |
4149 | ||
4150 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
4151 | for i = 0, 1, 0.5 do | |
4152 | swait() | |
4153 | bv.velocity = root.CFrame.lookVector*175 | |
4154 | 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) | |
4155 | 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) | |
4156 | 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) | |
4157 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
4158 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
4159 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
4160 | end | |
4161 | ||
4162 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
4163 | for i = 0, 1, 0.5 do | |
4164 | swait() | |
4165 | bv.velocity = root.CFrame.lookVector*175 | |
4166 | 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) | |
4167 | 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) | |
4168 | 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) | |
4169 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
4170 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
4171 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
4172 | end | |
4173 | ||
4174 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
4175 | for i = 0, 1, 0.5 do | |
4176 | swait() | |
4177 | bv.velocity = root.CFrame.lookVector*175 | |
4178 | 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) | |
4179 | 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) | |
4180 | 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) | |
4181 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
4182 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
4183 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
4184 | end | |
4185 | ||
4186 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
4187 | end | |
4188 | bv:Destroy() | |
4189 | attack = false | |
4190 | end | |
4191 | ||
4192 | function JusticeBeam() | |
4193 | attack = true | |
4194 | ||
4195 | local rngb = Instance.new("Part", char) | |
4196 | rngb.Anchored = true | |
4197 | rngb.BrickColor = origcolor | |
4198 | rngb.CanCollide = false | |
4199 | rngb.FormFactor = 3 | |
4200 | rngb.Name = "Ring" | |
4201 | rngb.Material = "Neon" | |
4202 | rngb.Size = Vector3.new(1, 0.05, 1) | |
4203 | rngb.Transparency = 1 | |
4204 | rngb.TopSurface = 0 | |
4205 | rngb.BottomSurface = 0 | |
4206 | local rngmb = Instance.new("SpecialMesh", rngb) | |
4207 | rngmb.MeshType = "Brick" | |
4208 | rngmb.Name = "SizeMesh" | |
4209 | rngmb.Scale = vt(0,1,0) | |
4210 | ||
4211 | local orb = rngb:Clone() | |
4212 | orb.Parent = char | |
4213 | orb.Transparency = 0 | |
4214 | orb.BrickColor = BrickColor.new("White") | |
4215 | orb.Size = vt(1,1,1) | |
4216 | local orbmish = orb.SizeMesh | |
4217 | orbmish.Scale = vt(0,0,0) | |
4218 | orbmish.MeshType = "Sphere" | |
4219 | ||
4220 | local orbe = rngb:Clone() | |
4221 | orbe.Parent = char | |
4222 | orbe.Transparency = 0.5 | |
4223 | orbe.BrickColor = BrickColor.new("New Yeller") | |
4224 | orbe.Size = vt(1,1,1) | |
4225 | local orbmish2 = orbe.SizeMesh | |
4226 | orbmish2.Scale = vt(0,0,0) | |
4227 | orbmish2.MeshType = "Sphere" | |
4228 | orbe.Color = Color3.new(1,1,1) | |
4229 | ||
4230 | rngb:Destroy() | |
4231 | --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1) | |
4232 | local scaled = 1 | |
4233 | for i = 0,5,0.1 do | |
4234 | swait() | |
4235 | scaled = scaled - 0.02 | |
4236 | if rainbowmode == true then | |
4237 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4238 | end | |
4239 | orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5) | |
4240 | orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5) | |
4241 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4242 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4243 | sphereMKCharge(2.5,-0.5,"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,MAINRUINCOLOR,25) | |
4244 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
4245 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
4246 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
4247 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
4248 | 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(0)),.3) | |
4249 | 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(10),math.rad(0)),.3) | |
4250 | RootPart.CFrame = FaceMouse()[1] | |
4251 | end]]-- | |
4252 | for i = 0,5,0.1 do | |
4253 | swait() | |
4254 | if rainbowmode == true then | |
4255 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4256 | end | |
4257 | if glitchymode then | |
4258 | local val = math.random(1,255) | |
4259 | local color = Color3.fromRGB(val,val,val) | |
4260 | orbe.Color = color | |
4261 | end | |
4262 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4263 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4264 | 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) | |
4265 | 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) | |
4266 | 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) | |
4267 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1) | |
4268 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),0,math.rad(20 + 2.5 * math.cos(sine / 28))),.1) | |
4269 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),0,math.rad(-20 - 2.5 * math.cos(sine / 28))),.1) | |
4270 | end | |
4271 | orbe.Transparency = 1 | |
4272 | orb.Transparency = 1 | |
4273 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5 | |
4274 | CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1) | |
4275 | local a2 = Instance.new("Part",Character) | |
4276 | a2.Name = "Direction" | |
4277 | a2.Anchored = true | |
4278 | a2.BrickColor = bc("New Yeller") | |
4279 | a2.Color = Color3.new(1,1,1) | |
4280 | a2.Material = "Neon" | |
4281 | a2.Transparency = 0.5 | |
4282 | a2.Shape = "Cylinder" | |
4283 | a2.CanCollide = false | |
4284 | local ba = Instance.new("Part",Character) | |
4285 | ba.Name = "HitDirect" | |
4286 | ba.Anchored = true | |
4287 | ba.BrickColor = bc("Cool yellow") | |
4288 | ba.Material = "Neon" | |
4289 | ba.Transparency = 1 | |
4290 | ba.CanCollide = false | |
4291 | local ray = Ray.new( | |
4292 | orb.CFrame.p, -- origin | |
4293 | root.CFrame.lookVector.unit * 1000 -- direction | |
4294 | ) | |
4295 | local ignore = Character | |
4296 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4297 | a2.Transparency = .75 | |
4298 | a2.BottomSurface = 10 | |
4299 | a2.TopSurface = 10 | |
4300 | local distance = (orb.CFrame.p - position).magnitude | |
4301 | a2.Size = Vector3.new(distance, 1, 1) | |
4302 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4303 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4304 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4305 | game:GetService("Debris"):AddItem(a2, 20) | |
4306 | game:GetService("Debris"):AddItem(ba, 20) | |
4307 | local msh2 = Instance.new("SpecialMesh",a2) | |
4308 | msh2.MeshType = "Cylinder" | |
4309 | msh2.Scale = vt(1,6*5,6*5) | |
4310 | ||
4311 | local snd = CFuncs.Sound.Create("rbxassetid://294188875", Torso, 10, 1) | |
4312 | for i = 1, 80*2 do | |
4313 | 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) | |
4314 | 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) | |
4315 | 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) | |
4316 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1) | |
4317 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),0,math.rad(20 + 2.5 * math.cos(sine / 28))),.1) | |
4318 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),0,math.rad(-20 - 2.5 * math.cos(sine / 28))),.1) | |
4319 | swait() | |
4320 | CameraEnshaking(1,5) | |
4321 | a2.Color = Color3.new(1,1,1) | |
4322 | a2.Transparency = .25 | |
4323 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4324 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4325 | ray = Ray.new( | |
4326 | orb.CFrame.p, -- origin | |
4327 | root.CFrame.lookVector.unit * 1000 -- direction | |
4328 | ) | |
4329 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4330 | distance = (orb.CFrame.p - position).magnitude | |
4331 | if typrot == 1 then | |
4332 | rotation = rotation + 2.5 | |
4333 | elseif typrot == 2 then | |
4334 | rotation = rotation - 2.5 | |
4335 | end | |
4336 | a2.Size = Vector3.new(distance, 1, 1) | |
4337 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4338 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4339 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4340 | msh2.Scale = msh2.Scale - vt(0,.19,.19) | |
4341 | sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0) | |
4342 | sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0) | |
4343 | MagniDamage(ba, 30, 5,25, 0, "Normal") | |
4344 | end | |
4345 | a2:Destroy() | |
4346 | ba:Destroy() | |
4347 | orb:Destroy() | |
4348 | orbe:Destroy() | |
4349 | attack = false | |
4350 | end | |
4351 | ||
4352 | function Wip() | |
4353 | attack = true | |
4354 | ||
4355 | local rngb = Instance.new("Part", char) | |
4356 | rngb.Anchored = true | |
4357 | rngb.BrickColor = origcolor | |
4358 | rngb.CanCollide = false | |
4359 | rngb.FormFactor = 3 | |
4360 | rngb.Name = "Ring" | |
4361 | rngb.Material = "Neon" | |
4362 | rngb.Size = Vector3.new(1, 0.05, 1) | |
4363 | rngb.Transparency = 1 | |
4364 | rngb.TopSurface = 0 | |
4365 | rngb.BottomSurface = 0 | |
4366 | local rngmb = Instance.new("SpecialMesh", rngb) | |
4367 | rngmb.MeshType = "Brick" | |
4368 | rngmb.Name = "SizeMesh" | |
4369 | rngmb.Scale = vt(0,1,0) | |
4370 | ||
4371 | local orb = rngb:Clone() | |
4372 | orb.Parent = char | |
4373 | orb.Transparency = 0 | |
4374 | orb.BrickColor = BrickColor.new("White") | |
4375 | orb.Size = vt(1,1,1) | |
4376 | local orbmish = orb.SizeMesh | |
4377 | orbmish.Scale = vt(0,0,0) | |
4378 | orbmish.MeshType = "Sphere" | |
4379 | ||
4380 | local orbe = rngb:Clone() | |
4381 | orbe.Parent = char | |
4382 | orbe.Transparency = 0.5 | |
4383 | orbe.BrickColor = BrickColor.new("New Yeller") | |
4384 | orbe.Size = vt(1,1,1) | |
4385 | local orbmish2 = orbe.SizeMesh | |
4386 | orbmish2.Scale = vt(0,0,0) | |
4387 | orbmish2.MeshType = "Sphere" | |
4388 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4389 | ||
4390 | hum.AutoRotate = false | |
4391 | rngb:Destroy() | |
4392 | --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1) | |
4393 | local scaled = 1 | |
4394 | for i = 0,5,0.1 do | |
4395 | swait() | |
4396 | scaled = scaled - 0.02 | |
4397 | if rainbowmode == true then | |
4398 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4399 | end | |
4400 | orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5) | |
4401 | orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5) | |
4402 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4403 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4404 | sphereMKCharge(2.5,-0.5,"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,MAINRUINCOLOR,25) | |
4405 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
4406 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
4407 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
4408 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
4409 | 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(0)),.3) | |
4410 | 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(10),math.rad(0)),.3) | |
4411 | RootPart.CFrame = FaceMouse()[1] | |
4412 | end]]-- | |
4413 | for i = 0,5,0.1 do | |
4414 | swait() | |
4415 | if rainbowmode == true then | |
4416 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4417 | end | |
4418 | if glitchymode then | |
4419 | local val = math.random(1,255) | |
4420 | local color = Color3.fromRGB(val,val,val) | |
4421 | orbe.Color = color | |
4422 | end | |
4423 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4424 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4425 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
4426 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
4427 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
4428 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
4429 | 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(0)),.3) | |
4430 | 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(10),math.rad(0)),.3) | |
4431 | RootPart.CFrame = FaceMouse()[1] | |
4432 | end | |
4433 | orbe.Transparency = 1 | |
4434 | orb.Transparency = 1 | |
4435 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5 | |
4436 | CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1) | |
4437 | local a = Instance.new("Part",Character) | |
4438 | a.Name = "Direction" | |
4439 | a.Anchored = true | |
4440 | a.BrickColor = bc("White") | |
4441 | a.Material = "Neon" | |
4442 | a.Transparency = 0 | |
4443 | a.Shape = "Cylinder" | |
4444 | a.CanCollide = false | |
4445 | local a2 = Instance.new("Part",Character) | |
4446 | a2.Name = "Direction" | |
4447 | a2.Anchored = true | |
4448 | a2.BrickColor = bc("New Yeller") | |
4449 | a2.Color = Color3.new(r/255,g/255,b/255) | |
4450 | a2.Material = "Neon" | |
4451 | a2.Transparency = 0.5 | |
4452 | a2.Shape = "Cylinder" | |
4453 | a2.CanCollide = false | |
4454 | local ba = Instance.new("Part",Character) | |
4455 | ba.Name = "HitDirect" | |
4456 | ba.Anchored = true | |
4457 | ba.BrickColor = bc("Cool yellow") | |
4458 | ba.Material = "Neon" | |
4459 | ba.Transparency = 1 | |
4460 | ba.CanCollide = false | |
4461 | local ray = Ray.new( | |
4462 | orb.CFrame.p, -- origin | |
4463 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
4464 | ) | |
4465 | local ignore = Character | |
4466 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4467 | a.BottomSurface = 10 | |
4468 | a.TopSurface = 10 | |
4469 | a2.BottomSurface = 10 | |
4470 | a2.TopSurface = 10 | |
4471 | local distance = (orb.CFrame.p - position).magnitude | |
4472 | a.Size = Vector3.new(distance, 1, 1) | |
4473 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4474 | a2.Size = Vector3.new(distance, 1, 1) | |
4475 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4476 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4477 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4478 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4479 | game:GetService("Debris"):AddItem(a, 20) | |
4480 | game:GetService("Debris"):AddItem(a2, 20) | |
4481 | game:GetService("Debris"):AddItem(ba, 20) | |
4482 | local msh = Instance.new("SpecialMesh",a) | |
4483 | msh.MeshType = "Cylinder" | |
4484 | msh.Scale = vt(1,5*5,5*5) | |
4485 | local msh2 = Instance.new("SpecialMesh",a2) | |
4486 | msh2.MeshType = "Cylinder" | |
4487 | msh2.Scale = vt(1,6*5,6*5) | |
4488 | ||
4489 | for i = 0,10,0.1 do | |
4490 | swait() | |
4491 | CameraEnshaking(1,5) | |
4492 | a2.Color = Color3.new(r/255,g/255,b/255) | |
4493 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4494 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4495 | ray = Ray.new( | |
4496 | orb.CFrame.p, -- origin | |
4497 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
4498 | ) | |
4499 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4500 | distance = (orb.CFrame.p - position).magnitude | |
4501 | if typrot == 1 then | |
4502 | rotation = rotation + 2.5 | |
4503 | elseif typrot == 2 then | |
4504 | rotation = rotation - 2.5 | |
4505 | end | |
4506 | RootPart.CFrame = FaceMouse()[1] | |
4507 | a.Size = Vector3.new(distance, 1, 1) | |
4508 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4509 | a2.Size = Vector3.new(distance, 1, 1) | |
4510 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4511 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4512 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4513 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4514 | msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5) | |
4515 | msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5) | |
4516 | sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0) | |
4517 | sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0) | |
4518 | MagniDamage(ba, 30, 5,25, 0, "Normal") | |
4519 | end | |
4520 | a:Destroy() | |
4521 | a2:Destroy() | |
4522 | ba:Destroy() | |
4523 | orb:Destroy() | |
4524 | orbe:Destroy() | |
4525 | hum.AutoRotate = true | |
4526 | attack = false | |
4527 | end | |
4528 | ||
4529 | ||
4530 | function UniversalSpark() | |
4531 | attack = true | |
4532 | ||
4533 | local rngb = Instance.new("Part", char) | |
4534 | rngb.Anchored = true | |
4535 | rngb.BrickColor = origcolor | |
4536 | rngb.CanCollide = false | |
4537 | rngb.FormFactor = 3 | |
4538 | rngb.Name = "Ring" | |
4539 | rngb.Material = "Neon" | |
4540 | rngb.Size = Vector3.new(1, 0.05, 1) | |
4541 | rngb.Transparency = 1 | |
4542 | rngb.TopSurface = 0 | |
4543 | rngb.BottomSurface = 0 | |
4544 | local rngmb = Instance.new("SpecialMesh", rngb) | |
4545 | rngmb.MeshType = "Brick" | |
4546 | rngmb.Name = "SizeMesh" | |
4547 | rngmb.Scale = vt(0,1,0) | |
4548 | ||
4549 | local orb = rngb:Clone() | |
4550 | orb.Parent = char | |
4551 | orb.Transparency = 0 | |
4552 | orb.BrickColor = BrickColor.new("White") | |
4553 | orb.Size = vt(1,1,1) | |
4554 | local orbmish = orb.SizeMesh | |
4555 | orbmish.Scale = vt(0,0,0) | |
4556 | orbmish.MeshType = "Sphere" | |
4557 | ||
4558 | local orbe = rngb:Clone() | |
4559 | orbe.Parent = char | |
4560 | orbe.Transparency = 0.5 | |
4561 | orbe.BrickColor = BrickColor.new("New Yeller") | |
4562 | orbe.Size = vt(1,1,1) | |
4563 | local orbmish2 = orbe.SizeMesh | |
4564 | orbmish2.Scale = vt(0,0,0) | |
4565 | orbmish2.MeshType = "Sphere" | |
4566 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4567 | ||
4568 | rngb:Destroy() | |
4569 | --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1) | |
4570 | local scaled = 1 | |
4571 | for i = 0,5,0.1 do | |
4572 | swait() | |
4573 | scaled = scaled - 0.02 | |
4574 | if rainbowmode == true then | |
4575 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4576 | end | |
4577 | orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5) | |
4578 | orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5) | |
4579 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4580 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4581 | sphereMKCharge(2.5,-0.5,"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,MAINRUINCOLOR,25) | |
4582 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
4583 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
4584 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
4585 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
4586 | 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(0)),.3) | |
4587 | 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(10),math.rad(0)),.3) | |
4588 | RootPart.CFrame = FaceMouse()[1] | |
4589 | end]]-- | |
4590 | for i = 0,5,0.1 do | |
4591 | swait() | |
4592 | if rainbowmode == true then | |
4593 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4594 | end | |
4595 | if glitchymode then | |
4596 | local val = math.random(1,255) | |
4597 | local color = Color3.fromRGB(val,val,val) | |
4598 | orbe.Color = color | |
4599 | end | |
4600 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4601 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4602 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
4603 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
4604 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
4605 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
4606 | 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(0)),.3) | |
4607 | 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(10),math.rad(0)),.3) | |
4608 | RootPart.CFrame = FaceMouse()[1] | |
4609 | end | |
4610 | orbe.Transparency = 1 | |
4611 | orb.Transparency = 1 | |
4612 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5 | |
4613 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1) | |
4614 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1) | |
4615 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1) | |
4616 | ||
4617 | CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1) | |
4618 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1) | |
4619 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1) | |
4620 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1) | |
4621 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1) | |
4622 | CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85) | |
4623 | CFuncs["Sound"].Create("rbxassetid://164178927", char, 1, 1) | |
4624 | local xd= Instance.new("Sound",char) | |
4625 | xd.SoundId = "rbxassetid://445796828" | |
4626 | xd.Pitch = 0.75 | |
4627 | xd.Looped = true | |
4628 | xd.Volume = 1.25 | |
4629 | xd:Play() | |
4630 | local a = Instance.new("Part",Character) | |
4631 | a.Name = "Direction" | |
4632 | a.Anchored = true | |
4633 | a.BrickColor = bc("Alder") | |
4634 | a.Color = MAINRUINCOLOR.Color | |
4635 | a.Material = "Neon" | |
4636 | a.Transparency = 0.5 | |
4637 | a.Shape = "Cylinder" | |
4638 | a.CanCollide = false | |
4639 | local a2 = Instance.new("Part",Character) | |
4640 | a2.Name = "Direction" | |
4641 | a2.Anchored = true | |
4642 | a2.BrickColor = bc("New Yeller") | |
4643 | a2.Color = MAINRUINCOLOR.Color | |
4644 | a2.Material = "Neon" | |
4645 | a2.Transparency = 0.5 | |
4646 | a2.Shape = "Cylinder" | |
4647 | a2.CanCollide = false | |
4648 | local ba = Instance.new("Part",Character) | |
4649 | ba.Name = "HitDirect" | |
4650 | ba.Anchored = true | |
4651 | ba.BrickColor = bc("Cool yellow") | |
4652 | ba.Material = "Neon" | |
4653 | ba.Transparency = 1 | |
4654 | ba.CanCollide = false | |
4655 | local ray = Ray.new( | |
4656 | orb.CFrame.p, -- origin | |
4657 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
4658 | ) | |
4659 | local ignore = Character | |
4660 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4661 | a.BottomSurface = 10 | |
4662 | a.TopSurface = 10 | |
4663 | a2.BottomSurface = 10 | |
4664 | a2.TopSurface = 10 | |
4665 | local distance = (orb.CFrame.p - position).magnitude | |
4666 | a.Size = Vector3.new(distance, 1, 1) | |
4667 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4668 | a2.Size = Vector3.new(distance, 1, 1) | |
4669 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4670 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4671 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4672 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4673 | game:GetService("Debris"):AddItem(a, 60) | |
4674 | game:GetService("Debris"):AddItem(a2, 60) | |
4675 | game:GetService("Debris"):AddItem(ba, 60) | |
4676 | local outerscale = 0 | |
4677 | local msh = Instance.new("SpecialMesh",a) | |
4678 | msh.MeshType = "Cylinder" | |
4679 | msh.Scale = vt(1,0,0) | |
4680 | local msh2 = Instance.new("SpecialMesh",a2) | |
4681 | msh2.MeshType = "Cylinder" | |
4682 | msh2.Scale = vt(1,0,0) | |
4683 | for i = 0,2,0.1 do | |
4684 | swait() | |
4685 | CameraEnshaking(1,1) | |
4686 | msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20) | |
4687 | msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15) | |
4688 | outerscale = outerscale - 0.015 | |
4689 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4690 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4691 | ray = Ray.new( | |
4692 | orb.CFrame.p, -- origin | |
4693 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
4694 | ) | |
4695 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4696 | distance = (orb.CFrame.p - position).magnitude | |
4697 | if typrot == 1 then | |
4698 | rotation = rotation + 2.5 | |
4699 | elseif typrot == 2 then | |
4700 | rotation = rotation - 2.5 | |
4701 | end | |
4702 | RootPart.CFrame = FaceMouse()[1] | |
4703 | a.Size = Vector3.new(distance, 1, 1) | |
4704 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4705 | a2.Size = Vector3.new(distance, 1, 1) | |
4706 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4707 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4708 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4709 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4710 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
4711 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
4712 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
4713 | end | |
4714 | for z = 0, 2 do | |
4715 | for i = 0,4,0.1 do | |
4716 | swait() | |
4717 | CameraEnshaking(1,1) | |
4718 | msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale) | |
4719 | msh.Scale = msh.Scale - vt(0,outerscale,outerscale) | |
4720 | outerscale = outerscale + 0.015 | |
4721 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4722 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4723 | ray = Ray.new( | |
4724 | orb.CFrame.p, -- origin | |
4725 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
4726 | ) | |
4727 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4728 | distance = (orb.CFrame.p - position).magnitude | |
4729 | if typrot == 1 then | |
4730 | rotation = rotation + 2.5 | |
4731 | elseif typrot == 2 then | |
4732 | rotation = rotation - 2.5 | |
4733 | end | |
4734 | RootPart.CFrame = FaceMouse()[1] | |
4735 | a.Size = Vector3.new(distance, 1, 1) | |
4736 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4737 | a2.Size = Vector3.new(distance, 1, 1) | |
4738 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4739 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4740 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4741 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4742 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
4743 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
4744 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
4745 | end | |
4746 | for i = 0,4,0.1 do | |
4747 | swait() | |
4748 | CameraEnshaking(1,1) | |
4749 | msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale) | |
4750 | msh.Scale = msh.Scale - vt(0,outerscale,outerscale) | |
4751 | outerscale = outerscale - 0.015 | |
4752 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4753 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4754 | ray = Ray.new( | |
4755 | orb.CFrame.p, -- origin | |
4756 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
4757 | ) | |
4758 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4759 | distance = (orb.CFrame.p - position).magnitude | |
4760 | if typrot == 1 then | |
4761 | rotation = rotation + 2.5 | |
4762 | elseif typrot == 2 then | |
4763 | rotation = rotation - 2.5 | |
4764 | end | |
4765 | RootPart.CFrame = FaceMouse()[1] | |
4766 | a.Size = Vector3.new(distance, 1, 1) | |
4767 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4768 | a2.Size = Vector3.new(distance, 1, 1) | |
4769 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4770 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4771 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4772 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4773 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
4774 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
4775 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
4776 | end | |
4777 | end | |
4778 | for i = 0,4,0.1 do | |
4779 | swait() | |
4780 | CameraEnshaking(1,1) | |
4781 | msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale) | |
4782 | msh.Scale = msh.Scale - vt(0,outerscale,outerscale) | |
4783 | xd.Volume = xd.Volume - 0.025 | |
4784 | a.Transparency = a.Transparency + 0.025 | |
4785 | a2.Transparency = a2.Transparency + 0.025 | |
4786 | outerscale = outerscale - 0.015 | |
4787 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4788 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4789 | ray = Ray.new( | |
4790 | orb.CFrame.p, -- origin | |
4791 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
4792 | ) | |
4793 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4794 | distance = (orb.CFrame.p - position).magnitude | |
4795 | if typrot == 1 then | |
4796 | rotation = rotation + 2.5 | |
4797 | elseif typrot == 2 then | |
4798 | rotation = rotation - 2.5 | |
4799 | end | |
4800 | RootPart.CFrame = FaceMouse()[1] | |
4801 | a.Size = Vector3.new(distance, 1, 1) | |
4802 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4803 | a2.Size = Vector3.new(distance, 1, 1) | |
4804 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4805 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4806 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4807 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4808 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
4809 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
4810 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
4811 | end | |
4812 | xd:Destroy() | |
4813 | a:Destroy() | |
4814 | a2:Destroy() | |
4815 | ba:Destroy() | |
4816 | orb:Destroy() | |
4817 | orbe:Destroy() | |
4818 | attack = false | |
4819 | end | |
4820 | ||
4821 | ||
4822 | ||
4823 | function attackone() | |
4824 | attack = true | |
4825 | for i = 0,1,0.1 do | |
4826 | swait() | |
4827 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-40)),0.2) | |
4828 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.2) | |
4829 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2) | |
4830 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2) | |
4831 | RH.C0=clerp(RH.C0,cf(1,-1 - 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)),.2) | |
4832 | 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(10)),.2) | |
4833 | end | |
4834 | CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1) | |
4835 | ||
4836 | local hitb = Instance.new("Part", char) | |
4837 | hitb.Anchored = true | |
4838 | hitb.CanCollide = false | |
4839 | hitb.FormFactor = 3 | |
4840 | hitb.Name = "Ring" | |
4841 | hitb.Material = "Neon" | |
4842 | hitb.Size = Vector3.new(1, 1, 1) | |
4843 | hitb.Transparency = 1 | |
4844 | hitb.TopSurface = 0 | |
4845 | hitb.BottomSurface = 0 | |
4846 | hitb.CFrame = root.CFrame + root.CFrame.lookVector*2 | |
4847 | MagniDamage(hitb, 3, 10,30, 0, "Normal") | |
4848 | hitb:Destroy() | |
4849 | for i = 0,1,0.1 do | |
4850 | swait() | |
4851 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4) | |
4852 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4) | |
4853 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4) | |
4854 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4) | |
4855 | RH.C0=clerp(RH.C0,cf(1,-1 - 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(-40)),.4) | |
4856 | 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(-10)),.4) | |
4857 | end | |
4858 | ||
4859 | attack = false | |
4860 | end | |
4861 | ||
4862 | function attacktwo() | |
4863 | attack = true | |
4864 | for i = 0,1,0.1 do | |
4865 | swait() | |
4866 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(40)),0.2) | |
4867 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.2) | |
4868 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2) | |
4869 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2) | |
4870 | RH.C0=clerp(RH.C0,cf(1,-1 - 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)),.2) | |
4871 | 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(10)),.2) | |
4872 | end | |
4873 | CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1) | |
4874 | local hitb = Instance.new("Part", char) | |
4875 | hitb.Anchored = true | |
4876 | hitb.CanCollide = false | |
4877 | hitb.FormFactor = 3 | |
4878 | hitb.Name = "Ring" | |
4879 | hitb.Material = "Neon" | |
4880 | hitb.Size = Vector3.new(1, 1, 1) | |
4881 | hitb.Transparency = 1 | |
4882 | hitb.TopSurface = 0 | |
4883 | hitb.BottomSurface = 0 | |
4884 | hitb.CFrame = root.CFrame + root.CFrame.lookVector*2 | |
4885 | MagniDamage(hitb, 3, 10,30, 0, "Normal") | |
4886 | hitb:Destroy() | |
4887 | for i = 0,1,0.1 do | |
4888 | swait() | |
4889 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-70)),0.4) | |
4890 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(70)),.4) | |
4891 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4) | |
4892 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4) | |
4893 | 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(-5),math.rad(0),math.rad(-40)),.4) | |
4894 | 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(-10)),.4) | |
4895 | end | |
4896 | attack = false | |
4897 | end | |
4898 | ||
4899 | function attackthree() | |
4900 | attack = true | |
4901 | for i = 0,1,0.1 do | |
4902 | swait() | |
4903 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3) | |
4904 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3) | |
4905 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3) | |
4906 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
4907 | 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(0)),.3) | |
4908 | 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(10),math.rad(0)),.3) | |
4909 | end | |
4910 | local distlook = 5 | |
4911 | for i = 0, 4 do | |
4912 | swait(2) | |
4913 | CameraEnshaking(2,3) | |
4914 | local hite = Instance.new("Part", char) | |
4915 | hite.Anchored = true | |
4916 | hite.CanCollide = false | |
4917 | hite.FormFactor = 3 | |
4918 | hite.Name = "Ring" | |
4919 | hite.Material = "Neon" | |
4920 | hite.Size = Vector3.new(1, 1, 1) | |
4921 | hite.Transparency = 1 | |
4922 | hite.TopSurface = 0 | |
4923 | hite.BottomSurface = 0 | |
4924 | hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook | |
4925 | sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR) | |
4926 | sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR) | |
4927 | MagniDamage(hite, 10, 15,35, 0, "Normal") | |
4928 | for i = 0, 2 do | |
4929 | sphereMK(2,0.2,"Add",rarm.CFrame*CFrame.Angles(math.rad(-90+math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0) | |
4930 | sphereMK(3,0.2,"Add",hite.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,MAINRUINCOLOR,0) | |
4931 | sphereMK(6,0.35,"Add",hite.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,MAINRUINCOLOR,0) | |
4932 | end | |
4933 | CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1) | |
4934 | CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.25, 0.6) | |
4935 | game:GetService("Debris"):AddItem(hite, 5) | |
4936 | distlook = distlook + 10 | |
4937 | end | |
4938 | attack = false | |
4939 | end | |
4940 | ||
4941 | function FinalCalamity() | |
4942 | end | |
4943 | ||
4944 | function resetmode() | |
4945 | rainbowmode = false | |
4946 | chaosmode = false | |
4947 | glitchymode = false | |
4948 | tl1.Enabled = false | |
4949 | tl2.Enabled = false | |
4950 | tl3.Enabled = false | |
4951 | local lust = ModeOfGlitch == 69 | |
4952 | ModeOfGlitch = 1 | |
4953 | storehumanoidWS = 16 | |
4954 | if(not lust)then | |
4955 | newTheme("rbxassetid://1564523997",48.6,1,1) | |
4956 | end | |
4957 | coroutine.resume(coroutine.create(function() | |
4958 | attack = true | |
4959 | hum.WalkSpeed = 0 | |
4960 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25) | |
4961 | for i = 0,4,0.1 do | |
4962 | swait() | |
4963 | 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) | |
4964 | 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) | |
4965 | 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) | |
4966 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.2) | |
4967 | 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) | |
4968 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2) | |
4969 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2) | |
4970 | end | |
4971 | if(lust)then | |
4972 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1) | |
4973 | sphere(2.5,"Add",root.CFrame*angles(0,0,0),vt(100,100,2),1.25,BrickColor.new'Pink',true,true) | |
4974 | for i = 0, 49 do | |
4975 | PixelBlock(1,15,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))*cf(0,0,-80),6,6,6,0.12,BrickColor.new("Pink"),0,true,true) | |
4976 | end | |
4977 | ||
4978 | for i = 0,4,0.05 do | |
4979 | swait() | |
4980 | Pitch = 1-i/4 | |
4981 | 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) | |
4982 | 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) | |
4983 | 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) | |
4984 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.2) | |
4985 | 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) | |
4986 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2) | |
4987 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2) | |
4988 | end | |
4989 | for i = 0,3,0.1 do | |
4990 | swait() | |
4991 | 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) | |
4992 | 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) | |
4993 | 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) | |
4994 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.2) | |
4995 | 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) | |
4996 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2) | |
4997 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2) | |
4998 | end | |
4999 | newTheme("rbxassetid://1564523997",48.6,1,1) | |
5000 | end | |
5001 | CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1) | |
5002 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1) | |
5003 | CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1) | |
5004 | CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75) | |
5005 | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'Really red' end) | |
5006 | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'Really red' end) | |
5007 | RecolorTextAndRename("Solitude",Color3.new(0,0,0),Color3.new(1,1,1)) | |
5008 | CameraEnshaking(5,2.5) | |
5009 | MAINRUINCOLOR = BrickColor.new("Really black") | |
5010 | sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5011 | for i = 0, 49 do | |
5012 | 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) | |
5013 | end | |
5014 | for i = 0,3,0.1 do | |
5015 | 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) | |
5016 | end | |
5017 | for i, v in pairs(mw2:GetChildren()) do | |
5018 | if v:IsA("Part") then | |
5019 | v.BrickColor = BrickColor.new("Really black") | |
5020 | v.Material = "Neon" | |
5021 | end | |
5022 | end | |
5023 | for i, v in pairs(mw1:GetChildren()) do | |
5024 | if v:IsA("Part") then | |
5025 | v.Transparency = 1 | |
5026 | v.BrickColor = BrickColor.new("Really black") | |
5027 | v.Material = "Neon" | |
5028 | end | |
5029 | end | |
5030 | for i, v in pairs(m:GetChildren()) do | |
5031 | if v:IsA("Part") then | |
5032 | v.BrickColor = BrickColor.new("Really black") | |
5033 | v.Material = "Glass" | |
5034 | end | |
5035 | end | |
5036 | for i, v in pairs(m2:GetChildren()) do | |
5037 | if v:IsA("Part") then | |
5038 | v.BrickColor = BrickColor.new("Dark stone grey") | |
5039 | v.Material = "Granite" | |
5040 | end | |
5041 | end | |
5042 | for i, v in pairs(m3:GetChildren()) do | |
5043 | if v:IsA("Part") then | |
5044 | v.BrickColor = BrickColor.new("Really black") | |
5045 | v.Material = "Neon" | |
5046 | end | |
5047 | end | |
5048 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
5049 | if v:IsA("Part") then | |
5050 | v.Transparency = 1 | |
5051 | v.BrickColor = BrickColor.new("White") | |
5052 | v.Material = "Neon" | |
5053 | end | |
5054 | end | |
5055 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
5056 | if v:IsA("Part") then | |
5057 | v.Transparency = 1 | |
5058 | v.BrickColor = BrickColor.new("White") | |
5059 | v.Material = "Neon" | |
5060 | end | |
5061 | end | |
5062 | for i = 0,2,0.1 do | |
5063 | swait() | |
5064 | 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) | |
5065 | 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) | |
5066 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.2) | |
5067 | 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))),.2) | |
5068 | 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))),.2) | |
5069 | 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))),.2) | |
5070 | end | |
5071 | hum.WalkSpeed = storehumanoidWS | |
5072 | attack = false | |
5073 | end)) | |
5074 | end | |
5075 | ||
5076 | function lustmode() | |
5077 | ||
5078 | ModeOfGlitch = 69 | |
5079 | storehumanoidWS = 16 | |
5080 | rainbowmode = false | |
5081 | chaosmode = false | |
5082 | glitchymode = false | |
5083 | tl1.Enabled = false | |
5084 | tl2.Enabled = false | |
5085 | tl3.Enabled = false | |
5086 | newTheme("rbxassetid://1203355187",0,1,1) | |
5087 | coroutine.wrap(function() | |
5088 | attack = true | |
5089 | hum.WalkSpeed = 0 | |
5090 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25) | |
5091 | for i = 0,4,0.1 do | |
5092 | swait() | |
5093 | 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) | |
5094 | 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) | |
5095 | 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) | |
5096 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.2) | |
5097 | 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) | |
5098 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2) | |
5099 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2) | |
5100 | end | |
5101 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1) | |
5102 | sphere(2.5,"Add",root.CFrame*cf(0,0,0),vt(0,0,2),1.5,BrickColor.new'Pink',true) | |
5103 | ||
5104 | for i = 0,4,0.1 do | |
5105 | swait() | |
5106 | 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) | |
5107 | 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) | |
5108 | 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) | |
5109 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.2) | |
5110 | 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) | |
5111 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2) | |
5112 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2) | |
5113 | end | |
5114 | CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1) | |
5115 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1) | |
5116 | CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1) | |
5117 | CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75) | |
5118 | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'Pink' end) | |
5119 | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'Pink' end) | |
5120 | CameraEnshaking(5,2.5) | |
5121 | MAINRUINCOLOR = BrickColor.new("Pink") | |
5122 | sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5123 | for i = 0, 49 do | |
5124 | 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))),6,6,6,0.12,MAINRUINCOLOR,0,true) | |
5125 | end | |
5126 | for i = 0,3,0.1 do | |
5127 | 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,true) | |
5128 | end | |
5129 | RecolorTextAndRename("Loost",Color3.new(1,1,1),BrickColor.new'Pink'.Color) | |
5130 | for i, v in pairs(mw2:GetChildren()) do | |
5131 | if v:IsA("Part") then | |
5132 | v.BrickColor = MAINRUINCOLOR | |
5133 | v.Material = "Neon" | |
5134 | end | |
5135 | end | |
5136 | for i, v in pairs(mw1:GetChildren()) do | |
5137 | if v:IsA("Part") then | |
5138 | v.Transparency = 1 | |
5139 | v.BrickColor = MAINRUINCOLOR | |
5140 | v.Material = "Neon" | |
5141 | end | |
5142 | end | |
5143 | for i, v in pairs(m:GetChildren()) do | |
5144 | if v:IsA("Part") then | |
5145 | v.BrickColor = BrickColor.new("Pink") | |
5146 | v.Material = "Ice" | |
5147 | end | |
5148 | end | |
5149 | for i, v in pairs(m2:GetChildren()) do | |
5150 | if v:IsA("Part") then | |
5151 | v.BrickColor = BrickColor.new("Pink") | |
5152 | v.Material = "Glass" | |
5153 | end | |
5154 | end | |
5155 | for i, v in pairs(m3:GetChildren()) do | |
5156 | if v:IsA("Part") then | |
5157 | v.BrickColor = BrickColor.new("Pink") | |
5158 | v.Material = "Neon" | |
5159 | end | |
5160 | end | |
5161 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
5162 | if v:IsA("Part") then | |
5163 | v.Transparency = 1 | |
5164 | v.BrickColor = BrickColor.new("Pink") | |
5165 | v.Material = "Neon" | |
5166 | end | |
5167 | end | |
5168 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
5169 | if v:IsA("Part") then | |
5170 | v.Transparency = 1 | |
5171 | v.BrickColor = BrickColor.new("Pink") | |
5172 | v.Material = "Neon" | |
5173 | end | |
5174 | end | |
5175 | for i = 0,2,0.1 do | |
5176 | swait() | |
5177 | 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) | |
5178 | 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) | |
5179 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.2) | |
5180 | 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))),.2) | |
5181 | 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))),.2) | |
5182 | 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))),.2) | |
5183 | end | |
5184 | hum.WalkSpeed = storehumanoidWS | |
5185 | attack = false | |
5186 | end)() | |
5187 | end | |
5188 | ||
5189 | function insanitymode() | |
5190 | storehumanoidWS = 16 | |
5191 | hum.WalkSpeed = 0 | |
5192 | rainbowmode = false | |
5193 | glitchymode = false | |
5194 | chaosmode = true | |
5195 | tl1.Enabled = true | |
5196 | tl2.Enabled = true | |
5197 | tl3.Enabled = true | |
5198 | local lust = ModeOfGlitch == 69 | |
5199 | newTheme("rbxassetid://919231299",0,1,1) | |
5200 | coroutine.resume(coroutine.create(function() | |
5201 | tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
5202 | tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
5203 | tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
5204 | attack = true | |
5205 | hum.WalkSpeed = 0 | |
5206 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25) | |
5207 | for i = 0,4,0.1 do | |
5208 | swait() | |
5209 | 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) | |
5210 | 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) | |
5211 | 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) | |
5212 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.2) | |
5213 | 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) | |
5214 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2) | |
5215 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2) | |
5216 | end | |
5217 | for i = 0,8,0.1 do | |
5218 | swait() | |
5219 | 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) | |
5220 | 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,.035,MAINRUINCOLOR,0) | |
5221 | 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) | |
5222 | 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) | |
5223 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.2) | |
5224 | 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) | |
5225 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2) | |
5226 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2) | |
5227 | end | |
5228 | ||
5229 | for i = 0,3,0.1 do | |
5230 | swait() | |
5231 | 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) | |
5232 | 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) | |
5233 | 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) | |
5234 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.2) | |
5235 | 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) | |
5236 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2) | |
5237 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2) | |
5238 | end | |
5239 | CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1) | |
5240 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1) | |
5241 | CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1) | |
5242 | CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75) | |
5243 | CameraEnshaking(5,2.5) | |
5244 | MAINRUINCOLOR = BrickColor.new("Black") | |
5245 | sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5246 | for i = 0, 49 do | |
5247 | 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) | |
5248 | end | |
5249 | for i = 0,3,0.1 do | |
5250 | 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) | |
5251 | end | |
5252 | ModeOfGlitch = 666666 | |
5253 | for i, v in pairs(mw2:GetChildren()) do | |
5254 | if v:IsA("Part") then | |
5255 | v.BrickColor = MAINRUINCOLOR | |
5256 | v.Material = "Neon" | |
5257 | end | |
5258 | end | |
5259 | for i, v in pairs(mw1:GetChildren()) do | |
5260 | if v:IsA("Part") then | |
5261 | v.Transparency = 0.75 | |
5262 | v.BrickColor = BrickColor.random() | |
5263 | v.Material = "Neon" | |
5264 | end | |
5265 | end | |
5266 | for i, v in pairs(m:GetChildren()) do | |
5267 | if v:IsA("Part") then | |
5268 | v.BrickColor = BrickColor.new("Black") | |
5269 | v.Material = "Neon" | |
5270 | end | |
5271 | end | |
5272 | for i, v in pairs(m2:GetChildren()) do | |
5273 | if v:IsA("Part") then | |
5274 | v.BrickColor = BrickColor.random() | |
5275 | v.Material = "Neon" | |
5276 | end | |
5277 | end | |
5278 | for i, v in pairs(m3:GetChildren()) do | |
5279 | if v:IsA("Part") then | |
5280 | v.BrickColor = BrickColor.new("Black") | |
5281 | v.Material = "Neon" | |
5282 | end | |
5283 | end | |
5284 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
5285 | if v:IsA("Part") then | |
5286 | v.Transparency = .75 | |
5287 | v.BrickColor = BrickColor.Random() | |
5288 | v.Material = "Neon" | |
5289 | end | |
5290 | end | |
5291 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
5292 | if v:IsA("Part") then | |
5293 | v.Transparency = 0 | |
5294 | v.BrickColor = BrickColor.new("Black") | |
5295 | v.Material = "Neon" | |
5296 | end | |
5297 | end | |
5298 | for i = 0,2,0.1 do | |
5299 | swait() | |
5300 | 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) | |
5301 | 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) | |
5302 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.2) | |
5303 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 10 * math.cos(sine / 0.2))),.2) | |
5304 | 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)))*angles(0,0,math.rad(0 - 10 * math.cos(sine / 0.2))),.2) | |
5305 | 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)))*angles(0,0,math.rad(0 - 10 * math.cos(sine / 0.2))),.2) | |
5306 | end | |
5307 | hum.WalkSpeed = storehumanoidWS | |
5308 | attack = false | |
5309 | end)) | |
5310 | end | |
5311 | ||
5312 | local attacktype = 1 | |
5313 | mouse.Button1Down:connect(function() | |
5314 | if attack == false and attacktype == 1 then | |
5315 | attacktype = 2 | |
5316 | attackone() | |
5317 | elseif attack == false and attacktype == 2 then | |
5318 | attacktype = 3 | |
5319 | attacktwo() | |
5320 | elseif attack == false and attacktype == 3 then | |
5321 | attacktype = 1 | |
5322 | attackthree() | |
5323 | elseif attack == false and attacktype == 4 then | |
5324 | attacktype = 1 | |
5325 | --attackfour() | |
5326 | end | |
5327 | end) | |
5328 | ||
5329 | function Judgement() | |
5330 | attack = true | |
5331 | hum.WalkSpeed = 0 | |
5332 | local p = Instance.new("Part",root) | |
5333 | p.Anchored = true | |
5334 | p.CanCollide = false | |
5335 | p.BrickColor = MAINRUINCOLOR | |
5336 | p.Material = Enum.Material.Neon | |
5337 | p.Size = Vector3.new(1,1,1) | |
5338 | p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0) | |
5339 | p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354) | |
5340 | local m = Instance.new("SpecialMesh",p) | |
5341 | m.MeshType = "Cylinder" | |
5342 | m.Scale = Vector3.new(2000,2,2) | |
5343 | local targ = Instance.new("Part",root) | |
5344 | targ.Transparency = 1 | |
5345 | targ.CanCollide = false | |
5346 | targ.Size = Vector3.new(1,1,1) | |
5347 | targ.CFrame = p.CFrame-Vector3.new(0,1000,0) | |
5348 | CFuncs.Sound.Create("rbxassetid://164178927", targ, 5, 1) | |
5349 | CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1) | |
5350 | for i = 1,15 do | |
5351 | targ.CFrame = p.CFrame-Vector3.new(0,1000,0) | |
5352 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2) | |
5353 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2) | |
5354 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2) | |
5355 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2) | |
5356 | 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(-20)),.2) | |
5357 | 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(10),math.rad(20)),.2) | |
5358 | sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR) | |
5359 | sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 7, -0.005, MAINRUINCOLOR, 0) | |
5360 | m.Scale = m.Scale+Vector3.new(0,1,1) | |
5361 | p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0) | |
5362 | p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354) | |
5363 | swait() | |
5364 | end | |
5365 | sphereMK(3, 0.2, "Add", targ.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, MAINRUINCOLOR, 0) | |
5366 | for i = 1,200 do | |
5367 | targ.CFrame = p.CFrame-Vector3.new(0,1000,0) | |
5368 | sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 3, 3, 15, -0.005, MAINRUINCOLOR, 0) | |
5369 | sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR) | |
5370 | p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0) | |
5371 | p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354) | |
5372 | MagniDamage(targ, 25, 5, 8, 0, "Normal") | |
5373 | swait() | |
5374 | end | |
5375 | for i =1,15 do | |
5376 | m.Scale = m.Scale-Vector3.new(1,1,1) | |
5377 | p.Transparency = i / 15 | |
5378 | swait() | |
5379 | end | |
5380 | p:Destroy() | |
5381 | hum.WalkSpeed = storehumanoidWS | |
5382 | attack = false | |
5383 | end | |
5384 | ||
5385 | local ODerDB = false | |
5386 | function ChooseODer() | |
5387 | if(not ODerDB)then | |
5388 | coroutine.wrap(function() | |
5389 | ||
5390 | local allowOD = true | |
5391 | local whom = (mouse.Target and mouse.Target.Parent) | |
5392 | if(whom and whom:FindFirstChildOfClass'Humanoid' and whom:FindFirstChild'Head')then | |
5393 | ODerDB = true | |
5394 | for _,v in next, ODers do | |
5395 | if(v == whom)then | |
5396 | print'nO OD SELF' | |
5397 | allowOD = false | |
5398 | end | |
5399 | end | |
5400 | if(allowOD)then | |
5401 | local ref=CFuncs.Part.Create(m,Enum.Material.Neon,0,.4,(whom.Name == 'Nebula_Zorua' and 'Royal purple' or MAINRUINCOLOR),"ref",Vector3.new(0.05,0.05,0.05)) | |
5402 | local refz = CFuncs.Mesh.Create("SpecialMesh",ref,"Sphere","",Vector3.new(0, 0, 0),Vector3.new(14, 14, 14)) | |
5403 | ||
5404 | ref.CFrame = Torso.CFrame | |
5405 | ref.Anchored = true | |
5406 | local e1 = Torso.CFrame:Lerp(whom.Head.CFrame, 0.25) * CFrame.new(math.random(-15, 15), math.random(0, 15), math.random(-15, 15)) | |
5407 | local e2 = Torso.CFrame:Lerp(whom.Head.CFrame, 0.75) * CFrame.new(math.random(-15, 15), math.random(0, 15), math.random(-15, 15)) | |
5408 | local MPos = whom.Head.CFrame*cf(0,4,0) | |
5409 | for i = 0, 1, .05 do | |
5410 | swait() | |
5411 | ref.CFrame = newBezier(Torso.CFrame, e1, e2, MPos, i) | |
5412 | ||
5413 | sphere(10,"Add",ref.CFrame,vt(6,6,3),0,(whom.Name == 'Nebula_Zorua' and BrickColor.new'Royal purple' or MAINRUINCOLOR),true) | |
5414 | if whom:FindFirstChild'Head' == nil then | |
5415 | break | |
5416 | end | |
5417 | end | |
5418 | ref:destroy() | |
5419 | if whom:FindFirstChild'Head' then | |
5420 | table.insert(ODers,whom) | |
5421 | if(#ODers > 2)then | |
5422 | table.remove(ODers,1) | |
5423 | end | |
5424 | sphere(1.5,"Add",whom.Head.CFrame * cf(0,4,0),vt(6,6,3),.15,(whom.Name == 'Nebula_Zorua' and BrickColor.new'Royal purple' or MAINRUINCOLOR),true) | |
5425 | end | |
5426 | end | |
5427 | ODerDB = false | |
5428 | end | |
5429 | end)() | |
5430 | end | |
5431 | end | |
5432 | ||
5433 | function RiddleMeThisRiddleMeThat()-- Who's afraid of the big black IUSFGEYUI8TY8RUFETUYERFYAERFE7RFWAE9RASEVR7YTRWW65ERAY | |
5434 | attack = true | |
5435 | hum.WalkSpeed = 0 | |
5436 | storehumanoidWS = 75 | |
5437 | hum.JumpPower = 0 | |
5438 | newThemeCust("rbxassetid://1420353940",0,1,1) | |
5439 | kan.TimePosition = 0 | |
5440 | ModeOfGlitch = 8376532578634534 | |
5441 | repeat swait() until kan.IsLoaded | |
5442 | chatfunc("Riddle me this..",text.TextStrokeColor3) | |
5443 | for i = 0, 14, .1 do | |
5444 | swait() | |
5445 | RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1) | |
5446 | LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
5447 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1) | |
5448 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.1) | |
5449 | RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1) | |
5450 | LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1) | |
5451 | end | |
5452 | chatfunc("Riddle me that..",text.TextStrokeColor3) | |
5453 | for i = 0, 12, .1 do | |
5454 | swait() | |
5455 | RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1) | |
5456 | LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
5457 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1) | |
5458 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,math.rad(25),0),.1) | |
5459 | RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1) | |
5460 | LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1) | |
5461 | end | |
5462 | chatfunc("Who's afraid of the big black..",Color3.new(1,1,1)) | |
5463 | for i = 0, 16, .1 do | |
5464 | swait() | |
5465 | RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1) | |
5466 | LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
5467 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1) | |
5468 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25),0,0),.1) | |
5469 | RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1) | |
5470 | LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1) | |
5471 | end | |
5472 | CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1) | |
5473 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1) | |
5474 | CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1) | |
5475 | CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75) | |
5476 | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'Black' end) | |
5477 | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'Black' end) | |
5478 | RecolorTextAndRename("The Big Black",Color3.new(0,0,0),Color3.new(1,1,1)) | |
5479 | CameraEnshaking(5,2.5) | |
5480 | MAINRUINCOLOR = BrickColor.new("Really black") | |
5481 | sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5482 | tl1.Enabled = true | |
5483 | tl2.Enabled = true | |
5484 | tl3.Enabled = true | |
5485 | for i = 0, 49 do | |
5486 | 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) | |
5487 | end | |
5488 | for i = 0,3,0.1 do | |
5489 | 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) | |
5490 | end | |
5491 | for i, v in pairs(mw2:GetChildren()) do | |
5492 | if v:IsA("Part") then | |
5493 | v.BrickColor = BrickColor.new("Really black") | |
5494 | v.Material = "Glass" | |
5495 | end | |
5496 | end | |
5497 | for i, v in pairs(mw1:GetChildren()) do | |
5498 | if v:IsA("Part") then | |
5499 | v.Transparency = 0 | |
5500 | v.BrickColor = BrickColor.new("Really black") | |
5501 | v.Material = "Glass" | |
5502 | end | |
5503 | end | |
5504 | for i, v in pairs(m:GetChildren()) do | |
5505 | if v:IsA("Part") then | |
5506 | v.BrickColor = BrickColor.new("Really black") | |
5507 | v.Material = "Glass" | |
5508 | end | |
5509 | end | |
5510 | for i, v in pairs(m2:GetChildren()) do | |
5511 | if v:IsA("Part") then | |
5512 | v.BrickColor = BrickColor.new("Dark stone grey") | |
5513 | v.Material = "Granite" | |
5514 | end | |
5515 | end | |
5516 | for i, v in pairs(m3:GetChildren()) do | |
5517 | if v:IsA("Part") then | |
5518 | v.BrickColor = BrickColor.new("Really black") | |
5519 | v.Material = "Glass" | |
5520 | end | |
5521 | end | |
5522 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
5523 | if v:IsA("Part") then | |
5524 | v.Transparency = 0 | |
5525 | v.BrickColor = BrickColor.new("Dark stone grey") | |
5526 | v.Material = "Glass" | |
5527 | end | |
5528 | end | |
5529 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
5530 | if v:IsA("Part") then | |
5531 | v.Transparency = 0 | |
5532 | v.BrickColor = BrickColor.new("Dark stone grey") | |
5533 | v.Material = "Glass" | |
5534 | end | |
5535 | end | |
5536 | for i = 0,2,0.1 do | |
5537 | swait() | |
5538 | 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) | |
5539 | 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) | |
5540 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.2) | |
5541 | 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))),.2) | |
5542 | 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))),.2) | |
5543 | 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))),.2) | |
5544 | end | |
5545 | hum.JumpPower = 50 | |
5546 | hum.WalkSpeed = storehumanoidWS | |
5547 | attack = false | |
5548 | end | |
5549 | ||
5550 | function FuckMeSidewaysAndCallMeGay() | |
5551 | local whom = (mouse.Target and mouse.Target.Parent) | |
5552 | --[[local fuckThisBoi = false | |
5553 | if(whom and whom:FindFirstChildOfClass'Humanoid')then | |
5554 | for _,v in next, ODers do | |
5555 | if(v == whom)then | |
5556 | fuckThisBoi = false | |
5557 | end | |
5558 | end | |
5559 | end | |
5560 | if(not fuckThisBoi)then | |
5561 | attack = false | |
5562 | warn'to fuck that boi you need to target them with z' | |
5563 | else]] | |
5564 | if(whom and whom:FindFirstChildOfClass'Humanoid' and whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso')then | |
5565 | local hed = whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' | |
5566 | local hum = whom:FindFirstChildOfClass'Humanoid' | |
5567 | local ocf = RootPart.CFrame | |
5568 | hum.WalkSpeed = 0 | |
5569 | hum.JumpPower = 0 | |
5570 | hed.Anchored = true | |
5571 | RootPart.Anchored = true | |
5572 | Humanoid.WalkSpeed = 0 | |
5573 | Humanoid.JumpPower = 0 | |
5574 | RootPart.CFrame = hed.CFrame*cf(0,0,1.35) | |
5575 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1) | |
5576 | for i = 0, 9 do | |
5577 | 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) | |
5578 | end | |
5579 | for i = 0, 24 do | |
5580 | 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) | |
5581 | end | |
5582 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Pink")) | |
5583 | attack = true | |
5584 | local speed = 1 | |
5585 | local heck; | |
5586 | local stopitlol = false; | |
5587 | heck = mouse.KeyUp:connect(function(k) | |
5588 | if(k:lower() == 'm')then | |
5589 | stopitlol = true | |
5590 | heck:disconnect() | |
5591 | end | |
5592 | end) | |
5593 | local times = 0 | |
5594 | repeat swait() | |
5595 | speed = speed - .01 | |
5596 | times = times + 1 | |
5597 | if(speed < .1)then | |
5598 | speed = .1 | |
5599 | end | |
5600 | for i = 0, speed, .05 do | |
5601 | RootPart.CFrame = hed.CFrame*cf(0,0,1.35) | |
5602 | swait() | |
5603 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(50),0,0)*angles(0,math.rad(90),0),.4) | |
5604 | 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) | |
5605 | RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(-25),0,0)*RootCF,.4) | |
5606 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8) | |
5607 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.4) | |
5608 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.4) | |
5609 | end | |
5610 | CameraEnshaking(5,5) | |
5611 | ||
5612 | CFuncs["Sound"].Create("rbxassetid://836796971", Torso, 10,1) | |
5613 | ||
5614 | for i = 0, speed, .05 do | |
5615 | RootPart.CFrame = hed.CFrame*cf(0,0,1.35) | |
5616 | swait() | |
5617 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-50),0,0)*angles(0,math.rad(90),0),.4) | |
5618 | 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) | |
5619 | RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(25),0,0)*RootCF,.4) | |
5620 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8) | |
5621 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4) | |
5622 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4) | |
5623 | end | |
5624 | until stopitlol and times >= 3 | |
5625 | for i = 1, 3 do | |
5626 | for i = 0, 1.5, .05 do | |
5627 | RootPart.CFrame = hed.CFrame*cf(0,0,1.35) | |
5628 | swait() | |
5629 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(50),0,0)*angles(0,math.rad(90),0),.4) | |
5630 | 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) | |
5631 | RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(-25),0,0)*RootCF,.4) | |
5632 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8) | |
5633 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.4) | |
5634 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.4) | |
5635 | end | |
5636 | CameraEnshaking(5,25) | |
5637 | ||
5638 | CFuncs["Sound"].Create("rbxassetid://1430568042", Torso, 10,.75) | |
5639 | ||
5640 | ||
5641 | coroutine.resume(coroutine.create(function() | |
5642 | bld = Instance.new("ParticleEmitter",whom:WaitForChild("Torso")) | |
5643 | bld.LightEmission = 0.1 | |
5644 | bld.Texture = "rbxassetid://284205403" | |
5645 | bld.Color = ColorSequence.new(Color3.new(1,1,1)) | |
5646 | bld.Rate = 500 | |
5647 | bld.Lifetime = NumberRange.new(1) | |
5648 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
5649 | bld.Acceleration = vt(0,-25,0) | |
5650 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
5651 | bld.Speed = NumberRange.new(10,50) | |
5652 | bld.EmissionDirection = "Back" | |
5653 | bld.VelocitySpread = 25 | |
5654 | bld.Rotation = NumberRange.new(-500,500) | |
5655 | bld.RotSpeed = NumberRange.new(-500,500) | |
5656 | bld.Enabled = false | |
5657 | bld:Emit(250) | |
5658 | end)) | |
5659 | coroutine.resume(coroutine.create(function() | |
5660 | bld = Instance.new("ParticleEmitter",whom:WaitForChild("LowerTorso")) | |
5661 | bld.LightEmission = 0.1 | |
5662 | bld.Texture = "rbxassetid://284205403" | |
5663 | bld.Color = ColorSequence.new(Color3.new(1,1,1)) | |
5664 | bld.Rate = 500 | |
5665 | bld.Lifetime = NumberRange.new(1) | |
5666 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
5667 | bld.Acceleration = vt(0,-25,0) | |
5668 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
5669 | bld.Speed = NumberRange.new(10,50) | |
5670 | bld.EmissionDirection = "Back" | |
5671 | bld.VelocitySpread = 25 | |
5672 | bld.Rotation = NumberRange.new(-500,500) | |
5673 | bld.RotSpeed = NumberRange.new(-500,500) | |
5674 | bld.Enabled = false | |
5675 | bld:Emit(250) | |
5676 | end)) | |
5677 | for i = 0, 1.5, .05 do | |
5678 | RootPart.CFrame = hed.CFrame*cf(0,0,1.35) | |
5679 | swait() | |
5680 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-50),0,0)*angles(0,math.rad(90),0),.4) | |
5681 | 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) | |
5682 | RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(25),0,0)*RootCF,.4) | |
5683 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8) | |
5684 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4) | |
5685 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4) | |
5686 | end | |
5687 | end | |
5688 | for i = 0, 4, .05 do | |
5689 | RootPart.CFrame = hed.CFrame*cf(0,0,1.35) | |
5690 | swait() | |
5691 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(100),0,0)*angles(0,math.rad(90),0),.1) | |
5692 | 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) | |
5693 | RootJoint.C0=clerp(RootJoint.C0,cf(0,-.75,0)*angles(math.rad(-50),0,0)*RootCF,.1) | |
5694 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.1) | |
5695 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.1) | |
5696 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.1) | |
5697 | end | |
5698 | CameraEnshaking(5,25) | |
5699 | CFuncs["Sound"].Create("rbxassetid://429400881", hed, 3,1) | |
5700 | CFuncs["Sound"].Create("rbxassetid://1430568042", Torso, 10,.75) | |
5701 | ||
5702 | dmg(whom) | |
5703 | coroutine.resume(coroutine.create(function() | |
5704 | bld = Instance.new("ParticleEmitter",whom:WaitForChild("Torso")) | |
5705 | bld.LightEmission = 0.1 | |
5706 | bld.Texture = "rbxassetid://284205403" | |
5707 | bld.Color = ColorSequence.new(Color3.new(1,1,1)) | |
5708 | bld.Rate = 500 | |
5709 | bld.Lifetime = NumberRange.new(1) | |
5710 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
5711 | bld.Acceleration = vt(0,-25,0) | |
5712 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
5713 | bld.Speed = NumberRange.new(10,50) | |
5714 | bld.EmissionDirection = "Back" | |
5715 | bld.VelocitySpread = 25 | |
5716 | bld.Rotation = NumberRange.new(-500,500) | |
5717 | bld.RotSpeed = NumberRange.new(-500,500) | |
5718 | bld.Enabled = true | |
5719 | end)) | |
5720 | coroutine.resume(coroutine.create(function() | |
5721 | bld = Instance.new("ParticleEmitter",whom:WaitForChild("LowerTorso")) | |
5722 | bld.LightEmission = 0.1 | |
5723 | bld.Texture = "rbxassetid://284205403" | |
5724 | bld.Color = ColorSequence.new(Color3.new(1,1,1)) | |
5725 | bld.Rate = 500 | |
5726 | bld.Lifetime = NumberRange.new(1) | |
5727 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
5728 | bld.Acceleration = vt(0,-25,0) | |
5729 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
5730 | bld.Speed = NumberRange.new(10,50) | |
5731 | bld.EmissionDirection = "Back" | |
5732 | bld.VelocitySpread = 25 | |
5733 | bld.Rotation = NumberRange.new(-500,500) | |
5734 | bld.RotSpeed = NumberRange.new(-500,500) | |
5735 | bld.Enabled = true | |
5736 | end)) | |
5737 | for i = 0, 3, .05 do | |
5738 | RootPart.CFrame = hed.CFrame*cf(0,0,1.35) | |
5739 | swait() | |
5740 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-100),0,0)*angles(0,math.rad(90),0),.4) | |
5741 | 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) | |
5742 | RootJoint.C0=clerp(RootJoint.C0,cf(0,-.75,0)*angles(math.rad(50),0,0)*RootCF,.4) | |
5743 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8) | |
5744 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4) | |
5745 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4) | |
5746 | end | |
5747 | ||
5748 | RootPart.CFrame = ocf | |
5749 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1) | |
5750 | for i = 0, 9 do | |
5751 | 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) | |
5752 | end | |
5753 | for i = 0, 24 do | |
5754 | 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) | |
5755 | end | |
5756 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Pink")) | |
5757 | RootPart.Anchored = false | |
5758 | Humanoid.WalkSpeed = storehumanoidWS | |
5759 | Humanoid.JumpPower = 50 | |
5760 | attack = false | |
5761 | end | |
5762 | end | |
5763 | ||
5764 | local input = "" | |
5765 | ||
5766 | mouse.KeyDown:connect(function(k) | |
5767 | if(k == "w" or k == "a" or k == "s" or k == "d")then | |
5768 | input = input .. k | |
5769 | local newInput = input | |
5770 | coroutine.wrap(function() | |
5771 | for i = 1, 25 do | |
5772 | if(newInput ~= input)then break end | |
5773 | swait() | |
5774 | end | |
5775 | if(newInput == input)then input = "" end | |
5776 | end)() | |
5777 | if(input == "wwssadad" and not AllowRape)then | |
5778 | AllowRape = true | |
5779 | warn("Rape unlocked! Have fun ;)") | |
5780 | elseif(input == "wwaassdd" and not AllowCata)then | |
5781 | AllowCata = true | |
5782 | warn("You unlocked CATASTROPHE.") | |
5783 | elseif(input == 'ddawas' and ModeOfGlitch == 4 and not attack)then | |
5784 | ChaosBegone() | |
5785 | end | |
5786 | end | |
5787 | end) | |
5788 | ||
5789 | mouse.KeyDown:connect(function(k) | |
5790 | if k == "h" then | |
5791 | ||
5792 | end | |
5793 | ||
5794 | if k == "q" and attack == false and ModeOfGlitch ~= 2 then | |
5795 | ModeOfGlitch = 2 | |
5796 | storehumanoidWS = 16 | |
5797 | hum.WalkSpeed = 16 | |
5798 | rainbowmode = false | |
5799 | chaosmode = false | |
5800 | glitchymode = false | |
5801 | tl1.Enabled = false | |
5802 | tl2.Enabled = false | |
5803 | tl3.Enabled = false | |
5804 | RecolorTextAndRename("Purity",Color3.new(1,1,1),Color3.new(0,1,1)) | |
5805 | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'Teal' end) | |
5806 | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'Teal' end) | |
5807 | newTheme("rbxassetid://1539245059",0,1,1) | |
5808 | MAINRUINCOLOR = BrickColor.new("Toothpaste") | |
5809 | for i, v in pairs(mw2:GetChildren()) do | |
5810 | if v:IsA("Part") then | |
5811 | v.BrickColor = MAINRUINCOLOR | |
5812 | v.Material = "Neon" | |
5813 | end | |
5814 | end | |
5815 | for i, v in pairs(mw1:GetChildren()) do | |
5816 | if v:IsA("Part") then | |
5817 | v.Transparency = 1 | |
5818 | v.BrickColor = MAINRUINCOLOR | |
5819 | v.Material = "Neon" | |
5820 | end | |
5821 | end | |
5822 | for i, v in pairs(m:GetChildren()) do | |
5823 | if v:IsA("Part") then | |
5824 | v.BrickColor = BrickColor.new("White") | |
5825 | v.Material = "Ice" | |
5826 | end | |
5827 | end | |
5828 | for i, v in pairs(m2:GetChildren()) do | |
5829 | if v:IsA("Part") then | |
5830 | v.BrickColor = BrickColor.new("Pastel light blue") | |
5831 | v.Material = "Glass" | |
5832 | end | |
5833 | end | |
5834 | for i, v in pairs(m3:GetChildren()) do | |
5835 | if v:IsA("Part") then | |
5836 | v.BrickColor = BrickColor.new("Toothpaste") | |
5837 | v.Material = "Neon" | |
5838 | end | |
5839 | end | |
5840 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
5841 | if v:IsA("Part") then | |
5842 | v.Transparency = 1 | |
5843 | v.BrickColor = BrickColor.new("White") | |
5844 | v.Material = "Neon" | |
5845 | end | |
5846 | end | |
5847 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
5848 | if v:IsA("Part") then | |
5849 | v.Transparency = 1 | |
5850 | v.BrickColor = BrickColor.new("White") | |
5851 | v.Material = "Neon" | |
5852 | end | |
5853 | end | |
5854 | elseif k == "q" and attack == false and ModeOfGlitch == 2 then | |
5855 | resetmode() | |
5856 | end | |
5857 | if k == "f" and attack == false and ModeOfGlitch ~= 69 then | |
5858 | lustmode() | |
5859 | elseif k == "f" and attack == false and ModeOfGlitch == 69 then | |
5860 | resetmode() | |
5861 | end | |
5862 | if k == "m" and attack == false and ModeOfGlitch == 1 then | |
5863 | RiddleMeThisRiddleMeThat() | |
5864 | elseif k == "m" and attack == false and ModeOfGlitch == 8376532578634534 then | |
5865 | resetmode() | |
5866 | end | |
5867 | if k == "e" and attack == false and ModeOfGlitch ~= 3 then | |
5868 | ModeOfGlitch = 3 | |
5869 | storehumanoidWS = 16 | |
5870 | hum.WalkSpeed = 16 | |
5871 | rainbowmode = false | |
5872 | chaosmode = false | |
5873 | glitchymode = true | |
5874 | tl1.Enabled = true | |
5875 | tl2.Enabled = true | |
5876 | tl3.Enabled = true | |
5877 | RecolorTextAndRename("gLiTcHy",Color3.new(0,0,0),Color3.new(0.35,0,1)) | |
5878 | newTheme("rbxassetid://1274310715",0,.93,1.25) -- 474074203 | |
5879 | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'White' end) | |
5880 | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'White' end) | |
5881 | MAINRUINCOLOR = BrickColor.new("White") | |
5882 | for i, v in pairs(mw2:GetChildren()) do | |
5883 | if v:IsA("Part") then | |
5884 | v.BrickColor = MAINRUINCOLOR | |
5885 | v.Material = "Neon" | |
5886 | end | |
5887 | end | |
5888 | for i, v in pairs(mw1:GetChildren()) do | |
5889 | if v:IsA("Part") then | |
5890 | v.Transparency = 0 | |
5891 | v.BrickColor = MAINRUINCOLOR | |
5892 | v.Material = "Neon" | |
5893 | end | |
5894 | end | |
5895 | for i, v in pairs(m:GetChildren()) do | |
5896 | if v:IsA("Part") then | |
5897 | v.BrickColor = BrickColor.new("Really black") | |
5898 | v.Material = "Ice" | |
5899 | end | |
5900 | end | |
5901 | for i, v in pairs(m2:GetChildren()) do | |
5902 | if v:IsA("Part") then | |
5903 | v.BrickColor = BrickColor.new("Dark indigo") | |
5904 | v.Material = "Glass" | |
5905 | end | |
5906 | end | |
5907 | for i, v in pairs(m3:GetChildren()) do | |
5908 | if v:IsA("Part") then | |
5909 | v.Transparency = 1 | |
5910 | v.BrickColor = BrickColor.new("Royal purple") | |
5911 | v.Material = "Neon" | |
5912 | end | |
5913 | end | |
5914 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
5915 | if v:IsA("Part") then | |
5916 | v.Transparency = 1 | |
5917 | v.BrickColor = BrickColor.new("White") | |
5918 | v.Material = "Neon" | |
5919 | end | |
5920 | end | |
5921 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
5922 | if v:IsA("Part") then | |
5923 | v.Transparency = 1 | |
5924 | v.BrickColor = BrickColor.new("White") | |
5925 | v.Material = "Neon" | |
5926 | end | |
5927 | end | |
5928 | elseif k == "e" and attack == false and ModeOfGlitch == 3 then | |
5929 | resetmode() | |
5930 | end | |
5931 | if k == "r" and attack == false and ModeOfGlitch ~= 4 then | |
5932 | ModeOfGlitch = 4 | |
5933 | storehumanoidWS = 16 | |
5934 | hum.WalkSpeed = 16 | |
5935 | rainbowmode = false | |
5936 | glitchymode = false | |
5937 | chaosmode = true | |
5938 | tl1.Enabled = true | |
5939 | tl2.Enabled = true | |
5940 | tl3.Enabled = true | |
5941 | RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color) | |
5942 | newTheme("rbxassetid://1369263130",0,1,1) | |
5943 | MAINRUINCOLOR = BrickColor.new("Black") | |
5944 | tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
5945 | tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
5946 | tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
5947 | for i, v in pairs(mw2:GetChildren()) do | |
5948 | if v:IsA("Part") then | |
5949 | v.BrickColor = MAINRUINCOLOR | |
5950 | v.Material = "Neon" | |
5951 | end | |
5952 | end | |
5953 | for i, v in pairs(mw1:GetChildren()) do | |
5954 | if v:IsA("Part") then | |
5955 | v.Transparency = 0.75 | |
5956 | v.BrickColor = BrickColor.random() | |
5957 | v.Material = "Neon" | |
5958 | end | |
5959 | end | |
5960 | for i, v in pairs(m:GetChildren()) do | |
5961 | if v:IsA("Part") then | |
5962 | v.BrickColor = BrickColor.new("Black") | |
5963 | v.Material = "Neon" | |
5964 | end | |
5965 | end | |
5966 | for i, v in pairs(m2:GetChildren()) do | |
5967 | if v:IsA("Part") then | |
5968 | v.BrickColor = BrickColor.random() | |
5969 | v.Material = "Neon" | |
5970 | end | |
5971 | end | |
5972 | for i, v in pairs(m3:GetChildren()) do | |
5973 | if v:IsA("Part") then | |
5974 | v.BrickColor = BrickColor.new("Black") | |
5975 | v.Material = "Neon" | |
5976 | end | |
5977 | end | |
5978 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
5979 | if v:IsA("Part") then | |
5980 | v.Transparency = 1 | |
5981 | v.BrickColor = BrickColor.new("White") | |
5982 | v.Material = "Neon" | |
5983 | end | |
5984 | end | |
5985 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
5986 | if v:IsA("Part") then | |
5987 | v.Transparency = 1 | |
5988 | v.BrickColor = BrickColor.new("White") | |
5989 | v.Material = "Neon" | |
5990 | end | |
5991 | end | |
5992 | elseif k == "r" and attack == false and ModeOfGlitch == 4 then | |
5993 | resetmode() | |
5994 | end | |
5995 | ||
5996 | if k == "m" and attack == false and ModeOfGlitch == 4 then | |
5997 | insanitymode() | |
5998 | elseif k == "m" and attack == false and ModeOfGlitch == 666666 then | |
5999 | resetmode() | |
6000 | end | |
6001 | if k == "t" and attack == false and ModeOfGlitch ~= 5 then | |
6002 | ModeOfGlitch = 5 | |
6003 | storehumanoidWS = 16 | |
6004 | hum.WalkSpeed = 16 | |
6005 | rainbowmode = false | |
6006 | chaosmode = false | |
6007 | glitchymode = false | |
6008 | tl1.Enabled = true | |
6009 | tl2.Enabled = true | |
6010 | tl3.Enabled = true | |
6011 | RecolorTextAndRename("Divinity",Color3.new(1,1,1),Color3.new(1,1,0.5)) | |
6012 | newTheme("rbxassetid://661079869",0,1.02,1) | |
6013 | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'New Yeller' end) | |
6014 | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'New Yeller' end) | |
6015 | MAINRUINCOLOR = BrickColor.new("Bright yellow") | |
6016 | for i, v in pairs(mw2:GetChildren()) do | |
6017 | if v:IsA("Part") then | |
6018 | v.BrickColor = MAINRUINCOLOR | |
6019 | v.Material = "Neon" | |
6020 | end | |
6021 | end | |
6022 | for i, v in pairs(mw1:GetChildren()) do | |
6023 | if v:IsA("Part") then | |
6024 | v.Transparency = 0 | |
6025 | v.BrickColor = MAINRUINCOLOR | |
6026 | v.Material = "Neon" | |
6027 | end | |
6028 | end | |
6029 | for i, v in pairs(m:GetChildren()) do | |
6030 | if v:IsA("Part") then | |
6031 | v.BrickColor = BrickColor.new("Cool yellow") | |
6032 | v.Material = "Ice" | |
6033 | end | |
6034 | end | |
6035 | for i, v in pairs(m2:GetChildren()) do | |
6036 | if v:IsA("Part") then | |
6037 | v.BrickColor = BrickColor.new("Bright yellow") | |
6038 | v.Material = "Ice" | |
6039 | end | |
6040 | end | |
6041 | for i, v in pairs(m3:GetChildren()) do | |
6042 | if v:IsA("Part") then | |
6043 | v.BrickColor = BrickColor.new("Bright yellow") | |
6044 | v.Material = "Neon" | |
6045 | end | |
6046 | end | |
6047 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6048 | if v:IsA("Part") then | |
6049 | v.Transparency = 1 | |
6050 | v.BrickColor = BrickColor.new("White") | |
6051 | v.Material = "Neon" | |
6052 | end | |
6053 | end | |
6054 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
6055 | if v:IsA("Part") then | |
6056 | v.Transparency = 1 | |
6057 | v.BrickColor = BrickColor.new("White") | |
6058 | v.Material = "Neon" | |
6059 | end | |
6060 | end | |
6061 | elseif k == "t" and attack == false and ModeOfGlitch == 5 then | |
6062 | resetmode() | |
6063 | end | |
6064 | if k == "y" and attack == false and ModeOfGlitch ~= 6 then | |
6065 | ModeOfGlitch = 6 | |
6066 | storehumanoidWS = 75 | |
6067 | hum.WalkSpeed = 75 | |
6068 | rainbowmode = false | |
6069 | chaosmode = false | |
6070 | glitchymode = false | |
6071 | tl1.Enabled = true | |
6072 | tl2.Enabled = true | |
6073 | tl3.Enabled = true | |
6074 | RecolorTextAndRename("Justice",Color3.new(0,0,0),Color3.new(1,1,1)) | |
6075 | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'White' end) | |
6076 | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'White' end) | |
6077 | newTheme("rbxassetid://1102271169",0,1,1) | |
6078 | MAINRUINCOLOR = BrickColor.new("White") | |
6079 | for i, v in pairs(mw2:GetChildren()) do | |
6080 | if v:IsA("Part") then | |
6081 | v.BrickColor = MAINRUINCOLOR | |
6082 | v.Material = "Neon" | |
6083 | end | |
6084 | end | |
6085 | for i, v in pairs(mw1:GetChildren()) do | |
6086 | if v:IsA("Part") then | |
6087 | v.Transparency = 0 | |
6088 | v.BrickColor = MAINRUINCOLOR | |
6089 | v.Material = "Neon" | |
6090 | end | |
6091 | end | |
6092 | for i, v in pairs(m:GetChildren()) do | |
6093 | if v:IsA("Part") then | |
6094 | v.BrickColor = BrickColor.new("White") | |
6095 | v.Material = "Ice" | |
6096 | end | |
6097 | end | |
6098 | for i, v in pairs(m2:GetChildren()) do | |
6099 | if v:IsA("Part") then | |
6100 | v.BrickColor = BrickColor.new("White") | |
6101 | v.Material = "Ice" | |
6102 | end | |
6103 | end | |
6104 | for i, v in pairs(m3:GetChildren()) do | |
6105 | if v:IsA("Part") then | |
6106 | v.BrickColor = BrickColor.new("White") | |
6107 | v.Material = "Neon" | |
6108 | end | |
6109 | end | |
6110 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6111 | if v:IsA("Part") then | |
6112 | v.Transparency = 1 | |
6113 | v.BrickColor = BrickColor.new("White") | |
6114 | v.Material = "Neon" | |
6115 | end | |
6116 | end | |
6117 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
6118 | if v:IsA("Part") then | |
6119 | v.Transparency = 1 | |
6120 | v.BrickColor = BrickColor.new("White") | |
6121 | v.Material = "Neon" | |
6122 | end | |
6123 | end | |
6124 | elseif k == "y" and attack == false and ModeOfGlitch == 6 then | |
6125 | resetmode() | |
6126 | end | |
6127 | if k == "u" and attack == false then | |
6128 | ||
6129 | storehumanoidWS = 50 | |
6130 | hum.WalkSpeed = 50 | |
6131 | rainbowmode = true | |
6132 | chaosmode = false | |
6133 | glitchymode = false | |
6134 | tl1.Enabled = true | |
6135 | tl2.Enabled = true | |
6136 | tl3.Enabled = true | |
6137 | ||
6138 | if(ModeOfGlitch == 6127843)then | |
6139 | vaporwave = not vaporwave | |
6140 | end | |
6141 | ||
6142 | if(not vaporwave)then | |
6143 | RecolorTextAndRename("RAINBOW",Color3.new(1,1,1),Color3.new(1,1,1)) | |
6144 | newTheme("rbxassetid://147930134",0,1,1) | |
6145 | else | |
6146 | RecolorTextAndRename("Vaporwave",Color3.new(1,1,1),Color3.new(1,1,1)) | |
6147 | newTheme("rbxassetid://1308711379",0,1,1) | |
6148 | end | |
6149 | ||
6150 | ||
6151 | ModeOfGlitch = 6127843 | |
6152 | MAINRUINCOLOR = BrickColor.new("White") | |
6153 | for i, v in pairs(mw2:GetChildren()) do | |
6154 | if v:IsA("Part") then | |
6155 | v.BrickColor = MAINRUINCOLOR | |
6156 | v.Material = "Neon" | |
6157 | end | |
6158 | end | |
6159 | for i, v in pairs(mw1:GetChildren()) do | |
6160 | if v:IsA("Part") then | |
6161 | v.Transparency = 0 | |
6162 | v.BrickColor = MAINRUINCOLOR | |
6163 | v.Material = "Neon" | |
6164 | end | |
6165 | end | |
6166 | for i, v in pairs(m:GetChildren()) do | |
6167 | if v:IsA("Part") then | |
6168 | v.BrickColor = BrickColor.new("White") | |
6169 | v.Material = "Neon" | |
6170 | end | |
6171 | end | |
6172 | for i, v in pairs(m2:GetChildren()) do | |
6173 | if v:IsA("Part") then | |
6174 | v.BrickColor = BrickColor.new("White") | |
6175 | v.Material = "Neon" | |
6176 | end | |
6177 | end | |
6178 | for i, v in pairs(m3:GetChildren()) do | |
6179 | if v:IsA("Part") then | |
6180 | v.BrickColor = BrickColor.new("White") | |
6181 | v.Material = "Neon" | |
6182 | end | |
6183 | end | |
6184 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6185 | if v:IsA("Part") then | |
6186 | v.Transparency = 1 | |
6187 | v.BrickColor = BrickColor.new("White") | |
6188 | v.Material = "Neon" | |
6189 | end | |
6190 | end | |
6191 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
6192 | if v:IsA("Part") then | |
6193 | v.Transparency = 1 | |
6194 | v.BrickColor = BrickColor.new("White") | |
6195 | v.Material = "Neon" | |
6196 | end | |
6197 | end | |
6198 | elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then | |
6199 | resetmode() | |
6200 | end | |
6201 | if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then | |
6202 | ModeOfGlitch = 1000000 | |
6203 | storehumanoidWS = 100 | |
6204 | hum.WalkSpeed = 100 | |
6205 | rainbowmode = false | |
6206 | chaosmode = false | |
6207 | glitchymode = false | |
6208 | tl1.Enabled = true | |
6209 | tl2.Enabled = true | |
6210 | tl3.Enabled = true | |
6211 | RecolorTextAndRename("CALAMITY",Color3.new(0.25,0,1),Color3.new(0.5,0,1)) | |
6212 | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'Bright violet' end) | |
6213 | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'Bright violet' end) | |
6214 | newTheme("rbxassetid://1359036559",0,1,1) | |
6215 | MAINRUINCOLOR = BrickColor.new("Bright violet") | |
6216 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6217 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6218 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6219 | for i, v in pairs(mw2:GetChildren()) do | |
6220 | if v:IsA("Part") then | |
6221 | v.BrickColor = MAINRUINCOLOR | |
6222 | v.Material = "Neon" | |
6223 | end | |
6224 | end | |
6225 | for i, v in pairs(mw1:GetChildren()) do | |
6226 | if v:IsA("Part") then | |
6227 | v.Transparency = 0 | |
6228 | v.BrickColor = MAINRUINCOLOR | |
6229 | v.Material = "Neon" | |
6230 | end | |
6231 | end | |
6232 | for i, v in pairs(m:GetChildren()) do | |
6233 | if v:IsA("Part") then | |
6234 | v.Color = Color3.new(0.5,0,1) | |
6235 | v.Material = "Neon" | |
6236 | end | |
6237 | end | |
6238 | for i, v in pairs(m2:GetChildren()) do | |
6239 | if v:IsA("Part") then | |
6240 | v.Color = Color3.new(0.25,0,1) | |
6241 | v.Material = "Neon" | |
6242 | end | |
6243 | end | |
6244 | for i, v in pairs(m3:GetChildren()) do | |
6245 | if v:IsA("Part") then | |
6246 | v.Color = Color3.new(0.45,0,1) | |
6247 | v.Material = "Neon" | |
6248 | end | |
6249 | end | |
6250 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6251 | if v:IsA("Part") then | |
6252 | v.Transparency = 0.75 | |
6253 | v.Color = Color3.new(0.25,0,1) | |
6254 | v.Material = "Neon" | |
6255 | end | |
6256 | end | |
6257 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
6258 | if v:IsA("Part") then | |
6259 | v.Transparency = 0.75 | |
6260 | v.Color = Color3.new(0.5,0,1) | |
6261 | v.Material = "Neon" | |
6262 | end | |
6263 | end | |
6264 | elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then | |
6265 | resetmode() | |
6266 | end | |
6267 | if k == "m" and attack == false and ModeOfGlitch == 1000000 and ModeOfGlitch ~= 12345678987654321 and (plr.Name == 'Noobygames12' or plr.UserId == 5719877 or AllowCata) then | |
6268 | newThemeCust("rbxassetid://1504604335",0,1,1) | |
6269 | attack = true | |
6270 | hum.WalkSpeed = 0 | |
6271 | MAINRUINCOLOR = BrickColor.new("Royal purple") | |
6272 | for i = 0, 24, 0.1 do | |
6273 | swait() | |
6274 | sphereMK(1,-2,"Add",tors.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,MAINRUINCOLOR,100) | |
6275 | 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) | |
6276 | 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) | |
6277 | 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) | |
6278 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
6279 | 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) | |
6280 | 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) | |
6281 | end | |
6282 | CameraEnshaking(1,1) | |
6283 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
6284 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1) | |
6285 | wait(0.55) | |
6286 | CameraEnshaking(1,2) | |
6287 | sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR) | |
6288 | sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
6289 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
6290 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1) | |
6291 | wait(0.55) | |
6292 | CameraEnshaking(1,3) | |
6293 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
6294 | sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
6295 | sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR) | |
6296 | sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
6297 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
6298 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1) | |
6299 | wait(0.55) | |
6300 | CameraEnshaking(10,5) | |
6301 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1) | |
6302 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1) | |
6303 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1) | |
6304 | CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85) | |
6305 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1) | |
6306 | sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
6307 | sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR) | |
6308 | sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR) | |
6309 | sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR) | |
6310 | sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
6311 | sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR) | |
6312 | sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR) | |
6313 | sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR) | |
6314 | sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR) | |
6315 | sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR) | |
6316 | for i = 0, 49 do | |
6317 | 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) | |
6318 | 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) | |
6319 | 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) | |
6320 | 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) | |
6321 | end | |
6322 | ModeOfGlitch = 12345678987654321 | |
6323 | storehumanoidWS = 200 | |
6324 | hum.WalkSpeed = 200 | |
6325 | rainbowmode = false | |
6326 | chaosmode = false | |
6327 | glitchymode = false | |
6328 | tl1.Enabled = true | |
6329 | tl2.Enabled = true | |
6330 | tl3.Enabled = true | |
6331 | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'Dark indigo' end) | |
6332 | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'Dark indigo' end) | |
6333 | RecolorTextAndRename("CATASTROPHE",Color3.new(0.5,0,1),Color3.new(0.75,0,1)) | |
6334 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6335 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6336 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6337 | for i, v in pairs(mw2:GetChildren()) do | |
6338 | if v:IsA("Part") then | |
6339 | v.BrickColor = MAINRUINCOLOR | |
6340 | v.Material = "Neon" | |
6341 | end | |
6342 | end | |
6343 | for i, v in pairs(mw1:GetChildren()) do | |
6344 | if v:IsA("Part") then | |
6345 | v.Transparency = 0 | |
6346 | v.BrickColor = MAINRUINCOLOR | |
6347 | v.Material = "Neon" | |
6348 | end | |
6349 | end | |
6350 | for i, v in pairs(m:GetChildren()) do | |
6351 | if v:IsA("Part") then | |
6352 | v.Color = Color3.new(0.5,0,1) | |
6353 | v.Material = "Neon" | |
6354 | end | |
6355 | end | |
6356 | for i, v in pairs(m2:GetChildren()) do | |
6357 | if v:IsA("Part") then | |
6358 | v.Color = Color3.new(0.5,0,1) | |
6359 | v.Material = "Neon" | |
6360 | end | |
6361 | end | |
6362 | for i, v in pairs(m3:GetChildren()) do | |
6363 | if v:IsA("Part") then | |
6364 | v.Color = Color3.new(0.5,0,1) | |
6365 | v.Material = "Neon" | |
6366 | end | |
6367 | end | |
6368 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6369 | if v:IsA("Part") then | |
6370 | v.Transparency = 0 | |
6371 | v.Color = Color3.new(0.5,0,1) | |
6372 | v.Material = "Neon" | |
6373 | end | |
6374 | end | |
6375 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
6376 | if v:IsA("Part") then | |
6377 | v.Transparency = 0 | |
6378 | v.Color = Color3.new(0.5,0,1) | |
6379 | v.Material = "Neon" | |
6380 | end | |
6381 | attack = false | |
6382 | end | |
6383 | elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654321 then | |
6384 | resetmode() | |
6385 | end | |
6386 | if k == "l" and toggleTag == false then | |
6387 | toggleTag = true | |
6388 | text.TextTransparency = 0 | |
6389 | text.TextStrokeTransparency = 0 | |
6390 | elseif k == "l" and toggleTag == true then | |
6391 | toggleTag = false | |
6392 | text.TextTransparency = 1 | |
6393 | text.TextStrokeTransparency = 1 | |
6394 | end | |
6395 | if k == "z" and attack == false and (ModeOfGlitch == 1 or ModeOfGlitch == 8376532578634534) then | |
6396 | ExtinctiveHeartbreak() | |
6397 | elseif k == "z" and attack == false and ModeOfGlitch == 2 then | |
6398 | PureBomb() | |
6399 | elseif k == "z" and attack == false and ModeOfGlitch == 3 then | |
6400 | scattercorrupt() | |
6401 | elseif k == "z" and attack == false and ModeOfGlitch == 5 then | |
6402 | Judgement() | |
6403 | elseif k == "z" and attack == false and ModeOfGlitch == 4 then | |
6404 | ChaosGroundStrike() | |
6405 | elseif k == "z" and attack == false and ModeOfGlitch == 666666 then | |
6406 | InsaneGroundStrike() | |
6407 | ||
6408 | elseif k == "z" and attack == false and ModeOfGlitch == 69 then | |
6409 | ChooseODer() | |
6410 | elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then | |
6411 | Starfall() | |
6412 | elseif k == "z" and attack == false and ModeOfGlitch == 6 then | |
6413 | yinyangi() | |
6414 | elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then | |
6415 | Wip() | |
6416 | elseif k == "z" and attack == false and ModeOfGlitch == 12345678987654321 then | |
6417 | StarfallEX() | |
6418 | end | |
6419 | if k == "x" and attack == false and ModeOfGlitch == 1000000 then | |
6420 | StarDivision() | |
6421 | elseif k == "x" and attack == false and ModeOfGlitch == 6 then | |
6422 | JusticeBeam() | |
6423 | end | |
6424 | if k == "v" and attack == false and ModeOfGlitch == 12345678987654321 then | |
6425 | UniversalCollapse() | |
6426 | end | |
6427 | if k == "b" and attack == false and ModeOfGlitch == 4 then | |
6428 | ||
6429 | end | |
6430 | if k == "n" and attack == false then | |
6431 | CorruptBlink() | |
6432 | end | |
6433 | if k == "m" and attack == false and ModeOfGlitch == 69 and AllowRape then | |
6434 | FuckMeSidewaysAndCallMeGay() | |
6435 | end | |
6436 | end) | |
6437 | coroutine.resume(coroutine.create(function() | |
6438 | while true do | |
6439 | swait(2) | |
6440 | if rainbowmode == true or ModeOfGlitch == 6 or glitchymode then | |
6441 | sphereMK(5,0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),-6,math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),1.5,1.5,10,-0.015,MAINRUINCOLOR,0) | |
6442 | end | |
6443 | ||
6444 | end | |
6445 | end)) | |
6446 | ||
6447 | ||
6448 | coroutine.resume(coroutine.create(function() | |
6449 | while true do | |
6450 | if ModeOfGlitch == 1000000 then | |
6451 | swait(0.5) | |
6452 | end | |
6453 | swait() | |
6454 | if ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 then | |
6455 | sphereMK(5,0.5,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-15,15)),math.rad(math.random(-15,15)),0),1,1,15,-0.01,MAINRUINCOLOR,0) | |
6456 | end | |
6457 | if ModeOfGlitch == 12345678987654321 then | |
6458 | sphereMK(5,math.random(1,2),"Add",root.CFrame*CFrame.new(math.random(-75,75),-25,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),0),1,1,50,-0.01,MAINRUINCOLOR,0) | |
6459 | end | |
6460 | end | |
6461 | end)) | |
6462 | ||
6463 | ||
6464 | function RandomMaterial() | |
6465 | local getRandom; | |
6466 | local material; | |
6467 | local function IsTerrainMaterial(mat) | |
6468 | local isMaterial = pcall(function() workspace:FindFirstChildOfClass'Terrain':GetMaterialColor(mat) end) | |
6469 | return isMaterial | |
6470 | end | |
6471 | getRandom = function() | |
6472 | local mat = Enum.Material:GetEnumItems()[math.random(1,#Enum.Material:GetEnumItems())] | |
6473 | if(not IsTerrainMaterial(mat))then material = mat else getRandom() end | |
6474 | end | |
6475 | getRandom() | |
6476 | repeat wait() until material | |
6477 | return material | |
6478 | end | |
6479 | function RandomCaps(str) | |
6480 | local new = "" | |
6481 | for i = 1, #str do | |
6482 | if(math.random(1,2) == 1)then | |
6483 | new = new .. (str:sub(i,i):upper()) | |
6484 | else | |
6485 | new = new .. str:sub(i,i) | |
6486 | end | |
6487 | end | |
6488 | return new | |
6489 | end | |
6490 | ||
6491 | coroutine.resume(coroutine.create(function() | |
6492 | while true do | |
6493 | for i = 1, #ODers do | |
6494 | local ODer = ODers[i] | |
6495 | if(ODer)then | |
6496 | local hed = ODer:FindFirstChild'Head' | |
6497 | if(ODer.Parent and hed)then | |
6498 | sphere(10,"Add",hed.CFrame * cf(0,4,0),vt(6,6,3),0,(ODer.Name == 'Nebula_Zorua' and BrickColor.new'Royal purple' or MAINRUINCOLOR),true,false,true) | |
6499 | else | |
6500 | table.remove(ODers,i) | |
6501 | end | |
6502 | else | |
6503 | table.remove(ODers,i) | |
6504 | end | |
6505 | end | |
6506 | if(not kan)then | |
6507 | kan = Instance.new("Sound",char) | |
6508 | end | |
6509 | kan.Parent = char | |
6510 | if(plr.UserId == 5719877)then kan.Volume = 3 else kan.Volume = 1 end | |
6511 | kan.Pitch = Pitch | |
6512 | kan.SoundId = MID | |
6513 | kan.Name = "wrecked" | |
6514 | kan.Looped = true | |
6515 | kan:Resume() | |
6516 | swait() | |
6517 | if glitchymode == true then | |
6518 | local val = math.random(1,255) | |
6519 | local color = Color3.fromRGB(val,val,val) | |
6520 | pcall(function() Character.ReaperShadowHead.Eye1.Color = color end) | |
6521 | pcall(function() Character.ReaperShadowHead.Eye2.Color = color end) | |
6522 | tl1.Color = ColorSequence.new(color) | |
6523 | tl2.Color = ColorSequence.new(color) | |
6524 | tl3.Color = ColorSequence.new(color) | |
6525 | tr1.Color = ColorSequence.new(color) | |
6526 | tr2.Color = ColorSequence.new(color) | |
6527 | tr3.Color = ColorSequence.new(color) | |
6528 | for i, v in pairs(mw1:GetChildren()) do | |
6529 | if v:IsA("Part") then | |
6530 | v.Transparency = 0 | |
6531 | v.Color = color | |
6532 | v.Material = "Neon" | |
6533 | end | |
6534 | end | |
6535 | for i, v in pairs(mw2:GetChildren()) do | |
6536 | if v:IsA("Part") then | |
6537 | v.Color = color | |
6538 | v.Material = "Neon" | |
6539 | end | |
6540 | end | |
6541 | for i, v in pairs(m2:GetChildren()) do | |
6542 | if v:IsA("Part") then | |
6543 | v.Color = color | |
6544 | v.Material = "Neon" | |
6545 | end | |
6546 | end | |
6547 | RecolorTextAndRename((ModeOfGlitch == 3 and RandomCaps"glitchy"),Color3.new(0,0,0),color) | |
6548 | end | |
6549 | if chaosmode or glitchymode then | |
6550 | pcall(function() Character.ReaperShadowHead.Eye1.Material = Enum.Material:GetEnumItems()[math.random(1,#Enum.Material:GetEnumItems())] end) | |
6551 | pcall(function() Character.ReaperShadowHead.Eye2.Material = Enum.Material:GetEnumItems()[math.random(1,#Enum.Material:GetEnumItems())] end) | |
6552 | else | |
6553 | pcall(function() Character.ReaperShadowHead.Eye1.Material = Enum.Material.Neon end) | |
6554 | pcall(function() Character.ReaperShadowHead.Eye2.Material = Enum.Material.Neon end) | |
6555 | end | |
6556 | if chaosmode == true then | |
6557 | tl1.Color = ColorSequence.new(BrickColor.random().Color) | |
6558 | tl2.Color = ColorSequence.new(BrickColor.random().Color) | |
6559 | tl3.Color = ColorSequence.new(BrickColor.random().Color) | |
6560 | RecolorTextAndRename((ModeOfGlitch == 666666 and "INSANITY" or "CHAOS"),Color3.new(0,0,0),BrickColor.random().Color) | |
6561 | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.random() end) | |
6562 | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.random() end) | |
6563 | for i, v in pairs(mw1:GetChildren()) do | |
6564 | if v:IsA("Part") then | |
6565 | v.Transparency = 0.75 | |
6566 | v.BrickColor = BrickColor.random() | |
6567 | v.Material = "Neon" | |
6568 | end | |
6569 | end | |
6570 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6571 | if v:IsA("Part") and ModeOfGlitch == 666666 then | |
6572 | v.Transparency = 0.75 | |
6573 | v.BrickColor = BrickColor.random() | |
6574 | v.Material = "Neon" | |
6575 | elseif v:IsA("Part") then | |
6576 | v.Transparency = 1 | |
6577 | end | |
6578 | end | |
6579 | for i, v in pairs(m2:GetChildren()) do | |
6580 | if v:IsA("Part") then | |
6581 | v.BrickColor = BrickColor.random() | |
6582 | v.Material = "Neon" | |
6583 | end | |
6584 | end | |
6585 | end | |
6586 | end | |
6587 | end)) | |
6588 | Humanoid.Name = "STARGLITCHER" | |
6589 | Humanoid.MaxHealth = math.huge | |
6590 | Humanoid.Health = math.huge | |
6591 | Instance.new("ForceField",char).Visible = false | |
6592 | Humanoid.Animator.Parent = nil | |
6593 | idleanim=.4 | |
6594 | while true do | |
6595 | if rainbowmode == false and chaosmode == false and glitchymode == false then | |
6596 | tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6597 | tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6598 | tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6599 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6600 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6601 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6602 | end | |
6603 | if rainbowmode == true then | |
6604 | pcall(function() Character.ReaperShadowHead.Eye1.Color = Color3.new(r/255,g/255,b/255) end) | |
6605 | pcall(function() Character.ReaperShadowHead.Eye2.Color = Color3.new(r/255,g/255,b/255) end) | |
6606 | if(not vaporwave)then | |
6607 | RecolorTextAndRename("RAINBOW",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500)) | |
6608 | else | |
6609 | RecolorTextAndRename("Vaporwave",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500)) | |
6610 | end | |
6611 | MAINRUINCOLOR = BrickColor.new("White") | |
6612 | tr1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
6613 | tr2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
6614 | tr3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
6615 | tl1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
6616 | tl2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
6617 | tl3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
6618 | for i, v in pairs(m:GetChildren()) do | |
6619 | if v:IsA("Part") then | |
6620 | v.Color = Color3.new(r/255,g/255,b/255) | |
6621 | end | |
6622 | end | |
6623 | for i, v in pairs(m2:GetChildren()) do | |
6624 | if v:IsA("Part") then | |
6625 | v.Color = Color3.new(r/255,g/255,b/255) | |
6626 | end | |
6627 | end | |
6628 | for i, v in pairs(m3:GetChildren()) do | |
6629 | if v:IsA("Part") then | |
6630 | v.Color = Color3.new(r/255,g/255,b/255) | |
6631 | end | |
6632 | end | |
6633 | for i, v in pairs(mw1:GetChildren()) do | |
6634 | if v:IsA("Part") then | |
6635 | v.Color = Color3.new(r/255,g/255,b/255) | |
6636 | v.Material = "Neon" | |
6637 | end | |
6638 | end | |
6639 | for i, v in pairs(mw2:GetChildren()) do | |
6640 | if v:IsA("Part") then | |
6641 | v.Color = Color3.new(r/255,g/255,b/255) | |
6642 | v.Material = "Neon" | |
6643 | end | |
6644 | end | |
6645 | end | |
6646 | CameraManager() | |
6647 | swait() | |
6648 | 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) | |
6649 | 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) | |
6650 | 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) | |
6651 | 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) | |
6652 | 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) | |
6653 | 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) | |
6654 | ||
6655 | 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) | |
6656 | 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) | |
6657 | 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) | |
6658 | 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) | |
6659 | 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) | |
6660 | 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) | |
6661 | sine = sine + change | |
6662 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
6663 | local velderp=RootPart.Velocity.y | |
6664 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
6665 | if equipped==true or equipped==false then | |
6666 | if attack==false then | |
6667 | idle=idle+1 | |
6668 | else | |
6669 | idle=0 | |
6670 | end | |
6671 | if idle>=500 then | |
6672 | if attack==false then | |
6673 | --Sheath() | |
6674 | end | |
6675 | end | |
6676 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
6677 | Anim="Jump" | |
6678 | if attack==false then | |
6679 | 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(-5),math.rad(0),math.rad(-20)),.1) | |
6680 | 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) | |
6681 | 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) | |
6682 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1) | |
6683 | 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) | |
6684 | 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) | |
6685 | end | |
6686 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
6687 | Anim="Fall" | |
6688 | if attack==false then | |
6689 | 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(-5),math.rad(0),math.rad(-20)),.1) | |
6690 | 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) | |
6691 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
6692 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
6693 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1) | |
6694 | LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1) | |
6695 | end | |
6696 | elseif torvel<1 and hitfloor~=nil then | |
6697 | Anim="Idle" | |
6698 | if attack==false then | |
6699 | if ModeOfGlitch == 1 then | |
6700 | 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(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1) | |
6701 | 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(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1) | |
6702 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1) | |
6703 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2.5 * math.cos(sine / 32)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(-20 - 5 * math.cos(sine / 0.465))),.1) | |
6704 | 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) | |
6705 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1) | |
6706 | ||
6707 | elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then | |
6708 | 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(0 + 1 * math.cos(sine / 34))),.1) | |
6709 | 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) | |
6710 | 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) | |
6711 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1) | |
6712 | RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1) | |
6713 | LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1) | |
6714 | ||
6715 | elseif ModeOfGlitch == 3 then | |
6716 | 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) | |
6717 | 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) | |
6718 | 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) | |
6719 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 15 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465)))*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1) | |
6720 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(15 - 15 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465)))*angles(math.rad(math.random(5,15)),math.rad(-5),math.rad(15 + 7.5 * math.cos(sine / 12.5))),.1) | |
6721 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(15 - 15 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465)))*angles(math.rad(math.random(5,15)),math.rad(5),math.rad(-15 - 7.5 * math.cos(sine / 12.5))),.1) | |
6722 | elseif ModeOfGlitch == 4 then | |
6723 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(20)),.1) | |
6724 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-20)),.1) | |
6725 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.025 * math.cos(sine / 32))*angles(math.rad(20 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
6726 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1) | |
6727 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1) | |
6728 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1) | |
6729 | elseif ModeOfGlitch == 69 then | |
6730 | RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(0,0,math.rad(0+5*math.cos(sine/16)))*RootCF,.1) | |
6731 | Torso.Neck.C0 = Torso.Neck.C0:lerp(necko*angles(0,0,-math.rad(0+5*math.cos(sine/16))),.1) | |
6732 | LH.C0 = LH.C0:lerp(cf(-1-math.rad(0+5*math.cos(sine/16)),-1+math.rad(0+5*math.cos(sine/16)),0)*angles(0,0,-math.rad(0+5*math.cos(sine/16)))*angles(math.rad(-15),math.rad(25),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
6733 | RH.C0 = RH.C0:lerp(cf(1-math.rad(0+5*math.cos(sine/16)),-1-math.rad(0+5*math.cos(sine/16)),0)*angles(0,0,-math.rad(0+5*math.cos(sine/16)))*angles(math.rad(0),math.rad(90),math.rad(0)),.1) | |
6734 | LW.C0 = LW.C0:lerp(cf(-1.5,0.5,0)*cf(0,-.15,0)*angles(math.rad(15),0,math.rad(20)),.1) | |
6735 | RW.C0 = RW.C0:lerp(cf(1.5,0.5,0)*angles(0,0,math.rad(5+5*math.sin(sine/16))),.1) | |
6736 | elseif ModeOfGlitch == 8376532578634534 then | |
6737 | RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1) | |
6738 | LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
6739 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1) | |
6740 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,math.rad(-25),0)*angles(math.rad(0 - 25 * math.cos(sine / 0.1164)),math.rad(0 - 30 * math.cos(sine / 0.25)),math.rad(0 - 30 * math.cos(sine / 0.465))),.1) | |
6741 | RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1) | |
6742 | LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1) | |
6743 | ||
6744 | elseif ModeOfGlitch == 666666 then | |
6745 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(20)),.1) | |
6746 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-20)),.1) | |
6747 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.025 * math.cos(sine / 32))*angles(math.rad(20 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
6748 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
6749 | RW.C0=clerp(RW.C0,cf(1.3,0.5,0)*angles(math.rad(180),math.rad(-90),math.rad(15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
6750 | LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*angles(math.rad(180),math.rad(90),math.rad(-15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
6751 | ||
6752 | elseif ModeOfGlitch == 5 then | |
6753 | 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) | |
6754 | 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) | |
6755 | 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) | |
6756 | 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) | |
6757 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(-30)),.1) | |
6758 | 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) | |
6759 | ||
6760 | elseif ModeOfGlitch == 1000000 or ModeOfGlitch == 6 then | |
6761 | 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) | |
6762 | 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) | |
6763 | 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) | |
6764 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1) | |
6765 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(20 + 2.5 * math.cos(sine / 28))),.1) | |
6766 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-20 - 2.5 * math.cos(sine / 28))),.1) | |
6767 | ||
6768 | elseif ModeOfGlitch == 12345678987654321 then | |
6769 | 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) | |
6770 | 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) | |
6771 | 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) | |
6772 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1) | |
6773 | RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1) | |
6774 | LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1) | |
6775 | end | |
6776 | end | |
6777 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
6778 | Anim="Walk" | |
6779 | if attack==false then | |
6780 | if ModeOfGlitch == 1 then | |
6781 | RH.C0=clerp(RH.C0,cf(1,-.9-.4*math.cos(sine/8)/1.5,.4*math.cos(sine/8)/2)*angles(math.rad(2-2*math.cos(sine/8))-math.sin(sine/8)/2,0,0)*angles(0,math.rad(90),0),.1) | |
6782 | LH.C0=clerp(LH.C0,cf(-1,-.9+.4*math.cos(sine/8)/1.5,-.4*math.cos(sine/8)/2)*angles(math.rad(2+2*math.cos(sine/8))+math.sin(sine/8)/2,0,0)*angles(0,math.rad(-90),0),.1) | |
6783 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.1 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1) | |
6784 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
6785 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 + 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1) | |
6786 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1) | |
6787 | elseif ModeOfGlitch == 4 then | |
6788 | RH.C0=clerp(RH.C0,cf(1,-.9-.4*math.cos(sine/8)/2,.4*math.cos(sine/4)/2)*angles(math.rad(2-4*math.cos(sine/10))-math.sin(sine/10)/2,0,0)*angles(0,math.rad(90),0),.1) | |
6789 | LH.C0=clerp(LH.C0,cf(-1,-.9+.4*math.cos(sine/8)/2,-.4*math.cos(sine/4)/2)*angles(math.rad(2+3*math.cos(sine/10))+math.sin(sine/10)/2,0,0)*angles(0,math.rad(-90),0),.1) | |
6790 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 8))*angles(math.rad(12.5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 12))),.1) | |
6791 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1) | |
6792 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 - 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1) | |
6793 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1) | |
6794 | elseif ModeOfGlitch == 666666 then | |
6795 | RH.C0=clerp(RH.C0,cf(1,-.9-.4*math.cos(sine/8)/2,.4*math.cos(sine/8)/2)*angles(math.rad(2-2*math.cos(sine/10))-math.sin(sine/8)/2,0,0)*angles(0,math.rad(90),0),.1) | |
6796 | LH.C0=clerp(LH.C0,cf(-1,-.9+.4*math.cos(sine/8)/2,-.4*math.cos(sine/8)/2)*angles(math.rad(2+2*math.cos(sine/10))+math.sin(sine/8)/2,0,0)*angles(0,math.rad(-90),0),.1) | |
6797 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 8))*angles(math.rad(12.5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 12))),.1) | |
6798 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
6799 | RW.C0=clerp(RW.C0,cf(1.3,0.5,0)*angles(math.rad(180),math.rad(-90),math.rad(15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
6800 | LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*angles(math.rad(180),math.rad(90),math.rad(-15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
6801 | ||
6802 | elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 then | |
6803 | RH.C0=clerp(RH.C0,cf(1,-.85-.4*math.cos(sine/8)/1.5,.4*math.cos(sine/8)/2)*angles(math.rad(2-2*math.cos(sine/8))-math.sin(sine/8)/2,0,0)*angles(0,math.rad(90),0),.1) | |
6804 | LH.C0=clerp(LH.C0,cf(-1,-.85+.4*math.cos(sine/8)/1.5,-.4*math.cos(sine/8)/2)*angles(math.rad(2+2*math.cos(sine/8))+math.sin(sine/8)/2,0,0)*angles(0,math.rad(-90),0),.1) | |
6805 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1) | |
6806 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 5 * math.cos(sine / 8))),.1) | |
6807 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 + 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1) | |
6808 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(-10 + 10 * math.cos(sine / 4))),.1) | |
6809 | end | |
6810 | end | |
6811 | elseif torvel>=22 and hitfloor~=nil then | |
6812 | Anim="Run" | |
6813 | if attack==false then | |
6814 | if ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 4 and ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8376532578634534 then | |
6815 | RH.C0=clerp(RH.C0,cf(1,-1-.4*math.cos(sine/6)/2,.8*math.cos(sine/6)/2)*angles(math.rad(0-65*math.cos(sine/6))-math.sin(sine/6)/1.5,0,0)*angles(0,math.rad(90),0),.1) | |
6816 | LH.C0=clerp(LH.C0,cf(-1,-1+.4*math.cos(sine/6)/2,-.8*math.cos(sine/6)/2)*angles(math.rad(0+65*math.cos(sine/6))+math.sin(sine/6)/1.5,0,0)*angles(0,math.rad(-90),0),.1) | |
6817 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + 0.125 * math.cos(sine / 3))*angles(math.rad(20),math.rad(0),math.rad(0 - 15 * math.cos(sine / 6))),.1) | |
6818 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 15 * math.cos(sine / 6))),.1) | |
6819 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 + 105 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1) | |
6820 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 - 105 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1) | |
6821 | elseif ModeOfGlitch == 666666 then | |
6822 | RH.C0=clerp(RH.C0,cf(1,-0.75 - 0.25 * math.cos(sine / 3),-0.25 - 0.25 * math.cos(sine / 3))*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) | |
6823 | LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0.25 * math.cos(sine / 3),-0.25 + 0.25 * math.cos(sine / 3))*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) | |
6824 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + .125 * math.cos(sine / 3))*angles(math.rad(25),math.rad(0),math.rad(0 - 5 * math.cos(sine / 6))),.1) | |
6825 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
6826 | RW.C0=clerp(RW.C0,cf(1.3,0.5,0)*angles(math.rad(180),math.rad(-90),math.rad(15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
6827 | LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*angles(math.rad(180),math.rad(90),math.rad(-15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
6828 | ||
6829 | elseif ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 4 or ModeOfGlitch == 6 or ModeOfGlitch == 8376532578634534 then | |
6830 | 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) | |
6831 | 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) | |
6832 | 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) | |
6833 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
6834 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30 + 2.5 * math.cos(sine / 28))),.2) | |
6835 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-30 - 2.5 * math.cos(sine / 28))),.2) | |
6836 | end | |
6837 | end | |
6838 | end | |
6839 | end | |
6840 | end |