SHOW:
|
|
- or go back to the newest paste.
1 | - | --Armatae Sword Gifted by TheRedAngel, Local Script! |
1 | + | |
2 | Player = game:GetService("Players").aaronremmers14 | |
3 | - | Player = game:GetService("Players").YOURNAMEHERE |
3 | + | |
4 | PlayerGui = Player.PlayerGui | |
5 | Backpack = Player.Backpack | |
6 | Torso = Character.Torso | |
7 | Head = Character.Head | |
8 | LeftArm = Character["Left Arm"] | |
9 | LeftLeg = Character["Left Leg"] | |
10 | RightArm = Character["Right Arm"] | |
11 | RightLeg = Character["Right Leg"] | |
12 | LS = Torso["Left Shoulder"] | |
13 | LH = Torso["Left Hip"] | |
14 | RS = Torso["Right Shoulder"] | |
15 | RH = Torso["Right Hip"] | |
16 | bladecolor = BrickColor.new("Bright violet") | |
17 | attack = false | |
18 | attackdebounce = false | |
19 | combo = 0 | |
20 | guarding = false | |
21 | bashing = false | |
22 | holddash = false | |
23 | Modes = {"Normal", "Attack"} | |
24 | Number = 1 | |
25 | mode = Modes[Number] | |
26 | mana = 1000 | |
27 | element = "Light" | |
28 | Style = "Normal" | |
29 | hitbox = nil | |
30 | target = nil | |
31 | original = Head.CFrame | |
32 | idleanimdelay = false | |
33 | SwordRaging = false | |
34 | barragehold = false | |
35 | regening = false | |
36 | --player | |
37 | player = nil | |
38 | --save shoulders | |
39 | RSH, LSH = nil, nil | |
40 | --welds | |
41 | RW, LW = Instance.new("Weld"), Instance.new("Weld") | |
42 | --what anim | |
43 | anim = "none" | |
44 | ||
45 | if Character:findFirstChild("ArmataeModel",true) ~= nil then | |
46 | Character:findFirstChild("ArmataeModel",true).Parent = nil | |
47 | end | |
48 | if Player.PlayerGui:findFirstChild("manaGUI",true) ~= nil then | |
49 | Player.PlayerGui:findFirstChild("manaGUI",true).Parent = nil | |
50 | end | |
51 | ||
52 | local modelzorz = Instance.new("Model") | |
53 | modelzorz.Name = "ArmataeModel" | |
54 | modelzorz.Parent = Character | |
55 | ||
56 | local prt1 = Instance.new("Part") | |
57 | prt1.formFactor = 1 | |
58 | prt1.Parent = modelzorz | |
59 | prt1.CanCollide = false | |
60 | prt1.BrickColor = BrickColor.new("Really black") | |
61 | prt1.Name = "ArmataeShield1" | |
62 | prt1.Size = Vector3.new(2,2,1) | |
63 | prt1.Position = Torso.Position | |
64 | local prt2 = Instance.new("Part") | |
65 | prt2.formFactor = 1 | |
66 | prt2.Parent = modelzorz | |
67 | prt2.CanCollide = false | |
68 | prt2.BrickColor = BrickColor.new("Really black") | |
69 | prt2.Name = "ArmataeShield2" | |
70 | prt2.Size = Vector3.new(1,1,1) | |
71 | prt2.Position = Torso.Position | |
72 | local prt3 = Instance.new("Part") | |
73 | prt3.formFactor = 1 | |
74 | prt3.Parent = modelzorz | |
75 | prt3.CanCollide = false | |
76 | prt3.BrickColor = BrickColor.new("Really black") | |
77 | prt3.Name = "ArmataeShield3" | |
78 | prt3.Size = Vector3.new(1,1,1) | |
79 | prt3.Position = Torso.Position | |
80 | local prt4 = Instance.new("Part") | |
81 | prt4.formFactor = 1 | |
82 | prt4.Parent = modelzorz | |
83 | prt4.CanCollide = false | |
84 | prt4.BrickColor = BrickColor.new("Really black") | |
85 | prt4.Name = "ArmataeShield4" | |
86 | prt4.Size = Vector3.new(1,1,1) | |
87 | prt4.Position = Torso.Position | |
88 | local prt5 = Instance.new("Part") | |
89 | prt5.formFactor = 1 | |
90 | prt5.Parent = modelzorz | |
91 | prt5.CanCollide = false | |
92 | prt5.BrickColor = BrickColor.new("Really black") | |
93 | prt5.Name = "ArmataeShield5" | |
94 | prt5.Size = Vector3.new(1,1,1) | |
95 | prt5.Position = Torso.Position | |
96 | local prt6 = Instance.new("Part") | |
97 | prt6.formFactor = 1 | |
98 | prt6.Parent = modelzorz | |
99 | prt6.CanCollide = false | |
100 | prt6.BrickColor = BrickColor.new("White") | |
101 | prt6.Name = "ArmataeShield6" | |
102 | prt6.Size = Vector3.new(2,2,1) | |
103 | prt6.Position = Torso.Position | |
104 | local prt7 = Instance.new("Part") | |
105 | prt7.formFactor = 1 | |
106 | prt7.Parent = modelzorz | |
107 | prt7.CanCollide = false | |
108 | prt7.BrickColor = BrickColor.new("White") | |
109 | prt7.Name = "ArmataeShield7" | |
110 | prt7.Size = Vector3.new(1,1,1) | |
111 | prt7.Position = Torso.Position | |
112 | local prt8 = Instance.new("Part") | |
113 | prt8.formFactor = 1 | |
114 | prt8.Parent = modelzorz | |
115 | prt8.CanCollide = false | |
116 | prt8.BrickColor = BrickColor.new("White") | |
117 | prt8.Name = "ArmataeShield8" | |
118 | prt8.Size = Vector3.new(1,1,1) | |
119 | prt8.Position = Torso.Position | |
120 | local prt9 = Instance.new("Part") | |
121 | prt9.formFactor = 1 | |
122 | prt9.Parent = modelzorz | |
123 | prt9.CanCollide = false | |
124 | prt9.BrickColor = BrickColor.new("White") | |
125 | prt9.Name = "ArmataeShield9" | |
126 | prt9.Size = Vector3.new(1,1,1) | |
127 | prt9.Position = Torso.Position | |
128 | local prt10 = Instance.new("Part") | |
129 | prt10.formFactor = 1 | |
130 | prt10.Parent = modelzorz | |
131 | prt10.CanCollide = false | |
132 | prt10.BrickColor = BrickColor.new("White") | |
133 | prt10.Name = "ArmataeShield10" | |
134 | prt10.Size = Vector3.new(1,1,1) | |
135 | prt10.Position = Torso.Position | |
136 | local prt11 = Instance.new("Part") | |
137 | prt11.formFactor = 1 | |
138 | prt11.Reflectance = 0.1 | |
139 | prt11.Parent = modelzorz | |
140 | prt11.CanCollide = false | |
141 | prt11.BrickColor = BrickColor.new("Bright violet") | |
142 | prt11.Name = "ArmataeShield11" | |
143 | prt11.Size = Vector3.new(2,2,1) | |
144 | prt11.Position = Torso.Position | |
145 | local prt12 = Instance.new("Part") | |
146 | prt12.formFactor = 1 | |
147 | prt12.Reflectance = 0.1 | |
148 | prt12.Parent = modelzorz | |
149 | prt12.CanCollide = false | |
150 | prt12.BrickColor = BrickColor.new("Bright violet") | |
151 | prt12.Name = "ArmataeShield12" | |
152 | prt12.Size = Vector3.new(1,1,1) | |
153 | prt12.Position = Torso.Position | |
154 | local prt13 = Instance.new("Part") | |
155 | prt13.formFactor = 1 | |
156 | prt13.Reflectance = 0.1 | |
157 | prt13.Parent = modelzorz | |
158 | prt13.CanCollide = false | |
159 | prt13.BrickColor = BrickColor.new("Bright violet") | |
160 | prt13.Name = "ArmataeShield13" | |
161 | prt13.Size = Vector3.new(1,1,1) | |
162 | prt13.Position = Torso.Position | |
163 | local prt14 = Instance.new("Part") | |
164 | prt14.formFactor = 1 | |
165 | prt14.Reflectance = 0.1 | |
166 | prt14.Parent = modelzorz | |
167 | prt14.CanCollide = false | |
168 | prt14.BrickColor = BrickColor.new("Bright violet") | |
169 | prt14.Name = "ArmataeShield14" | |
170 | prt14.Size = Vector3.new(1,1,1) | |
171 | prt14.Position = Torso.Position | |
172 | local prt15 = Instance.new("Part") | |
173 | prt15.formFactor = 1 | |
174 | prt15.Reflectance = 0.1 | |
175 | prt15.Parent = modelzorz | |
176 | prt15.CanCollide = false | |
177 | prt15.BrickColor = BrickColor.new("Bright violet") | |
178 | prt15.Name = "ArmataeShield15" | |
179 | prt15.Size = Vector3.new(1,1,1) | |
180 | prt15.Position = Torso.Position | |
181 | local prt16 = Instance.new("Part") | |
182 | prt16.formFactor = 1 | |
183 | prt16.Reflectance = 0.2 | |
184 | prt16.Parent = modelzorz | |
185 | prt16.CanCollide = false | |
186 | --prt16.BrickColor = BrickColor.new("Bright violet") | |
187 | prt16.BrickColor = BrickColor.new("White") | |
188 | prt16.Name = "ArmataeShield16" | |
189 | prt16.Size = Vector3.new(1,1,1) | |
190 | prt16.Position = Torso.Position | |
191 | local prt17 = Instance.new("Part") | |
192 | prt17.formFactor = 1 | |
193 | prt17.Reflectance = 0.1 | |
194 | prt17.Parent = modelzorz | |
195 | prt17.CanCollide = false | |
196 | prt17.BrickColor = BrickColor.new("Really black") | |
197 | prt17.Name = "ArmataeShield17" | |
198 | prt17.Size = Vector3.new(1,1,1) | |
199 | prt17.Position = Torso.Position | |
200 | local prt18 = Instance.new("Part") | |
201 | prt18.formFactor = 1 | |
202 | prt18.Reflectance = 0.1 | |
203 | prt18.Parent = modelzorz | |
204 | prt18.CanCollide = false | |
205 | prt18.BrickColor = BrickColor.new("Really black") | |
206 | prt18.Name = "ArmataeShield18" | |
207 | prt18.Size = Vector3.new(1,1,1) | |
208 | prt18.Position = Torso.Position | |
209 | local prt19 = Instance.new("Part") | |
210 | prt19.formFactor = 1 | |
211 | prt19.Reflectance = 0.1 | |
212 | prt19.Parent = modelzorz | |
213 | prt19.CanCollide = false | |
214 | prt19.BrickColor = BrickColor.new("Really black") | |
215 | prt19.Name = "ArmataeShield19" | |
216 | prt19.Size = Vector3.new(1,1,1) | |
217 | prt19.Position = Torso.Position | |
218 | ||
219 | local part1 = Instance.new("Part") | |
220 | part1.formFactor = 1 | |
221 | part1.Parent = modelzorz | |
222 | part1.CanCollide = false | |
223 | part1.BrickColor = BrickColor.new("Bright violet") | |
224 | part1.Name = "Handle1" | |
225 | part1.Size = Vector3.new(1,1,1) | |
226 | part1.Position = Torso.Position | |
227 | local part2 = Instance.new("Part") | |
228 | part2.formFactor = 1 | |
229 | part2.Parent = modelzorz | |
230 | part2.CanCollide = false | |
231 | part2.BrickColor = BrickColor.new("Bright violet") | |
232 | part2.Name = "Handle2" | |
233 | part2.Size = Vector3.new(1,1,1) | |
234 | part2.Position = Torso.Position | |
235 | local part3 = Instance.new("Part") | |
236 | part3.formFactor = 1 | |
237 | part3.Parent = modelzorz | |
238 | part3.CanCollide = false | |
239 | part3.BrickColor = BrickColor.new("Bright violet") | |
240 | part3.Name = "Handle3" | |
241 | part3.Size = Vector3.new(1,1,1) | |
242 | part3.Position = Torso.Position | |
243 | local part4 = Instance.new("Part") | |
244 | part4.formFactor = 1 | |
245 | part4.Parent = modelzorz | |
246 | part4.CanCollide = false | |
247 | part4.BrickColor = BrickColor.new("Really black") | |
248 | part4.Name = "Handle4" | |
249 | part4.Size = Vector3.new(1,3,1) | |
250 | part4.Position = Torso.Position | |
251 | local part5 = Instance.new("Part") | |
252 | part5.formFactor = 1 | |
253 | part5.Parent = modelzorz | |
254 | part5.CanCollide = false | |
255 | part5.BrickColor = BrickColor.new("Really black") | |
256 | part5.Name = "Handle5" | |
257 | part5.Size = Vector3.new(1,1,1) | |
258 | part5.Position = Torso.Position | |
259 | local part6 = Instance.new("Part") | |
260 | part6.formFactor = 1 | |
261 | part6.Parent = modelzorz | |
262 | part6.CanCollide = false | |
263 | part6.BrickColor = BrickColor.new("Really black") | |
264 | part6.Name = "Handle6" | |
265 | part6.Size = Vector3.new(1,1,1) | |
266 | part6.Position = Torso.Position | |
267 | local part7 = Instance.new("Part") | |
268 | part7.formFactor = 1 | |
269 | part7.Parent = modelzorz | |
270 | part7.CanCollide = false | |
271 | part7.BrickColor = BrickColor.new("Really black") | |
272 | part7.Name = "Handle7" | |
273 | part7.Size = Vector3.new(1,1,1) | |
274 | part7.Position = Torso.Position | |
275 | local part8 = Instance.new("Part") | |
276 | part8.formFactor = 1 | |
277 | part8.Parent = modelzorz | |
278 | part8.CanCollide = false | |
279 | part8.BrickColor = BrickColor.new("Really black") | |
280 | part8.Name = "Handle8" | |
281 | part8.Size = Vector3.new(1,1,1) | |
282 | part8.Position = Torso.Position | |
283 | local part9 = Instance.new("Part") | |
284 | part9.formFactor = 1 | |
285 | part9.Parent = modelzorz | |
286 | part9.CanCollide = false | |
287 | part9.BrickColor = BrickColor.new("Really black") | |
288 | part9.Name = "Handle9" | |
289 | part9.Size = Vector3.new(1,1,1) | |
290 | part9.Position = Torso.Position | |
291 | local part10 = Instance.new("Part") | |
292 | part10.formFactor = 1 | |
293 | part10.Parent = modelzorz | |
294 | part10.CanCollide = false | |
295 | part10.BrickColor = BrickColor.new("Really black") | |
296 | part10.Name = "Handle10" | |
297 | part10.Size = Vector3.new(1,1,1) | |
298 | part10.Position = Torso.Position | |
299 | local part11 = Instance.new("Part") | |
300 | part11.formFactor = 1 | |
301 | part11.Parent = modelzorz | |
302 | part11.CanCollide = false | |
303 | part11.BrickColor = BrickColor.new("Really black") | |
304 | part11.Name = "Handle11" | |
305 | part11.Size = Vector3.new(1,1,1) | |
306 | part11.Position = Torso.Position | |
307 | local part12 = Instance.new("Part") | |
308 | part12.formFactor = 1 | |
309 | part12.Parent = modelzorz | |
310 | part12.CanCollide = false | |
311 | part12.BrickColor = BrickColor.new("Really black") | |
312 | part12.Name = "Handle12" | |
313 | part12.Size = Vector3.new(1,1,1) | |
314 | part12.Position = Torso.Position | |
315 | local part13 = Instance.new("Part") | |
316 | part13.formFactor = 1 | |
317 | part13.Parent = modelzorz | |
318 | part13.CanCollide = false | |
319 | part13.Reflectance = 0.5 | |
320 | part13.BrickColor = bladecolor | |
321 | part13.Name = "Blade1" | |
322 | part13.Size = Vector3.new(2,1,1) | |
323 | part13.Position = Torso.Position | |
324 | local part14 = Instance.new("Part") | |
325 | part14.formFactor = 1 | |
326 | part14.Parent = modelzorz | |
327 | part14.CanCollide = false | |
328 | part14.Reflectance = 0.5 | |
329 | part14.BrickColor = bladecolor | |
330 | part14.Name = "Blade2" | |
331 | part14.Size = Vector3.new(1,1,1) | |
332 | part14.Position = Torso.Position | |
333 | local part15 = Instance.new("Part") | |
334 | part15.formFactor = 1 | |
335 | part15.Parent = modelzorz | |
336 | part15.CanCollide = false | |
337 | part15.Reflectance = 0 | |
338 | part15.BrickColor = BrickColor.new("Black") | |
339 | part15.Name = "Blade3" | |
340 | part15.Size = Vector3.new(1,2,1) | |
341 | part15.Position = Torso.Position | |
342 | ||
343 | local msh1 = Instance.new("BlockMesh") | |
344 | msh1.Parent = prt1 | |
345 | msh1.Scale = Vector3.new(1,1,0.5) | |
346 | local msh2 = Instance.new("SpecialMesh") | |
347 | msh2.Parent = prt2 | |
348 | msh2.MeshType = "Wedge" | |
349 | msh2.Scale = Vector3.new(0.5,0.7,1) | |
350 | local msh3 = Instance.new("SpecialMesh") | |
351 | msh3.Parent = prt3 | |
352 | msh3.MeshType = "Wedge" | |
353 | msh3.Scale = Vector3.new(0.5,0.7,1) | |
354 | local msh4 = Instance.new("BlockMesh") | |
355 | msh4.Parent = prt4 | |
356 | msh4.Scale = Vector3.new(0.9,0.9,0.5) | |
357 | local msh5 = Instance.new("BlockMesh") | |
358 | msh5.Parent = prt5 | |
359 | msh5.Scale = Vector3.new(0.9,0.9,0.5) | |
360 | local msh6 = Instance.new("BlockMesh") | |
361 | msh6.Parent = prt6 | |
362 | msh6.Scale = Vector3.new(0.8,0.8,0.5) | |
363 | local msh7 = Instance.new("SpecialMesh") | |
364 | msh7.Parent = prt7 | |
365 | msh7.MeshType = "Wedge" | |
366 | msh7.Scale = Vector3.new(0.5,0.5,0.8) | |
367 | local msh8 = Instance.new("SpecialMesh") | |
368 | msh8.Parent = prt8 | |
369 | msh8.MeshType = "Wedge" | |
370 | msh8.Scale = Vector3.new(0.5,0.5,0.8) | |
371 | local msh9 = Instance.new("BlockMesh") | |
372 | msh9.Parent = prt9 | |
373 | msh9.Scale = Vector3.new(0.7,0.7,0.5) | |
374 | local msh10 = Instance.new("BlockMesh") | |
375 | msh10.Parent = prt10 | |
376 | msh10.Scale = Vector3.new(0.7,0.7,0.5) | |
377 | local msh11 = Instance.new("BlockMesh") | |
378 | msh11.Parent = prt11 | |
379 | msh11.Scale = Vector3.new(0.7,0.7,0.5) | |
380 | local msh12 = Instance.new("SpecialMesh") | |
381 | msh12.Parent = prt12 | |
382 | msh12.MeshType = "Wedge" | |
383 | msh12.Scale = Vector3.new(0.4,0.5,0.7) | |
384 | local msh13 = Instance.new("SpecialMesh") | |
385 | msh13.Parent = prt13 | |
386 | msh13.MeshType = "Wedge" | |
387 | msh13.Scale = Vector3.new(0.4,0.5,0.7) | |
388 | local msh14 = Instance.new("BlockMesh") | |
389 | msh14.Parent = prt14 | |
390 | msh14.Scale = Vector3.new(0.5,0.5,0.5) | |
391 | local msh15 = Instance.new("BlockMesh") | |
392 | msh15.Parent = prt15 | |
393 | msh15.Scale = Vector3.new(0.5,0.5,0.5) | |
394 | local msh16 = Instance.new("SpecialMesh") | |
395 | msh16.Parent = prt16 | |
396 | msh16.MeshId = "http://www.roblox.com/Asset/?id=9756362" | |
397 | msh16.Scale = Vector3.new(0.6,0.6,0.6) | |
398 | local msh17 = Instance.new("SpecialMesh") | |
399 | msh17.Parent = prt17 | |
400 | msh17.MeshId = "http://www.roblox.com/Asset/?id=9756362" | |
401 | msh17.Scale = Vector3.new(0.8,0.8,0.3) | |
402 | local msh18 = Instance.new("CylinderMesh") | |
403 | msh18.Parent = prt18 | |
404 | msh18.Scale = Vector3.new(0.3,0.2,0.5) | |
405 | local msh19 = Instance.new("CylinderMesh") | |
406 | msh19.Parent = prt19 | |
407 | msh19.Scale = Vector3.new(0.3,0.2,0.5) | |
408 | ||
409 | local mesh1 = Instance.new("CylinderMesh") | |
410 | mesh1.Parent = part1 | |
411 | mesh1.Scale = Vector3.new(0.31,0.1,0.31) | |
412 | local mesh2 = Instance.new("CylinderMesh") | |
413 | mesh2.Parent = part2 | |
414 | mesh2.Scale = Vector3.new(0.31,0.1,0.31) | |
415 | local mesh3 = Instance.new("CylinderMesh") | |
416 | mesh3.Parent = part3 | |
417 | mesh3.Scale = Vector3.new(0.31,0.1,0.31) | |
418 | local mesh4 = Instance.new("CylinderMesh") | |
419 | mesh4.Parent = part4 | |
420 | mesh4.Scale = Vector3.new(0.3,0.4,0.3) | |
421 | local mesh5 = Instance.new("SpecialMesh") | |
422 | mesh5.Parent = part5 | |
423 | mesh5.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
424 | mesh5.Scale = Vector3.new(0.6,0.6,0.6) | |
425 | local mesh6 = Instance.new("BlockMesh") | |
426 | mesh6.Parent = part6 | |
427 | mesh6.Scale = Vector3.new(0.2,0.4,0.2) | |
428 | local mesh7 = Instance.new("BlockMesh") | |
429 | mesh7.Parent = part7 | |
430 | mesh7.Scale = Vector3.new(0.2,0.4,0.2) | |
431 | local mesh8 = Instance.new("BlockMesh") | |
432 | mesh8.Parent = part8 | |
433 | mesh8.Scale = Vector3.new(0.3,0.9,0.3) | |
434 | local mesh9 = Instance.new("BlockMesh") | |
435 | mesh9.Parent = part9 | |
436 | mesh9.Scale = Vector3.new(0.2, 0.5, 0.2) | |
437 | local mesh10 = Instance.new("BlockMesh") | |
438 | mesh10.Parent = part10 | |
439 | mesh10.Scale = Vector3.new(0.2, 0.5, 0.2) | |
440 | local mesh11 = Instance.new("BlockMesh") | |
441 | mesh11.Parent = part11 | |
442 | mesh11.Scale = Vector3.new(0.2, 0.5, 0.2) | |
443 | local mesh12 = Instance.new("BlockMesh") | |
444 | mesh12.Parent = part12 | |
445 | mesh12.Scale = Vector3.new(0.2, 0.5, 0.2) | |
446 | local mesh13 = Instance.new("BlockMesh") | |
447 | mesh13.Parent = part13 | |
448 | mesh13.Scale = Vector3.new(1.3, 0.6, 0.2) | |
449 | local mesh14 = Instance.new("SpecialMesh") | |
450 | mesh14.Parent = part14 | |
451 | mesh14.MeshType = "Wedge" | |
452 | mesh14.Scale = Vector3.new(0.2,0.4,0.5) | |
453 | local mesh15 = Instance.new("CylinderMesh") | |
454 | mesh15.Parent = part15 | |
455 | mesh15.Scale = Vector3.new(2.3,0.8,0.3) | |
456 | ||
457 | local wld1 = Instance.new("Weld") | |
458 | wld1.Parent = prt1 | |
459 | wld1.Part0 = prt1 | |
460 | wld1.Part1 = Torso | |
461 | wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,-0.7) | |
462 | wld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
463 | local wld2 = Instance.new("Weld") | |
464 | wld2.Parent = prt2 | |
465 | wld2.Part0 = prt2 | |
466 | wld2.Part1 = prt1 | |
467 | wld2.C0 = CFrame.fromEulerAnglesXYZ(0,math.rad(90),math.rad(180)) * CFrame.new(0.5,1.6,0) | |
468 | wld2.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
469 | local wld3 = Instance.new("Weld") | |
470 | wld3.Parent = prt3 | |
471 | wld3.Part0 = prt3 | |
472 | wld3.Part1 = prt1 | |
473 | wld3.C0 = CFrame.fromEulerAnglesXYZ(0,-math.rad(90),math.rad(180)) * CFrame.new(-0.5,1.6,0) | |
474 | wld3.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
475 | local wld4 = Instance.new("Weld") | |
476 | wld4.Parent = prt4 | |
477 | wld4.Part0 = prt4 | |
478 | wld4.Part1 = prt1 | |
479 | wld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,1.2) * CFrame.new(0.6,-0.9,0) | |
480 | wld4.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
481 | local wld5 = Instance.new("Weld") | |
482 | wld5.Parent = prt5 | |
483 | wld5.Part0 = prt5 | |
484 | wld5.Part1 = prt1 | |
485 | wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,-1.2) * CFrame.new(-0.6,-0.9,0) | |
486 | wld5.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
487 | local wld6 = Instance.new("Weld") | |
488 | wld6.Parent = prt6 | |
489 | wld6.Part0 = prt6 | |
490 | wld6.Part1 = prt1 | |
491 | wld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.15,-0.05) | |
492 | wld6.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
493 | local wld7 = Instance.new("Weld") | |
494 | wld7.Parent = prt7 | |
495 | wld7.Part0 = prt7 | |
496 | wld7.Part1 = prt2 | |
497 | wld7.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.05,0.2,-0.1) | |
498 | wld7.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
499 | local wld8 = Instance.new("Weld") | |
500 | wld8.Parent = prt8 | |
501 | wld8.Part0 = prt8 | |
502 | wld8.Part1 = prt3 | |
503 | wld8.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.05,0.2,-0.1) | |
504 | wld8.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
505 | local wld9 = Instance.new("Weld") | |
506 | wld9.Parent = prt9 | |
507 | wld9.Part0 = prt9 | |
508 | wld9.Part1 = prt4 | |
509 | wld9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.1,-0.05,-0.05) | |
510 | wld9.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
511 | local wld10 = Instance.new("Weld") | |
512 | wld10.Parent = prt10 | |
513 | wld10.Part0 = prt10 | |
514 | wld10.Part1 = prt5 | |
515 | wld10.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.1,-0.05,-0.05) | |
516 | wld10.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
517 | local wld11 = Instance.new("Weld") | |
518 | wld11.Parent = prt11 | |
519 | wld11.Part0 = prt11 | |
520 | wld11.Part1 = prt6 | |
521 | wld11.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,-0.01) | |
522 | wld11.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
523 | local wld12 = Instance.new("Weld") | |
524 | wld12.Parent = prt12 | |
525 | wld12.Part0 = prt12 | |
526 | wld12.Part1 = prt7 | |
527 | wld12.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.06,0.11,-0.06) | |
528 | wld12.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
529 | local wld13 = Instance.new("Weld") | |
530 | wld13.Parent = prt13 | |
531 | wld13.Part0 = prt13 | |
532 | wld13.Part1 = prt8 | |
533 | wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.06,0.11,-0.06) | |
534 | wld13.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
535 | local wld14 = Instance.new("Weld") | |
536 | wld14.Parent = prt14 | |
537 | wld14.Part0 = prt14 | |
538 | wld14.Part1 = prt9 | |
539 | wld14.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,-0.01) | |
540 | wld14.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
541 | local wld15 = Instance.new("Weld") | |
542 | wld15.Parent = prt15 | |
543 | wld15.Part0 = prt15 | |
544 | wld15.Part1 = prt10 | |
545 | wld15.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,-0.01) | |
546 | wld15.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
547 | local wld16 = Instance.new("Weld") | |
548 | wld16.Parent = prt16 | |
549 | wld16.Part0 = prt16 | |
550 | wld16.Part1 = prt11 | |
551 | wld16.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.1,-0.2) | |
552 | wld16.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
553 | local wld17 = Instance.new("Weld") | |
554 | wld17.Parent = prt17 | |
555 | wld17.Part0 = prt17 | |
556 | wld17.Part1 = prt11 | |
557 | wld17.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.1,-0.2) | |
558 | wld17.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
559 | local wld18 = Instance.new("Weld") | |
560 | wld18.Parent = prt18 | |
561 | wld18.Part0 = prt18 | |
562 | wld18.Part1 = prt14 | |
563 | wld18.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(-0.1,0,-0.2) | |
564 | wld18.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
565 | local wld19 = Instance.new("Weld") | |
566 | wld19.Parent = prt19 | |
567 | wld19.Part0 = prt19 | |
568 | wld19.Part1 = prt15 | |
569 | wld19.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0.1,0,-0.2) | |
570 | wld19.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
571 | ||
572 | local weld1 = Instance.new("Weld") | |
573 | weld1.Parent = part1 | |
574 | weld1.Part0 = part1 | |
575 | weld1.Part1 = prt1 | |
576 | weld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.7,0.2) | |
577 | weld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
578 | local weld2 = Instance.new("Weld") | |
579 | weld2.Parent = part2 | |
580 | weld2.Part0 = part2 | |
581 | weld2.Part1 = part1 | |
582 | weld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.3,0) | |
583 | weld2.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
584 | local weld3 = Instance.new("Weld") | |
585 | weld3.Parent = part3 | |
586 | weld3.Part0 = part3 | |
587 | weld3.Part1 = part1 | |
588 | weld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.3,0) | |
589 | weld3.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
590 | local weld4 = Instance.new("Weld") | |
591 | weld4.Parent = part4 | |
592 | weld4.Part0 = part4 | |
593 | weld4.Part1 = part1 | |
594 | weld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
595 | weld4.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
596 | local weld5 = Instance.new("Weld") | |
597 | weld5.Parent = part5 | |
598 | weld5.Part0 = part5 | |
599 | weld5.Part1 = part1 | |
600 | weld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.8,0) | |
601 | weld5.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
602 | local weld6 = Instance.new("Weld") | |
603 | weld6.Parent = part6 | |
604 | weld6.Part0 = part6 | |
605 | weld6.Part1 = part5 | |
606 | weld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
607 | weld6.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
608 | local weld7 = Instance.new("Weld") | |
609 | weld7.Parent = part7 | |
610 | weld7.Part0 = part7 | |
611 | weld7.Part1 = part5 | |
612 | weld7.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0,0) | |
613 | weld7.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
614 | local weld8 = Instance.new("Weld") | |
615 | weld8.Parent = part8 | |
616 | weld8.Part0 = part8 | |
617 | weld8.Part1 = part1 | |
618 | weld8.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0.6,0) | |
619 | local weld9 = Instance.new("Weld") | |
620 | weld9.Parent = part9 | |
621 | weld9.Part0 = part9 | |
622 | weld9.Part1 = part8 | |
623 | weld9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.6,0) | |
624 | local weld10 = Instance.new("Weld") | |
625 | weld10.Parent = part10 | |
626 | weld10.Part0 = part10 | |
627 | weld10.Part1 = part9 | |
628 | weld10.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0,0) | |
629 | local weld11 = Instance.new("Weld") | |
630 | weld11.Parent = part11 | |
631 | weld11.Part0 = part11 | |
632 | weld11.Part1 = part8 | |
633 | weld11.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.6,0) | |
634 | local weld12 = Instance.new("Weld") | |
635 | weld12.Parent = part12 | |
636 | weld12.Part0 = part12 | |
637 | weld12.Part1 = part11 | |
638 | weld12.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0,0) | |
639 | local weld13 = Instance.new("Weld") | |
640 | weld13.Parent = part13 | |
641 | weld13.Part0 = part13 | |
642 | weld13.Part1 = part8 | |
643 | weld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-1.4,0,0) | |
644 | local weld14 = Instance.new("Weld") | |
645 | weld14.Parent = part14 | |
646 | weld14.Part0 = part14 | |
647 | weld14.Part1 = part13 | |
648 | weld14.C0 = CFrame.fromEulerAnglesXYZ(3.95,math.rad(90),0) * CFrame.new(-1.3,0,0) | |
649 | local weld15 = Instance.new("Weld") | |
650 | weld15.Parent = part15 | |
651 | weld15.Part0 = part15 | |
652 | weld15.Part1 = part13 | |
653 | weld15.C0 = CFrame.fromEulerAnglesXYZ(4.7,math.rad(90),0) * CFrame.new(0,0,0) | |
654 | ||
655 | local wingblade1 = Instance.new("Part") | |
656 | wingblade1.formFactor = 1 | |
657 | wingblade1.Parent = nil | |
658 | wingblade1.Transparency = 0.4 | |
659 | wingblade1.CanCollide = false | |
660 | wingblade1.Reflectance = 0 | |
661 | wingblade1.BrickColor = BrickColor.new("White") | |
662 | wingblade1.Name = "Wingblade1" | |
663 | wingblade1.Size = Vector3.new(1,1,3) | |
664 | wingblade1.Position = Torso.Position | |
665 | local wingblade2 = Instance.new("Part") | |
666 | wingblade2.formFactor = 1 | |
667 | wingblade2.Parent = nil | |
668 | wingblade2.Transparency = 0.4 | |
669 | wingblade2.CanCollide = false | |
670 | wingblade2.Reflectance = 0 | |
671 | wingblade2.BrickColor = BrickColor.new("White") | |
672 | wingblade2.Name = "Wingblade2" | |
673 | wingblade2.Size = Vector3.new(1,1,3) | |
674 | wingblade2.Position = Torso.Position | |
675 | local wingblade3 = Instance.new("Part") | |
676 | wingblade3.formFactor = 1 | |
677 | wingblade3.Parent = nil | |
678 | wingblade3.Transparency = 0.4 | |
679 | wingblade3.CanCollide = false | |
680 | wingblade3.Reflectance = 0 | |
681 | wingblade3.BrickColor = BrickColor.new("White") | |
682 | wingblade3.Name = "Wingblade3" | |
683 | wingblade3.Size = Vector3.new(1,1,3) | |
684 | wingblade3.Position = Torso.Position | |
685 | local wingblade4 = Instance.new("Part") | |
686 | wingblade4.formFactor = 1 | |
687 | wingblade4.Parent = nil | |
688 | wingblade4.Transparency = 0.4 | |
689 | wingblade4.CanCollide = false | |
690 | wingblade4.Reflectance = 0 | |
691 | wingblade4.BrickColor = BrickColor.new("White") | |
692 | wingblade4.Name = "Wingblade4" | |
693 | wingblade4.Size = Vector3.new(1,1,3) | |
694 | wingblade4.Position = Torso.Position | |
695 | local wingblade5 = Instance.new("Part") | |
696 | wingblade5.formFactor = 1 | |
697 | wingblade5.Parent = nil | |
698 | wingblade5.Transparency = 0.4 | |
699 | wingblade5.CanCollide = false | |
700 | wingblade5.Reflectance = 0 | |
701 | wingblade5.BrickColor = BrickColor.new("White") | |
702 | wingblade5.Name = "Wingblade5" | |
703 | wingblade5.Size = Vector3.new(1,1,3) | |
704 | wingblade5.Position = Torso.Position | |
705 | local wingblade6 = Instance.new("Part") | |
706 | wingblade6.formFactor = 1 | |
707 | wingblade6.Parent = nil | |
708 | wingblade6.Transparency = 0.4 | |
709 | wingblade6.CanCollide = false | |
710 | wingblade6.Reflectance = 0 | |
711 | wingblade6.BrickColor = BrickColor.new("White") | |
712 | wingblade6.Name = "Wingblade6" | |
713 | wingblade6.Size = Vector3.new(1,1,3) | |
714 | wingblade6.Position = Torso.Position | |
715 | ||
716 | local wingmesh1 = Instance.new("SpecialMesh") | |
717 | wingmesh1.Parent = wingblade1 | |
718 | wingmesh1.MeshId = "rbxasset://fonts/sword.mesh" | |
719 | wingmesh1.Scale = Vector3.new(1,1,1) | |
720 | local wingmesh2 = Instance.new("SpecialMesh") | |
721 | wingmesh2.Parent = wingblade2 | |
722 | wingmesh2.MeshId = "rbxasset://fonts/sword.mesh" | |
723 | wingmesh2.Scale = Vector3.new(1,1,1) | |
724 | local wingmesh3 = Instance.new("SpecialMesh") | |
725 | wingmesh3.Parent = wingblade3 | |
726 | wingmesh3.MeshId = "rbxasset://fonts/sword.mesh" | |
727 | wingmesh3.Scale = Vector3.new(1,1,1) | |
728 | local wingmesh4 = Instance.new("SpecialMesh") | |
729 | wingmesh4.Parent = wingblade4 | |
730 | wingmesh4.MeshId = "rbxasset://fonts/sword.mesh" | |
731 | wingmesh4.Scale = Vector3.new(1,1,1) | |
732 | local wingmesh5 = Instance.new("SpecialMesh") | |
733 | wingmesh5.Parent = wingblade5 | |
734 | wingmesh5.MeshId = "rbxasset://fonts/sword.mesh" | |
735 | wingmesh5.Scale = Vector3.new(1,1,1) | |
736 | local wingmesh6 = Instance.new("SpecialMesh") | |
737 | wingmesh6.Parent = wingblade6 | |
738 | wingmesh6.MeshId = "rbxasset://fonts/sword.mesh" | |
739 | wingmesh6.Scale = Vector3.new(1,1,1) | |
740 | ||
741 | local wingweld1 = Instance.new("Weld") | |
742 | wingweld1.Parent = wingblade1 | |
743 | wingweld1.Part0 = wingblade1 | |
744 | wingweld1.Part1 = Torso | |
745 | wingweld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(1,0,0) | |
746 | wingweld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
747 | local wingweld2 = Instance.new("Weld") | |
748 | wingweld2.Parent = wingblade2 | |
749 | wingweld2.Part0 = wingblade2 | |
750 | wingweld2.Part1 = Torso | |
751 | wingweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
752 | wingweld2.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
753 | local wingweld3 = Instance.new("Weld") | |
754 | wingweld3.Parent = wingblade3 | |
755 | wingweld3.Part0 = wingblade3 | |
756 | wingweld3.Part1 = Torso | |
757 | wingweld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
758 | wingweld3.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
759 | local wingweld4 = Instance.new("Weld") | |
760 | wingweld4.Parent = wingblade4 | |
761 | wingweld4.Part0 = wingblade4 | |
762 | wingweld4.Part1 = Torso | |
763 | wingweld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
764 | wingweld4.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
765 | local wingweld5 = Instance.new("Weld") | |
766 | wingweld5.Parent = wingblade5 | |
767 | wingweld5.Part0 = wingblade5 | |
768 | wingweld5.Part1 = Torso | |
769 | wingweld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
770 | wingweld5.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
771 | local wingweld6 = Instance.new("Weld") | |
772 | wingweld6.Parent = wingblade6 | |
773 | wingweld6.Part0 = wingblade6 | |
774 | wingweld6.Part1 = Torso | |
775 | wingweld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
776 | wingweld6.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
777 | ||
778 | local SlashSound = Instance.new("Sound") -- PRELOADING SOUNDS TROLOLOL | |
779 | --SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav" | |
780 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209645" | |
781 | SlashSound.Parent = Character | |
782 | SlashSound.Volume = .7 | |
783 | SlashSound.Pitch = 1 | |
784 | local SlashSound = Instance.new("Sound") | |
785 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209850" | |
786 | SlashSound.Parent = Character | |
787 | SlashSound.Volume = .7 | |
788 | SlashSound.Pitch = 1 | |
789 | local SlashSound = Instance.new("Sound") | |
790 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209583" | |
791 | SlashSound.Parent = Character | |
792 | SlashSound.Volume = .7 | |
793 | SlashSound.Pitch = 1 | |
794 | local SlashSound = Instance.new("Sound") | |
795 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511" | |
796 | SlashSound.Parent = Character | |
797 | SlashSound.Volume = .5 | |
798 | SlashSound.Pitch = 1 | |
799 | local SlashSound = Instance.new("Sound") | |
800 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2767090" | |
801 | SlashSound.Parent = Character | |
802 | SlashSound.Volume = 1 | |
803 | SlashSound.Pitch = 1 | |
804 | local SlashSound = Instance.new("Sound") | |
805 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137" | |
806 | SlashSound.Parent = Character | |
807 | SlashSound.Volume = 1 | |
808 | SlashSound.Pitch = 1 | |
809 | local SlashSound = Instance.new("Sound") | |
810 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=13775494" | |
811 | SlashSound.Parent = Character | |
812 | SlashSound.Volume = 1 | |
813 | SlashSound.Pitch = 0.1 | |
814 | local SlashSound = Instance.new("Sound") | |
815 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2691586" | |
816 | SlashSound.Parent = Character | |
817 | SlashSound.Volume = 1 | |
818 | SlashSound.Pitch = 0.2 | |
819 | local SlashSound = Instance.new("Sound") | |
820 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2691586" | |
821 | SlashSound.Parent = Character | |
822 | SlashSound.Volume = 1 | |
823 | SlashSound.Pitch = 0.05 | |
824 | local SlashSound = Instance.new("Sound") | |
825 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2801263" | |
826 | SlashSound.Parent = Character | |
827 | SlashSound.Volume = 1 | |
828 | SlashSound.Pitch = 0.05 | |
829 | local SlashSound = Instance.new("Sound") | |
830 | SlashSound.SoundId = "http://www.roblox.com/asset?id=1369158" | |
831 | SlashSound.Parent = Character | |
832 | SlashSound.Volume = 1 | |
833 | SlashSound.Pitch = 0.7 | |
834 | local SlashSound = Instance.new("Sound") | |
835 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2974000" | |
836 | SlashSound.Parent = Character | |
837 | SlashSound.Volume = 1 | |
838 | SlashSound.Pitch = 0.5 | |
839 | local SlashSound = Instance.new("Sound") | |
840 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2974249" | |
841 | SlashSound.Parent = Character | |
842 | SlashSound.Volume = 1 | |
843 | SlashSound.Pitch = 0.3 | |
844 | ||
845 | local fengui = Instance.new("GuiMain") | |
846 | fengui.Parent = Player.PlayerGui | |
847 | fengui.Name = "manaGUI" | |
848 | local fenframe = Instance.new("Frame") | |
849 | fenframe.Parent = fengui | |
850 | fenframe.BackgroundColor3 = Color3.new(255,255,255) | |
851 | fenframe.BackgroundTransparency = 1 | |
852 | fenframe.BorderColor3 = Color3.new(17,17,17) | |
853 | fenframe.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0) | |
854 | local fentext = Instance.new("TextLabel") | |
855 | fentext.Parent = fenframe | |
856 | fentext.Text = "Mana("..mana..")" | |
857 | fentext.BackgroundTransparency = 1 | |
858 | fentext.SizeConstraint = "RelativeXY" | |
859 | fentext.TextXAlignment = "Center" | |
860 | fentext.TextYAlignment = "Center" | |
861 | fentext.Position = UDim2.new(0,80,1,200) | |
862 | local fentext2 = Instance.new("TextLabel") | |
863 | fentext2.Parent = fenframe | |
864 | fentext2.Text = " " | |
865 | fentext2.BackgroundTransparency = 0 | |
866 | fentext2.BackgroundColor3 = Color3.new(0,0,1) | |
867 | fentext2.SizeConstraint = "RelativeXY" | |
868 | fentext2.TextXAlignment = "Center" | |
869 | fentext2.TextYAlignment = "Center" | |
870 | fentext2.Position = UDim2.new(0,10,1,170) | |
871 | fentext2.Size = UDim2.new(2.79999995,0,0.210000306,0) | |
872 | local fentext3 = Instance.new("TextLabel") | |
873 | fentext3.Parent = fenframe | |
874 | fentext3.Text = " " | |
875 | fentext3.BackgroundTransparency = 0 | |
876 | fentext3.BackgroundColor3 = Color3.new(1,1,0) | |
877 | fentext3.SizeConstraint = "RelativeXY" | |
878 | fentext3.TextXAlignment = "Center" | |
879 | fentext3.TextYAlignment = "Center" | |
880 | fentext3.Position = UDim2.new(0,10,1,170) | |
881 | fentext3.Size = UDim2.new(mana*0.007,0,0.400000006,0) | |
882 | --2.9000001, 0}, {0.450000018, 0} | |
883 | local gairo = Instance.new("BodyGyro") | |
884 | gairo.Parent = nil | |
885 | gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge | |
886 | gairo.P = 20e+003 | |
887 | ||
888 | if (script.Parent.className ~= "HopperBin") then | |
889 | Tool = Instance.new("HopperBin") | |
890 | Tool.Parent = Backpack | |
891 | Tool.Name = "Armatae" | |
892 | script.Parent = Tool | |
893 | end | |
894 | Bin = script.Parent | |
895 | ||
896 | function unequipweld() | |
897 | wait() | |
898 | wld1.Parent = prt1 | |
899 | wld1.Part1 = Torso | |
900 | wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,-0.7) | |
901 | wld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
902 | if mode == "Attack" then | |
903 | sheath(2.25) | |
904 | weld1.Part0 = part1 | |
905 | weld1.Part1 = prt1 | |
906 | weld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.7,0.2) | |
907 | weld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
908 | end | |
909 | end | |
910 | ||
911 | function equipweld() | |
912 | wld1.Part1 = RightArm | |
913 | wld1.C0 = CFrame.fromEulerAnglesXYZ(0,-math.rad(90),0) * CFrame.new(-0.7,0,0) | |
914 | wld1.C1 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,0,0) | |
915 | if mode == "Attack" then | |
916 | sheath(2.25) | |
917 | weld1.Part0 = part1 | |
918 | weld1.Part1 = LeftArm | |
919 | weld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),0,math.rad(90)) * CFrame.new(0,1,0) | |
920 | weld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
921 | end | |
922 | end | |
923 | ||
924 | function hideanim() | |
925 | if Style ~= "WingBlade" then | |
926 | for i = 0 , 1 , 0.085 do | |
927 | wait(0) | |
928 | wld1.C1 = CFrame.fromEulerAnglesXYZ(math.rad(90)-math.rad(180)+math.rad(180)*i,0,0) * CFrame.new(0,0,0) | |
929 | if mode == "Normal" then | |
930 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
931 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
932 | elseif mode == "Attack" then | |
933 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(4*i,-0.5*i,0.5*i) | |
934 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
935 | end | |
936 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,0.5*i) * CFrame.fromEulerAnglesXYZ(-1.57*i,0,-1.2*i) | |
937 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
938 | end | |
939 | unequipweld() | |
940 | for i = 0 , 1 , 0.085 do | |
941 | wait(0) | |
942 | if mode == "Normal" then | |
943 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
944 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
945 | elseif mode == "Attack" then | |
946 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(4-4*i,-0.5+0.5*i,0.5-0.5*i) | |
947 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
948 | end | |
949 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(-1.57+2.57*i,0,-1.2+1.2*i) | |
950 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
951 | end | |
952 | end | |
953 | end | |
954 | ||
955 | function equipanim() | |
956 | if Style ~= "WingBlade" then | |
957 | for i = 0 , 1 , 0.085 do | |
958 | wait(0) | |
959 | if mode == "Normal" then | |
960 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
961 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
962 | elseif mode == "Attack" then | |
963 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(4*i,-0.5*i,0.5*i) | |
964 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
965 | end | |
966 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,0.5*i) * CFrame.fromEulerAnglesXYZ(-1.57*i,0,-1.2*i) | |
967 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
968 | end | |
969 | equipweld() | |
970 | for i = 0 , 1 , 0.085 do | |
971 | wait(0) | |
972 | wld1.C1 = CFrame.fromEulerAnglesXYZ(math.rad(90)-math.rad(180)*i,0,0) * CFrame.new(0,0,0) | |
973 | if mode == "Normal" then | |
974 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
975 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
976 | elseif mode == "Attack" then | |
977 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(4-4*i,-0.5+0.5*i,0.5-0.5*i) | |
978 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
979 | end | |
980 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(-1.57+2.57*i,0,-1.2+1.2*i) | |
981 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
982 | end | |
983 | end | |
984 | end | |
985 | ||
986 | function changeequipleft() | |
987 | if Number > 1 then | |
988 | Number = Number - 1 | |
989 | mode = Modes[Number] | |
990 | print(mode) | |
991 | if Number == 1 then | |
992 | NormalMode() | |
993 | end | |
994 | end | |
995 | end | |
996 | ||
997 | function changeequipright() | |
998 | if Number < #Modes then | |
999 | Number = Number + 1 | |
1000 | mode = Modes[Number] | |
1001 | print(mode) | |
1002 | if Number == 2 then | |
1003 | AttackMode() | |
1004 | end | |
1005 | end | |
1006 | end | |
1007 | ||
1008 | function findNearestTorso(pos) | |
1009 | local list = game.Workspace:children() | |
1010 | local torso = nil | |
1011 | local dist = 150 | |
1012 | local temp = nil | |
1013 | local human = nil | |
1014 | local temp2 = nil | |
1015 | for x = 1, #list do | |
1016 | temp2 = list[x] | |
1017 | if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Name ~= "outcast12345") then | |
1018 | temp = temp2:findFirstChild("Torso") | |
1019 | human = temp2:findFirstChild("Humanoid") | |
1020 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
1021 | if (temp.Position - pos).magnitude < dist then | |
1022 | torso = temp | |
1023 | dist = (temp.Position - pos).magnitude | |
1024 | end | |
1025 | end | |
1026 | end | |
1027 | end | |
1028 | return torso | |
1029 | end | |
1030 | ||
1031 | function ChangeElement() | |
1032 | attack = true | |
1033 | for i = 0,1,0.1 do | |
1034 | wait() | |
1035 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57-0.3*i,3.14,0) * CFrame.new(0,0,-0.5) | |
1036 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2*i,0,0) | |
1037 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1038 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+1*i,0,0) | |
1039 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1040 | end | |
1041 | magicsound(1) | |
1042 | if element == "Light" then | |
1043 | element = "Dark" | |
1044 | WaveEffect(Torso,3,3,3,0,-2,0,0,0,0,BrickColor.new("Black")) | |
1045 | elseif element == "Dark" then | |
1046 | element = "Light" | |
1047 | WaveEffect(Torso,3,3,3,0,-2,0,0,0,0,BrickColor.new("White")) | |
1048 | end | |
1049 | for i = 0,1,0.2 do | |
1050 | wait() | |
1051 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57-0.3+0.6*i,3.14,0) * CFrame.new(0,0,-0.5) | |
1052 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2-3*i,0,0) | |
1053 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1054 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2-3*i,0,0) | |
1055 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1056 | end | |
1057 | wait(0.2) | |
1058 | for i = 0,1,0.1 do | |
1059 | wait() | |
1060 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3-0.3*i,3.14,0) * CFrame.new(0,0,-0.5) | |
1061 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1+1*i,0,0) | |
1062 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1063 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1+2*i,0,0) | |
1064 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1065 | end | |
1066 | attack = false | |
1067 | end | |
1068 | ||
1069 | function NormalMode() | |
1070 | attack = true | |
1071 | for i = 0,1,0.1 do | |
1072 | wait() | |
1073 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3*i,3.14,0) * CFrame.new(0,0,-0.5) | |
1074 | wld1.C0 = CFrame.fromEulerAnglesXYZ(0,-math.rad(90),0) * CFrame.new(-0.7,0,0) | |
1075 | wld1.C1 = CFrame.fromEulerAnglesXYZ(-math.rad(90)-0.5*i,0,0) * CFrame.new(0,0,0) | |
1076 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.5*i,-1.57*i,0) | |
1077 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.7*i,0,0) | |
1078 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-0.3*i,1*i,0) | |
1079 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1080 | end | |
1081 | sheath(2.25) | |
1082 | weld1.Part0 = part1 | |
1083 | weld1.Part1 = prt1 | |
1084 | weld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.7,0.2) | |
1085 | weld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
1086 | wait(0.2) | |
1087 | for i = 0,1,0.1 do | |
1088 | wait() | |
1089 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3-0.3*i,3.14,0) * CFrame.new(0,0,-0.5) | |
1090 | wld1.C0 = CFrame.fromEulerAnglesXYZ(0,-math.rad(90),0) * CFrame.new(-0.7,0,0) | |
1091 | wld1.C1 = CFrame.fromEulerAnglesXYZ(-math.rad(90)-0.5+0.5*i,0,0) * CFrame.new(0,0,0) | |
1092 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.5-1.5*i,-1.57+1.57*i,0) | |
1093 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.7+0.7*i,0,0) | |
1094 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-0.3+0.3*i,1-1*i,0) | |
1095 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1096 | end | |
1097 | attack = false | |
1098 | end | |
1099 | ||
1100 | function AttackMode() | |
1101 | attack = true | |
1102 | for i = 0,1,0.1 do | |
1103 | wait() | |
1104 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3*i,3.14,0) * CFrame.new(0,0,-0.5) | |
1105 | wld1.C0 = CFrame.fromEulerAnglesXYZ(0,-math.rad(90),0) * CFrame.new(-0.7,0,0) | |
1106 | wld1.C1 = CFrame.fromEulerAnglesXYZ(-math.rad(90)-0.5*i,0,0) * CFrame.new(0,0,0) | |
1107 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.5*i,-1.57*i,0) | |
1108 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.7*i,0,0) | |
1109 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-0.3*i,1*i,0) | |
1110 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1111 | end | |
1112 | sheath(2.25) | |
1113 | weld1.Part0 = part1 | |
1114 | weld1.Part1 = LeftArm | |
1115 | weld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),0,math.rad(90)) * CFrame.new(0,1,0) | |
1116 | weld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
1117 | wait(0.2) | |
1118 | for i = 0,1,0.1 do | |
1119 | wait() | |
1120 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3-0.3*i,3.14,0) * CFrame.new(0,0,-0.5) | |
1121 | wld1.C0 = CFrame.fromEulerAnglesXYZ(0,-math.rad(90),0) * CFrame.new(-0.7,0,0) | |
1122 | wld1.C1 = CFrame.fromEulerAnglesXYZ(-math.rad(90)-0.5+0.5*i,0,0) * CFrame.new(0,0,0) | |
1123 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.5-1.5*i,-1.57+1.57*i,0) | |
1124 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.7+0.7*i,0,0) | |
1125 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-0.3+0.3*i,1-1*i,0) | |
1126 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1127 | end | |
1128 | attack = false | |
1129 | end | |
1130 | ||
1131 | function onehit() | |
1132 | attack = true | |
1133 | combo = 1 | |
1134 | ss(0.8) | |
1135 | con1=LeftArm.Touched:connect(function(hit) Damagefunc1(hit,10,5) end) | |
1136 | for i = 0,1,0.2 do | |
1137 | wait(0) | |
1138 | LW.C0 = CFrame.new(-1.5,0.5,-1*i) * CFrame.fromEulerAnglesXYZ(1.3*i,1.57*i,0) | |
1139 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1140 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-1.5*i,0,0) | |
1141 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1142 | end | |
1143 | if mana >= 1 then | |
1144 | magicsound(2) | |
1145 | if element == "Light" then | |
1146 | MMMAGIC(LeftArm,2,2,2,0,-1,0,BrickColor.new("White")) | |
1147 | else | |
1148 | MMMAGIC(LeftArm,2,2,2,0,-1,0,BrickColor.new("Black")) | |
1149 | end | |
1150 | mana = mana - 1 | |
1151 | end | |
1152 | wait(0.3) | |
1153 | con1:disconnect() | |
1154 | attack = false | |
1155 | end | |
1156 | ||
1157 | function twohit() | |
1158 | attack = true | |
1159 | combo = 2 | |
1160 | --con1=RightLeg.Touched:connect(function(hit) Damagefunc1(hit,10,5) end) | |
1161 | for i = 0,1,0.1 do | |
1162 | wait() | |
1163 | LW.C0 = CFrame.new(-1.5,0.5,-1) * CFrame.fromEulerAnglesXYZ(1.3+1.7*i,1.57,0) | |
1164 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1165 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-1.5,0,0) | |
1166 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1167 | end | |
1168 | ss(0.8) | |
1169 | con1=RightArm.Touched:connect(function(hit) Damagefunc1(hit,10,5) end) | |
1170 | for i = 0,1,0.2 do | |
1171 | wait() | |
1172 | LW.C0 = CFrame.new(-1.5,0.5,-1+1*i) * CFrame.fromEulerAnglesXYZ(3-2.5*i,1.57-1.57*i,0) | |
1173 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1174 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-1.5,0,0) | |
1175 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1176 | end | |
1177 | if mana >= 5 then | |
1178 | magicsound(2) | |
1179 | if element == "Light" then | |
1180 | EVENMOARMAGIX(Torso,1,4,1,-1.5,-2,-1.3,0,0,0,BrickColor.new("White")) | |
1181 | WaveEffect(Torso,0.5,2,0.5,-1.5,-2,-1.3,0,0,0,BrickColor.new("White")) | |
1182 | else | |
1183 | EVENMOARMAGIX(Torso,1,4,1,-1.5,-2,-1.3,0,0,0,BrickColor.new("Black")) | |
1184 | WaveEffect(Torso,0.5,2,0.5,-1.5,-2,-1.3,0,0,0,BrickColor.new("Black")) | |
1185 | end | |
1186 | mana = mana - 5 | |
1187 | end | |
1188 | wait(0.2) | |
1189 | con1:disconnect() | |
1190 | attack = false | |
1191 | end | |
1192 | ||
1193 | function threehit() | |
1194 | attack = true | |
1195 | combo = 3 | |
1196 | for i = 0,1,0.2 do | |
1197 | wait() | |
1198 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3*i,3.14,0) * CFrame.new(0,0,-0.5) | |
1199 | wld1.C0 = CFrame.fromEulerAnglesXYZ(0,-math.rad(90),0) * CFrame.new(-0.7,0,0) | |
1200 | wld1.C1 = CFrame.fromEulerAnglesXYZ(-math.rad(90)-0.5*i,0,0) * CFrame.new(0,0,0) | |
1201 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(0.5+1*i,-1.57*i,0) | |
1202 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.7*i,0,0) | |
1203 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5+0.2*i,1*i,0) | |
1204 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1205 | end | |
1206 | sheath(2.25) | |
1207 | weld1.Part0 = part1 | |
1208 | weld1.Part1 = LeftArm | |
1209 | weld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),0,math.rad(90)) * CFrame.new(0,1,0) | |
1210 | weld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
1211 | wait(0.2) | |
1212 | ss(1) | |
1213 | con1=part13.Touched:connect(function(hit) Damagefunc1(hit,20,10) end) | |
1214 | for i = 0,1,0.2 do | |
1215 | wait() | |
1216 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3-0.3*i,3.14,0) * CFrame.new(0,0,-0.5) | |
1217 | wld1.C0 = CFrame.fromEulerAnglesXYZ(0,-math.rad(90),0) * CFrame.new(-0.7,0,0) | |
1218 | wld1.C1 = CFrame.fromEulerAnglesXYZ(-math.rad(90)-0.5+0.5*i,0,0) * CFrame.new(0,0,0) | |
1219 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(0.5+1,-1.57,0) | |
1220 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.7+2.2*i,0,0) | |
1221 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.7-0.5*i,1-1*i,0) | |
1222 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1223 | end | |
1224 | con1:disconnect() | |
1225 | wait(0.1) | |
1226 | attack = false | |
1227 | end | |
1228 | ||
1229 | function fourhit() | |
1230 | attack = true | |
1231 | combo = 4 | |
1232 | for i = 0,1,0.1 do | |
1233 | wait() | |
1234 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5+2*i,-1.57+1.57*i,0) | |
1235 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.5-1.5*i,0,0) | |
1236 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0,0) | |
1237 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1238 | end | |
1239 | wait(0.2) | |
1240 | ss(1.2) | |
1241 | con1=part13.Touched:connect(function(hit) Damagefunc1(hit,20,10) end) | |
1242 | for i = 0,1,0.2 do | |
1243 | wait() | |
1244 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5-4*i,0,0) | |
1245 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1246 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0,0) | |
1247 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1248 | end | |
1249 | wait(0.1) | |
1250 | for i = 0,1,0.1 do | |
1251 | wait() | |
1252 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0) | |
1253 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1254 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0,0) | |
1255 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1256 | end | |
1257 | con1:disconnect() | |
1258 | wait(0.05) | |
1259 | attack = false | |
1260 | end | |
1261 | ||
1262 | function fivehit() | |
1263 | attack = true | |
1264 | combo = 5 | |
1265 | gairo.Parent = Head | |
1266 | gairo.cframe = Head.CFrame | |
1267 | for i = 0,1,0.1 do | |
1268 | wait() | |
1269 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0.5*i) * CFrame.new(0,0,-0.5) | |
1270 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1271 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1272 | RW.C0 = CFrame.new(1.5-0.7*i,0.5,-0.7*i) * CFrame.fromEulerAnglesXYZ(0.2+1.37*i,0,-1*i) | |
1273 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1274 | end | |
1275 | wait(0.1) | |
1276 | ss(0.7) | |
1277 | --shieldbash(1) | |
1278 | con1=prt1.Touched:connect(function(hit) Bash(hit,40) end) | |
1279 | for i = 0,1,0.2 do | |
1280 | wait() | |
1281 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0.5-1*i) * CFrame.new(0,0,-0.5) | |
1282 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1283 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1284 | RW.C0 = CFrame.new(1.5-0.7+0.7*i,0.5,-0.7+0.7*i) * CFrame.fromEulerAnglesXYZ(0.2+1.37,0,-1+2*i) | |
1285 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1286 | end | |
1287 | con1:disconnect() | |
1288 | wait(0.3) | |
1289 | attack = false | |
1290 | end | |
1291 | ||
1292 | function oneslash() | |
1293 | attack = true | |
1294 | combo = 1 | |
1295 | ss(1) | |
1296 | con1=part13.Touched:connect(function(hit) Damagefunc1(hit,30,10) end) | |
1297 | for i = 0,1,0.2 do | |
1298 | wait(0) | |
1299 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3*i,0,0) | |
1300 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1301 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-1.5*i,0,0) | |
1302 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1303 | end | |
1304 | wait(0.1) | |
1305 | con1:disconnect() | |
1306 | attack = false | |
1307 | end | |
1308 | ||
1309 | function twoslash() | |
1310 | attack = true | |
1311 | combo = 2 | |
1312 | for i = 0,1,0.1 do | |
1313 | wait(0) | |
1314 | LW.C0 = CFrame.new(-1.5+1.1*i,0.5+0.5*i,-0.8*i) * CFrame.fromEulerAnglesXYZ(3-1.43*i,0,1.57*i) | |
1315 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1.57*i,0) | |
1316 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-1.5,0,0) | |
1317 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1318 | end | |
1319 | ss(1.2) | |
1320 | con1=part13.Touched:connect(function(hit) Damagefunc1(hit,30,10) end) | |
1321 | for i = 0,1,0.2 do | |
1322 | wait(0) | |
1323 | LW.C0 = CFrame.new(-1.5+1.1-1.1*i,0.5+0.5-0.5*i,-0.8+0.8*i) * CFrame.fromEulerAnglesXYZ(3-1.43,0,1.57) | |
1324 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(3*i,1.57,0) | |
1325 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-1.5,0,0) | |
1326 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1327 | end | |
1328 | wait(0.1) | |
1329 | con1:disconnect() | |
1330 | attack = false | |
1331 | end | |
1332 | ||
1333 | function threeslash() | |
1334 | attack = true | |
1335 | combo = 3 | |
1336 | for i = 0,1,0.1 do | |
1337 | wait(0) | |
1338 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57+0.5*i,0,1.57+2*i) | |
1339 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(3,1.57+2*i,0) | |
1340 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-1.5,0,0) | |
1341 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1342 | end | |
1343 | ss(0.8) | |
1344 | con1=part13.Touched:connect(function(hit) Damagefunc1(hit,30,10) end) | |
1345 | for i = 0,1,0.2 do | |
1346 | wait(0) | |
1347 | weld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90)+math.rad(90)*i,0,math.rad(90)-math.rad(90)*i) * CFrame.new(0,1,0) | |
1348 | LW.C0 = CFrame.new(-1.5+0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(1.57+0.5,0,1.57+2) | |
1349 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(3+1*i,1.57+2,0) | |
1350 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-1.5,0,0) | |
1351 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1352 | end | |
1353 | wait(0.1) | |
1354 | con1:disconnect() | |
1355 | attack = false | |
1356 | end | |
1357 | ||
1358 | function fourslash() | |
1359 | attack = true | |
1360 | combo = 4 | |
1361 | for i = 0,1,0.1 do | |
1362 | wait(0) | |
1363 | weld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90)+math.rad(90)-math.rad(90)*i,0,math.rad(90)-math.rad(90)+math.rad(90)) * CFrame.new(0,1,0) | |
1364 | LW.C0 = CFrame.new(-1.5+0.5+0.6*i,0.5+0.5*i,-0.5-0.3*i) * CFrame.fromEulerAnglesXYZ(1.57+0.5-0.5*i,0,1.57+2-2*i) | |
1365 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(3+1-4*i,1.57+2-2*i,0) | |
1366 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-1.5,0,0) | |
1367 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1368 | end | |
1369 | local vel2 = Instance.new("BodyVelocity") | |
1370 | vel2.Parent = Player.Character.Torso | |
1371 | vel2.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1 | |
1372 | vel2.velocity = Player.Character.Head.CFrame.lookVector * 30 | |
1373 | local vel = Instance.new("BodyGyro") | |
1374 | vel.Parent = Torso | |
1375 | vel.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge | |
1376 | vel.P = 20e+003 | |
1377 | CF = Torso.CFrame | |
1378 | ss(0.7) | |
1379 | con1=part13.Touched:connect(function(hit) Damagefunc1(hit,30,10) end) | |
1380 | for i = 0 , 1 , 0.1 do | |
1381 | wait(0) | |
1382 | LW.C0 = CFrame.new(-1.5+1.1-0.55*i,0.5+0.5-0.25*i,-0.5-0.3+0.15*i) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57) | |
1383 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.5*i,1.57,0) | |
1384 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-1.5,0,0) | |
1385 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1386 | vel.cframe = CF * CFrame.fromEulerAnglesXYZ(0,math.rad(360)*i,0) | |
1387 | end | |
1388 | ss(0.7) | |
1389 | for i = 0 , 1 , 0.1 do | |
1390 | wait(0) | |
1391 | LW.C0 = CFrame.new(-1.5+0.55-0.55*i,0.5+0.25-0.25*i,-0.5-0.15+0.15*i) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57) | |
1392 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.5+1.5*i,1.57,0) | |
1393 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-1.5,0,0) | |
1394 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1395 | vel.cframe = CF * CFrame.fromEulerAnglesXYZ(0,math.rad(360)*i,0) | |
1396 | end | |
1397 | vel.Parent = nil | |
1398 | vel2.Parent = nil | |
1399 | wait(0.2) | |
1400 | con1:disconnect() | |
1401 | attack = false | |
1402 | end | |
1403 | ||
1404 | function castone() | |
1405 | if mana >= 10 then | |
1406 | attack = true | |
1407 | combo = 1 | |
1408 | for i = 0,1,0.1 do | |
1409 | wait(0) | |
1410 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(2*i,0,1*i) | |
1411 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1412 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,1*i) | |
1413 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1414 | end | |
1415 | ss(0.8) | |
1416 | local testbrick = Instance.new("Part") | |
1417 | testbrick.Parent = Character | |
1418 | testbrick.Anchored = true | |
1419 | testbrick.Transparency = 1 | |
1420 | testbrick.CFrame = Torso.CFrame * CFrame.new(0,0,-3) | |
1421 | coroutine.resume(coroutine.create(function() | |
1422 | for i = 0,5 do | |
1423 | wait(0.1) | |
1424 | mana = mana - 2 | |
1425 | local c = game.Workspace:GetChildren(); | |
1426 | for i = 1, #c do | |
1427 | local hum = c[i]:findFirstChild("Humanoid") | |
1428 | if hum ~= nil and hum.Health ~= 0 then | |
1429 | local head = c[i]:findFirstChild("Head"); | |
1430 | if head ~= nil then | |
1431 | local targ = head.Position - testbrick.Position; | |
1432 | local mag = targ.magnitude; | |
1433 | if mag <= 3 and c[i].Name ~= Player.Name then | |
1434 | Damagefunc1(head,5,1) | |
1435 | end | |
1436 | end | |
1437 | end | |
1438 | end | |
1439 | magicsound(1.5) | |
1440 | derp = math.random(1,2) | |
1441 | if derp == 1 then | |
1442 | MMMAGIC(Head,2,2,2,math.random()+math.random(),math.random()+math.random(),-3,BrickColor.new("White")) | |
1443 | else | |
1444 | MMMAGIC(Head,2,2,2,-math.random()-math.random(),-math.random()-math.random(),-3,BrickColor.new("White")) | |
1445 | end | |
1446 | end | |
1447 | testbrick.Parent = nil | |
1448 | end)) | |
1449 | for i = 0,1,0.2 do | |
1450 | wait(0) | |
1451 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(2-1*i,0,1-2*i) | |
1452 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1453 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1,0,1-1.5*i) | |
1454 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1455 | end | |
1456 | wait(0.3) | |
1457 | attack = false | |
1458 | end | |
1459 | end | |
1460 | ||
1461 | function casttwo() | |
1462 | if mana >= 5 then | |
1463 | attack = true | |
1464 | combo = 2 | |
1465 | for i = 0,1,0.1 do | |
1466 | wait(0) | |
1467 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,-1) | |
1468 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1469 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1+2*i,0,-0.5+0.5*i) | |
1470 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1471 | end | |
1472 | wait(0.2) | |
1473 | mana = mana - 5 | |
1474 | local testbrick = Instance.new("Part") | |
1475 | testbrick.Parent = Character | |
1476 | testbrick.Anchored = true | |
1477 | testbrick.Transparency = 1 | |
1478 | testbrick.CFrame = Torso.CFrame * CFrame.new(1.5,0,-3.6) | |
1479 | local c = game.Workspace:GetChildren(); | |
1480 | for i = 1, #c do | |
1481 | local hum = c[i]:findFirstChild("Humanoid") | |
1482 | if hum ~= nil and hum.Health ~= 0 then | |
1483 | local head = c[i]:findFirstChild("Head"); | |
1484 | if head ~= nil then | |
1485 | local targ = head.Position - testbrick.Position; | |
1486 | local mag = targ.magnitude; | |
1487 | if mag <= 3 and c[i].Name ~= Player.Name then | |
1488 | -- Damagefunc1(head,5,1) | |
1489 | UpBlast(head,math.random(10,20)) | |
1490 | end | |
1491 | end | |
1492 | end | |
1493 | end | |
1494 | magicsound(1.3) | |
1495 | EVENMOARMAGIX(Torso,1,6,1,1.5,-3,-3.6,0,0,0,BrickColor.new("Black")) | |
1496 | WaveEffect(Torso,1.5,3,1.5,1.5,-2,-3.6,0,0,0,BrickColor.new("Black")) | |
1497 | for i = 0,1,0.2 do | |
1498 | wait(0) | |
1499 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-2*i,0,-1+1*i) | |
1500 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1501 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3-4.5*i,0,0) | |
1502 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1503 | end | |
1504 | wait(0.2) | |
1505 | testbrick.Parent = nil | |
1506 | attack = false | |
1507 | end | |
1508 | end | |
1509 | ||
1510 | function castthree() | |
1511 | if mana >= 20 then | |
1512 | attack = true | |
1513 | combo = 3 | |
1514 | for i = 0,1,0.1 do | |
1515 | wait(0) | |
1516 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(-1+2.57*i,0,0.5*i) | |
1517 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1518 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(-1.5+3.07*i,0,-0.5*i) | |
1519 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1520 | end | |
1521 | local bawlofdewm1 = Instance.new("Part") | |
1522 | bawlofdewm1.formFactor = 1 | |
1523 | bawlofdewm1.Parent = Character | |
1524 | bawlofdewm1.CanCollide = false | |
1525 | bawlofdewm1.BrickColor = BrickColor.new("White") | |
1526 | bawlofdewm1.Name = "Light Sphere" | |
1527 | bawlofdewm1.Size = Vector3.new(1,1,1) | |
1528 | bawlofdewm1.Position = Torso.Position | |
1529 | local bawlofdewm2 = Instance.new("Part") | |
1530 | bawlofdewm2.formFactor = 1 | |
1531 | bawlofdewm2.Parent = Character | |
1532 | bawlofdewm2.CanCollide = false | |
1533 | bawlofdewm2.BrickColor = BrickColor.new("Black") | |
1534 | bawlofdewm2.Name = "Dark Sphere" | |
1535 | bawlofdewm2.Size = Vector3.new(1,1,1) | |
1536 | bawlofdewm2.Position = Torso.Position | |
1537 | local bawlmesh1 = Instance.new("SpecialMesh") | |
1538 | bawlmesh1.Parent = bawlofdewm1 | |
1539 | bawlmesh1.MeshType = "Sphere" | |
1540 | bawlmesh1.Scale = Vector3.new(0.2,0,0.2) | |
1541 | local bawlmesh2 = Instance.new("SpecialMesh") | |
1542 | bawlmesh2.Parent = bawlofdewm2 | |
1543 | bawlmesh2.MeshType = "Sphere" | |
1544 | bawlmesh2.Scale = Vector3.new(0.2,0,0.2) | |
1545 | local bawlweld1 = Instance.new("Weld") | |
1546 | bawlweld1.Parent = bawlofdewm1 | |
1547 | bawlweld1.Part0 = bawlofdewm1 | |
1548 | bawlweld1.Part1 = LeftArm | |
1549 | bawlweld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,-0.9) * CFrame.new(0,1,0) | |
1550 | bawlweld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
1551 | local bawlweld2 = Instance.new("Weld") | |
1552 | bawlweld2.Parent = bawlofdewm2 | |
1553 | bawlweld2.Part0 = bawlofdewm2 | |
1554 | bawlweld2.Part1 = bawlofdewm1 | |
1555 | bawlweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.2,0) | |
1556 | bawlweld2.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
1557 | wait(0.5) | |
1558 | for i = 0,1,0.1 do | |
1559 | wait(0) | |
1560 | mana = mana - 2 | |
1561 | bawlmesh1.Scale = bawlmesh1.Scale + Vector3.new(0.2,0.2,0.2) | |
1562 | bawlmesh2.Scale = bawlmesh2.Scale + Vector3.new(0.2,0.2,0.2) | |
1563 | end | |
1564 | abscond(0.8) | |
1565 | bawlweld1.Parent = nil | |
1566 | local vel2 = Instance.new("BodyVelocity") | |
1567 | vel2.Parent = bawlofdewm1 | |
1568 | vel2.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1 | |
1569 | vel2.velocity = Player.Character.Head.CFrame.lookVector * 10 | |
1570 | coroutine.resume(coroutine.create(function() | |
1571 | for i = 0,3,0.1 do | |
1572 | wait() | |
1573 | MMMAGIC(bawlofdewm1,2,2,2,0,0,0,BrickColor.new("White")) | |
1574 | MMMAGIC(bawlofdewm2,2,2,2,0,0,0,BrickColor.new("Black")) | |
1575 | end | |
1576 | local c = game.Workspace:GetChildren(); | |
1577 | for i = 1, #c do | |
1578 | local hum = c[i]:findFirstChild("Humanoid") | |
1579 | if hum ~= nil and hum.Health ~= 0 then | |
1580 | local head = c[i]:findFirstChild("Head"); | |
1581 | if head ~= nil then | |
1582 | local targ = head.Position - bawlofdewm1.Position; | |
1583 | local mag = targ.magnitude; | |
1584 | if mag <= 5 and c[i].Name ~= Player.Name then | |
1585 | -- Damagefunc1(head,5,1) | |
1586 | UpBlast(head,math.random(30,60)) | |
1587 | end | |
1588 | end | |
1589 | end | |
1590 | end | |
1591 | magicsound(1) | |
1592 | EVENMOARMAGIX(bawlofdewm1,3,9,3,0,0,0,math.rad(90),0,0,BrickColor.new("Black")) | |
1593 | WaveEffect(bawlofdewm1,5,6,5,0,0,0,-math.rad(90),0,0,BrickColor.new("Black")) | |
1594 | BlastEffect(bawlofdewm1,5,9,5,0,0,0,-math.rad(90),0,0,BrickColor.new("White")) | |
1595 | bawlofdewm1.Parent = nil | |
1596 | bawlofdewm2.Parent = nil | |
1597 | end)) | |
1598 | for i = 0,1,0.1 do | |
1599 | wait(0) | |
1600 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,0,0.5-1.5*i) | |
1601 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1602 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,0,-0.5+1.5*i) | |
1603 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1604 | end | |
1605 | wait(1) | |
1606 | --[[bawlofdewm1.Parent = nil | |
1607 | bawlofdewm2.Parent = nil ]] | |
1608 | attack = false | |
1609 | end | |
1610 | end | |
1611 | ||
1612 | function castfour() | |
1613 | if mana >= 5 then | |
1614 | attack = true | |
1615 | combo = "castfour" | |
1616 | for i = 0,1,0.1 do | |
1617 | wait(0) | |
1618 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+2.5*i,0,-1+1*i) | |
1619 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1620 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1,0,0.5) | |
1621 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1622 | end | |
1623 | mana = mana - 5 | |
1624 | local testbrick = Instance.new("Part") | |
1625 | testbrick.Parent = Character | |
1626 | testbrick.Anchored = true | |
1627 | testbrick.Transparency = 1 | |
1628 | testbrick.CFrame = Torso.CFrame * CFrame.new(-1.5,0,-3.6) | |
1629 | local c = game.Workspace:GetChildren(); | |
1630 | for i = 1, #c do | |
1631 | local hum = c[i]:findFirstChild("Humanoid") | |
1632 | if hum ~= nil and hum.Health ~= 0 then | |
1633 | local head = c[i]:findFirstChild("Head"); | |
1634 | if head ~= nil then | |
1635 | local targ = head.Position - testbrick.Position; | |
1636 | local mag = targ.magnitude; | |
1637 | if mag <= 3 and c[i].Name ~= Player.Name then | |
1638 | -- Damagefunc1(head,5,1) | |
1639 | UpBlast(head,math.random(10,20)) | |
1640 | end | |
1641 | end | |
1642 | end | |
1643 | end | |
1644 | magicsound(1.3) | |
1645 | EVENMOARMAGIX(Torso,1,6,1,-1.5,-3,-3.6,0,0,0,BrickColor.new("White")) | |
1646 | WaveEffect(Torso,1.5,3,1.5,-1.5,-2,-3.6,0,0,0,BrickColor.new("White")) | |
1647 | for i = 0,1,0.2 do | |
1648 | wait(0) | |
1649 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5-5*i,0,0) | |
1650 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1651 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-2*i,0,0.5-0.5*i) | |
1652 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1653 | end | |
1654 | wait(0.1) | |
1655 | testbrick.Parent = nil | |
1656 | attack = false | |
1657 | coroutine.resume(coroutine.create(function() | |
1658 | wait(0.5) | |
1659 | if attack == false then | |
1660 | combo = 0 | |
1661 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1662 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1663 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0) | |
1664 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1665 | end | |
1666 | end)) | |
1667 | end | |
1668 | end | |
1669 | ||
1670 | function castfive() | |
1671 | attack = true | |
1672 | combo = "castfive" | |
1673 | for i = 0,1,0.1 do | |
1674 | wait(0) | |
1675 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57*i,0,-1-0.57*i) | |
1676 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1677 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1+0.57*i,0,0.5+1.07*i) | |
1678 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1679 | end | |
1680 | --[[local vel2 = Instance.new("BodyVelocity") | |
1681 | vel2.Parent = Player.Character.Torso | |
1682 | vel2.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1 | |
1683 | vel2.velocity = Player.Character.Head.CFrame.lookVector * 15 ]] | |
1684 | local vel = Instance.new("BodyGyro") | |
1685 | vel.Parent = Torso | |
1686 | vel.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge | |
1687 | vel.P = 20e+003 | |
1688 | CF = Torso.CFrame | |
1689 | for i = 0,1,0.1 do | |
1690 | wait(0.05) | |
1691 | magicsound(2) | |
1692 | vel.cframe = CF * CFrame.fromEulerAnglesXYZ(0,math.rad(720)*i,0) | |
1693 | --[[MMMAGIC(LeftArm,3,3,3,0,-1,0,BrickColor.new("White")) | |
1694 | MMMAGIC(RightArm,3,3,3,0,-1,0,BrickColor.new("Black")) ]] | |
1695 | EVENMOARMAGIX(LeftArm,3,3,3,0,-1,0,0,0,0,BrickColor.new("White")) | |
1696 | EVENMOARMAGIX(RightArm,3,3,3,0,-1,0,0,0,0,BrickColor.new("Black")) | |
1697 | end | |
1698 | vel.Parent = nil | |
1699 | --vel2.Parent = nil | |
1700 | wait(1) | |
1701 | combo = 0 | |
1702 | attack = false | |
1703 | end | |
1704 | ||
1705 | function wingbladeslashone() | |
1706 | attack = true | |
1707 | for i = 0,1,0.1 do | |
1708 | wait(0) | |
1709 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,-3*i) | |
1710 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1711 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57*i,0,3*i) | |
1712 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1713 | end | |
1714 | wingweld2.Parent = wingblade2 | |
1715 | wingweld2.Part0 = wingblade2 | |
1716 | wingweld2.Part1 = LeftArm | |
1717 | wingweld2.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0) * CFrame.new(0,3,0) | |
1718 | wingweld2.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
1719 | wingweld5.Parent = wingblade5 | |
1720 | wingweld5.Part0 = wingblade5 | |
1721 | wingweld5.Part1 = RightArm | |
1722 | wingweld5.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0) * CFrame.new(0,3,0) | |
1723 | wingweld5.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
1724 | con1=wingblade5.Touched:connect(function(hit) Damagefunc1(hit,30,10) end) | |
1725 | ss(1) | |
1726 | for i = 0,1,0.1 do | |
1727 | wait(0) | |
1728 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-0.57*i,0,-3+2*i) | |
1729 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1730 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+0.33*i,-1*i,3-5*i) | |
1731 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1732 | end | |
1733 | wait(0.1) | |
1734 | con1:disconnect() | |
1735 | con1=wingblade2.Touched:connect(function(hit) Damagefunc1(hit,30,10) end) | |
1736 | ss(1.2) | |
1737 | for i = 0,1,0.2 do | |
1738 | wait(0) | |
1739 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,1.57*i,-1+3*i) | |
1740 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1741 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2-1*i,-1+1*i,-2+3*i) | |
1742 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1743 | end | |
1744 | wait(0.1) | |
1745 | con1:disconnect() | |
1746 | for i = 0,1,0.1 do | |
1747 | wait(0) | |
1748 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+2*i,1.57-1.57*i,2-1.5*i) | |
1749 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1750 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+2*i,0,1-1.5*i) | |
1751 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1752 | end | |
1753 | con1=wingblade2.Touched:connect(function(hit) Damagefunc1(hit,40,10) end) | |
1754 | con2=wingblade5.Touched:connect(function(hit) Damagefunc1(hit,40,10) end) | |
1755 | wait(0.1) | |
1756 | ss(0.8) | |
1757 | for i = 0,1,0.2 do | |
1758 | wait(0) | |
1759 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3-4*i,0,0.5-1*i) | |
1760 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1761 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3-4*i,0,-0.5+1*i) | |
1762 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1763 | end | |
1764 | con1:disconnect() | |
1765 | con2:disconnect() | |
1766 | WingBladeEffect(0,1,0,1,0,0) | |
1767 | wingblade2.Transparency = 1 | |
1768 | wingblade5.Transparency = 1 | |
1769 | wingweld2.Parent = wingblade2 | |
1770 | wingweld2.Part0 = wingblade2 | |
1771 | wingweld2.Part1 = Torso | |
1772 | wingweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(1,0,-3) | |
1773 | wingweld2.C1 = CFrame.fromEulerAnglesXYZ(0,-0.2,0) * CFrame.new(0,0,0) | |
1774 | wingweld5.Parent = wingblade5 | |
1775 | wingweld5.Part0 = wingblade5 | |
1776 | wingweld5.Part1 = Torso | |
1777 | wingweld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,-math.rad(90)) * CFrame.new(-1,0,-3) | |
1778 | wingweld5.C1 = CFrame.fromEulerAnglesXYZ(0,0.2,0) * CFrame.new(0,0,0) | |
1779 | attack = false | |
1780 | end | |
1781 | ||
1782 | function wingbladeslashtwo() | |
1783 | attack = true | |
1784 | for i = 0,1,0.1 do | |
1785 | wait(0) | |
1786 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1+0.5*i,0,-0.5+0.5*i) | |
1787 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1788 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1+0.5*i,0,0.5-0.5*i) | |
1789 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1790 | end | |
1791 | wingweld3.Parent = wingblade3 | |
1792 | wingweld3.Part0 = wingblade3 | |
1793 | wingweld3.Part1 = LeftArm | |
1794 | wingweld3.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0) * CFrame.new(0,3,0) | |
1795 | wingweld3.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
1796 | wingweld6.Parent = wingblade6 | |
1797 | wingweld6.Part0 = wingblade6 | |
1798 | wingweld6.Part1 = RightArm | |
1799 | wingweld6.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0) * CFrame.new(0,3,0) | |
1800 | wingweld6.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
1801 | ||
1802 | wait(0.1) | |
1803 | ss(1) | |
1804 | for i = 0,1,0.2 do | |
1805 | wait(0) | |
1806 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(-0.5+2.5*i,0,1*i) | |
1807 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1808 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1+0.5,0,0) | |
1809 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1810 | end | |
1811 | wingweld3.Parent = nil | |
1812 | coroutine.resume(coroutine.create(function() | |
1813 | local wingvel = Instance.new("BodyGyro") | |
1814 | wingvel.Parent = wingblade3 | |
1815 | wingvel.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge | |
1816 | wingvel.P = 20e+003 | |
1817 | wingCF = wingblade3.CFrame | |
1818 | local wingvel2 = Instance.new("BodyVelocity") | |
1819 | wingvel2.Parent = wingblade3 | |
1820 | wingvel2.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1 | |
1821 | wingvel2.velocity = Player.Character.Head.CFrame.lookVector * 70 | |
1822 | con1=wingblade3.Touched:connect(function(hit) Damagefunc1(hit,40,10) end) | |
1823 | for i = 0,1,0.05 do | |
1824 | wait() | |
1825 | wingvel.cframe = wingCF * CFrame.fromEulerAnglesXYZ(math.rad(360)*i,0,0) | |
1826 | end | |
1827 | con1:disconnect() | |
1828 | WingBladeEffect(0,0,1,0,0,0) | |
1829 | wingvel2.Parent = nil | |
1830 | wingblade3.Parent = nil | |
1831 | wingvel.Parent = nil | |
1832 | wingvel2.Parent = nil | |
1833 | wait(0.5) | |
1834 | wingblade3.Parent = modelzorz | |
1835 | wingblade3.Transparency = 1 | |
1836 | wingweld3.Parent = wingblade3 | |
1837 | wingweld3.Part0 = wingblade3 | |
1838 | wingweld3.Part1 = Torso | |
1839 | wingweld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(1,0.5,-3.3) | |
1840 | wingweld3.C1 = CFrame.fromEulerAnglesXYZ(0.5,-0.2,0) * CFrame.new(0,0,0) | |
1841 | end)) | |
1842 | wait(0.1) | |
1843 | ss(1) | |
1844 | for i = 0,1,0.2 do | |
1845 | wait(0) | |
1846 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(-0.5+2.5-2.5*i,0,1-1*i) | |
1847 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1848 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(-0.5+2.5*i,0,-1*i) | |
1849 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1850 | end | |
1851 | wingweld6.Parent = nil | |
1852 | coroutine.resume(coroutine.create(function() | |
1853 | local wingvel = Instance.new("BodyGyro") | |
1854 | wingvel.Parent = wingblade6 | |
1855 | wingvel.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge | |
1856 | wingvel.P = 20e+003 | |
1857 | wingCF = wingblade6.CFrame | |
1858 | local wingvel2 = Instance.new("BodyVelocity") | |
1859 | wingvel2.Parent = wingblade6 | |
1860 | wingvel2.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1 | |
1861 | wingvel2.velocity = Player.Character.Head.CFrame.lookVector * 70 | |
1862 | con2=wingblade6.Touched:connect(function(hit) Damagefunc1(hit,40,10) end) | |
1863 | for i = 0,1,0.05 do | |
1864 | wait() | |
1865 | wingvel.cframe = wingCF * CFrame.fromEulerAnglesXYZ(math.rad(360)*i,0,0) | |
1866 | end | |
1867 | con2:disconnect() | |
1868 | WingBladeEffect(0,0,0,0,0,1) | |
1869 | wingvel2.Parent = nil | |
1870 | wingblade6.Parent = nil | |
1871 | wingvel.Parent = nil | |
1872 | wingvel2.Parent = nil | |
1873 | wait(0.5) | |
1874 | wingblade6.Parent = modelzorz | |
1875 | wingblade6.Transparency = 1 | |
1876 | wingweld6.Parent = wingblade6 | |
1877 | wingweld6.Part0 = wingblade6 | |
1878 | wingweld6.Part1 = Torso | |
1879 | wingweld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,-math.rad(90)) * CFrame.new(-1,0.5,-3.3) | |
1880 | wingweld6.C1 = CFrame.fromEulerAnglesXYZ(0.5,0.2,0) * CFrame.new(0,0,0) | |
1881 | end)) | |
1882 | wait(0.1) | |
1883 | attack = false | |
1884 | end | |
1885 | ||
1886 | function wingbladeslashthree() | |
1887 | attack = true | |
1888 | for i = 0,1,0.1 do | |
1889 | wait(0) | |
1890 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5-1.5*i,0,0) | |
1891 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1892 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(-0.5+2.5-4*i,0,-1+1*i) | |
1893 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1894 | end | |
1895 | wingweld1.Parent = wingblade1 | |
1896 | wingweld1.Part0 = wingblade1 | |
1897 | wingweld1.Part1 = LeftArm | |
1898 | wingweld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0) * CFrame.new(0,3,0) | |
1899 | wingweld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
1900 | wingweld4.Parent = wingblade4 | |
1901 | wingweld4.Part0 = wingblade4 | |
1902 | wingweld4.Part1 = RightArm | |
1903 | wingweld4.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0) * CFrame.new(0,3,0) | |
1904 | wingweld4.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
1905 | for i = 0,1,0.1 do | |
1906 | wait(0) | |
1907 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(-3+4.57*i,0,1*i) | |
1908 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1909 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(-3+4.57*i,0,-1*i) | |
1910 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1911 | end | |
1912 | wingweld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1,0) | |
1913 | wingweld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1,0) | |
1914 | con1=wingblade1.Touched:connect(function(hit) Damagefunc1(hit,10,10) end) | |
1915 | con2=wingblade4.Touched:connect(function(hit) Damagefunc1(hit,10,10) end) | |
1916 | wait(0.1) | |
1917 | for i = 0,1,0.1 do | |
1918 | wait() | |
1919 | ss(1.5) | |
1920 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(-3+4.57,0,1-3*i) | |
1921 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1922 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(-3+4.57,0,-1+3*i) | |
1923 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1924 | wingweld4.C0 = CFrame.fromEulerAnglesXYZ(0,math.rad(600)*i,0) * CFrame.new(0,1,0) | |
1925 | wingweld1.C0 = CFrame.fromEulerAnglesXYZ(0,math.rad(600)*i,0) * CFrame.new(0,1,0) | |
1926 | end | |
1927 | con1:disconnect() | |
1928 | con2:disconnect() | |
1929 | wingblade1.Transparency = 1 | |
1930 | wingblade4.Transparency = 1 | |
1931 | WingBladeEffect(1,0,0,1,0,0) | |
1932 | wait(0.1) | |
1933 | wingweld1.Parent = wingblade1 | |
1934 | wingweld1.Part0 = wingblade1 | |
1935 | wingweld1.Part1 = Torso | |
1936 | wingweld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(1,-0.5,-3.3) | |
1937 | wingweld1.C1 = CFrame.fromEulerAnglesXYZ(-0.5,-0.2,0) * CFrame.new(0,0,0) | |
1938 | wingweld4.Parent = wingblade4 | |
1939 | wingweld4.Part0 = wingblade4 | |
1940 | wingweld4.Part1 = Torso | |
1941 | wingweld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,-math.rad(90)) * CFrame.new(-1,-0.5,-3.3) | |
1942 | wingweld4.C1 = CFrame.fromEulerAnglesXYZ(-0.5,0.2,0) * CFrame.new(0,0,0) | |
1943 | attack = false | |
1944 | end | |
1945 | ||
1946 | function wingbladeslashfour() | |
1947 | attack = true | |
1948 | for i = 0,1,0.1 do | |
1949 | wait() | |
1950 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,0,-2+3*i) | |
1951 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1952 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,2-0.43*i) | |
1953 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1954 | end | |
1955 | wingblade1.Transparency = 0.4 | |
1956 | wingweld1.Parent = wingblade1 | |
1957 | wingweld1.Part0 = wingblade1 | |
1958 | wingweld1.Part1 = Torso | |
1959 | wingweld1.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1960 | wingweld1.C1 = CFrame.fromEulerAnglesXYZ(math.rad(180),0,0) * CFrame.new(0,0,0) | |
1961 | wingblade2.Transparency = 0.4 | |
1962 | wingweld2.Parent = wingblade2 | |
1963 | wingweld2.Part0 = wingblade2 | |
1964 | wingweld2.Part1 = Torso | |
1965 | wingweld2.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1966 | wingweld2.C1 = CFrame.fromEulerAnglesXYZ(math.rad(180),1,0) * CFrame.new(0,0,0) | |
1967 | wingblade3.Transparency = 0.4 | |
1968 | wingweld3.Parent = wingblade3 | |
1969 | wingweld3.Part0 = wingblade3 | |
1970 | wingweld3.Part1 = Torso | |
1971 | wingweld3.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1972 | wingweld3.C1 = CFrame.fromEulerAnglesXYZ(math.rad(180),2,0) * CFrame.new(0,0,0) | |
1973 | wingblade4.Transparency = 0.4 | |
1974 | wingweld4.Parent = wingblade4 | |
1975 | wingweld4.Part0 = wingblade4 | |
1976 | wingweld4.Part1 = Torso | |
1977 | wingweld4.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1978 | wingweld4.C1 = CFrame.fromEulerAnglesXYZ(math.rad(180),3,0) * CFrame.new(0,0,0) | |
1979 | wingblade5.Transparency = 0.4 | |
1980 | wingweld5.Parent = wingblade5 | |
1981 | wingweld5.Part0 = wingblade5 | |
1982 | wingweld5.Part1 = Torso | |
1983 | wingweld5.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1984 | wingweld5.C1 = CFrame.fromEulerAnglesXYZ(math.rad(180),4,0) * CFrame.new(0,0,0) | |
1985 | wingblade6.Transparency = 0.4 | |
1986 | wingweld6.Parent = wingblade6 | |
1987 | wingweld6.Part0 = wingblade6 | |
1988 | wingweld6.Part1 = Torso | |
1989 | wingweld6.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1990 | wingweld6.C1 = CFrame.fromEulerAnglesXYZ(math.rad(180),5,0) * CFrame.new(0,0,0) | |
1991 | WingBladeEffect(1,1,1,1,1,1) | |
1992 | wait(0.2) | |
1993 | con1=wingblade1.Touched:connect(function(hit) Damagefunc1(hit,10,15) end) | |
1994 | con2=wingblade2.Touched:connect(function(hit) Damagefunc1(hit,10,15) end) | |
1995 | con3=wingblade3.Touched:connect(function(hit) Damagefunc1(hit,10,15) end) | |
1996 | con4=wingblade4.Touched:connect(function(hit) Damagefunc1(hit,10,15) end) | |
1997 | con5=wingblade5.Touched:connect(function(hit) Damagefunc1(hit,10,15) end) | |
1998 | con6=wingblade6.Touched:connect(function(hit) Damagefunc1(hit,10,15) end) | |
1999 | for i = 0,1,0.1 do | |
2000 | wait() | |
2001 | ss(1.2) | |
2002 | wingweld1.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(0,math.rad(360)*i,0) | |
2003 | wingweld2.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(0,math.rad(360)*i,0) | |
2004 | wingweld3.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(0,math.rad(360)*i,0) | |
2005 | wingweld4.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(0,math.rad(360)*i,0) | |
2006 | wingweld5.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(0,math.rad(360)*i,0) | |
2007 | wingweld6.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(0,math.rad(360)*i,0) | |
2008 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,0,-2+3-3*i) | |
2009 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2010 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57-2.43*i) | |
2011 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2012 | end | |
2013 | con1:disconnect() | |
2014 | con2:disconnect() | |
2015 | con3:disconnect() | |
2016 | con4:disconnect() | |
2017 | con5:disconnect() | |
2018 | con6:disconnect() | |
2019 | wait(0.3) | |
2020 | wingblade1.Transparency = 1 | |
2021 | wingblade2.Transparency = 1 | |
2022 | wingblade3.Transparency = 1 | |
2023 | wingblade4.Transparency = 1 | |
2024 | wingblade5.Transparency = 1 | |
2025 | wingblade6.Transparency = 1 | |
2026 | WingBladeEffect(1,1,1,1,1,1) | |
2027 | wingweld1.Parent = wingblade1 | |
2028 | wingweld1.Part0 = wingblade1 | |
2029 | wingweld1.Part1 = Torso | |
2030 | wingweld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(1,-0.5,-3.3) | |
2031 | wingweld1.C1 = CFrame.fromEulerAnglesXYZ(-0.5,-0.2,0) * CFrame.new(0,0,0) | |
2032 | wingweld2.Parent = wingblade2 | |
2033 | wingweld2.Part0 = wingblade2 | |
2034 | wingweld2.Part1 = Torso | |
2035 | wingweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(1,0,-3) | |
2036 | wingweld2.C1 = CFrame.fromEulerAnglesXYZ(0,-0.2,0) * CFrame.new(0,0,0) | |
2037 | wingweld3.Parent = wingblade3 | |
2038 | wingweld3.Part0 = wingblade3 | |
2039 | wingweld3.Part1 = Torso | |
2040 | wingweld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(1,0.5,-3.3) | |
2041 | wingweld3.C1 = CFrame.fromEulerAnglesXYZ(0.5,-0.2,0) * CFrame.new(0,0,0) | |
2042 | wingweld4.Parent = wingblade4 | |
2043 | wingweld4.Part0 = wingblade4 | |
2044 | wingweld4.Part1 = Torso | |
2045 | wingweld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,-math.rad(90)) * CFrame.new(-1,-0.5,-3.3) | |
2046 | wingweld4.C1 = CFrame.fromEulerAnglesXYZ(-0.5,0.2,0) * CFrame.new(0,0,0) | |
2047 | wingweld5.Parent = wingblade5 | |
2048 | wingweld5.Part0 = wingblade5 | |
2049 | wingweld5.Part1 = Torso | |
2050 | wingweld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,-math.rad(90)) * CFrame.new(-1,0,-3) | |
2051 | wingweld5.C1 = CFrame.fromEulerAnglesXYZ(0,0.2,0) * CFrame.new(0,0,0) | |
2052 | wingweld6.Parent = wingblade6 | |
2053 | wingweld6.Part0 = wingblade6 | |
2054 | wingweld6.Part1 = Torso | |
2055 | wingweld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,-math.rad(90)) * CFrame.new(-1,0.5,-3.3) | |
2056 | wingweld6.C1 = CFrame.fromEulerAnglesXYZ(0.5,0.2,0) * CFrame.new(0,0,0) | |
2057 | attack = false | |
2058 | end | |
2059 | ||
2060 | function ArsSolum() | |
2061 | attack = true | |
2062 | ss(1) | |
2063 | con1=part13.Touched:connect(function(hit) Damagefunc1(hit,30,10) end) | |
2064 | for i = 0,1,0.2 do | |
2065 | wait() | |
2066 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3-0.3*i,3.14,0) * CFrame.new(0,0,-0.5) | |
2067 | wld1.C0 = CFrame.fromEulerAnglesXYZ(0,-math.rad(90),0) * CFrame.new(-0.7,0,0) | |
2068 | wld1.C1 = CFrame.fromEulerAnglesXYZ(-math.rad(90)-0.5+0.5*i,0,0) * CFrame.new(0,0,0) | |
2069 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(0.5+1,-1.57,0) | |
2070 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.7+2.2*i,0,0) | |
2071 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.7-0.5*i,1-1*i,0) | |
2072 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2073 | end | |
2074 | con1:disconnect() | |
2075 | for i = 0,1,0.1 do | |
2076 | wait() | |
2077 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5) | |
2078 | wld1.C0 = CFrame.fromEulerAnglesXYZ(0,-math.rad(90),0) * CFrame.new(-0.7,0,0) | |
2079 | wld1.C1 = CFrame.fromEulerAnglesXYZ(-math.rad(90),0,0) * CFrame.new(0,0,0) | |
2080 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5+3*i,-1.57+1.57*i,0) | |
2081 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.5-1.5*i,0,0) | |
2082 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0,0) | |
2083 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2084 | end | |
2085 | ss(0.9) | |
2086 | con1=part13.Touched:connect(function(hit) Damagefunc1(hit,30,10) end) | |
2087 | for i = 0,1,0.2 do | |
2088 | wait() | |
2089 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5) | |
2090 | wld1.C0 = CFrame.fromEulerAnglesXYZ(0,-math.rad(90),0) * CFrame.new(-0.7,0,0) | |
2091 | wld1.C1 = CFrame.fromEulerAnglesXYZ(-math.rad(90),0,0) * CFrame.new(0,0,0) | |
2092 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(4.5-5*i,0,0) | |
2093 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2094 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0,0) | |
2095 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2096 | end | |
2097 | con1:disconnect() | |
2098 | for i = 0,1,0.1 do | |
2099 | wait() | |
2100 | weld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90)+math.rad(180)*i,0,math.rad(90)) * CFrame.new(0,1,0) | |
2101 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5) | |
2102 | wld1.C0 = CFrame.fromEulerAnglesXYZ(0,-math.rad(90),0) * CFrame.new(-0.7,0,0) | |
2103 | wld1.C1 = CFrame.fromEulerAnglesXYZ(-math.rad(90),0,0) * CFrame.new(0,0,0) | |
2104 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(4.5-5,0,-1*i) | |
2105 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2106 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0,0) | |
2107 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2108 | end | |
2109 | ss(1.1) | |
2110 | con1=part13.Touched:connect(function(hit) Damagefunc1(hit,30,10) end) | |
2111 | for i = 0,1,0.2 do | |
2112 | wait() | |
2113 | weld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90)+math.rad(180),0,math.rad(90)) * CFrame.new(0,1,0) | |
2114 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5) | |
2115 | wld1.C0 = CFrame.fromEulerAnglesXYZ(0,-math.rad(90),0) * CFrame.new(-0.7,0,0) | |
2116 | wld1.C1 = CFrame.fromEulerAnglesXYZ(-math.rad(90),0,0) * CFrame.new(0,0,0) | |
2117 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(-0.5+3.5*i,-1*i,-1+2.5*i) | |
2118 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2119 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0,0) | |
2120 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2121 | end | |
2122 | con1:disconnect() | |
2123 | for i = 0,1,0.1 do | |
2124 | wait() | |
2125 | weld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90)+math.rad(180)-math.rad(180)*i,0,math.rad(90)) * CFrame.new(0,1,0) | |
2126 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5) | |
2127 | wld1.C0 = CFrame.fromEulerAnglesXYZ(0,-math.rad(90),0) * CFrame.new(-0.7,0,0) | |
2128 | wld1.C1 = CFrame.fromEulerAnglesXYZ(-math.rad(90),0,0) * CFrame.new(0,0,0) | |
2129 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(3+1*i,-1+1*i,1.5-1.5*i) | |
2130 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2131 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0,0) | |
2132 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2133 | end | |
2134 | ss(0.8) | |
2135 | con1=part13.Touched:connect(function(hit) Damagefunc1(hit,30,10) end) | |
2136 | for i = 0,1,0.2 do | |
2137 | wait() | |
2138 | weld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),0,math.rad(90)) * CFrame.new(0,1,0) | |
2139 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5) | |
2140 | wld1.C0 = CFrame.fromEulerAnglesXYZ(0,-math.rad(90),0) * CFrame.new(-0.7,0,0) | |
2141 | wld1.C1 = CFrame.fromEulerAnglesXYZ(-math.rad(90),0,0) * CFrame.new(0,0,0) | |
2142 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(4-5*i,0,0) | |
2143 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2144 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0,0) | |
2145 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2146 | end | |
2147 | con1:disconnect() | |
2148 | wait(0.5) | |
2149 | attack = false | |
2150 | end | |
2151 | ||
2152 | function ShieldDash() | |
2153 | if mana >= 20 then | |
2154 | attack = true | |
2155 | gairo.Parent = Head | |
2156 | gairo.cframe = Head.CFrame | |
2157 | for i = 0,1,0.1 do | |
2158 | wait() | |
2159 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0.5*i) * CFrame.new(0,0,-0.5) | |
2160 | LW.C0 = CFrame.new(-1.5+0.7*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.9*i,0,1*i) | |
2161 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2162 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1+0.57*i,0,-1.2*i) | |
2163 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2164 | end | |
2165 | mana = mana - 20 | |
2166 | ss(0.5) | |
2167 | con1=prt1.Touched:connect(function(hit) Bash(hit,40) end) | |
2168 | local vel = Instance.new("BodyVelocity") | |
2169 | vel.Parent = Player.Character.Torso | |
2170 | vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1 | |
2171 | vel.velocity = Player.Character.Head.CFrame.lookVector * 100 | |
2172 | for i = 0,1,0.2 do | |
2173 | wait() | |
2174 | if element == "Light" then | |
2175 | MMMAGIC(prt19,3,3,3,0,0,0,BrickColor.new("White")) | |
2176 | MOREMAGIX(prt19,0,2,2,2,BrickColor.new("White")) | |
2177 | DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("White")) | |
2178 | else | |
2179 | MMMAGIC(prt19,3,3,3,0,0,0,BrickColor.new("Black")) | |
2180 | MOREMAGIX(prt19,0,2,2,2,BrickColor.new("Black")) | |
2181 | DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("Black")) | |
2182 | end | |
2183 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0.5) * CFrame.new(0,0,-0.5) | |
2184 | LW.C0 = CFrame.new(-1.5+0.7,0.5,-0.5-0.3*i) * CFrame.fromEulerAnglesXYZ(1.9,0,1-0.3*i) | |
2185 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2186 | RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5-0.3*i) * CFrame.fromEulerAnglesXYZ(1+0.57,0,-1.2+0.3*i) | |
2187 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2188 | end | |
2189 | for i = 0,1,0.2 do | |
2190 | wait() | |
2191 | if element == "Light" then | |
2192 | MMMAGIC(prt19,3,3,3,0,0,0,BrickColor.new("White")) | |
2193 | MOREMAGIX(prt19,0,2,2,2,BrickColor.new("White")) | |
2194 | DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("White")) | |
2195 | else | |
2196 | MMMAGIC(prt19,3,3,3,0,0,0,BrickColor.new("Black")) | |
2197 | MOREMAGIX(prt19,0,2,2,2,BrickColor.new("Black")) | |
2198 | DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("Black")) | |
2199 | end | |
2200 | end | |
2201 | vel.Parent = nil | |
2202 | for i = 0,1,0.2 do | |
2203 | wait() | |
2204 | if element == "Light" then | |
2205 | MMMAGIC(prt19,3,3,3,0,0,0,BrickColor.new("White")) | |
2206 | MOREMAGIX(prt19,0,2,2,2,BrickColor.new("White")) | |
2207 | DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("White")) | |
2208 | else | |
2209 | MMMAGIC(prt19,3,3,3,0,0,0,BrickColor.new("Black")) | |
2210 | MOREMAGIX(prt19,0,2,2,2,BrickColor.new("Black")) | |
2211 | DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("Black")) | |
2212 | end | |
2213 | end | |
2214 | if mode == "Normal" then | |
2215 | wait(0.3) | |
2216 | for i = 0,1,0.1 do | |
2217 | wait() | |
2218 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0.5-0.5*i) * CFrame.new(0,0,-0.5) | |
2219 | LW.C0 = CFrame.new(-1.5+0.7-0.7*i,0.5,-0.5-0.3+0.8*i) * CFrame.fromEulerAnglesXYZ(1.9-1.9*i,0,1-0.3-0.7*i) | |
2220 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2221 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5-0.3+0.8*i) * CFrame.fromEulerAnglesXYZ(1+0.57-0.57*i,0,-1.2+0.3+0.9*i) | |
2222 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2223 | end | |
2224 | gairo.Parent = nil | |
2225 | wait(0.2) | |
2226 | con1:disconnect() | |
2227 | elseif mode == "Attack" then | |
2228 | if holddash == true and mana >= 20 then | |
2229 | con1:disconnect() | |
2230 | gairo.Parent = nil | |
2231 | wait(0.5) | |
2232 | gairo.Parent = Head | |
2233 | gairo.cframe = Head.CFrame | |
2234 | for i = 0,1,0.1 do | |
2235 | wait() | |
2236 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0.5-1*i) * CFrame.new(0,0,-0.5) | |
2237 | LW.C0 = CFrame.new(-1.5+0.7-0.7*i,0.5,-0.8+0.8*i) * CFrame.fromEulerAnglesXYZ(1.9,0,0.7-1.6*i) | |
2238 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2239 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.8+0.8*i) * CFrame.fromEulerAnglesXYZ(1.57,0,-0.9+2*i) | |
2240 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2241 | end | |
2242 | ss(0.8) | |
2243 | con1=part13.Touched:connect(function(hit) Damagefunc2(hit,40,25) end) | |
2244 | mana = mana - 20 | |
2245 | local vel = Instance.new("BodyVelocity") | |
2246 | vel.Parent = Player.Character.Torso | |
2247 | vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1 | |
2248 | vel.velocity = Player.Character.Head.CFrame.lookVector * 100 | |
2249 | for i = 0,1,0.2 do | |
2250 | wait() | |
2251 | if element == "Light" then | |
2252 | MMMAGIC(part14,3,3,3,0,0,0,BrickColor.new("White")) | |
2253 | MOREMAGIX(part14,0,2,2,2,BrickColor.new("White")) | |
2254 | DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("White")) | |
2255 | else | |
2256 | MMMAGIC(part14,3,3,3,0,0,0,BrickColor.new("Black")) | |
2257 | MOREMAGIX(part14,0,2,2,2,BrickColor.new("Black")) | |
2258 | DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("Black")) | |
2259 | end | |
2260 | weld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90)+math.rad(90)*i,0,math.rad(90)-math.rad(90)*i) * CFrame.new(0,1,0) | |
2261 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0.5-1) * CFrame.new(0,0,-0.5) | |
2262 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.9-0.33*i,0,0.7-1.5+0.4*i) | |
2263 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2264 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-0.9+2) | |
2265 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2266 | end | |
2267 | for i = 0,1,0.2 do | |
2268 | wait() | |
2269 | if element == "Light" then | |
2270 | MMMAGIC(part14,3,3,3,0,0,0,BrickColor.new("White")) | |
2271 | MOREMAGIX(part14,0,2,2,2,BrickColor.new("White")) | |
2272 | DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("White")) | |
2273 | else | |
2274 | MMMAGIC(part14,3,3,3,0,0,0,BrickColor.new("Black")) | |
2275 | MOREMAGIX(part14,0,2,2,2,BrickColor.new("Black")) | |
2276 | DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("Black")) | |
2277 | end | |
2278 | end | |
2279 | vel.Parent = nil | |
2280 | for i = 0,1,0.2 do | |
2281 | wait() | |
2282 | if element == "Light" then | |
2283 | MMMAGIC(part14,3,3,3,0,0,0,BrickColor.new("White")) | |
2284 | MOREMAGIX(part14,0,2,2,2,BrickColor.new("White")) | |
2285 | DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("White")) | |
2286 | else | |
2287 | MMMAGIC(part14,3,3,3,0,0,0,BrickColor.new("Black")) | |
2288 | MOREMAGIX(part14,0,2,2,2,BrickColor.new("Black")) | |
2289 | DashEf(Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),BrickColor.new("Black")) | |
2290 | end | |
2291 | end | |
2292 | wait(0.3) | |
2293 | con1:disconnect() | |
2294 | for i = 0,1,0.1 do | |
2295 | wait() | |
2296 | weld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90)+math.rad(90)-math.rad(90)*i,0,math.rad(90)-math.rad(90)+math.rad(90)*i) * CFrame.new(0,1,0) | |
2297 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,-0.5+0.5*i) * CFrame.new(0,0,-0.5) | |
2298 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.9-0.33-1.57*i,0,1.2-1.2*i) | |
2299 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2300 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-0.57*i,0,1.1-1.1*i) | |
2301 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2302 | end | |
2303 | gairo.Parent = nil | |
2304 | else | |
2305 | wait(0.3) | |
2306 | for i = 0,1,0.1 do | |
2307 | wait() | |
2308 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0.5-0.5*i) * CFrame.new(0,0,-0.5) | |
2309 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.9-0.33-1.57*i,0,1.2-1.2*i) | |
2310 | --LW.C0 = CFrame.new(-1.5+0.7-0.7*i,0.5,-0.5-0.3+0.8*i) * CFrame.fromEulerAnglesXYZ(1.9-1.9*i,0,1-0.3-0.7*i) | |
2311 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2312 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5-0.3+0.8*i) * CFrame.fromEulerAnglesXYZ(1+0.57-0.57*i,0,-1.2+0.3+0.9*i) | |
2313 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2314 | end | |
2315 | gairo.Parent = nil | |
2316 | wait(0.2) | |
2317 | con1:disconnect() | |
2318 | end | |
2319 | end | |
2320 | attack = false | |
2321 | end | |
2322 | end | |
2323 | ||
2324 | function guard() | |
2325 | attack = true | |
2326 | guarding = true | |
2327 | Character.Humanoid.WalkSpeed = 20 | |
2328 | for i = 0,1,0.1 do | |
2329 | wait() | |
2330 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5) | |
2331 | LW.C0 = CFrame.new(-1.5+0.8*i,0.5+0.2*i,-0.8*i) * CFrame.fromEulerAnglesXYZ(2.07*i,0,1.4*i) | |
2332 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2333 | RW.C0 = CFrame.new(1.5-0.8*i,0.5,-0.8*i) * CFrame.fromEulerAnglesXYZ(0.7+0.87*i,0,-1.4*i) | |
2334 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2335 | end | |
2336 | humanoid = Character.Humanoid | |
2337 | lhh = humanoid.Health | |
2338 | ||
2339 | while guarding == true do | |
2340 | wait() | |
2341 | ||
2342 | if humanoid.Health < lhh then | |
2343 | ||
2344 | print(lhh - humanoid.Health) | |
2345 | test = lhh - humanoid.Health | |
2346 | if mana < 400 then | |
2347 | mana = mana + math.random(test, test*50) | |
2348 | end | |
2349 | if mana > 400 then | |
2350 | mana = 400 | |
2351 | end | |
2352 | if mode == "Normal" then | |
2353 | humanoid.Health = lhh - (test * 50) | |
2354 | elseif mode == "Attack" then | |
2355 | humanoid.Health = lhh - (test * 50) | |
2356 | end | |
2357 | lhh = humanoid.Health | |
2358 | shieldbash(1) | |
2359 | local vel = Instance.new("BodyVelocity") | |
2360 | vel.Parent = Player.Character.Torso | |
2361 | vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1000 | |
2362 | vel.velocity = Player.Character.Torso.CFrame.lookVector * -20 | |
2363 | velo = -20 | |
2364 | for i = 0,1,0.2 do | |
2365 | wait() | |
2366 | LW.C0 = CFrame.new(-1.5+0.8,0.5+0.2,-0.8) * CFrame.fromEulerAnglesXYZ(2.07,0,1.4+0.5*i) | |
2367 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2368 | RW.C0 = CFrame.new(1.5-0.8,0.5,-0.8) * CFrame.fromEulerAnglesXYZ(0.7+0.87,0,-1.4-0.5*i) | |
2369 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2370 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3*i,3.14,0) * CFrame.new(0,0,-0.5) | |
2371 | end | |
2372 | for i = 0,1,0.05 do | |
2373 | wait() | |
2374 | LW.C0 = CFrame.new(-1.5+0.8,0.5+0.2,-0.8) * CFrame.fromEulerAnglesXYZ(2.07,0,1.4+0.5-0.5*i) | |
2375 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2376 | RW.C0 = CFrame.new(1.5-0.8,0.5,-0.8) * CFrame.fromEulerAnglesXYZ(0.7+0.87,0,-1.4-0.5+0.5*i) | |
2377 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2378 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3-0.3*i,3.14,0) * CFrame.new(0,0,-0.5) | |
2379 | velo = velo + 0.5 | |
2380 | vel.velocity = Player.Character.Torso.CFrame.lookVector * velo | |
2381 | end | |
2382 | vel.Parent = nil | |
2383 | ||
2384 | end | |
2385 | ||
2386 | wait(0.1) | |
2387 | end | |
2388 | Character.Humanoid.WalkSpeed = 16 | |
2389 | if bashing == false then | |
2390 | for i = 0,1,0.1 do | |
2391 | wait() | |
2392 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5) | |
2393 | LW.C0 = CFrame.new(-1.5+0.8-0.8*i,0.5+0.2-0.2*i,-0.8+0.8*i) * CFrame.fromEulerAnglesXYZ(2.07-2.07*i,0,1.4-1.4*i) | |
2394 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2395 | RW.C0 = CFrame.new(1.5-0.8+0.8*i,0.5,-0.8+0.8*i) * CFrame.fromEulerAnglesXYZ(0.7+0.87-0.87*i,0,-1.4+1.4*i) | |
2396 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2397 | end | |
2398 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5) | |
2399 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2400 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2401 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.7,0,0) | |
2402 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2403 | attack = false | |
2404 | end | |
2405 | end | |
2406 | ||
2407 | function Bashem() | |
2408 | attack = true | |
2409 | bashing = true | |
2410 | guarding = false | |
2411 | if mode == "Normal" then | |
2412 | ss(0.7) | |
2413 | con1=prt1.Touched:connect(function(hit) Bash(hit,40) end) | |
2414 | for i = 0,1,0.2 do | |
2415 | wait() | |
2416 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5) | |
2417 | LW.C0 = CFrame.new(-1.5+0.8-0.8*i,0.5+0.2-0.2*i,-0.8+0.8*i) * CFrame.fromEulerAnglesXYZ(2.07,0,1.4-3*i) | |
2418 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2419 | RW.C0 = CFrame.new(1.5-0.8+0.8*i,0.5,-0.8+0.8*i) * CFrame.fromEulerAnglesXYZ(0.7+0.87,0,-1.4+3*i) | |
2420 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2421 | end | |
2422 | wait(0.15) | |
2423 | con1:disconnect() | |
2424 | for i = 0,1,0.1 do | |
2425 | wait() | |
2426 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5) | |
2427 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.07-2.07*i,0,-1.6+1.6*i) | |
2428 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2429 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-0.87*i,0,1.6-1.6*i) | |
2430 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2431 | end | |
2432 | elseif mode == "Attack" then | |
2433 | for i = 0,1,0.1 do | |
2434 | wait() | |
2435 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5) | |
2436 | LW.C0 = CFrame.new(-1.5+0.8+0.3*i,0.5+0.2+0.3*i,-0.8) * CFrame.fromEulerAnglesXYZ(2.07-0.5*i,0,1.4+0.17*i) | |
2437 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1.57*i,0) | |
2438 | RW.C0 = CFrame.new(1.5-0.8+0.8*i,0.5,-0.8+0.8*i) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.4+2*i) | |
2439 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2440 | end | |
2441 | con1=part13.Touched:connect(function(hit) Damagefunc2(hit,40,25) end) | |
2442 | ss(1.1) | |
2443 | for i = 0,1,0.2 do | |
2444 | wait() | |
2445 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5) | |
2446 | LW.C0 = CFrame.new(-1.5+1.1-1.1*i,0.5+0.5-0.5*i,-0.8+0.8*i) * CFrame.fromEulerAnglesXYZ(2.07-0.5,0,1.4+0.17) | |
2447 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(4*i,1.57,0) | |
2448 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.4+2) | |
2449 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2450 | end | |
2451 | wait(0.15) | |
2452 | con1:disconnect() | |
2453 | for i = 0,1,0.1 do | |
2454 | wait() | |
2455 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5) | |
2456 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.57*i,0,1.57-1.57*i) | |
2457 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(4-4*i,1.57-1.57*i,0) | |
2458 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-0.57*i,0,-1.4+2-0.6*i) | |
2459 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2460 | end | |
2461 | end | |
2462 | bashing = false | |
2463 | attack = false | |
2464 | end | |
2465 | ||
2466 | function WingBladeStance(seeing) | |
2467 | wingblade1.Parent = modelzorz | |
2468 | wingblade2.Parent = modelzorz | |
2469 | wingblade3.Parent = modelzorz | |
2470 | wingblade4.Parent = modelzorz | |
2471 | wingblade5.Parent = modelzorz | |
2472 | wingblade6.Parent = modelzorz | |
2473 | wingweld1.Parent = wingblade1 | |
2474 | wingweld1.Part0 = wingblade1 | |
2475 | wingweld1.Part1 = Torso | |
2476 | wingweld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(1,-0.5,-3.3) | |
2477 | wingweld1.C1 = CFrame.fromEulerAnglesXYZ(-0.5,-0.2,0) * CFrame.new(0,0,0) | |
2478 | wingweld2.Parent = wingblade2 | |
2479 | wingweld2.Part0 = wingblade2 | |
2480 | wingweld2.Part1 = Torso | |
2481 | wingweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(1,0,-3) | |
2482 | wingweld2.C1 = CFrame.fromEulerAnglesXYZ(0,-0.2,0) * CFrame.new(0,0,0) | |
2483 | wingweld3.Parent = wingblade3 | |
2484 | wingweld3.Part0 = wingblade3 | |
2485 | wingweld3.Part1 = Torso | |
2486 | wingweld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(1,0.5,-3.3) | |
2487 | wingweld3.C1 = CFrame.fromEulerAnglesXYZ(0.5,-0.2,0) * CFrame.new(0,0,0) | |
2488 | wingweld4.Parent = wingblade4 | |
2489 | wingweld4.Part0 = wingblade4 | |
2490 | wingweld4.Part1 = Torso | |
2491 | wingweld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,-math.rad(90)) * CFrame.new(-1,-0.5,-3.3) | |
2492 | wingweld4.C1 = CFrame.fromEulerAnglesXYZ(-0.5,0.2,0) * CFrame.new(0,0,0) | |
2493 | wingweld5.Parent = wingblade5 | |
2494 | wingweld5.Part0 = wingblade5 | |
2495 | wingweld5.Part1 = Torso | |
2496 | wingweld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,-math.rad(90)) * CFrame.new(-1,0,-3) | |
2497 | wingweld5.C1 = CFrame.fromEulerAnglesXYZ(0,0.2,0) * CFrame.new(0,0,0) | |
2498 | wingweld6.Parent = wingblade6 | |
2499 | wingweld6.Part0 = wingblade6 | |
2500 | wingweld6.Part1 = Torso | |
2501 | wingweld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,-math.rad(90)) * CFrame.new(-1,0.5,-3.3) | |
2502 | wingweld6.C1 = CFrame.fromEulerAnglesXYZ(0.5,0.2,0) * CFrame.new(0,0,0) | |
2503 | if seeing == true then | |
2504 | wingblade1.Transparency = 0.4 | |
2505 | wingblade2.Transparency = 0.4 | |
2506 | wingblade3.Transparency = 0.4 | |
2507 | wingblade4.Transparency = 0.4 | |
2508 | wingblade5.Transparency = 0.4 | |
2509 | wingblade6.Transparency = 0.4 | |
2510 | else | |
2511 | wingblade1.Transparency = 1 | |
2512 | wingblade2.Transparency = 1 | |
2513 | wingblade3.Transparency = 1 | |
2514 | wingblade4.Transparency = 1 | |
2515 | wingblade5.Transparency = 1 | |
2516 | wingblade6.Transparency = 1 | |
2517 | end | |
2518 | end | |
2519 | ||
2520 | function StyleChange() | |
2521 | attack = true | |
2522 | if mode == "Normal" then | |
2523 | Character.Humanoid.WalkSpeed = 0 | |
2524 | for i = 0,1,0.1 do | |
2525 | wait() | |
2526 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57-0.3*i,3.14,0) * CFrame.new(0,0,-0.5) | |
2527 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.5*i,0,0) | |
2528 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2529 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+1.5*i,0,0) | |
2530 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2531 | end | |
2532 | wait(0.2) | |
2533 | Style = "MagicMayhem" | |
2534 | coroutine.resume(coroutine.create(function() | |
2535 | while Style == "MagicMayhem" do | |
2536 | wait(0.1) | |
2537 | MMMAGIC(LeftArm,2,2,2,0,-1,0,BrickColor.new("White")) | |
2538 | MMMAGIC(RightArm,2,2,2,0,-1,0,BrickColor.new("Black")) | |
2539 | end | |
2540 | end)) | |
2541 | magicsound(1) | |
2542 | BlastEffect(Torso,4,5,4,0,-2,0,0,0,0,BrickColor.new("White")) | |
2543 | WaveEffect(Torso,4,5,4,0,-2,0,0,0,0,BrickColor.new("Black")) | |
2544 | for i = 0,1,0.2 do | |
2545 | wait() | |
2546 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57-0.3+0.6*i,3.14,0) * CFrame.new(0,0,-0.5) | |
2547 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.5-3.5*i,0,0) | |
2548 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2549 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.5-3.5*i,0,0) | |
2550 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2551 | end | |
2552 | wait(0.2) | |
2553 | for i = 0,1,0.1 do | |
2554 | wait() | |
2555 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3-0.3*i,3.14,0) * CFrame.new(0,0,-0.5) | |
2556 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1+1*i,0,0) | |
2557 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2558 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1+2*i,0,0) | |
2559 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2560 | end | |
2561 | Character.Humanoid.WalkSpeed = 16 | |
2562 | elseif mode == "Attack" then | |
2563 | Character.Humanoid.WalkSpeed = 0 | |
2564 | for i = 0,1,0.1 do | |
2565 | wait() | |
2566 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57-0.3*i,3.14,0) * CFrame.new(0,0,-0.5) | |
2567 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.5*i,0,0) | |
2568 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2569 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+1.5*i,0,0) | |
2570 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2571 | end | |
2572 | WingBladeStance(true) | |
2573 | magicsound(1) | |
2574 | if element == "Light" then | |
2575 | BlastEffect(Torso,4,5,4,0,-2,0,0,0,0,BrickColor.new("White")) | |
2576 | WaveEffect(Torso,4,5,4,0,-2,0,0,0,0,BrickColor.new("White")) | |
2577 | else | |
2578 | BlastEffect(Torso,4,5,4,0,-2,0,0,0,0,BrickColor.new("Black")) | |
2579 | WaveEffect(Torso,4,5,4,0,-2,0,0,0,0,BrickColor.new("Black")) | |
2580 | end | |
2581 | for i = 0,1,0.2 do | |
2582 | wait() | |
2583 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57-0.3+0.6*i,3.14,0) * CFrame.new(0,0,-0.5) | |
2584 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.5-3.5*i,0,0) | |
2585 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2586 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.5-3.5*i,0,0) | |
2587 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2588 | end | |
2589 | wait(0.2) | |
2590 | for i = 0,1,0.1 do | |
2591 | wait() | |
2592 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3-0.3*i,3.14,0) * CFrame.new(0,0,-0.5) | |
2593 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1+1*i,0,0) | |
2594 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2595 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1+2*i,0,0) | |
2596 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2597 | end | |
2598 | --[[for i = 0,1,0.2 do | |
2599 | wait() | |
2600 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3*i,3.14,0) * CFrame.new(0,0,-0.5) | |
2601 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.5*i,-1.57*i,0) | |
2602 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.7*i,0,0) | |
2603 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2+0.5*i,1*i,0) | |
2604 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2605 | end | |
2606 | sheath(2.25) | |
2607 | wait(0.05) | |
2608 | weld1.Part0 = part1 | |
2609 | weld1.Part1 = prt1 | |
2610 | weld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.7,0.2) | |
2611 | weld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
2612 | wait(0.1) | |
2613 | for i = 0,1,0.1 do | |
2614 | wait() | |
2615 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3-0.3*i,3.14,0) * CFrame.new(0,0,-0.5) | |
2616 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.5-1.5*i,-1.57+1.57*i,0) | |
2617 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.7+0.7*i,0,0) | |
2618 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2+0.5,1-1*i,0) | |
2619 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2620 | end ]] | |
2621 | hideanim() | |
2622 | Style = "WingBlade" | |
2623 | Character.Humanoid.WalkSpeed = 16 | |
2624 | end | |
2625 | attack = false | |
2626 | end | |
2627 | ||
2628 | function idleanim() | |
2629 | if attack == false then | |
2630 | --print("MOARDERP") | |
2631 | for i = 0,1,0.05 do | |
2632 | wait() | |
2633 | wingweld1.C1 = CFrame.fromEulerAnglesXYZ(-0.5+0.3*i,-0.2,0) * CFrame.new(0,0,0) | |
2634 | wingweld2.C1 = CFrame.fromEulerAnglesXYZ(0.2*i,-0.2,0) * CFrame.new(0,0,0) | |
2635 | wingweld3.C1 = CFrame.fromEulerAnglesXYZ(0.5+0.1*i,-0.2,0) * CFrame.new(0,0,0) | |
2636 | wingweld4.C1 = CFrame.fromEulerAnglesXYZ(-0.5+0.3*i,0.2,0) * CFrame.new(0,0,0) | |
2637 | wingweld5.C1 = CFrame.fromEulerAnglesXYZ(0.2*i,0.2,0) * CFrame.new(0,0,0) | |
2638 | wingweld6.C1 = CFrame.fromEulerAnglesXYZ(0.5+0.1*i,0.2,0) * CFrame.new(0,0,0) | |
2639 | end | |
2640 | wait(0.5) | |
2641 | for i = 0,1,0.05 do | |
2642 | wait() | |
2643 | wingweld1.C1 = CFrame.fromEulerAnglesXYZ(-0.5+0.3-0.5*i,-0.2,0) * CFrame.new(0,0,0) | |
2644 | wingweld2.C1 = CFrame.fromEulerAnglesXYZ(0.2-0.3*i,-0.2,0) * CFrame.new(0,0,0) | |
2645 | wingweld3.C1 = CFrame.fromEulerAnglesXYZ(0.5+0.1-0.1*i,-0.2,0) * CFrame.new(0,0,0) | |
2646 | wingweld4.C1 = CFrame.fromEulerAnglesXYZ(-0.5+0.3-0.5*i,0.2,0) * CFrame.new(0,0,0) | |
2647 | wingweld5.C1 = CFrame.fromEulerAnglesXYZ(0.2-0.3*i,0.2,0) * CFrame.new(0,0,0) | |
2648 | wingweld6.C1 = CFrame.fromEulerAnglesXYZ(0.5+0.1-0.1*i,0.2,0) * CFrame.new(0,0,0) | |
2649 | end | |
2650 | wait(0.1) | |
2651 | for i = 0,1,0.05 do | |
2652 | wait() | |
2653 | wingweld1.C1 = CFrame.fromEulerAnglesXYZ(-0.5-0.2+0.2*i,-0.2,0) * CFrame.new(0,0,0) | |
2654 | wingweld2.C1 = CFrame.fromEulerAnglesXYZ(-0.1+0.1*i,-0.2,0) * CFrame.new(0,0,0) | |
2655 | wingweld3.C1 = CFrame.fromEulerAnglesXYZ(0.5,-0.2,0) * CFrame.new(0,0,0) | |
2656 | wingweld4.C1 = CFrame.fromEulerAnglesXYZ(-0.5-0.2+0.2*i,0.2,0) * CFrame.new(0,0,0) | |
2657 | wingweld5.C1 = CFrame.fromEulerAnglesXYZ(-0.1+0.1*i,0.2,0) * CFrame.new(0,0,0) | |
2658 | wingweld6.C1 = CFrame.fromEulerAnglesXYZ(0.5,0.2,0) * CFrame.new(0,0,0) | |
2659 | end | |
2660 | end | |
2661 | end | |
2662 | ||
2663 | function MegaHit() | |
2664 | if mana >= 5 then | |
2665 | attack = true | |
2666 | gairo.Parent = Head | |
2667 | gairo.cframe = Head.CFrame | |
2668 | Charge(2) | |
2669 | for i = 0,1,0.1 do | |
2670 | wait() | |
2671 | if element == "Light" then | |
2672 | MMMAGIC(LeftArm,3,3,3,0,-1,0,BrickColor.new("White")) | |
2673 | elseif element == "Dark" then | |
2674 | MMMAGIC(LeftArm,3,3,3,0,-1,0,BrickColor.new("Black")) | |
2675 | end | |
2676 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,-0.5*i) * CFrame.new(0,0,-0.5) | |
2677 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2*i,0,-0.5*i) | |
2678 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2679 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0) | |
2680 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2681 | end | |
2682 | for i = 0,1,0.2 do | |
2683 | wait() | |
2684 | if element == "Light" then | |
2685 | MMMAGIC(LeftArm,3,3,3,0,-1,0,BrickColor.new("White")) | |
2686 | elseif element == "Dark" then | |
2687 | MMMAGIC(LeftArm,3,3,3,0,-1,0,BrickColor.new("Black")) | |
2688 | end | |
2689 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,-0.5) * CFrame.new(0,0,-0.5) | |
2690 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2-3*i,0,-0.5) | |
2691 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2692 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0) | |
2693 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2694 | end | |
2695 | mana = mana - 5 | |
2696 | local testbrick = Instance.new("Part") | |
2697 | testbrick.Parent = modelzorz | |
2698 | testbrick.Anchored = true | |
2699 | testbrick.Transparency = 1 | |
2700 | testbrick.CFrame = Torso.CFrame * CFrame.new(-3,0,-2) | |
2701 | coroutine.resume(coroutine.create(function() | |
2702 | local c = game.Workspace:GetChildren(); | |
2703 | for i = 1, #c do | |
2704 | local hum = c[i]:findFirstChild("Humanoid") | |
2705 | if hum ~= nil and hum.Health ~= 0 then | |
2706 | local head = c[i]:findFirstChild("Head"); | |
2707 | if head ~= nil then | |
2708 | local targ = head.Position - testbrick.Position; | |
2709 | local mag = targ.magnitude; | |
2710 | if mag <= 3 and c[i].Name ~= Player.Name then | |
2711 | UpBlast(head,math.random(20,30)) | |
2712 | end | |
2713 | end | |
2714 | end | |
2715 | end | |
2716 | end)) | |
2717 | magicsound(2) | |
2718 | if element == "Light" then | |
2719 | EVENMOARMAGIX(Torso,1,6,1,-3,-2,-2,0,0,0,BrickColor.new("White")) | |
2720 | WaveEffect(Torso,2.5,3,2.5,-3,-2,-2,0,0,0,BrickColor.new("White")) | |
2721 | else | |
2722 | EVENMOARMAGIX(Torso,2,5,2,-3,-2,-2,0,0,0,BrickColor.new("Black")) | |
2723 | WaveEffect(Torso,1.5,4,1.5,-3,-2,-2,0,0,0,BrickColor.new("Black")) | |
2724 | end | |
2725 | wait(0.2) | |
2726 | for i = 0,1,0.1 do | |
2727 | wait() | |
2728 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,-0.5+0.5*i) * CFrame.new(0,0,-0.5) | |
2729 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1+1*i,0,-0.5+0.5*i) | |
2730 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2731 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0) | |
2732 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2733 | end | |
2734 | wait(0.2) | |
2735 | testbrick.Parent = nil | |
2736 | gairo.Parent = nil | |
2737 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5) | |
2738 | attack = false | |
2739 | end | |
2740 | end | |
2741 | ||
2742 | function SwordRaid() | |
2743 | if mana >= 20 then | |
2744 | attack = true | |
2745 | local UltimaPart = Instance.new("Part") | |
2746 | UltimaPart.Parent = modelzorz | |
2747 | UltimaPart.CanCollide = false | |
2748 | UltimaPart.Position = Torso.Position | |
2749 | UltimaPart.Transparency = 1 | |
2750 | local UltimaWeld = Instance.new("Weld") | |
2751 | UltimaWeld.Parent = UltimaPart | |
2752 | UltimaWeld.Part0 = UltimaPart | |
2753 | UltimaWeld.Part1 = Torso | |
2754 | UltimaWeld.C0 = CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2755 | UltimaWeld.C1 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0,0) | |
2756 | local wingvel2 = Instance.new("BodyVelocity") | |
2757 | wingvel2.Parent = UltimaPart | |
2758 | WingBladeEffect(1,1,1,1,1,1) | |
2759 | wingblade1.Transparency = 1 | |
2760 | wingblade2.Transparency = 1 | |
2761 | wingblade3.Transparency = 1 | |
2762 | wingblade4.Transparency = 1 | |
2763 | wingblade5.Transparency = 1 | |
2764 | wingblade6.Transparency = 1 | |
2765 | wait(0.4) | |
2766 | wingblade1.Transparency = 0.4 | |
2767 | wingweld1.Parent = wingblade1 | |
2768 | wingweld1.Part0 = wingblade1 | |
2769 | wingweld1.Part1 = UltimaPart | |
2770 | wingweld1.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) | |
2771 | wingweld1.C1 = CFrame.fromEulerAnglesXYZ(0,math.rad(90),0) * CFrame.new(0,0,0) | |
2772 | wingblade2.Transparency = 0.4 | |
2773 | wingweld2.Parent = wingblade2 | |
2774 | wingweld2.Part0 = wingblade2 | |
2775 | wingweld2.Part1 = UltimaPart | |
2776 | wingweld2.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) | |
2777 | wingweld2.C1 = CFrame.fromEulerAnglesXYZ(1,math.rad(90),0) * CFrame.new(0,0,0) | |
2778 | wingblade3.Transparency = 0.4 | |
2779 | wingweld3.Parent = wingblade3 | |
2780 | wingweld3.Part0 = wingblade3 | |
2781 | wingweld3.Part1 = UltimaPart | |
2782 | wingweld3.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) | |
2783 | wingweld3.C1 = CFrame.fromEulerAnglesXYZ(2,math.rad(90),0) * CFrame.new(0,0,0) | |
2784 | wingblade4.Transparency = 0.4 | |
2785 | wingweld4.Parent = wingblade4 | |
2786 | wingweld4.Part0 = wingblade4 | |
2787 | wingweld4.Part1 = UltimaPart | |
2788 | wingweld4.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) | |
2789 | wingweld4.C1 = CFrame.fromEulerAnglesXYZ(3,math.rad(90),0) * CFrame.new(0,0,0) | |
2790 | wingblade5.Transparency = 0.4 | |
2791 | wingweld5.Parent = wingblade5 | |
2792 | wingweld5.Part0 = wingblade5 | |
2793 | wingweld5.Part1 = UltimaPart | |
2794 | wingweld5.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) | |
2795 | wingweld5.C1 = CFrame.fromEulerAnglesXYZ(4,math.rad(90),0) * CFrame.new(0,0,0) | |
2796 | wingblade6.Transparency = 0.4 | |
2797 | wingweld6.Parent = wingblade6 | |
2798 | wingweld6.Part0 = wingblade6 | |
2799 | wingweld6.Part1 = UltimaPart | |
2800 | wingweld6.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) | |
2801 | wingweld6.C1 = CFrame.fromEulerAnglesXYZ(5,math.rad(90),0) * CFrame.new(0,0,0) | |
2802 | WingBladeEffect(1,1,1,1,1,1) | |
2803 | con1=wingblade1.Touched:connect(function(hit) Damagefunc1(hit,20,15) end) | |
2804 | con2=wingblade2.Touched:connect(function(hit) Damagefunc1(hit,20,15) end) | |
2805 | con3=wingblade3.Touched:connect(function(hit) Damagefunc1(hit,20,15) end) | |
2806 | con4=wingblade4.Touched:connect(function(hit) Damagefunc1(hit,20,15) end) | |
2807 | con5=wingblade5.Touched:connect(function(hit) Damagefunc1(hit,20,15) end) | |
2808 | con6=wingblade6.Touched:connect(function(hit) Damagefunc1(hit,20,15) end) | |
2809 | for i = 0,1,0.1 do | |
2810 | wait() | |
2811 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57*i,0,1*i) | |
2812 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2813 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57*i,0,1*i) | |
2814 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2815 | end | |
2816 | wait(0.1) | |
2817 | for i = 0,1,0.1 do | |
2818 | wait() | |
2819 | ss(1.2) | |
2820 | wingweld1.C1 = CFrame.fromEulerAnglesXYZ(math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
2821 | wingweld2.C1 = CFrame.fromEulerAnglesXYZ(1+math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
2822 | wingweld3.C1 = CFrame.fromEulerAnglesXYZ(2+math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
2823 | wingweld4.C1 = CFrame.fromEulerAnglesXYZ(3+math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
2824 | wingweld5.C1 = CFrame.fromEulerAnglesXYZ(4+math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
2825 | wingweld6.C1 = CFrame.fromEulerAnglesXYZ(5+math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
2826 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,0,1-2*i) | |
2827 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2828 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,0,1-2*i) | |
2829 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2830 | end | |
2831 | wait(0.2) | |
2832 | for i = 0,1,0.1 do | |
2833 | wait() | |
2834 | LW.C0 = CFrame.new(-1.5+0.3*i,0.5,-0.3*i) * CFrame.fromEulerAnglesXYZ(1.57+0.43*i,0,-1+1.5*i) | |
2835 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2836 | RW.C0 = CFrame.new(1.5-0.5+0.2*i,0.5,-0.5+0.2*i) * CFrame.fromEulerAnglesXYZ(1.57+0.43*i,0,-1+0.5*i) | |
2837 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2838 | end | |
2839 | mana = mana - 20 | |
2840 | UltimaWeld.Parent = nil | |
2841 | wingvel2.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1 | |
2842 | wingvel2.velocity = Player.Character.Head.CFrame.lookVector * 70 | |
2843 | coroutine.resume(coroutine.create(function() | |
2844 | for i = 0,3,0.1 do | |
2845 | wait() | |
2846 | wingweld1.C1 = CFrame.fromEulerAnglesXYZ(math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
2847 | wingweld2.C1 = CFrame.fromEulerAnglesXYZ(1+math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
2848 | wingweld3.C1 = CFrame.fromEulerAnglesXYZ(2+math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
2849 | wingweld4.C1 = CFrame.fromEulerAnglesXYZ(3+math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
2850 | wingweld5.C1 = CFrame.fromEulerAnglesXYZ(4+math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
2851 | wingweld6.C1 = CFrame.fromEulerAnglesXYZ(5+math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
2852 | ss(1.2) | |
2853 | end | |
2854 | wingvel2.Parent = nil | |
2855 | UltimaPart.Parent = nil | |
2856 | WingBladeEffect(1,1,1,1,1,1) | |
2857 | wingblade1.Transparency = 1 | |
2858 | wingblade2.Transparency = 1 | |
2859 | wingblade3.Transparency = 1 | |
2860 | wingblade4.Transparency = 1 | |
2861 | wingblade5.Transparency = 1 | |
2862 | wingblade6.Transparency = 1 | |
2863 | wait(0.4) | |
2864 | con1:disconnect() | |
2865 | con2:disconnect() | |
2866 | con3:disconnect() | |
2867 | con4:disconnect() | |
2868 | con5:disconnect() | |
2869 | con6:disconnect() | |
2870 | WingBladeStance(true) | |
2871 | WingBladeEffect(1,1,1,1,1,1) | |
2872 | end)) | |
2873 | wait(0.1) | |
2874 | for i = 0,1,0.1 do | |
2875 | wait() | |
2876 | LW.C0 = CFrame.new(-1.5+0.3-0.3*i,0.5,-0.3+0.3*i) * CFrame.fromEulerAnglesXYZ(2-3*i,0,0.5-1*i) | |
2877 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2878 | RW.C0 = CFrame.new(1.5-0.3+0.3*i,0.5,-0.3+0.3*i) * CFrame.fromEulerAnglesXYZ(2-3*i,0,-0.5+1*i) | |
2879 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2880 | end | |
2881 | wait(0.5) | |
2882 | attack = false | |
2883 | end | |
2884 | end | |
2885 | ||
2886 | function SwordRage() | |
2887 | attack = true | |
2888 | SwordRaging = true | |
2889 | for i = 0,1,0.1 do | |
2890 | wait() | |
2891 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-2*i,0,0) | |
2892 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2893 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-3*i,0,0) | |
2894 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2895 | end | |
2896 | wingweld1.Parent = wingblade1 | |
2897 | wingweld1.Part0 = wingblade1 | |
2898 | wingweld1.Part1 = LeftArm | |
2899 | wingweld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0) * CFrame.new(0,3,0) | |
2900 | wingweld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
2901 | wingweld4.Parent = wingblade4 | |
2902 | wingweld4.Part0 = wingblade4 | |
2903 | wingweld4.Part1 = RightArm | |
2904 | wingweld4.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0) * CFrame.new(0,3,0) | |
2905 | wingweld4.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
2906 | con1=wingblade1.Touched:connect(function(hit) Damagefunc1(hit,20,5) end) | |
2907 | con4=wingblade4.Touched:connect(function(hit) Damagefunc1(hit,20,5) end) | |
2908 | ss(1.2) | |
2909 | for i = 0,1,0.2 do | |
2910 | wait() | |
2911 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(-2+4*i,0,0.5*i) | |
2912 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2913 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-2+3*i,0,0.5*i) | |
2914 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2915 | end | |
2916 | wait(0.1) | |
2917 | ss(1.2) | |
2918 | for i = 0,1,0.2 do | |
2919 | wait() | |
2920 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(-2+4-1*i,0,0.5-1*i) | |
2921 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2922 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(-2+3+1*i,0,0.5-1*i) | |
2923 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2924 | end | |
2925 | wait(0.05) | |
2926 | for i = 0,1,0.2 do | |
2927 | wait() | |
2928 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,-0.5-0.5*i) | |
2929 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2930 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(2-1*i,0,-0.5+1.5*i) | |
2931 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2932 | end | |
2933 | wait(0.1) | |
2934 | ss(1) | |
2935 | for i = 0,1,0.2 do | |
2936 | wait() | |
2937 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57*i,0,-1+1*i) | |
2938 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2939 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57*i,0,1-1*i) | |
2940 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2941 | end | |
2942 | wait(0.1) | |
2943 | WingBladeEffect(1,0,0,1,0,0) | |
2944 | wingblade1.Transparency = 1 | |
2945 | wingblade4.Transparency = 1 | |
2946 | con1:disconnect() | |
2947 | con4:disconnect() | |
2948 | for i = 0,1,0.1 do | |
2949 | wait() | |
2950 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-2.57*i,0,0) | |
2951 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2952 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-2.57*i,0,0) | |
2953 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2954 | end | |
2955 | wingweld2.Parent = wingblade2 | |
2956 | wingweld2.Part0 = wingblade2 | |
2957 | wingweld2.Part1 = LeftArm | |
2958 | wingweld2.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0) * CFrame.new(0,3,0) | |
2959 | wingweld2.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
2960 | wingweld5.Parent = wingblade5 | |
2961 | wingweld5.Part0 = wingblade5 | |
2962 | wingweld5.Part1 = RightArm | |
2963 | wingweld5.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0) * CFrame.new(0,3,0) | |
2964 | wingweld5.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
2965 | con2=wingblade2.Touched:connect(function(hit) Damagefunc1(hit,20,5) end) | |
2966 | con5=wingblade5.Touched:connect(function(hit) Damagefunc1(hit,20,5) end) | |
2967 | ss(1) | |
2968 | for i = 0,1,0.2 do | |
2969 | wait() | |
2970 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(-1+4*i,0,0.5*i) | |
2971 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2972 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(-1+4*i,0,-0.5*i) | |
2973 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2974 | end | |
2975 | ss(1) | |
2976 | for i = 0,1,0.2 do | |
2977 | wait() | |
2978 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(3-2.5*i,0,0.5-1*i) | |
2979 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2980 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(3-2.5*i,0,-0.5+1*i) | |
2981 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2982 | end | |
2983 | con2:disconnect() | |
2984 | con5:disconnect() | |
2985 | WingBladeEffect(0,1,0,0,1,0) | |
2986 | wingblade2.Transparency = 1 | |
2987 | wingblade5.Transparency = 1 | |
2988 | wait(0.05) | |
2989 | for i = 0,1,0.1 do | |
2990 | wait() | |
2991 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5-1*i,0,-0.5+0.5*i) | |
2992 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2993 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5-1*i,0,0.5-0.5*i) | |
2994 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2995 | end | |
2996 | wingweld3.Parent = wingblade3 | |
2997 | wingweld3.Part0 = wingblade3 | |
2998 | wingweld3.Part1 = LeftArm | |
2999 | wingweld3.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0) * CFrame.new(0,2,-0.5) | |
3000 | wingweld3.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
3001 | wingweld6.Parent = wingblade6 | |
3002 | wingweld6.Part0 = wingblade6 | |
3003 | wingweld6.Part1 = RightArm | |
3004 | wingweld6.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0) * CFrame.new(0,2,-0.5) | |
3005 | wingweld6.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
3006 | for i = 0,1,0.1 do | |
3007 | wait() | |
3008 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+2.07*i,-1.57*i,0) | |
3009 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1*i,0,0) | |
3010 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+2.07*i,1.57*i,0) | |
3011 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1*i,0,0) | |
3012 | end | |
3013 | wait(0.1) | |
3014 | con3=wingblade3.Touched:connect(function(hit) Damagefunc1(hit,20,5) end) | |
3015 | con6=wingblade6.Touched:connect(function(hit) Damagefunc1(hit,20,5) end) | |
3016 | ss(1) | |
3017 | for i = 0,1,0.2 do | |
3018 | wait() | |
3019 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(-0.5+2.07,-1.57,0) | |
3020 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1-1.5*i,0,0) | |
3021 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(-0.5+2.07,1.57,0) | |
3022 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1-1.5*i,0,0) | |
3023 | end | |
3024 | con3:disconnect() | |
3025 | con6:disconnect() | |
3026 | WingBladeEffect(0,0,1,0,0,1) | |
3027 | wingblade3.Transparency = 1 | |
3028 | wingblade6.Transparency = 1 | |
3029 | wait(0.1) | |
3030 | for i = 0,1,0.2 do | |
3031 | wait() | |
3032 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.57-1.57*i,-1.57+1.57*i,-0.5*i) | |
3033 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0) | |
3034 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.57-1.57*i,1.57-1.57*i,0.5*i) | |
3035 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0) | |
3036 | end | |
3037 | attack = false | |
3038 | end | |
3039 | ||
3040 | function SwordRageZ() | |
3041 | attack = true | |
3042 | WingBladeEffect(1,1,0,1,1,0) | |
3043 | wingblade1.Transparency = 0.4 | |
3044 | wingblade2.Transparency = 0.4 | |
3045 | wingblade4.Transparency = 0.4 | |
3046 | wingblade5.Transparency = 0.4 | |
3047 | wingweld1.Parent = wingblade1 | |
3048 | wingweld1.Part0 = wingblade1 | |
3049 | wingweld1.Part1 = LeftArm | |
3050 | wingweld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0) * CFrame.new(0,3,0.5) | |
3051 | wingweld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
3052 | wingweld4.Parent = wingblade4 | |
3053 | wingweld4.Part0 = wingblade4 | |
3054 | wingweld4.Part1 = RightArm | |
3055 | wingweld4.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0) * CFrame.new(0,3,0.5) | |
3056 | wingweld4.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
3057 | wingweld2.Parent = wingblade2 | |
3058 | wingweld2.Part0 = wingblade2 | |
3059 | wingweld2.Part1 = LeftArm | |
3060 | wingweld2.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0) * CFrame.new(0,3,-0.5) | |
3061 | wingweld2.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
3062 | wingweld5.Parent = wingblade5 | |
3063 | wingweld5.Part0 = wingblade5 | |
3064 | wingweld5.Part1 = RightArm | |
3065 | wingweld5.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0) * CFrame.new(0,3,-0.5) | |
3066 | wingweld5.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
3067 | for i = 0,1,0.1 do | |
3068 | wait() | |
3069 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2*i,0,-0.5) | |
3070 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3071 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2*i,0,0.5) | |
3072 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3073 | end | |
3074 | con1=wingblade1.Touched:connect(function(hit) Damagefunc1(hit,20,5) end) | |
3075 | con2=wingblade2.Touched:connect(function(hit) Damagefunc1(hit,20,5) end) | |
3076 | con4=wingblade4.Touched:connect(function(hit) Damagefunc1(hit,20,5) end) | |
3077 | con5=wingblade5.Touched:connect(function(hit) Damagefunc1(hit,20,5) end) | |
3078 | ss(1) | |
3079 | for i = 0,1,0.2 do | |
3080 | wait() | |
3081 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2-0.43*i,0,-0.5+1*i) | |
3082 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3083 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2-0.43*i,0,0.5-1*i) | |
3084 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3085 | end | |
3086 | ss(1) | |
3087 | for i = 0,1,0.2 do | |
3088 | wait() | |
3089 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,0,-0.5+1-0.5*i) | |
3090 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3091 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,0,0.5-1+0.5*i) | |
3092 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3093 | end | |
3094 | wait(0.1) | |
3095 | con1:disconnect() | |
3096 | con2:disconnect() | |
3097 | con4:disconnect() | |
3098 | con5:disconnect() | |
3099 | WingBladeEffect(1,1,0,1,1,0) | |
3100 | wingblade1.Transparency = 1 | |
3101 | wingblade2.Transparency = 1 | |
3102 | wingblade4.Transparency = 1 | |
3103 | wingblade5.Transparency = 1 | |
3104 | for i = 0,1,0.2 do | |
3105 | wait() | |
3106 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.57-1.57*i,0,-0.5+1-0.5-0.5*i) | |
3107 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3108 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.57-1.57*i,0,0.5-1+0.5+0.5*i) | |
3109 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3110 | end | |
3111 | attack = false | |
3112 | end | |
3113 | ||
3114 | function SwordRageX() | |
3115 | attack = true | |
3116 | WingBladeEffect(0,1,1,0,1,1) | |
3117 | wingblade3.Transparency = 0.4 | |
3118 | wingblade6.Transparency = 0.4 | |
3119 | wingblade2.Transparency = 0.4 | |
3120 | wingblade5.Transparency = 0.4 | |
3121 | wingweld2.Parent = wingblade2 | |
3122 | wingweld2.Part0 = wingblade2 | |
3123 | wingweld2.Part1 = LeftArm | |
3124 | wingweld2.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0) * CFrame.new(0,3,0) | |
3125 | wingweld2.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
3126 | wingweld3.Parent = wingblade3 | |
3127 | wingweld3.Part0 = wingblade3 | |
3128 | wingweld3.Part1 = LeftArm | |
3129 | wingweld3.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0) * CFrame.new(0,2,-0.5) | |
3130 | wingweld3.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
3131 | for i = 0,1,0.1 do | |
3132 | wait() | |
3133 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,-1.57*i,-0.5+0.5*i) | |
3134 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1*i,0,0) | |
3135 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0.5) | |
3136 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3137 | end | |
3138 | con2=wingblade2.Touched:connect(function(hit) Damagefunc1(hit,20,5) end) | |
3139 | con3=wingblade3.Touched:connect(function(hit) Damagefunc1(hit,20,5) end) | |
3140 | ss(1.2) | |
3141 | for i = 0,1,0.2 do | |
3142 | wait() | |
3143 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,-1.57,0) | |
3144 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1-2*i,0,0) | |
3145 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0.5) | |
3146 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3147 | end | |
3148 | wait(0.1) | |
3149 | WingBladeEffect(0,1,1,0,0,0) | |
3150 | wingblade3.Transparency = 1 | |
3151 | wingblade2.Transparency = 1 | |
3152 | con3:disconnect() | |
3153 | con2:disconnect() | |
3154 | for i = 0,1,0.1 do | |
3155 | wait() | |
3156 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.57-1.57*i,-1.57+1.57*i,-0.5*i) | |
3157 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1+1*i,0,0) | |
3158 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,1.57*i,0.5-0.5*i) | |
3159 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1*i,0,0) | |
3160 | end | |
3161 | con5=wingblade5.Touched:connect(function(hit) Damagefunc1(hit,20,5) end) | |
3162 | con6=wingblade6.Touched:connect(function(hit) Damagefunc1(hit,20,5) end) | |
3163 | ss(1.2) | |
3164 | for i = 0,1,0.2 do | |
3165 | wait() | |
3166 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,-0.5) | |
3167 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3168 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,1.57,0) | |
3169 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1-2*i,0,0) | |
3170 | end | |
3171 | wait(0.1) | |
3172 | WingBladeEffect(0,0,0,0,1,1) | |
3173 | wingblade6.Transparency = 1 | |
3174 | wingblade5.Transparency = 1 | |
3175 | con6:disconnect() | |
3176 | con5:disconnect() | |
3177 | for i = 0,1,0.2 do | |
3178 | wait() | |
3179 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,-0.5) | |
3180 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3181 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.57-1.57*i,1.57-1.57*i,0.5*i) | |
3182 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1+1*i,0,0) | |
3183 | end | |
3184 | attack = false | |
3185 | end | |
3186 | ||
3187 | function EndSwordRage() | |
3188 | attack = true | |
3189 | wait(0.1) | |
3190 | WingBladeStance(true) | |
3191 | WingBladeEffect(1,1,1,1,1,1) | |
3192 | for i = 0,1,0.2 do | |
3193 | wait() | |
3194 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,-0.5+0.5*i) | |
3195 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3196 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1*i,0,0.5-0.5*i) | |
3197 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3198 | end | |
3199 | attack = false | |
3200 | end | |
3201 | ||
3202 | function MagicBarrage() | |
3203 | attack = true | |
3204 | if element == "Light" then | |
3205 | for i = 0,1,0.1 do | |
3206 | wait() | |
3207 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(2*i,0,1*i) | |
3208 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3209 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0) | |
3210 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3211 | end | |
3212 | while barragehold == true and mana >= 0 do | |
3213 | wait(0.1) | |
3214 | mana = mana - math.random(0,10) | |
3215 | ss(1+math.random()) | |
3216 | LW.C0 = CFrame.new(-1.5+0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(1+math.random(),0,math.random(-1,0)+math.random()) | |
3217 | coroutine.resume(coroutine.create(function() | |
3218 | slasheffect(LeftArm.CFrame*CFrame.new(0,-3,0)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)),0,10,nil) | |
3219 | end)) | |
3220 | end | |
3221 | if mana <= 0 then | |
3222 | mana = 0 | |
3223 | end | |
3224 | else | |
3225 | for i = 0,1,0.1 do | |
3226 | wait() | |
3227 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0) | |
3228 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3229 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57*i,0,0) | |
3230 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3231 | end | |
3232 | local p = Instance.new("Part") | |
3233 | p.Parent = Character | |
3234 | p.Name = "TestBrick" | |
3235 | p.CFrame = RightArm.CFrame*CFrame.new(0,1,0) | |
3236 | p.CanCollide = false | |
3237 | p.Transparency = 1 | |
3238 | local pweld = Instance.new("Weld") | |
3239 | pweld.Parent = p | |
3240 | pweld.Part0 = p | |
3241 | pweld.Part1 = RightArm | |
3242 | pweld.C0 = CFrame.new(0,1,0) | |
3243 | coroutine.resume(coroutine.create(function() | |
3244 | while p.Parent ~= nil do | |
3245 | wait(0.05) | |
3246 | MMMAGIC(p,4,4,4,0,0,0,BrickColor.new("Black")) | |
3247 | EVENMOARMAGIX(p,3,3,3,0,0,0,math.random(-50,50),math.random(-50,50),math.random(-50,50),BrickColor.new("Black")) | |
3248 | MOREMAGIX(p,0,2,2,2,BrickColor.new("Black")) | |
3249 | end | |
3250 | end)) | |
3251 | DarkRiftF(p) | |
3252 | p.Parent = nil | |
3253 | end | |
3254 | attack = false | |
3255 | end | |
3256 | ||
3257 | function Regening() | |
3258 | attack = true | |
3259 | for i = 0,1,0.1 do | |
3260 | wait() | |
3261 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,-1.57*i) | |
3262 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3263 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57*i,0,1.57*i) | |
3264 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3265 | end | |
3266 | while regening == true do | |
3267 | wait(0.1) | |
3268 | DifferentEffect() | |
3269 | if mana >= 400 then | |
3270 | mana = 400 | |
3271 | else | |
3272 | Character.Humanoid.Health = Character.Humanoid.Health + 0.01 | |
3273 | mana = mana + 100 | |
3274 | end | |
3275 | end | |
3276 | attack = false | |
3277 | end | |
3278 | ||
3279 | function Ultima() | |
3280 | attack = true | |
3281 | if mana == 400 then | |
3282 | if Style == "MagicMayhem" then | |
3283 | print("LOLOL ECLIPSE TIEM") | |
3284 | for i = 0,1,0.05 do | |
3285 | wait() | |
3286 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57-0.5*i,3.14,0) * CFrame.new(0,0,-0.5) | |
3287 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,-1.57*i) | |
3288 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3289 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57*i,0,1.57*i) | |
3290 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3291 | end | |
3292 | for i = 0,2 do | |
3293 | wait(0.8) | |
3294 | magicsound(1) | |
3295 | MMMAGIC(LeftArm,5,5,5,0,-1,0,BrickColor.new("White")) | |
3296 | MMMAGIC(RightArm,5,5,5,0,-1,0,BrickColor.new("Black")) | |
3297 | end | |
3298 | for i = 0,1,0.1 do | |
3299 | wait() | |
3300 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57-0.5+0.5*i,3.14,0) * CFrame.new(0,0,-0.5) | |
3301 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57+2.17*i) | |
3302 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3303 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57-2.17*i) | |
3304 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3305 | end | |
3306 | Charge(0.4) | |
3307 | for i = 0,10,0.5 do | |
3308 | wait(0.1) | |
3309 | UltimaMMMAGIC(LeftArm,i,i,i,0,-1,0,BrickColor.new("White")) | |
3310 | UltimaMMMAGIC(RightArm,i,i,i,0,-1,0,BrickColor.new("Black")) | |
3311 | end | |
3312 | coroutine.resume(coroutine.create(function() | |
3313 | while Style == "MagicMayhem" do | |
3314 | wait(0.1) | |
3315 | UltimaMMMAGIC(LeftArm,10,10,10,0,-1,0,BrickColor.new("White")) | |
3316 | UltimaMMMAGIC(RightArm,10,10,10,0,-1,0,BrickColor.new("Black")) | |
3317 | end | |
3318 | end)) | |
3319 | for i = 0,1,0.2 do | |
3320 | wait() | |
3321 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57-0.5+0.5,3.14,0) * CFrame.new(0,0,-0.5) | |
3322 | LW.C0 = CFrame.new(-1.5+0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(1.57+0.5*i,0,-1.57+2.17) | |
3323 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3324 | RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(1.57+0.5*i,0,1.57-2.17) | |
3325 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3326 | end | |
3327 | wait(0.3) | |
3328 | for i = 0,1,0.2 do | |
3329 | wait() | |
3330 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57-0.5+0.5,3.14,0) * CFrame.new(0,0,-0.5) | |
3331 | LW.C0 = CFrame.new(-1.5+0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(1.57+0.5-1*i,0,-1.57+2.17) | |
3332 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3333 | RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(1.57+0.5-1*i,0,1.57-2.17) | |
3334 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3335 | end | |
3336 | mana = 400 | |
3337 | local c = game.Workspace:GetChildren(); | |
3338 | for i = 1, #c do | |
3339 | local hum = c[i]:findFirstChild("Humanoid") | |
3340 | if hum ~= nil and hum.Health ~= 0 then | |
3341 | local head = c[i]:findFirstChild("Head"); | |
3342 | if head ~= nil then | |
3343 | local targ = head.Position - Torso.Position; | |
3344 | local mag = targ.magnitude; | |
3345 | if mag <= 600 and c[i].Name ~= Player.Name then | |
3346 | UltimaMagicMayhemDamage(head,math.random(1000,2000)) | |
3347 | end | |
3348 | end | |
3349 | end | |
3350 | end | |
3351 | Style = "Normal" | |
3352 | MagicMayhemUltimaSounds() | |
3353 | for i = 0,9,0.2 do | |
3354 | wait() | |
3355 | MMMAGIC(Torso,90,90,90,0,0,0,BrickColor.new("White")) | |
3356 | MMMAGIC(Torso,90,90,90,0,0,0,BrickColor.new("Black")) | |
3357 | EVENMOARMAGIX(Torso,80,80,80,0,0,0,0,0,0,BrickColor.new("White")) | |
3358 | EVENMOARMAGIX(Torso,80,80,80,0,0,0,0,0,0,BrickColor.new("Black")) | |
3359 | WaveEffect(Torso,70,70,70,0,0,0,0,math.random(-50,50),0,BrickColor.new("White")) | |
3360 | WaveEffect(Torso,70,70,70,0,0,0,0,math.random(-50,50),0,BrickColor.new("Black")) | |
3361 | MMMAGIC(Torso,5,5,5,math.random(-35,35),0,math.random(-35,35),BrickColor.new("White")) | |
3362 | MMMAGIC(Torso,5,5,5,math.random(-35,35),0,math.random(-35,35),BrickColor.new("Black")) | |
3363 | end | |
3364 | coroutine.resume(coroutine.create(function() | |
3365 | local clone = Instance.new("Part") | |
3366 | clone.Parent = workspace | |
3367 | clone.CFrame = Torso.CFrame | |
3368 | clone.CanCollide = false | |
3369 | clone.Transparency = 1 | |
3370 | clone.Anchored = true | |
3371 | for i = 0,10,0.2 do | |
3372 | wait(0.1) | |
3373 | MMMAGIC(clone,1,1,1,math.random(-30,30),0,math.random(-30,30),BrickColor.new("White")) | |
3374 | MMMAGIC(clone,1,1,1,math.random(-30,30),0,math.random(-30,30),BrickColor.new("Black")) | |
3375 | end | |
3376 | clone.Parent = nil | |
3377 | end)) | |
3378 | elseif Style == "WingBlade" then | |
3379 | print("LOLOL MULTIVORTEX TIEM") | |
3380 | mana = 0 | |
3381 | coroutine.resume(coroutine.create(function() | |
3382 | while attack == true do | |
3383 | wait() | |
3384 | mana = 400 | |
3385 | end | |
3386 | end)) | |
3387 | Character.Humanoid.PlatformStand = true | |
3388 | con1=wingblade1.Touched:connect(function(hit) Damagefunc1(hit,30,15) end) | |
3389 | con2=wingblade2.Touched:connect(function(hit) Damagefunc1(hit,30,15) end) | |
3390 | con3=wingblade3.Touched:connect(function(hit) Damagefunc1(hit,30,15) end) | |
3391 | con4=wingblade4.Touched:connect(function(hit) Damagefunc1(hit,30,15) end) | |
3392 | con5=wingblade5.Touched:connect(function(hit) Damagefunc1(hit,30,15) end) | |
3393 | con6=wingblade6.Touched:connect(function(hit) Damagefunc1(hit,30,15) end) | |
3394 | original = Head.CFrame | |
3395 | bod = Instance.new("BodyPosition") | |
3396 | bod.position = Torso.Position | |
3397 | bod.Parent = Torso | |
3398 | bod.maxForce = Vector3.new(4e+080, 4e+080, 4e+080) | |
3399 | target = meh | |
3400 | --bod.position = target.Position | |
3401 | local b = Instance.new("BodyGyro") | |
3402 | b.P=18000 | |
3403 | b.D=600 | |
3404 | b.maxTorque=Vector3.new(80000,80000000,80000)*50000000000000000000000000 | |
3405 | b.Parent = Head | |
3406 | if target ~= nil then | |
3407 | local dir = (target.Position - Head.Position).unit | |
3408 | local spawnpos = Head.Position | |
3409 | local pos = spawnpos + (dir * 1) | |
3410 | b.cframe = CFrame.new(pos, pos + dir) | |
3411 | end | |
3412 | local UltimaPart = Instance.new("Part") | |
3413 | UltimaPart.Parent = modelzorz | |
3414 | UltimaPart.CanCollide = false | |
3415 | UltimaPart.Position = Torso.Position | |
3416 | UltimaPart.Transparency = 1 | |
3417 | local UltimaWeld = Instance.new("Weld") | |
3418 | UltimaWeld.Parent = UltimaPart | |
3419 | UltimaWeld.Part0 = UltimaPart | |
3420 | UltimaWeld.Part1 = Torso | |
3421 | UltimaWeld.C0 = CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3422 | UltimaWeld.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
3423 | WingBladeEffect(1,1,1,1,1,1) | |
3424 | wingblade1.Transparency = 1 | |
3425 | wingblade2.Transparency = 1 | |
3426 | wingblade3.Transparency = 1 | |
3427 | wingblade4.Transparency = 1 | |
3428 | wingblade5.Transparency = 1 | |
3429 | wingblade6.Transparency = 1 | |
3430 | wait(0.4) | |
3431 | wingblade1.Transparency = 0.4 | |
3432 | wingweld1.Parent = wingblade1 | |
3433 | wingweld1.Part0 = wingblade1 | |
3434 | wingweld1.Part1 = UltimaPart | |
3435 | wingweld1.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) | |
3436 | wingweld1.C1 = CFrame.fromEulerAnglesXYZ(0,math.rad(90),0) * CFrame.new(0,0,0) | |
3437 | wingblade2.Transparency = 0.4 | |
3438 | wingweld2.Parent = wingblade2 | |
3439 | wingweld2.Part0 = wingblade2 | |
3440 | wingweld2.Part1 = UltimaPart | |
3441 | wingweld2.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) | |
3442 | wingweld2.C1 = CFrame.fromEulerAnglesXYZ(1,math.rad(90),0) * CFrame.new(0,0,0) | |
3443 | wingblade3.Transparency = 0.4 | |
3444 | wingweld3.Parent = wingblade3 | |
3445 | wingweld3.Part0 = wingblade3 | |
3446 | wingweld3.Part1 = UltimaPart | |
3447 | wingweld3.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) | |
3448 | wingweld3.C1 = CFrame.fromEulerAnglesXYZ(2,math.rad(90),0) * CFrame.new(0,0,0) | |
3449 | wingblade4.Transparency = 0.4 | |
3450 | wingweld4.Parent = wingblade4 | |
3451 | wingweld4.Part0 = wingblade4 | |
3452 | wingweld4.Part1 = UltimaPart | |
3453 | wingweld4.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) | |
3454 | wingweld4.C1 = CFrame.fromEulerAnglesXYZ(3,math.rad(90),0) * CFrame.new(0,0,0) | |
3455 | wingblade5.Transparency = 0.4 | |
3456 | wingweld5.Parent = wingblade5 | |
3457 | wingweld5.Part0 = wingblade5 | |
3458 | wingweld5.Part1 = UltimaPart | |
3459 | wingweld5.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) | |
3460 | wingweld5.C1 = CFrame.fromEulerAnglesXYZ(4,math.rad(90),0) * CFrame.new(0,0,0) | |
3461 | wingblade6.Transparency = 0.4 | |
3462 | wingweld6.Parent = wingblade6 | |
3463 | wingweld6.Part0 = wingblade6 | |
3464 | wingweld6.Part1 = UltimaPart | |
3465 | wingweld6.C0 = CFrame.new(0,0,-4) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) | |
3466 | wingweld6.C1 = CFrame.fromEulerAnglesXYZ(5,math.rad(90),0) * CFrame.new(0,0,0) | |
3467 | WingBladeEffect(1,1,1,1,1,1) | |
3468 | for i = 0,1,0.1 do | |
3469 | wait() | |
3470 | bod.position = Torso.Position + Vector3.new(0,1,0) | |
3471 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,-0.5*i) | |
3472 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3473 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0.5*i) | |
3474 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3475 | end | |
3476 | target = meh | |
3477 | if target ~= nil then | |
3478 | bod.position = target.Position | |
3479 | local dir = (target.Position - Head.Position).unit | |
3480 | local spawnpos = Head.Position | |
3481 | local pos = spawnpos + (dir * 1) | |
3482 | b.cframe = CFrame.new(pos, pos + dir) | |
3483 | end | |
3484 | for i = 0,1,0.1 do | |
3485 | wait() | |
3486 | ss(1.2) | |
3487 | wingweld1.C1 = CFrame.fromEulerAnglesXYZ(math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3488 | wingweld2.C1 = CFrame.fromEulerAnglesXYZ(1+math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3489 | wingweld3.C1 = CFrame.fromEulerAnglesXYZ(2+math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3490 | wingweld4.C1 = CFrame.fromEulerAnglesXYZ(3+math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3491 | wingweld5.C1 = CFrame.fromEulerAnglesXYZ(4+math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3492 | wingweld6.C1 = CFrame.fromEulerAnglesXYZ(5+math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3493 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(0.5*i,0,-0.5+1*i) | |
3494 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3495 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0.5+1*i) | |
3496 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3497 | end | |
3498 | for i = 0,2 do | |
3499 | wait() | |
3500 | WingBladeEffect(1,1,1,1,1,1) | |
3501 | wingblade1.Transparency = 1 | |
3502 | wingblade2.Transparency = 1 | |
3503 | wingblade3.Transparency = 1 | |
3504 | wingblade4.Transparency = 1 | |
3505 | wingblade5.Transparency = 1 | |
3506 | wingblade6.Transparency = 1 | |
3507 | for i = 0,1,0.1 do | |
3508 | wait() | |
3509 | LW.C0 = CFrame.new(-1.5+0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(0.5+1.5*i,0,0.5) | |
3510 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3511 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+2.5*i,0,1.5-1*i) | |
3512 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3513 | end | |
3514 | UltimaWeld.C0 = CFrame.fromEulerAnglesXYZ(0,0,0.7) * CFrame.new(0,0,0) | |
3515 | UltimaWeld.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
3516 | WingBladeEffect(1,1,1,1,1,1) | |
3517 | target = meh | |
3518 | if target ~= nil then | |
3519 | bod.position = target.Position | |
3520 | local dir = (target.Position - Head.Position).unit | |
3521 | local spawnpos = Head.Position | |
3522 | local pos = spawnpos + (dir * 1) | |
3523 | b.cframe = CFrame.new(pos, pos + dir) | |
3524 | end | |
3525 | wingblade1.Transparency = 0.4 | |
3526 | wingblade2.Transparency = 0.4 | |
3527 | wingblade3.Transparency = 0.4 | |
3528 | wingblade4.Transparency = 0.4 | |
3529 | wingblade5.Transparency = 0.4 | |
3530 | wingblade6.Transparency = 0.4 | |
3531 | for i = 0,1,0.1 do | |
3532 | wait() | |
3533 | ss(1.4) | |
3534 | wingweld1.C1 = CFrame.fromEulerAnglesXYZ(-math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3535 | wingweld2.C1 = CFrame.fromEulerAnglesXYZ(1-math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3536 | wingweld3.C1 = CFrame.fromEulerAnglesXYZ(2-math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3537 | wingweld4.C1 = CFrame.fromEulerAnglesXYZ(3-math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3538 | wingweld5.C1 = CFrame.fromEulerAnglesXYZ(4-math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3539 | wingweld6.C1 = CFrame.fromEulerAnglesXYZ(5-math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3540 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(2-3*i,0,0.5-1*i) | |
3541 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3542 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(2-1.5*i,0,0.5-1*i) | |
3543 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3544 | end | |
3545 | WingBladeEffect(1,1,1,1,1,1) | |
3546 | wingblade1.Transparency = 1 | |
3547 | wingblade2.Transparency = 1 | |
3548 | wingblade3.Transparency = 1 | |
3549 | wingblade4.Transparency = 1 | |
3550 | wingblade5.Transparency = 1 | |
3551 | wingblade6.Transparency = 1 | |
3552 | for i = 0,1,0.1 do | |
3553 | wait() | |
3554 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1+2.57*i,0,-0.5) | |
3555 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3556 | RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(0.5+1.07*i,0,-0.5-0.5*i) | |
3557 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3558 | end | |
3559 | UltimaWeld.C0 = CFrame.fromEulerAnglesXYZ(0,0,1.57) * CFrame.new(0,0,0) | |
3560 | UltimaWeld.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
3561 | WingBladeEffect(1,1,1,1,1,1) | |
3562 | target = meh | |
3563 | if target ~= nil then | |
3564 | bod.position = target.Position | |
3565 | local dir = (target.Position - Head.Position).unit | |
3566 | local spawnpos = Head.Position | |
3567 | local pos = spawnpos + (dir * 1) | |
3568 | b.cframe = CFrame.new(pos, pos + dir) | |
3569 | end | |
3570 | wingblade1.Transparency = 0.4 | |
3571 | wingblade2.Transparency = 0.4 | |
3572 | wingblade3.Transparency = 0.4 | |
3573 | wingblade4.Transparency = 0.4 | |
3574 | wingblade5.Transparency = 0.4 | |
3575 | wingblade6.Transparency = 0.4 | |
3576 | for i = 0,1,0.1 do | |
3577 | wait() | |
3578 | ss(1) | |
3579 | wingweld1.C1 = CFrame.fromEulerAnglesXYZ(math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3580 | wingweld2.C1 = CFrame.fromEulerAnglesXYZ(1+math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3581 | wingweld3.C1 = CFrame.fromEulerAnglesXYZ(2+math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3582 | wingweld4.C1 = CFrame.fromEulerAnglesXYZ(3+math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3583 | wingweld5.C1 = CFrame.fromEulerAnglesXYZ(4+math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3584 | wingweld6.C1 = CFrame.fromEulerAnglesXYZ(5+math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3585 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,0,-0.5+1.5*i) | |
3586 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3587 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,0,-1+2*i) | |
3588 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3589 | end | |
3590 | WingBladeEffect(1,1,1,1,1,1) | |
3591 | wingblade1.Transparency = 1 | |
3592 | wingblade2.Transparency = 1 | |
3593 | wingblade3.Transparency = 1 | |
3594 | wingblade4.Transparency = 1 | |
3595 | wingblade5.Transparency = 1 | |
3596 | wingblade6.Transparency = 1 | |
3597 | for i = 0,1,0.1 do | |
3598 | wait() | |
3599 | LW.C0 = CFrame.new(-1.5+0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(1.57-0.57*i,0,1) | |
3600 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3601 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-0.57*i,0,1) | |
3602 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3603 | end | |
3604 | UltimaWeld.C0 = CFrame.fromEulerAnglesXYZ(0,0,2) * CFrame.new(0,0,0) | |
3605 | UltimaWeld.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
3606 | WingBladeEffect(1,1,1,1,1,1) | |
3607 | target = meh | |
3608 | if target ~= nil then | |
3609 | bod.position = target.Position | |
3610 | local dir = (target.Position - Head.Position).unit | |
3611 | local spawnpos = Head.Position | |
3612 | local pos = spawnpos + (dir * 1) | |
3613 | b.cframe = CFrame.new(pos, pos + dir) | |
3614 | end | |
3615 | wingblade1.Transparency = 0.4 | |
3616 | wingblade2.Transparency = 0.4 | |
3617 | wingblade3.Transparency = 0.4 | |
3618 | wingblade4.Transparency = 0.4 | |
3619 | wingblade5.Transparency = 0.4 | |
3620 | wingblade6.Transparency = 0.4 | |
3621 | for i = 0,1,0.1 do | |
3622 | wait() | |
3623 | ss(0.9) | |
3624 | wingweld1.C1 = CFrame.fromEulerAnglesXYZ(-math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3625 | wingweld2.C1 = CFrame.fromEulerAnglesXYZ(1-math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3626 | wingweld3.C1 = CFrame.fromEulerAnglesXYZ(2-math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3627 | wingweld4.C1 = CFrame.fromEulerAnglesXYZ(3-math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3628 | wingweld5.C1 = CFrame.fromEulerAnglesXYZ(4-math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3629 | wingweld6.C1 = CFrame.fromEulerAnglesXYZ(5-math.rad(360)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3630 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1+1*i,0,1-2*i) | |
3631 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3632 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1+1*i,0,1-2*i) | |
3633 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3634 | end | |
3635 | end | |
3636 | b.cframe = original | |
3637 | WingBladeEffect(1,1,1,1,1,1) | |
3638 | wingblade1.Transparency = 1 | |
3639 | wingblade2.Transparency = 1 | |
3640 | wingblade3.Transparency = 1 | |
3641 | wingblade4.Transparency = 1 | |
3642 | wingblade5.Transparency = 1 | |
3643 | wingblade6.Transparency = 1 | |
3644 | for i = 0,1,0.1 do | |
3645 | wait() | |
3646 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,0,1-2.57*i) | |
3647 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3648 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1+0.57*i) | |
3649 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3650 | end | |
3651 | UltimaWeld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0,0) | |
3652 | UltimaWeld.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
3653 | WingBladeEffect(1,1,1,1,1,1) | |
3654 | wait() | |
3655 | wingblade1.Transparency = 0.4 | |
3656 | wingblade2.Transparency = 0.4 | |
3657 | wingblade3.Transparency = 0.4 | |
3658 | wingblade4.Transparency = 0.4 | |
3659 | wingblade5.Transparency = 0.4 | |
3660 | wingblade6.Transparency = 0.4 | |
3661 | bod.position = Torso.Position + Vector3.new(0,10,0) | |
3662 | local msh1 = Instance.new("SpecialMesh") | |
3663 | msh1.Scale = Vector3.new(5,5,5) | |
3664 | msh1.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
3665 | S=Instance.new("Part") | |
3666 | S.Name="Effect" | |
3667 | S.formFactor=0 | |
3668 | S.Size=Vector3.new(15,15,15) | |
3669 | S.Reflectance = 0 | |
3670 | S.TopSurface=0 | |
3671 | S.BottomSurface=0 | |
3672 | S.Transparency=1 | |
3673 | S.Anchored=true | |
3674 | S.CanCollide=false | |
3675 | S.CFrame=Torso.CFrame | |
3676 | S.Parent=Character | |
3677 | msh1.Parent = S | |
3678 | if element == "Light" then | |
3679 | S.BrickColor=BrickColor.new("White") | |
3680 | elseif element == "Dark" then | |
3681 | S.BrickColor=BrickColor.new("Black") | |
3682 | end | |
3683 | bod.maxForce = Vector3.new(100000,100000,100000) | |
3684 | for i = 0,1,0.01 do | |
3685 | wait() | |
3686 | target = meh | |
3687 | if target ~= nil then | |
3688 | bod.position = target.Position | |
3689 | end | |
3690 | ss(0.9) | |
3691 | S.CFrame=Torso.CFrame*CFrame.fromEulerAnglesXYZ(0,math.rad(580)*i,0) | |
3692 | S.Transparency = S.Transparency - 0.005 | |
3693 | b.cframe = b.cframe * CFrame.fromEulerAnglesXYZ(0,math.rad(600)*i,0) | |
3694 | wingweld1.C1 = CFrame.fromEulerAnglesXYZ(-math.rad(600)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3695 | wingweld2.C1 = CFrame.fromEulerAnglesXYZ(1-math.rad(600)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3696 | wingweld3.C1 = CFrame.fromEulerAnglesXYZ(2-math.rad(600)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3697 | wingweld4.C1 = CFrame.fromEulerAnglesXYZ(3-math.rad(600)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3698 | wingweld5.C1 = CFrame.fromEulerAnglesXYZ(4-math.rad(600)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3699 | wingweld6.C1 = CFrame.fromEulerAnglesXYZ(5-math.rad(600)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3700 | end | |
3701 | for i = 0,1,0.005 do | |
3702 | wait() | |
3703 | target = meh | |
3704 | if target ~= nil then | |
3705 | bod.position = target.Position | |
3706 | end | |
3707 | ss(0.9) | |
3708 | S.CFrame=Torso.CFrame*CFrame.fromEulerAnglesXYZ(0,math.rad(580)*i,0) | |
3709 | S.Transparency = S.Transparency | |
3710 | b.cframe = b.cframe * CFrame.fromEulerAnglesXYZ(0,math.rad(600)*i,0) | |
3711 | wingweld1.C1 = CFrame.fromEulerAnglesXYZ(-math.rad(600)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3712 | wingweld2.C1 = CFrame.fromEulerAnglesXYZ(1-math.rad(600)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3713 | wingweld3.C1 = CFrame.fromEulerAnglesXYZ(2-math.rad(600)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3714 | wingweld4.C1 = CFrame.fromEulerAnglesXYZ(3-math.rad(600)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3715 | wingweld5.C1 = CFrame.fromEulerAnglesXYZ(4-math.rad(600)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3716 | wingweld6.C1 = CFrame.fromEulerAnglesXYZ(5-math.rad(600)*i,math.rad(90),0) * CFrame.new(0,0,0) | |
3717 | end | |
3718 | wait(0.5) | |
3719 | Character.Humanoid.PlatformStand = false | |
3720 | S.Parent = nil | |
3721 | con1:disconnect() | |
3722 | con2:disconnect() | |
3723 | con3:disconnect() | |
3724 | con4:disconnect() | |
3725 | con5:disconnect() | |
3726 | con6:disconnect() | |
3727 | bod.Parent = nil | |
3728 | b.Parent = nil | |
3729 | WingBladeEffect(1,1,1,1,1,1) | |
3730 | wingblade1.Parent = nil | |
3731 | wingblade2.Parent = nil | |
3732 | wingblade3.Parent = nil | |
3733 | wingblade4.Parent = nil | |
3734 | wingblade5.Parent = nil | |
3735 | wingblade6.Parent = nil | |
3736 | wait(0.2) | |
3737 | Style = "Normal" | |
3738 | equipanim() | |
3739 | --[[wingweld1.Parent = wingblade1 | |
3740 | wingweld1.Part0 = wingblade1 | |
3741 | wingweld1.Part1 = Torso | |
3742 | wingweld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(1,-0.5,-3.3) | |
3743 | wingweld1.C1 = CFrame.fromEulerAnglesXYZ(-0.5,-0.2,0) * CFrame.new(0,0,0) | |
3744 | wingweld2.Parent = wingblade2 | |
3745 | wingweld2.Part0 = wingblade2 | |
3746 | wingweld2.Part1 = Torso | |
3747 | wingweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(1,0,-3) | |
3748 | wingweld2.C1 = CFrame.fromEulerAnglesXYZ(0,-0.2,0) * CFrame.new(0,0,0) | |
3749 | wingweld3.Parent = wingblade3 | |
3750 | wingweld3.Part0 = wingblade3 | |
3751 | wingweld3.Part1 = Torso | |
3752 | wingweld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(1,0.5,-3.3) | |
3753 | wingweld3.C1 = CFrame.fromEulerAnglesXYZ(0.5,-0.2,0) * CFrame.new(0,0,0) | |
3754 | wingweld4.Parent = wingblade4 | |
3755 | wingweld4.Part0 = wingblade4 | |
3756 | wingweld4.Part1 = Torso | |
3757 | wingweld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,-math.rad(90)) * CFrame.new(-1,-0.5,-3.3) | |
3758 | wingweld4.C1 = CFrame.fromEulerAnglesXYZ(-0.5,0.2,0) * CFrame.new(0,0,0) | |
3759 | wingweld5.Parent = wingblade5 | |
3760 | wingweld5.Part0 = wingblade5 | |
3761 | wingweld5.Part1 = Torso | |
3762 | wingweld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,-math.rad(90)) * CFrame.new(-1,0,-3) | |
3763 | wingweld5.C1 = CFrame.fromEulerAnglesXYZ(0,0.2,0) * CFrame.new(0,0,0) | |
3764 | wingweld6.Parent = wingblade6 | |
3765 | wingweld6.Part0 = wingblade6 | |
3766 | wingweld6.Part1 = Torso | |
3767 | wingweld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,-math.rad(90)) * CFrame.new(-1,0.5,-3.3) | |
3768 | wingweld6.C1 = CFrame.fromEulerAnglesXYZ(0.5,0.2,0) * CFrame.new(0,0,0) | |
3769 | UltimaWeld.Parent = nil | |
3770 | WingBladeEffect(1,1,1,1,1,1) | |
3771 | wait() | |
3772 | wingblade1.Transparency = 0.4 | |
3773 | wingblade2.Transparency = 0.4 | |
3774 | wingblade3.Transparency = 0.4 | |
3775 | wingblade4.Transparency = 0.4 | |
3776 | wingblade5.Transparency = 0.4 | |
3777 | wingblade6.Transparency = 0.4 ]] | |
3778 | end | |
3779 | attack = false | |
3780 | end | |
3781 | end | |
3782 | ||
3783 | function ULTRAUltima() | |
3784 | attack = true | |
3785 | --if Style == "MagicMayhem" and mana >= 400 then | |
3786 | if Style == "MagicMayhem" then | |
3787 | local c = game.Workspace:GetChildren(); | |
3788 | for i = 1, #c do | |
3789 | local hum = c[i]:findFirstChild("Humanoid") | |
3790 | if hum ~= nil and hum.Health ~= 0 then | |
3791 | local head = c[i]:findFirstChild("Head"); | |
3792 | if head ~= nil then | |
3793 | local targ = head.Position - Torso.Position; | |
3794 | local mag = targ.magnitude; | |
3795 | if mag <= 60 and c[i].Name ~= Player.Name then | |
3796 | UltimaMagicMayhemDamage(head,math.random(200,500)) | |
3797 | end | |
3798 | end | |
3799 | end | |
3800 | end | |
3801 | Style = "Normal" | |
3802 | MagicMayhemUltimaSounds() | |
3803 | for i = 0,9,0.2 do | |
3804 | wait() | |
3805 | MMMAGIC(Torso,90,90,90,0,0,0,BrickColor.new("White")) | |
3806 | MMMAGIC(Torso,90,90,90,0,0,0,BrickColor.new("Black")) | |
3807 | EVENMOARMAGIX(Torso,80,80,80,0,0,0,0,0,0,BrickColor.new("White")) | |
3808 | EVENMOARMAGIX(Torso,80,80,80,0,0,0,0,0,0,BrickColor.new("Black")) | |
3809 | WaveEffect(Torso,70,70,70,0,0,0,0,math.random(-50,50),0,BrickColor.new("White")) | |
3810 | WaveEffect(Torso,70,70,70,0,0,0,0,math.random(-50,50),0,BrickColor.new("Black")) | |
3811 | MMMAGIC(Torso,5,5,5,math.random(-35,35),0,math.random(-35,35),BrickColor.new("White")) | |
3812 | MMMAGIC(Torso,5,5,5,math.random(-35,35),0,math.random(-35,35),BrickColor.new("Black")) | |
3813 | end | |
3814 | coroutine.resume(coroutine.create(function() | |
3815 | local clone = Instance.new("Part") | |
3816 | clone.Parent = workspace | |
3817 | clone.CFrame = Torso.CFrame | |
3818 | clone.CanCollide = false | |
3819 | clone.Transparency = 1 | |
3820 | clone.Anchored = true | |
3821 | for i = 0,10,0.2 do | |
3822 | wait(0.1) | |
3823 | MMMAGIC(clone,1,1,1,math.random(-30,30),0,math.random(-30,30),BrickColor.new("White")) | |
3824 | MMMAGIC(clone,1,1,1,math.random(-30,30),0,math.random(-30,30),BrickColor.new("Black")) | |
3825 | end | |
3826 | clone.Parent = nil | |
3827 | end)) | |
3828 | end | |
3829 | attack = false | |
3830 | end | |
3831 | ||
3832 | function WingBladeEffect(one,two,three,four,five,six) | |
3833 | if one == 1 then | |
3834 | EVENMOARMAGIX(wingblade1,3,3,3,0,0,0,math.rad(90),0,0,BrickColor.new("White")) | |
3835 | end | |
3836 | if two == 1 then | |
3837 | EVENMOARMAGIX(wingblade2,3,3,3,0,0,0,math.rad(90),0,0,BrickColor.new("White")) | |
3838 | end | |
3839 | if three == 1 then | |
3840 | EVENMOARMAGIX(wingblade3,3,3,3,0,0,0,math.rad(90),0,0,BrickColor.new("White")) | |
3841 | end | |
3842 | if four == 1 then | |
3843 | EVENMOARMAGIX(wingblade4,3,3,3,0,0,0,math.rad(90),0,0,BrickColor.new("White")) | |
3844 | end | |
3845 | if five == 1 then | |
3846 | EVENMOARMAGIX(wingblade5,3,3,3,0,0,0,math.rad(90),0,0,BrickColor.new("White")) | |
3847 | end | |
3848 | if six == 1 then | |
3849 | EVENMOARMAGIX(wingblade6,3,3,3,0,0,0,math.rad(90),0,0,BrickColor.new("White")) | |
3850 | end | |
3851 | end | |
3852 | ||
3853 | function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color) | |
3854 | local msh1 = Instance.new("BlockMesh") | |
3855 | msh1.Scale = Vector3.new(0.5,0.5,0.5) | |
3856 | S=Instance.new("Part") | |
3857 | S.Name="Effect" | |
3858 | S.formFactor=0 | |
3859 | S.Size=Vector3.new(x1,y1,z1) | |
3860 | S.BrickColor=color | |
3861 | S.Reflectance = 0 | |
3862 | S.TopSurface=0 | |
3863 | S.BottomSurface=0 | |
3864 | S.Transparency=0 | |
3865 | S.Anchored=true | |
3866 | S.CanCollide=false | |
3867 | S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
3868 | S.Parent=Character | |
3869 | msh1.Parent = S | |
3870 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
3871 | end | |
3872 | ||
3873 | function UltimaMMMAGIC(part,x1,y1,z1,x2,y2,z2,color) | |
3874 | local msh1 = Instance.new("BlockMesh") | |
3875 | msh1.Scale = Vector3.new(x1,y1,z1) | |
3876 | S=Instance.new("Part") | |
3877 | S.Name="Effect" | |
3878 | S.formFactor=0 | |
3879 | S.Size=Vector3.new(1,1,1) | |
3880 | S.BrickColor=color | |
3881 | S.Reflectance = 0 | |
3882 | S.TopSurface=0 | |
3883 | S.BottomSurface=0 | |
3884 | S.Transparency=0 | |
3885 | S.Anchored=true | |
3886 | S.CanCollide=false | |
3887 | S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
3888 | S.Parent=Character | |
3889 | msh1.Parent = S | |
3890 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
3891 | end | |
3892 | ||
3893 | function MOREMAGIX(part,cframe,x,y,z,color) | |
3894 | p2=Instance.new("Part") | |
3895 | p2.Name="Blast" | |
3896 | p2.TopSurface=0 | |
3897 | p2.BottomSurface=0 | |
3898 | p2.CanCollide=false | |
3899 | p2.Anchored=true | |
3900 | p2.BrickColor=color | |
3901 | p2.Size=Vector3.new(x,y,z) | |
3902 | p2.formFactor="Symmetric" | |
3903 | p2.CFrame=part.CFrame*CFrame.new(0,cframe,0) | |
3904 | p2.Parent=workspace | |
3905 | m=Instance.new("BlockMesh") | |
3906 | m.Parent=p2 | |
3907 | m.Name="BlastMesh" | |
3908 | coroutine.resume(coroutine.create(function(part,dir) for loll=1, 15 do part.BlastMesh.Scale=part.BlastMesh.Scale-Vector3.new(.09,.09,.09) part.Transparency=loll/20 part.CFrame=part.CFrame*CFrame.new(dir)*CFrame.fromEulerAnglesXYZ(math.random(-100,100)/100, math.random(-100,100)/100, math.random(-100,100)/100) wait() end part.Parent=nil end),p2,Vector3.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)) | |
3909 | end | |
3910 | ||
3911 | function EVENMOARMAGIX(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color) | |
3912 | local msh1 = Instance.new("SpecialMesh") | |
3913 | msh1.Scale = Vector3.new(0.5,0.5,0.5) | |
3914 | msh1.MeshType = "Sphere" | |
3915 | S=Instance.new("Part") | |
3916 | S.Name="Effect" | |
3917 | S.formFactor=0 | |
3918 | S.Size=Vector3.new(x1,y1,z1) | |
3919 | S.BrickColor=color | |
3920 | if Style == "WingBlade" and element == "Dark" then | |
3921 | S.BrickColor=BrickColor.new("Black") | |
3922 | end | |
3923 | S.Reflectance = 0 | |
3924 | S.TopSurface=0 | |
3925 | S.BottomSurface=0 | |
3926 | S.Transparency=0 | |
3927 | S.Anchored=true | |
3928 | S.CanCollide=false | |
3929 | S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3) | |
3930 | S.Parent=Character | |
3931 | msh1.Parent = S | |
3932 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
3933 | end | |
3934 | ||
3935 | function WaveEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color) | |
3936 | local msh1 = Instance.new("SpecialMesh") | |
3937 | msh1.Scale = Vector3.new(x1,y1,z1) | |
3938 | msh1.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
3939 | S=Instance.new("Part") | |
3940 | S.Name="Effect" | |
3941 | S.formFactor=0 | |
3942 | S.Size=Vector3.new(1,1,1) | |
3943 | S.BrickColor=color | |
3944 | S.Reflectance = 0 | |
3945 | S.TopSurface=0 | |
3946 | S.BottomSurface=0 | |
3947 | S.Transparency=0 | |
3948 | S.Anchored=true | |
3949 | S.CanCollide=false | |
3950 | S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3) | |
3951 | S.Parent=Character | |
3952 | msh1.Parent = S | |
3953 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
3954 | end | |
3955 | ||
3956 | function BlastEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color) | |
3957 | local msh1 = Instance.new("SpecialMesh") | |
3958 | msh1.Scale = Vector3.new(x1,y1,z1) | |
3959 | msh1.MeshId = "http://www.roblox.com/asset/?id=1323306" | |
3960 | S=Instance.new("Part") | |
3961 | S.Name="Effect" | |
3962 | S.formFactor=0 | |
3963 | S.Size=Vector3.new(1,1,1) | |
3964 | S.BrickColor=color | |
3965 | S.Reflectance = 0 | |
3966 | S.TopSurface=0 | |
3967 | S.BottomSurface=0 | |
3968 | S.Transparency=0 | |
3969 | S.Anchored=true | |
3970 | S.CanCollide=false | |
3971 | S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3) | |
3972 | S.Parent=Character | |
3973 | msh1.Parent = S | |
3974 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
3975 | end | |
3976 | ||
3977 | function DifferentEffect() | |
3978 | p=Instance.new("Part") | |
3979 | p.Name="FlameEm" | |
3980 | p.Shape=0 | |
3981 | p.TopSurface=0 | |
3982 | p.BottomSurface=0 | |
3983 | derp = math.random(1,2) | |
3984 | if derp == 1 then | |
3985 | p.BrickColor=BrickColor.new("White") | |
3986 | else | |
3987 | p.BrickColor=BrickColor.new("Black") | |
3988 | end | |
3989 | p.Anchored=true | |
3990 | p.CanCollide=false | |
3991 | p.Size=Vector3.new(1,1,1) | |
3992 | p.CFrame=CFrame.new(Character["Torso"].CFrame.p+Vector3.new(0,-3,0))+Vector3.new(math.random(-10,10)/3,0,math.random(-10,10)/3) | |
3993 | p.Parent=workspace | |
3994 | m=Instance.new("SpecialMesh") | |
3995 | m.MeshType="Sphere" | |
3996 | m.Parent=p | |
3997 | m.Scale=Vector3.new(1,1,1) | |
3998 | coroutine.resume(coroutine.create(function(p) for i=1, 9 do p.Mesh.Scale=p.Mesh.Scale+Vector3.new(0,1.5,0) p.Transparency=p.Transparency+1/9 wait(0) end p.Parent=nil end),p) | |
3999 | end | |
4000 | ||
4001 | function DashEf(P,color) | |
4002 | local m = Instance.new("Part") | |
4003 | m.Parent = workspace | |
4004 | m.BrickColor = color | |
4005 | m.Transparency = 0 | |
4006 | m.Anchored = true | |
4007 | m.CFrame = P | |
4008 | m.CanCollide = false | |
4009 | local me = Instance.new("SpecialMesh") | |
4010 | me.Parent = m | |
4011 | me.MeshType = "FileMesh" | |
4012 | me.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
4013 | me.Scale = Vector3.new(2.5,2.5,2.5) | |
4014 | coroutine.resume(coroutine.create(function(part,mesh) | |
4015 | for i = 0,5 do | |
4016 | wait(0.1) | |
4017 | part.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(0, math.random(0,2), 0) | |
4018 | mesh.Scale = mesh.Scale + Vector3.new(0.5,0.4,0.5) | |
4019 | part.Transparency = part.Transparency + 0.20 | |
4020 | end | |
4021 | m:Remove() | |
4022 | end),m,me) | |
4023 | end | |
4024 | ||
4025 | function slasheffect(cframe,waitin,size,efdam) | |
4026 | wait(waitin) | |
4027 | for l=1, 2 do | |
4028 | wait() | |
4029 | e=Instance.new("Part") | |
4030 | e.Name="SlashEffect" | |
4031 | e.TopSurface=0 | |
4032 | e.BottomSurface=0 | |
4033 | e.formFactor="Symmetric" | |
4034 | e.Size=Vector3.new(2,2,size) | |
4035 | e.Anchored=true | |
4036 | e.BrickColor=BrickColor.new("White") | |
4037 | e.Reflectance=0 | |
4038 | ||
4039 | e.CanCollide=false | |
4040 | m=Instance.new("SpecialMesh") | |
4041 | m.MeshType="Sphere" | |
4042 | m.Scale=Vector3.new(.25,.25,1) | |
4043 | m.Parent=e | |
4044 | e.CFrame = cframe | |
4045 | e.Parent=workspace | |
4046 | local c = game.Workspace:GetChildren(); | |
4047 | for i = 1, #c do | |
4048 | local hum = c[i]:findFirstChild("Humanoid") | |
4049 | if hum ~= nil and hum.Health ~= 0 then | |
4050 | local head = c[i]:findFirstChild("Head"); | |
4051 | if head ~= nil then | |
4052 | local targ = head.Position - e.Position; | |
4053 | local mag = targ.magnitude; | |
4054 | if mag <= 5 and c[i].Name ~= Player.Name then | |
4055 | Damagefunc1(head,5,1) | |
4056 | end | |
4057 | end | |
4058 | end | |
4059 | end | |
4060 | coroutine.resume(coroutine.create(function(m) for i=1, 9 do m.Transparency=i*.1 m.Mesh.Scale=m.Mesh.Scale-Vector3.new(.01,.01,.05)*2 wait() end m.Parent=nil coneffect:disconnect() end),e) | |
4061 | end | |
4062 | end | |
4063 | ||
4064 | DarkRiftF=function(par) --Thank you turdulator for this :D | |
4065 | while barragehold == true and mana >= 0 do | |
4066 | mana = mana - math.random(0,10) | |
4067 | PWN={} | |
4068 | for _,v in pairs(workspace:children()) do | |
4069 | if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then | |
4070 | if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then | |
4071 | if v~=Character and (v.Torso.Position-par.Position).magnitude<=25 then | |
4072 | table.insert(PWN,v.Torso) | |
4073 | end | |
4074 | end | |
4075 | end | |
4076 | end | |
4077 | for _,t in pairs(PWN) do | |
4078 | Mag=(par.Position-t.Position).magnitude/2 | |
4079 | t.Parent.Humanoid:TakeDamage(.6) | |
4080 | rl=Instance.new("BodyAngularVelocity") | |
4081 | rl.P=3000 | |
4082 | rl.maxTorque=Vector3.new(500000,500000,500000)*5000 | |
4083 | rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10 | |
4084 | rl.Parent=t | |
4085 | game:GetService("Debris"):AddItem(rl,.1) | |
4086 | if Mag<=2 then | |
4087 | if mana <= 400 then | |
4088 | mana = mana + math.random(0,10) | |
4089 | else | |
4090 | mana = 400 | |
4091 | end | |
4092 | t.Parent.Humanoid:TakeDamage(.3) | |
4093 | else | |
4094 | if mana <= 400 then | |
4095 | mana = mana + 1 | |
4096 | else | |
4097 | mana = 400 | |
4098 | end | |
4099 | vl=Instance.new("BodyVelocity") | |
4100 | vl.P=3000 | |
4101 | vl.maxForce=Vector3.new(50000000000,50000000000,50000000000) | |
4102 | vl.velocity=(t.Position-par.Position).unit*-(70/(Mag)) | |
4103 | vl.Parent=t | |
4104 | game:GetService("Debris"):AddItem(vl,.1) | |
4105 | end | |
4106 | end | |
4107 | wait(.08) | |
4108 | end | |
4109 | end | |
4110 | ||
4111 | function ss(pitch) | |
4112 | ||
4113 | local SlashSound = Instance.new("Sound") | |
4114 | --SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav" | |
4115 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209645" | |
4116 | SlashSound.Parent = workspace | |
4117 | SlashSound.Volume = .7 | |
4118 | SlashSound.Pitch = pitch | |
4119 | SlashSound.PlayOnRemove = true | |
4120 | coroutine.resume(coroutine.create(function() | |
4121 | wait(0) | |
4122 | SlashSound.Parent = nil | |
4123 | end)) | |
4124 | end | |
4125 | function critsound(pitch) | |
4126 | ||
4127 | local SlashSound = Instance.new("Sound") | |
4128 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2801263" | |
4129 | SlashSound.Parent = workspace | |
4130 | SlashSound.Volume = .7 | |
4131 | SlashSound.Pitch = pitch | |
4132 | SlashSound.PlayOnRemove = true | |
4133 | coroutine.resume(coroutine.create(function() | |
4134 | wait(0) | |
4135 | SlashSound.Parent = nil | |
4136 | end)) | |
4137 | end | |
4138 | function sheath(pitch) | |
4139 | ||
4140 | local SlashSound = Instance.new("Sound") | |
4141 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209850" | |
4142 | SlashSound.Parent = workspace | |
4143 | SlashSound.Volume = .7 | |
4144 | SlashSound.Pitch = pitch | |
4145 | SlashSound.PlayOnRemove = true | |
4146 | coroutine.resume(coroutine.create(function() | |
4147 | wait(0) | |
4148 | SlashSound.Parent = nil | |
4149 | end)) | |
4150 | end | |
4151 | function shieldbash(pitch) | |
4152 | ||
4153 | local SlashSound = Instance.new("Sound") | |
4154 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209583" | |
4155 | SlashSound.Parent = workspace | |
4156 | SlashSound.Volume = .7 | |
4157 | SlashSound.Pitch = pitch | |
4158 | SlashSound.PlayOnRemove = true | |
4159 | coroutine.resume(coroutine.create(function() | |
4160 | wait(0) | |
4161 | SlashSound.Parent = nil | |
4162 | end)) | |
4163 | end | |
4164 | function magicsound(pitch) | |
4165 | ||
4166 | local SlashSound = Instance.new("Sound") | |
4167 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511" | |
4168 | SlashSound.Parent = workspace | |
4169 | SlashSound.Volume = .5 | |
4170 | SlashSound.Pitch = pitch | |
4171 | SlashSound.PlayOnRemove = true | |
4172 | coroutine.resume(coroutine.create(function() | |
4173 | wait(0) | |
4174 | SlashSound.Parent = nil | |
4175 | end)) | |
4176 | end | |
4177 | function abscond(pitch) | |
4178 | ||
4179 | local SlashSound = Instance.new("Sound") | |
4180 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2767090" | |
4181 | SlashSound.Parent = workspace | |
4182 | SlashSound.Volume = 1 | |
4183 | SlashSound.Pitch = pitch | |
4184 | SlashSound.PlayOnRemove = true | |
4185 | coroutine.resume(coroutine.create(function() | |
4186 | wait(0) | |
4187 | SlashSound.Parent = nil | |
4188 | end)) | |
4189 | end | |
4190 | function Charge(pitch) | |
4191 | ||
4192 | local SlashSound = Instance.new("Sound") | |
4193 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137" | |
4194 | SlashSound.Parent = workspace | |
4195 | SlashSound.Volume = 1 | |
4196 | SlashSound.Pitch = pitch | |
4197 | SlashSound.PlayOnRemove = true | |
4198 | coroutine.resume(coroutine.create(function() | |
4199 | wait(0) | |
4200 | SlashSound.Parent = nil | |
4201 | end)) | |
4202 | end | |
4203 | function MagicMayhemUltimaSounds() | |
4204 | ||
4205 | local SlashSound = Instance.new("Sound") | |
4206 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=13775494" | |
4207 | SlashSound.Parent = workspace | |
4208 | SlashSound.Volume = 1 | |
4209 | SlashSound.Pitch = 0.1 | |
4210 | SlashSound.PlayOnRemove = true | |
4211 | coroutine.resume(coroutine.create(function() | |
4212 | wait(0) | |
4213 | SlashSound.Parent = nil | |
4214 | end)) | |
4215 | local SlashSound = Instance.new("Sound") | |
4216 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2691586" | |
4217 | SlashSound.Parent = workspace | |
4218 | SlashSound.Volume = 1 | |
4219 | SlashSound.Pitch = 0.2 | |
4220 | SlashSound.PlayOnRemove = true | |
4221 | coroutine.resume(coroutine.create(function() | |
4222 | wait(0) | |
4223 | SlashSound.Parent = nil | |
4224 | end)) | |
4225 | local SlashSound = Instance.new("Sound") | |
4226 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2691586" | |
4227 | SlashSound.Parent = workspace | |
4228 | SlashSound.Volume = 1 | |
4229 | SlashSound.Pitch = 0.05 | |
4230 | SlashSound.PlayOnRemove = true | |
4231 | coroutine.resume(coroutine.create(function() | |
4232 | wait(0) | |
4233 | SlashSound.Parent = nil | |
4234 | end)) | |
4235 | local SlashSound = Instance.new("Sound") | |
4236 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2801263" | |
4237 | SlashSound.Parent = workspace | |
4238 | SlashSound.Volume = 1 | |
4239 | SlashSound.Pitch = 0.05 | |
4240 | SlashSound.PlayOnRemove = true | |
4241 | coroutine.resume(coroutine.create(function() | |
4242 | wait(0) | |
4243 | SlashSound.Parent = nil | |
4244 | end)) | |
4245 | local SlashSound = Instance.new("Sound") | |
4246 | SlashSound.SoundId = "http://www.roblox.com/asset?id=1369158" | |
4247 | SlashSound.Parent = workspace | |
4248 | SlashSound.Volume = 1 | |
4249 | SlashSound.Pitch = 0.7 | |
4250 | SlashSound.PlayOnRemove = true | |
4251 | coroutine.resume(coroutine.create(function() | |
4252 | wait(0) | |
4253 | SlashSound.Parent = nil | |
4254 | end)) | |
4255 | local SlashSound = Instance.new("Sound") | |
4256 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2974000" | |
4257 | SlashSound.Parent = workspace | |
4258 | SlashSound.Volume = 1 | |
4259 | SlashSound.Pitch = 0.5 | |
4260 | SlashSound.PlayOnRemove = true | |
4261 | coroutine.resume(coroutine.create(function() | |
4262 | wait(0) | |
4263 | SlashSound.Parent = nil | |
4264 | end)) | |
4265 | local SlashSound = Instance.new("Sound") | |
4266 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2974249" | |
4267 | SlashSound.Parent = workspace | |
4268 | SlashSound.Volume = 1 | |
4269 | SlashSound.Pitch = 0.3 | |
4270 | SlashSound.PlayOnRemove = true | |
4271 | coroutine.resume(coroutine.create(function() | |
4272 | wait(0) | |
4273 | SlashSound.Parent = nil | |
4274 | end)) | |
4275 | end | |
4276 | ||
4277 | --[[function ss(pitch) -- No sound mode (for all those noobs who can't handle the earraep. Umad, noobs?) | |
4278 | ||
4279 | end | |
4280 | function critsound(pitch) | |
4281 | ||
4282 | end | |
4283 | function sheath(pitch) | |
4284 | ||
4285 | end | |
4286 | function shieldbash(pitch) | |
4287 | ||
4288 | end | |
4289 | function magicsound(pitch) | |
4290 | ||
4291 | end | |
4292 | function abscond(pitch) | |
4293 | ||
4294 | end | |
4295 | function Charge(pitch) | |
4296 | ||
4297 | end | |
4298 | function MagicMayhemUltimaSounds() | |
4299 | ||
4300 | end ]] | |
4301 | ||
4302 | Damagefunc1=function(hit,Damage,Knockback) | |
4303 | if attackdebounce == false then | |
4304 | attackdebounce = true | |
4305 | coroutine.resume(coroutine.create(function() | |
4306 | wait(0.1) | |
4307 | attackdebounce = false | |
4308 | end)) | |
4309 | if hit.Parent==nil then | |
4310 | return | |
4311 | end | |
4312 | CPlayer=Bin | |
4313 | h=hit.Parent:FindFirstChild("Humanoid") | |
4314 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
4315 | if mana < 400 then | |
4316 | mana = mana + math.random(5,15) | |
4317 | end | |
4318 | if mana > 400 then | |
4319 | mana = 400 | |
4320 | end | |
4321 | Damage=Damage | |
4322 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
4323 | return | |
4324 | end]] | |
4325 | c=Instance.new("ObjectValue") | |
4326 | c.Name="creator" | |
4327 | c.Value=game.Players.LocalPlayer | |
4328 | c.Parent=h | |
4329 | game:GetService("Debris"):AddItem(c,.5) | |
4330 | -- print(c.Value) | |
4331 | if math.random(0,99)+math.random()<=7.8 then | |
4332 | CRIT=true | |
4333 | Damage=Damage*3 | |
4334 | --[[ Knockback=Knockback*2 | |
4335 | r=Instance.new("BodyAngularVelocity") | |
4336 | r.P=3000 | |
4337 | r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000 | |
4338 | r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
4339 | r.Parent=hit.Parent.Torso]] | |
4340 | critsound(2) | |
4341 | ||
4342 | end | |
4343 | Damage=Damage+math.random(0,10) | |
4344 | -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2)) | |
4345 | h:TakeDamage(Damage) | |
4346 | showDamage(hit.Parent,Damage,.5) | |
4347 | vp=Instance.new("BodyVelocity") | |
4348 | vp.P=500 | |
4349 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
4350 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
4351 | vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05 | |
4352 | if Knockback>0 then | |
4353 | vp.Parent=hit.Parent.Torso | |
4354 | end | |
4355 | game:GetService("Debris"):AddItem(vp,.25) | |
4356 | --[[ r=Instance.new("BodyAngularVelocity") | |
4357 | r.P=3000 | |
4358 | r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000 | |
4359 | r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
4360 | r.Parent=hit.Parent.Torso]] | |
4361 | game:GetService("Debris"):AddItem(r,.5) | |
4362 | c=Instance.new("ObjectValue") | |
4363 | c.Name="creator" | |
4364 | c.Value=Player | |
4365 | c.Parent=h | |
4366 | game:GetService("Debris"):AddItem(c,.5) | |
4367 | CRIT=false | |
4368 | hitDeb=true | |
4369 | AttackPos=6 | |
4370 | end | |
4371 | end | |
4372 | end | |
4373 | ||
4374 | Damagefunc2=function(hit,Damage,Knockback) | |
4375 | if attackdebounce == false then | |
4376 | attackdebounce = true | |
4377 | coroutine.resume(coroutine.create(function() | |
4378 | wait(0.1) | |
4379 | attackdebounce = false | |
4380 | end)) | |
4381 | if hit.Parent==nil then | |
4382 | return | |
4383 | end | |
4384 | CPlayer=Bin | |
4385 | h=hit.Parent:FindFirstChild("Humanoid") | |
4386 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
4387 | if mana < 400 then | |
4388 | mana = mana + math.random(5,15) | |
4389 | end | |
4390 | if mana > 400 then | |
4391 | mana = 400 | |
4392 | end | |
4393 | Damage=Damage | |
4394 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
4395 | return | |
4396 | end]] | |
4397 | c=Instance.new("ObjectValue") | |
4398 | c.Name="creator" | |
4399 | c.Value=game.Players.LocalPlayer | |
4400 | c.Parent=h | |
4401 | game:GetService("Debris"):AddItem(c,.5) | |
4402 | -- print(c.Value) | |
4403 | if math.random(0,99)+math.random()<=7.8 then | |
4404 | CRIT=true | |
4405 | Damage=Damage*3 | |
4406 | --[[ Knockback=Knockback*2 | |
4407 | r=Instance.new("BodyAngularVelocity") | |
4408 | r.P=3000 | |
4409 | r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000 | |
4410 | r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
4411 | r.Parent=hit.Parent.Torso]] | |
4412 | critsound(2) | |
4413 | ||
4414 | end | |
4415 | Damage=Damage+math.random(0,10) | |
4416 | -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2)) | |
4417 | h:TakeDamage(Damage) | |
4418 | showDamage(hit.Parent,Damage,.5) | |
4419 | vl=Instance.new("BodyVelocity") | |
4420 | vl.P=4500 | |
4421 | vl.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
4422 | -- vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,30,0) | |
4423 | vl.velocity=Head.CFrame.lookVector*Knockback+Head.Velocity/1.05 | |
4424 | if Knockback>0 then | |
4425 | vl.Parent=hit.Parent.Torso | |
4426 | end | |
4427 | game:GetService("Debris"):AddItem(vl,.2) | |
4428 | rl=Instance.new("BodyAngularVelocity") | |
4429 | rl.P=3000 | |
4430 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
4431 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
4432 | if Knockback>0 then | |
4433 | rl.Parent=hit.Parent.Torso | |
4434 | end | |
4435 | game:GetService("Debris"):AddItem(rl,.2) | |
4436 | c=Instance.new("ObjectValue") | |
4437 | c.Name="creator" | |
4438 | c.Value=Player | |
4439 | c.Parent=h | |
4440 | game:GetService("Debris"):AddItem(c,.5) | |
4441 | CRIT=false | |
4442 | hitDeb=true | |
4443 | AttackPos=6 | |
4444 | end | |
4445 | end | |
4446 | end | |
4447 | ||
4448 | ||
4449 | Bash=function(hit,Damage) --credits to turdulator for making this function :D | |
4450 | if attackdebounce == false then | |
4451 | attackdebounce = true | |
4452 | coroutine.resume(coroutine.create(function() | |
4453 | wait(0.1) | |
4454 | attackdebounce = false | |
4455 | end)) | |
4456 | if hit.Parent==nil then | |
4457 | return | |
4458 | end | |
4459 | h=hit.Parent:FindFirstChild("Humanoid") | |
4460 | t=hit.Parent:FindFirstChild("Torso") | |
4461 | if h~=nil and t~=nil then | |
4462 | if h.Parent==Character then | |
4463 | return | |
4464 | end | |
4465 | if mana < 400 then | |
4466 | mana = mana + math.random(5,15) | |
4467 | end | |
4468 | if mana > 400 then | |
4469 | mana = 400 | |
4470 | end | |
4471 | shieldbash(1) | |
4472 | if math.random(0,99)+math.random()<=7.8 then | |
4473 | CRIT=true | |
4474 | Damage=Damage*3 | |
4475 | --[[ Knockback=Knockback*2 | |
4476 | r=Instance.new("BodyAngularVelocity") | |
4477 | r.P=3000 | |
4478 | r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000 | |
4479 | r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
4480 | r.Parent=hit.Parent.Torso]] | |
4481 | critsound(2) | |
4482 | ||
4483 | end | |
4484 | h:TakeDamage(Damage) | |
4485 | showDamage(hit.Parent,Damage,.5) | |
4486 | vl=Instance.new("BodyVelocity") | |
4487 | vl.P=4500 | |
4488 | vl.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
4489 | -- vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,30,0) | |
4490 | vl.velocity=Head.CFrame.lookVector*35+Head.Velocity/1.05 | |
4491 | vl.Parent=t | |
4492 | game:GetService("Debris"):AddItem(vl,.2) | |
4493 | rl=Instance.new("BodyAngularVelocity") | |
4494 | rl.P=3000 | |
4495 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
4496 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
4497 | rl.Parent=t | |
4498 | game:GetService("Debris"):AddItem(rl,.2) | |
4499 | else | |
4500 | if hit.CanCollide==false then | |
4501 | return | |
4502 | end | |
4503 | MagicCom:disconnect() | |
4504 | -- DBExplode(DB) | |
4505 | end | |
4506 | end | |
4507 | end | |
4508 | ||
4509 | UpBlast=function(hit,Damage) --credits to turdulator for making this function :D | |
4510 | if hit.Parent==nil then | |
4511 | return | |
4512 | end | |
4513 | h=hit.Parent:FindFirstChild("Humanoid") | |
4514 | t=hit.Parent:FindFirstChild("Torso") | |
4515 | if h~=nil and t~=nil then | |
4516 | if h.Parent==Character then | |
4517 | return | |
4518 | end | |
4519 | if mana < 400 then | |
4520 | mana = mana + math.random(10,20) | |
4521 | end | |
4522 | if mana > 400 then | |
4523 | mana = 400 | |
4524 | end | |
4525 | if math.random(0,99)+math.random()<=7.8 then | |
4526 | CRIT=true | |
4527 | Damage=Damage*3 | |
4528 | --[[ Knockback=Knockback*2 | |
4529 | r=Instance.new("BodyAngularVelocity") | |
4530 | r.P=3000 | |
4531 | r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000 | |
4532 | r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
4533 | r.Parent=hit.Parent.Torso]] | |
4534 | critsound(2) | |
4535 | ||
4536 | end | |
4537 | h:TakeDamage(Damage) | |
4538 | showDamage(hit.Parent,Damage,.5) | |
4539 | vl=Instance.new("BodyVelocity") | |
4540 | vl.P=4500 | |
4541 | vl.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
4542 | -- vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,3,0) | |
4543 | vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,45,0) | |
4544 | vl.Parent=t | |
4545 | game:GetService("Debris"):AddItem(vl,.2) | |
4546 | rl=Instance.new("BodyAngularVelocity") | |
4547 | rl.P=3000 | |
4548 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
4549 | -- rl.angularvelocity=Vector3.new(math.random(-40,40),math.random(-40,40),math.random(-40,40)) | |
4550 | local tes = math.random(1,2) | |
4551 | if tes == 1 then | |
4552 | rl.angularvelocity=Vector3.new(0,0,math.random(-40,40)) | |
4553 | elseif tes == 2 then | |
4554 | rl.angularvelocity=Vector3.new(math.random(-40,40),0,0) | |
4555 | end | |
4556 | rl.Parent=t | |
4557 | game:GetService("Debris"):AddItem(rl,.2) | |
4558 | else | |
4559 | if hit.CanCollide==false then | |
4560 | return | |
4561 | end | |
4562 | MagicCom:disconnect() | |
4563 | -- DBExplode(DB) | |
4564 | end | |
4565 | end | |
4566 | ||
4567 | UltimaMagicMayhemDamage=function(hit,Damage) --credits to turdulator for making this function :D | |
4568 | if hit.Parent==nil then | |
4569 | return | |
4570 | end | |
4571 | h=hit.Parent:FindFirstChild("Humanoid") | |
4572 | t=hit.Parent:FindFirstChild("Torso") | |
4573 | if h~=nil and t~=nil then | |
4574 | if h.Parent==Character then | |
4575 | return | |
4576 | end | |
4577 | if math.random(0,99)+math.random()<=7.8 then | |
4578 | CRIT=true | |
4579 | Damage=Damage*10 | |
4580 | --[[ Knockback=Knockback*2 | |
4581 | r=Instance.new("BodyAngularVelocity") | |
4582 | r.P=3000 | |
4583 | r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000 | |
4584 | r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
4585 | r.Parent=hit.Parent.Torso]] | |
4586 | critsound(2) | |
4587 | ||
4588 | end | |
4589 | h:TakeDamage(Damage) | |
4590 | showDamage(hit.Parent,Damage,.5) | |
4591 | vl=Instance.new("BodyVelocity") | |
4592 | vl.P=4500 | |
4593 | vl.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
4594 | -- vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,3,0) | |
4595 | vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,600,0) | |
4596 | vl.Parent=t | |
4597 | game:GetService("Debris"):AddItem(vl,.2) | |
4598 | rl=Instance.new("BodyAngularVelocity") | |
4599 | rl.P=3000 | |
4600 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
4601 | -- rl.angularvelocity=Vector3.new(math.random(-40,40),math.random(-40,40),math.random(-40,40)) | |
4602 | local tes = math.random(1,2) | |
4603 | if tes == 1 then | |
4604 | rl.angularvelocity=Vector3.new(0,0,math.random(-40,40)) | |
4605 | elseif tes == 2 then | |
4606 | rl.angularvelocity=Vector3.new(math.random(-40,40),0,0) | |
4607 | end | |
4608 | rl.Parent=t | |
4609 | game:GetService("Debris"):AddItem(rl,.2) | |
4610 | else | |
4611 | if hit.CanCollide==false then | |
4612 | return | |
4613 | end | |
4614 | MagicCom:disconnect() | |
4615 | -- DBExplode(DB) | |
4616 | end | |
4617 | end | |
4618 | ||
4619 | showDamage=function(Char,Dealt,du) | |
4620 | m=Instance.new("Model") | |
4621 | m.Name=tostring(Dealt) | |
4622 | h=Instance.new("Humanoid") | |
4623 | h.Health=0 | |
4624 | h.MaxHealth=0 | |
4625 | h.Parent=m | |
4626 | c=Instance.new("Part") | |
4627 | c.Transparency=0 | |
4628 | c.BrickColor=BrickColor:Red() | |
4629 | if CRIT==true then | |
4630 | c.BrickColor=BrickColor.new("Really red") | |
4631 | end | |
4632 | c.Name="Head" | |
4633 | c.TopSurface=0 | |
4634 | c.BottomSurface=0 | |
4635 | c.formFactor="Plate" | |
4636 | c.Size=Vector3.new(1,.4,1) | |
4637 | ms=Instance.new("CylinderMesh") | |
4638 | ms.Bevel=.1 | |
4639 | ms.Scale=Vector3.new(.8,.8,.8) | |
4640 | if CRIT==true then | |
4641 | ms.Scale=Vector3.new(1.25,1.5,1.25) | |
4642 | ms.Bevel=.2 | |
4643 | end | |
4644 | ms.Parent=c | |
4645 | c.Reflectance=0 | |
4646 | Instance.new("BodyGyro").Parent=c | |
4647 | c.Parent=m | |
4648 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
4649 | f=Instance.new("BodyPosition") | |
4650 | f.P=2000 | |
4651 | f.D=100 | |
4652 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
4653 | f.position=c.Position+Vector3.new(0,3,0) | |
4654 | f.Parent=c | |
4655 | game:GetService("Debris"):AddItem(m,.5+du) | |
4656 | c.CanCollide=false | |
4657 | m.Parent=workspace | |
4658 | c.CanCollide=false | |
4659 | end | |
4660 | ||
4661 | hold = false | |
4662 | ||
4663 | function ob1d(mouse) | |
4664 | if guarding == true then | |
4665 | if bashing == true then return end | |
4666 | Bashem() | |
4667 | return | |
4668 | end | |
4669 | if attack == true then return end | |
4670 | hold = true | |
4671 | if Style == "Normal" then | |
4672 | if mode == "Normal" then | |
4673 | if combo == 0 then | |
4674 | onehit() | |
4675 | coroutine.resume(coroutine.create(function() | |
4676 | wait(0.5) | |
4677 | if attack == false then | |
4678 | combo = 0 | |
4679 | for i = 0,1,0.2 do | |
4680 | wait(0) | |
4681 | LW.C0 = CFrame.new(-1.5,0.5,-1+1*i) * CFrame.fromEulerAnglesXYZ(1.3-1.3*i,1.57-1.57*i,0) | |
4682 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4683 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-1.5+1.5*i,0,0) | |
4684 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4685 | end | |
4686 | end | |
4687 | end)) | |
4688 | elseif combo == 1 then | |
4689 | twohit() | |
4690 | coroutine.resume(coroutine.create(function() | |
4691 | wait(0.5) | |
4692 | if attack == false then | |
4693 | combo = 0 | |
4694 | for i = 0,1,0.2 do | |
4695 | wait() | |
4696 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5-0.5*i,0,0) | |
4697 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4698 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-1.5+1.5*i,0,0) | |
4699 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4700 | end | |
4701 | end | |
4702 | end)) | |
4703 | elseif combo == 2 then | |
4704 | threehit() | |
4705 | coroutine.resume(coroutine.create(function() | |
4706 | wait(0.5) | |
4707 | if attack == false then | |
4708 | combo = 0 | |
4709 | for i = 0,1,0.2 do | |
4710 | wait() | |
4711 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3*i,3.14,0) * CFrame.new(0,0,-0.5) | |
4712 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(0.5+1,-1.57,0) | |
4713 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.5-2.2*i,0,0) | |
4714 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2+0.5*i,1*i,0) | |
4715 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4716 | end | |
4717 | sheath(2.25) | |
4718 | wait(0.05) | |
4719 | weld1.Part0 = part1 | |
4720 | weld1.Part1 = prt1 | |
4721 | weld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.7,0.2) | |
4722 | weld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
4723 | wait(0.1) | |
4724 | for i = 0,1,0.1 do | |
4725 | wait() | |
4726 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3-0.3*i,3.14,0) * CFrame.new(0,0,-0.5) | |
4727 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.5-1.5*i,-1.57+1.57*i,0) | |
4728 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.7+0.7*i,0,0) | |
4729 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2+0.5,1-1*i,0) | |
4730 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4731 | end | |
4732 | end | |
4733 | end)) | |
4734 | elseif combo == 3 then | |
4735 | fourhit() | |
4736 | coroutine.resume(coroutine.create(function() | |
4737 | wait(0.5) | |
4738 | if attack == false then | |
4739 | combo = 0 | |
4740 | for i = 0,1,0.2 do | |
4741 | wait() | |
4742 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3*i,3.14,0) * CFrame.new(0,0,-0.5) | |
4743 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.5*i,-1.57*i,0) | |
4744 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.7*i,0,0) | |
4745 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2+0.5*i,1*i,0) | |
4746 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4747 | end | |
4748 | sheath(2.25) | |
4749 | wait(0.05) | |
4750 | weld1.Part0 = part1 | |
4751 | weld1.Part1 = prt1 | |
4752 | weld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.7,0.2) | |
4753 | weld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
4754 | wait(0.1) | |
4755 | for i = 0,1,0.1 do | |
4756 | wait() | |
4757 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3-0.3*i,3.14,0) * CFrame.new(0,0,-0.5) | |
4758 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.5-1.5*i,-1.57+1.57*i,0) | |
4759 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.7+0.7*i,0,0) | |
4760 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2+0.5,1-1*i,0) | |
4761 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4762 | end | |
4763 | end | |
4764 | end)) | |
4765 | elseif combo == 4 then | |
4766 | fivehit() | |
4767 | coroutine.resume(coroutine.create(function() | |
4768 | wait(0.5) | |
4769 | if attack == false then | |
4770 | combo = 0 | |
4771 | attack = true | |
4772 | gairo.Parent = nil | |
4773 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5) | |
4774 | for i = 0,1,0.1 do | |
4775 | wait() | |
4776 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3*i,3.14,-0.5+0.5*i) * CFrame.new(0,0,-0.5) | |
4777 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.5*i,-1.57*i,0) | |
4778 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.7*i,0,0) | |
4779 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2+1.37-0.87*i,1*i,1-1*i) | |
4780 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4781 | end | |
4782 | --[[LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.5*i,-1.57*i,0) | |
4783 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.7*i,0,0) | |
4784 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2+0.5*i,1*i,0) | |
4785 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) ]] | |
4786 | sheath(2.25) | |
4787 | wait(0.05) | |
4788 | weld1.Part0 = part1 | |
4789 | weld1.Part1 = prt1 | |
4790 | weld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.7,0.2) | |
4791 | weld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
4792 | wait(0.1) | |
4793 | for i = 0,1,0.1 do | |
4794 | wait() | |
4795 | Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3-0.3*i,3.14,0) * CFrame.new(0,0,-0.5) | |
4796 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.5-1.5*i,-1.57+1.57*i,0) | |
4797 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.7+0.7*i,0,0) | |
4798 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2+0.5,1-1*i,0) | |
4799 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4800 | end | |
4801 | attack = false | |
4802 | end | |
4803 | end)) | |
4804 | end | |
4805 | elseif mode == "Attack" then | |
4806 | if combo == 0 then | |
4807 | oneslash() | |
4808 | coroutine.resume(coroutine.create(function() | |
4809 | wait(0.5) | |
4810 | if attack == false then | |
4811 | combo = 0 | |
4812 | for i = 0,1,0.1 do | |
4813 | wait(0) | |
4814 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3-3*i,0,0) | |
4815 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4816 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-1.5+1.5*i,0,0) | |
4817 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4818 | end | |
4819 | end | |
4820 | end)) | |
4821 | elseif combo == 1 then | |
4822 | twoslash() | |
4823 | coroutine.resume(coroutine.create(function() | |
4824 | wait(0.5) | |
4825 | if attack == false then | |
4826 | combo = 0 | |
4827 | for i = 0,1,0.1 do | |
4828 | wait(0) | |
4829 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3-1.43-1.57*i,0,1.57-1.57*i) | |
4830 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(3-3*i,1.57-1.57*i,0) | |
4831 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-1.5+1.5*i,0,0) | |
4832 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4833 | end | |
4834 | end | |
4835 | end)) | |
4836 | elseif combo == 2 then | |
4837 | threeslash() | |
4838 | coroutine.resume(coroutine.create(function() | |
4839 | wait(0.5) | |
4840 | if attack == false then | |
4841 | combo = 0 | |
4842 | for i = 0,1,0.1 do | |
4843 | wait(0) | |
4844 | weld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90)+math.rad(90)-math.rad(90)*i,0,math.rad(90)-math.rad(90)+math.rad(90)*i) * CFrame.new(0,1,0) | |
4845 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(2.07-2.07*i,0,3.57-3.57*i) | |
4846 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(4-4*i,3.57-3.57*i,0) | |
4847 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-1.5+1.5*i,0,0) | |
4848 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4849 | end | |
4850 | end | |
4851 | end)) | |
4852 | elseif combo == 3 then | |
4853 | fourslash() | |
4854 | coroutine.resume(coroutine.create(function() | |
4855 | wait(0.5) | |
4856 | if attack == false then | |
4857 | combo = 0 | |
4858 | for i = 0,1,0.1 do | |
4859 | wait(0) | |
4860 | LW.C0 = CFrame.new(-1.5,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.57-1.57*i,0,1.57-1.57*i) | |
4861 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(3-3*i,1.57-1.57*i,0) | |
4862 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-1.5+1.5*i,0,0) | |
4863 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4864 | end | |
4865 | end | |
4866 | end)) | |
4867 | end | |
4868 | end | |
4869 | elseif Style == "MagicMayhem" then | |
4870 | if combo == 0 then | |
4871 | castone() | |
4872 | coroutine.resume(coroutine.create(function() | |
4873 | wait(0.5) | |
4874 | if attack == false then | |
4875 | combo = 0 | |
4876 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4877 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4878 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0) | |
4879 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4880 | end | |
4881 | end)) | |
4882 | elseif combo == 1 then | |
4883 | casttwo() | |
4884 | coroutine.resume(coroutine.create(function() | |
4885 | wait(0.5) | |
4886 | if attack == false then | |
4887 | combo = 0 | |
4888 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4889 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4890 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0) | |
4891 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4892 | end | |
4893 | end)) | |
4894 | elseif combo == 2 then | |
4895 | castthree() | |
4896 | coroutine.resume(coroutine.create(function() | |
4897 | wait(0.5) | |
4898 | if attack == false then | |
4899 | combo = 0 | |
4900 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4901 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4902 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0) | |
4903 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4904 | end | |
4905 | end)) | |
4906 | end | |
4907 | --[[castone() | |
4908 | casttwo() | |
4909 | castthree() ]] | |
4910 | elseif Style == "WingBlade" then | |
4911 | if combo == 0 then | |
4912 | combo = 1 | |
4913 | wingbladeslashone() | |
4914 | coroutine.resume(coroutine.create(function() | |
4915 | wait(0.5) | |
4916 | if attack == false then | |
4917 | combo = 0 | |
4918 | WingBladeEffect(0,1,0,0,1,0) | |
4919 | WingBladeEffect(0,0,0,0,0,0) | |
4920 | wingblade2.Transparency = 0.4 | |
4921 | wingblade5.Transparency = 0.4 | |
4922 | for i = 0,1,0.1 do | |
4923 | wait(0) | |
4924 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1+1*i,0,-0.5+0.5*i) | |
4925 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4926 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1+2*i,0,0.5-0.5*i) | |
4927 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4928 | end | |
4929 | end | |
4930 | end)) | |
4931 | elseif combo == 1 then | |
4932 | combo = 2 | |
4933 | wingbladeslashtwo() | |
4934 | coroutine.resume(coroutine.create(function() | |
4935 | wait(0.5) | |
4936 | if attack == false then | |
4937 | combo = 0 | |
4938 | wait(0.3) | |
4939 | WingBladeEffect(0,1,1,0,1,1) | |
4940 | wingblade2.Transparency = 0.4 | |
4941 | wingblade5.Transparency = 0.4 | |
4942 | wingblade3.Transparency = 0.4 | |
4943 | wingblade6.Transparency = 0.4 | |
4944 | for i = 0,1,0.1 do | |
4945 | wait(0) | |
4946 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0) | |
4947 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4948 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(2-2*i,0,-1+1*i) | |
4949 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4950 | end | |
4951 | end | |
4952 | end)) | |
4953 | elseif combo == 2 then | |
4954 | combo = 3 | |
4955 | wingbladeslashthree() | |
4956 | coroutine.resume(coroutine.create(function() | |
4957 | wait(0.5) | |
4958 | if attack == false then | |
4959 | combo = 0 | |
4960 | WingBladeEffect(1,1,1,1,1,1) | |
4961 | wingblade2.Transparency = 0.4 | |
4962 | wingblade5.Transparency = 0.4 | |
4963 | wingblade3.Transparency = 0.4 | |
4964 | wingblade6.Transparency = 0.4 | |
4965 | wingblade1.Transparency = 0.4 | |
4966 | wingblade4.Transparency = 0.4 | |
4967 | for i = 0,1,0.1 do | |
4968 | wait() | |
4969 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.57*i,0,-2+2*i) | |
4970 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4971 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.57*i,0,2-2*i) | |
4972 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4973 | end | |
4974 | end | |
4975 | end)) | |
4976 | elseif combo == 3 then | |
4977 | combo = 4 | |
4978 | wingbladeslashfour() | |
4979 | coroutine.resume(coroutine.create(function() | |
4980 | wait(0.5) | |
4981 | if attack == false then | |
4982 | combo = 0 | |
4983 | WingBladeEffect(1,1,1,1,1,1) | |
4984 | wingblade2.Transparency = 0.4 | |
4985 | wingblade5.Transparency = 0.4 | |
4986 | wingblade3.Transparency = 0.4 | |
4987 | wingblade6.Transparency = 0.4 | |
4988 | wingblade1.Transparency = 0.4 | |
4989 | wingblade4.Transparency = 0.4 | |
4990 | for i = 0,1,0.1 do | |
4991 | wait() | |
4992 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.57*i,0,-2+2*i) | |
4993 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4994 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.57-1.57*i,0,-0.86+0.86*i) | |
4995 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
4996 | end | |
4997 | end | |
4998 | end)) | |
4999 | end | |
5000 | wait(1.5) | |
5001 | --[[wingblade1.Transparency = 0.4 | |
5002 | wingblade3.Transparency = 0.4 | |
5003 | wingblade4.Transparency = 0.4 | |
5004 | wingblade6.Transparency = 0.4 ]] | |
5005 | end | |
5006 | end | |
5007 | ||
5008 | function ob1u(mouse) | |
5009 | hold = false | |
5010 | end | |
5011 | ||
5012 | buttonhold = false | |
5013 | ||
5014 | function key(key) | |
5015 | if attack == true then return end | |
5016 | if Style == "Normal" then | |
5017 | if key == "q" then | |
5018 | changeequipleft() | |
5019 | end | |
5020 | if key == "e" then | |
5021 | changeequipright() | |
5022 | end | |
5023 | if key == "h" then | |
5024 | if mana >= 200 then | |
5025 | mana = 400 | |
5026 | StyleChange() | |
5027 | end | |
5028 | end | |
5029 | if key == "z" then | |
5030 | holddash = true | |
5031 | ShieldDash() | |
5032 | end | |
5033 | if mode == "Normal" then | |
5034 | if key == "x" then | |
5035 | MegaHit() | |
5036 | end | |
5037 | elseif mode == "Attack" then | |
5038 | if key == "x" then | |
5039 | ArsSolum() | |
5040 | end | |
5041 | end | |
5042 | end | |
5043 | if Style == "WingBlade" then | |
5044 | if key == "z" and SwordRaging == true then | |
5045 | SwordRageZ() | |
5046 | coroutine.resume(coroutine.create(function() | |
5047 | wait(0.5) | |
5048 | if attack == false then | |
5049 | SwordRaging = false | |
5050 | EndSwordRage() | |
5051 | end | |
5052 | end)) | |
5053 | end | |
5054 | if key == "x" and SwordRaging == true then | |
5055 | SwordRageX() | |
5056 | coroutine.resume(coroutine.create(function() | |
5057 | wait(0.5) | |
5058 | if attack == false then | |
5059 | SwordRaging = false | |
5060 | EndSwordRage() | |
5061 | end | |
5062 | end)) | |
5063 | end | |
5064 | if key == "c" and SwordRaging == true then | |
5065 | SwordRageC() | |
5066 | coroutine.resume(coroutine.create(function() | |
5067 | wait(0.5) | |
5068 | if attack == false then | |
5069 | SwordRaging = false | |
5070 | EndSwordRage() | |
5071 | end | |
5072 | end)) | |
5073 | end | |
5074 | if SwordRaging == false then | |
5075 | if key == "z" then | |
5076 | SwordRaid() | |
5077 | end | |
5078 | if key == "x" then | |
5079 | SwordRage() | |
5080 | coroutine.resume(coroutine.create(function() | |
5081 | wait(0.5) | |
5082 | if attack == false then | |
5083 | SwordRaging = false | |
5084 | EndSwordRage() | |
5085 | end | |
5086 | end)) | |
5087 | end | |
5088 | end | |
5089 | end | |
5090 | if Style == "MagicMayhem" then | |
5091 | if combo == 0 then | |
5092 | if key == "z" then | |
5093 | barragehold = true | |
5094 | MagicBarrage() | |
5095 | end | |
5096 | if key == "x" then | |
5097 | regening = true | |
5098 | Regening() | |
5099 | end | |
5100 | end | |
5101 | if key == "z" then | |
5102 | if combo == 1 then | |
5103 | castfour() | |
5104 | end | |
5105 | end | |
5106 | if key == "x" then | |
5107 | if combo == 1 then | |
5108 | casttwo() | |
5109 | end | |
5110 | end | |
5111 | if key == "c" then | |
5112 | if combo == 1 then | |
5113 | castfive() | |
5114 | end | |
5115 | end | |
5116 | end | |
5117 | if key == "f" then | |
5118 | if Style ~= "WingBlade" then | |
5119 | guard() | |
5120 | end | |
5121 | end | |
5122 | if key == "g" then | |
5123 | ChangeElement() | |
5124 | end | |
5125 | if key == "j" and Style ~= "Normal" then | |
5126 | Ultima() | |
5127 | --ULTRAUltima() | |
5128 | end | |
5129 | if key == "k" then | |
5130 | if Style == "WingBlade" then | |
5131 | wingblade1.Parent = nil | |
5132 | wingblade2.Parent = nil | |
5133 | wingblade3.Parent = nil | |
5134 | wingblade4.Parent = nil | |
5135 | wingblade5.Parent = nil | |
5136 | wingblade6.Parent = nil | |
5137 | equipweld() | |
5138 | end | |
5139 | Style = "Normal" | |
5140 | end | |
5141 | end | |
5142 | ||
5143 | function key2(key) | |
5144 | if key == "f" then | |
5145 | guarding = false | |
5146 | end | |
5147 | if key == "z" then | |
5148 | holddash = false | |
5149 | barragehold = false | |
5150 | end | |
5151 | if key == "x" then | |
5152 | regening = false | |
5153 | end | |
5154 | end | |
5155 | ||
5156 | function s(mouse) | |
5157 | mouse.Button1Down:connect(function() ob1d(mouse) end) | |
5158 | mouse.Button1Up:connect(function() ob1u(mouse) end) | |
5159 | mouse.KeyDown:connect(key) | |
5160 | mouse.KeyUp:connect(key2) | |
5161 | player = Player | |
5162 | ch = Character | |
5163 | RSH = ch.Torso["Right Shoulder"] | |
5164 | LSH = ch.Torso["Left Shoulder"] | |
5165 | -- | |
5166 | RW.Part0 = ch.Torso | |
5167 | RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
5168 | RW.C1 = CFrame.new(0, 0.5, 0) | |
5169 | RW.Part1 = ch["Right Arm"] | |
5170 | RW.Parent = ch.Torso | |
5171 | --_G.R = RW | |
5172 | -- | |
5173 | LW.Part0 = ch.Torso | |
5174 | LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
5175 | LW.C1 = CFrame.new(0, 0.5, 0) | |
5176 | LW.Part1 = ch["Left Arm"] | |
5177 | LW.Parent = ch.Torso | |
5178 | --_G.L = LW | |
5179 | -- | |
5180 | equipanim() | |
5181 | end | |
5182 | ||
5183 | function ds(mouse) | |
5184 | hideanim() | |
5185 | RW.Parent = nil | |
5186 | LW.Parent = nil | |
5187 | RSH.Parent = player.Character.Torso | |
5188 | LSH.Parent = player.Character.Torso | |
5189 | end | |
5190 | ||
5191 | Bin.Selected:connect(s) | |
5192 | Bin.Deselected:connect(ds) | |
5193 | ||
5194 | function onRunning(speed) | |
5195 | if attack == true then return end | |
5196 | if speed>0 then | |
5197 | walking = true | |
5198 | for i = 0,1,0.2 do | |
5199 | wait(0) | |
5200 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.8*i,0,0) | |
5201 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
5202 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-0.8*i,0,0) | |
5203 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
5204 | end | |
5205 | else | |
5206 | walking = false | |
5207 | for i = 0,1,0.1 do | |
5208 | wait(0) | |
5209 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.8+0.8*i,0,0) | |
5210 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
5211 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1-0.8+0.8*i,0,0) | |
5212 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
5213 | end | |
5214 | ||
5215 | end | |
5216 | end | |
5217 | Character.Humanoid.Running:connect(onRunning) | |
5218 | ||
5219 | while true do | |
5220 | wait(0) | |
5221 | fentext3.Size = UDim2.new(mana*0.007,0,0.200000006,0) | |
5222 | fentext.Text = "Mana("..mana..")" | |
5223 | if element == "Light" then | |
5224 | fentext3.BackgroundColor3 = Color3.new(1,1,1) | |
5225 | elseif element == "Dark" then | |
5226 | fentext3.BackgroundColor3 = Color3.new(0,0,0) | |
5227 | end | |
5228 | if Style == "WingBlade" then | |
5229 | wait(0.1) | |
5230 | coroutine.resume(coroutine.create(function() | |
5231 | if idleanimdelay == false and SwordRaging == false then | |
5232 | idleanimdelay = true | |
5233 | for i = 0,math.random(10,25),0.1 do | |
5234 | wait() | |
5235 | if attack == false and SwordRaging == false then | |
5236 | willidleanim = true | |
5237 | else | |
5238 | willidleanim = false | |
5239 | end | |
5240 | end | |
5241 | if willidleanim == true then | |
5242 | idleanim() | |
5243 | end | |
5244 | idleanimdelay = false | |
5245 | end | |
5246 | end)) | |
5247 | meh = findNearestTorso(Character.Torso.Position) | |
5248 | local target = findNearestTorso(Character.Torso.Position) | |
5249 | if element == "Light" then | |
5250 | wingblade1.BrickColor = BrickColor.new("White") | |
5251 | wingblade2.BrickColor = BrickColor.new("White") | |
5252 | wingblade3.BrickColor = BrickColor.new("White") | |
5253 | wingblade4.BrickColor = BrickColor.new("White") | |
5254 | wingblade5.BrickColor = BrickColor.new("White") | |
5255 | wingblade6.BrickColor = BrickColor.new("White") | |
5256 | elseif element == "Dark" then | |
5257 | wingblade1.BrickColor = BrickColor.new("Black") | |
5258 | wingblade2.BrickColor = BrickColor.new("Black") | |
5259 | wingblade3.BrickColor = BrickColor.new("Black") | |
5260 | wingblade4.BrickColor = BrickColor.new("Black") | |
5261 | wingblade5.BrickColor = BrickColor.new("Black") | |
5262 | wingblade6.BrickColor = BrickColor.new("Black") | |
5263 | end | |
5264 | end | |
5265 | end |