SHOW:
|
|
- or go back to the newest paste.
1 | - | --Your name is there EvilRusticKing |
1 | + | --Your name is there mikee112 |
2 | - | Player = game:GetService("Players").EvilRusticKing |
2 | + | Player = game:GetService("Players").mikee112 |
3 | Character = Player.Character | |
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 | attack = false | |
17 | attacktype = 1 | |
18 | mindamage = 10 | |
19 | maxdamage = 50 | |
20 | crtmaxdamage = 100 | |
21 | omindamage = 10 | |
22 | omaxdamage = 50 | |
23 | ocrtmaxdamage = 100 | |
24 | crtrate = 12 | |
25 | ssh = false | |
26 | atktypez = 1 | |
27 | Hitdeb = 0 | |
28 | --player | |
29 | player = nil | |
30 | --save shoulders | |
31 | RSH, LSH , RHL, LHL = nil, nil , nil , nil | |
32 | --welds | |
33 | RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld") | |
34 | --what anim | |
35 | anim = "none" | |
36 | --other var | |
37 | player = Player | |
38 | ch = Character | |
39 | aa = false | |
40 | AoETrue = {} | |
41 | function RWFunc() | |
42 | ||
43 | RSH = ch.Torso["Right Shoulder"] | |
44 | RW.Part0 = ch.Torso | |
45 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
46 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
47 | RW.Part1 = ch["Right Arm"] | |
48 | RW.Parent = ch.Torso | |
49 | ||
50 | end | |
51 | function LWFunc() | |
52 | LSH = ch.Torso["Left Shoulder"] | |
53 | LW.Part0 = ch.Torso | |
54 | LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
55 | LW.C1 = CFrame.new(0, 0.5, 0) | |
56 | LW.Part1 = ch["Left Arm"] | |
57 | LW.Parent = ch.Torso | |
58 | end | |
59 | function RWLFunc() | |
60 | ||
61 | RHL = ch.Torso["Right Hip"] | |
62 | RWL.Part0 = ch.Torso | |
63 | RWL.C0 = CFrame.new(1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
64 | RWL.C1 = CFrame.new(0.5, 1, 0) | |
65 | RWL.Part1 = ch["Right Leg"] | |
66 | RWL.Parent = ch.Torso | |
67 | ||
68 | end | |
69 | function LWLFunc() | |
70 | LHL = ch.Torso["Left Hip"] | |
71 | LWL.Part0 = ch.Torso | |
72 | LWL.C0 = CFrame.new(-1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
73 | LWL.C1 = CFrame.new(-0.5, 1, 0) | |
74 | LWL.Part1 = ch["Left Leg"] | |
75 | LWL.Parent = ch.Torso | |
76 | end | |
77 | function RWLRem() | |
78 | RWL.Parent = nil | |
79 | RHL.Parent = player.Character.Torso | |
80 | end | |
81 | function LWLRem() | |
82 | LWL.Parent = nil | |
83 | LHL.Parent = player.Character.Torso | |
84 | end | |
85 | function LegsFix() | |
86 | coroutine.resume(coroutine.create(function() | |
87 | wait(0.2) | |
88 | RWL.Parent = nil | |
89 | LWL.Parent = nil | |
90 | wait() | |
91 | LHL.Parent = player.Character.Torso | |
92 | RHL.Parent = player.Character.Torso | |
93 | end)) | |
94 | end | |
95 | function RWRem() | |
96 | RW.Parent = nil | |
97 | RSH.Parent = player.Character.Torso | |
98 | end | |
99 | function LWRem() | |
100 | LW.Parent = nil | |
101 | LSH.Parent = player.Character.Torso | |
102 | end | |
103 | if Character:findFirstChild("SoulEater",true) ~= nil then | |
104 | Character:findFirstChild("SoulEater",true).Parent = nil | |
105 | end | |
106 | if Character:findFirstChild("Weapon",true) ~= nil then | |
107 | Character:findFirstChild("Weapon",true).Parent = nil | |
108 | end | |
109 | local swordholder = Instance.new("Model") | |
110 | swordholder.Name = "SoulEater" | |
111 | swordholder.Parent = Character | |
112 | bladecolor = BrickColor.new("Really red") | |
113 | handlecolor = BrickColor.new("Really black") | |
114 | local msh1 = Instance.new("CylinderMesh") | |
115 | msh1.Scale = Vector3.new(0.2,3,0.2) | |
116 | msh1.Offset = Vector3.new(0,0.5,0) | |
117 | local msh2 = Instance.new("BlockMesh") | |
118 | msh2.Scale = Vector3.new(0.1,0.9125,0.5) | |
119 | msh2.Offset = Vector3.new(0,-0.2,0) | |
120 | local msh3 = Instance.new("SpecialMesh") | |
121 | msh3.Scale = Vector3.new(0.1,0.25,0.25) | |
122 | msh3.MeshType = "Wedge" | |
123 | local msh4 = Instance.new("SpecialMesh") | |
124 | msh4.Scale = Vector3.new(0.1,0.25,0.25) | |
125 | msh4.MeshType = "Wedge" | |
126 | local msh5 = Instance.new("SpecialMesh") | |
127 | msh5.Scale = Vector3.new(0.251,0.75,0.5) | |
128 | msh5.MeshType = "Sphere" | |
129 | local msh6 = Instance.new("SpecialMesh") | |
130 | msh6.Scale = Vector3.new(0.275,0.65,0.45) | |
131 | msh6.MeshType = "Sphere" | |
132 | local msh7 = Instance.new("SpecialMesh") | |
133 | msh7.Scale = Vector3.new(0.1,0.25,0.1) | |
134 | msh7.MeshType = "Wedge" | |
135 | local msh8 = Instance.new("SpecialMesh") | |
136 | msh8.Scale = Vector3.new(0.1,0.25,0.1) | |
137 | msh8.MeshType = "Wedge" | |
138 | local msh9 = Instance.new("SpecialMesh") | |
139 | msh9.Scale = Vector3.new(0.1,0.125,0.1) | |
140 | msh9.MeshType = "Wedge" | |
141 | local msh10 = Instance.new("SpecialMesh") | |
142 | msh10.Scale = Vector3.new(0.1,0.125,0.1) | |
143 | msh10.MeshType = "Wedge" | |
144 | local msh11 = Instance.new("SpecialMesh") | |
145 | msh11.Scale = Vector3.new(0.1,0.125,0.1) | |
146 | msh11.MeshType = "Wedge" | |
147 | local msh12 = Instance.new("SpecialMesh") | |
148 | msh12.Scale = Vector3.new(0.1,0.125,0.1) | |
149 | msh12.MeshType = "Wedge" | |
150 | local msh13 = Instance.new("SpecialMesh") | |
151 | msh13.Scale = Vector3.new(0.1,0.125,0.1) | |
152 | msh13.MeshType = "Wedge" | |
153 | local msh14 = Instance.new("SpecialMesh") | |
154 | msh14.Scale = Vector3.new(0.1,0.125,0.1) | |
155 | msh14.MeshType = "Wedge" | |
156 | local msh15 = Instance.new("SpecialMesh") | |
157 | msh15.Scale = Vector3.new(0.1,0.125,0.1) | |
158 | msh15.MeshType = "Wedge" | |
159 | local msh16 = Instance.new("SpecialMesh") | |
160 | msh16.Scale = Vector3.new(0.1,0.125,0.1) | |
161 | msh16.MeshType = "Wedge" | |
162 | local msh17 = Instance.new("SpecialMesh") | |
163 | msh17.Scale = Vector3.new(0.1,0.5,0.1) | |
164 | msh17.MeshType = "Wedge" | |
165 | local msh18 = Instance.new("SpecialMesh") | |
166 | msh18.Scale = Vector3.new(0.1,0.5,0.1) | |
167 | msh18.MeshType = "Wedge" | |
168 | local msh19 = Instance.new("SpecialMesh") | |
169 | msh19.Scale = Vector3.new(0.1,0.25,0.1) | |
170 | msh19.MeshType = "Wedge" | |
171 | local msh20 = Instance.new("SpecialMesh") | |
172 | msh20.Scale = Vector3.new(0.1,0.25,0.1) | |
173 | msh20.MeshType = "Wedge" | |
174 | local msh21 = Instance.new("SpecialMesh") | |
175 | msh21.Scale = Vector3.new(0.1,0.125,0.1) | |
176 | msh21.MeshType = "Wedge" | |
177 | local msh22 = Instance.new("SpecialMesh") | |
178 | msh22.Scale = Vector3.new(0.1,0.125,0.1) | |
179 | msh22.MeshType = "Wedge" | |
180 | local msh23 = Instance.new("SpecialMesh") | |
181 | msh23.Scale = Vector3.new(0.1,0.375,0.2) | |
182 | msh23.MeshType = "Wedge" | |
183 | local msh24 = Instance.new("SpecialMesh") | |
184 | msh24.Scale = Vector3.new(0.1,0.375,0.2) | |
185 | msh24.MeshType = "Wedge" | |
186 | local msh25 = Instance.new("SpecialMesh") | |
187 | msh25.Scale = Vector3.new(0.1,0.0625,0.2) | |
188 | msh25.MeshType = "Wedge" | |
189 | local msh26 = Instance.new("SpecialMesh") | |
190 | msh26.Scale = Vector3.new(0.1,0.0625,0.2) | |
191 | msh26.MeshType = "Wedge" | |
192 | local msh27 = Instance.new("SpecialMesh") | |
193 | msh27.Scale = Vector3.new(0.1,0.5,0.3) | |
194 | msh27.MeshType = "Wedge" | |
195 | local msh28 = Instance.new("SpecialMesh") | |
196 | msh28.Scale = Vector3.new(0.1,0.5,0.3) | |
197 | msh28.MeshType = "Wedge" | |
198 | local msh29 = Instance.new("CylinderMesh") | |
199 | msh29.Scale = Vector3.new(0.2,0.5,0.2) | |
200 | local msh30 = Instance.new("CylinderMesh") | |
201 | msh30.Scale = Vector3.new(0.2,0.5,0.2) | |
202 | local msh31 = Instance.new("SpecialMesh") | |
203 | msh31.Scale = Vector3.new(0.2,0.25,0.2) | |
204 | msh31.MeshType = "Wedge" | |
205 | local msh32 = Instance.new("SpecialMesh") | |
206 | msh32.Scale = Vector3.new(0.2,0.25,0.2) | |
207 | msh32.MeshType = "Wedge" | |
208 | local prt1 = Instance.new("Part") | |
209 | prt1.formFactor = 1 | |
210 | prt1.CanCollide = false | |
211 | prt1.Name = "Handle" | |
212 | prt1.Locked = true | |
213 | prt1.Size = Vector3.new(1,1,1) | |
214 | prt1.Parent = swordholder | |
215 | msh1.Parent = prt1 | |
216 | prt1.BrickColor = handlecolor | |
217 | local prt2 = Instance.new("Part") | |
218 | prt2.formFactor = 1 | |
219 | prt2.CanCollide = false | |
220 | prt2.Name = "Blade" | |
221 | prt2.Locked = true | |
222 | prt2.Size = Vector3.new(1,4,1) | |
223 | prt2.Parent = swordholder | |
224 | prt2.Reflectance = 0.25 | |
225 | msh2.Parent = prt2 | |
226 | prt2.BrickColor = bladecolor | |
227 | local prt3 = Instance.new("Part") | |
228 | prt3.formFactor = 1 | |
229 | prt3.CanCollide = false | |
230 | prt3.Name = "BladeTip1" | |
231 | prt3.Locked = true | |
232 | prt3.Size = Vector3.new(1,1,1) | |
233 | prt3.Parent = swordholder | |
234 | prt3.Reflectance = 0.25 | |
235 | msh3.Parent = prt3 | |
236 | prt3.BrickColor = bladecolor | |
237 | local prt4 = Instance.new("Part") | |
238 | prt4.formFactor = 1 | |
239 | prt4.CanCollide = false | |
240 | prt4.Name = "BladeTip2" | |
241 | prt4.Locked = true | |
242 | prt4.Size = Vector3.new(1,1,1) | |
243 | prt4.Parent = swordholder | |
244 | prt4.Reflectance = 0.25 | |
245 | msh4.Parent = prt4 | |
246 | prt4.BrickColor = bladecolor | |
247 | local prt5 = Instance.new("Part") | |
248 | prt5.formFactor = 1 | |
249 | prt5.CanCollide = false | |
250 | prt5.Name = "BladeP1" | |
251 | prt5.Locked = true | |
252 | prt5.Size = Vector3.new(1,1,1) | |
253 | prt5.Parent = swordholder | |
254 | prt5.Reflectance = 0 | |
255 | msh5.Parent = prt5 | |
256 | prt5.BrickColor = handlecolor | |
257 | local prt6 = Instance.new("Part") | |
258 | prt6.formFactor = 1 | |
259 | prt6.CanCollide = false | |
260 | prt6.Name = "BladeP2" | |
261 | prt6.Locked = true | |
262 | prt6.Size = Vector3.new(1,1,1) | |
263 | prt6.Parent = swordholder | |
264 | prt6.Reflectance = 0.2 | |
265 | msh6.Parent = prt6 | |
266 | prt6.BrickColor = bladecolor | |
267 | local prt7 = Instance.new("Part") | |
268 | prt7.formFactor = 1 | |
269 | prt7.CanCollide = false | |
270 | prt7.Name = "BladeP3" | |
271 | prt7.Locked = true | |
272 | prt7.Size = Vector3.new(1,1,1) | |
273 | prt7.Parent = swordholder | |
274 | prt7.Reflectance = 0.25 | |
275 | msh7.Parent = prt7 | |
276 | prt7.BrickColor = bladecolor | |
277 | local prt8 = Instance.new("Part") | |
278 | prt8.formFactor = 1 | |
279 | prt8.CanCollide = false | |
280 | prt8.Name = "BladeP4" | |
281 | prt8.Locked = true | |
282 | prt8.Size = Vector3.new(1,1,1) | |
283 | prt8.Parent = swordholder | |
284 | prt8.Reflectance = 0.25 | |
285 | msh8.Parent = prt8 | |
286 | prt8.BrickColor = bladecolor | |
287 | local prt9 = Instance.new("Part") | |
288 | prt9.formFactor = 1 | |
289 | prt9.CanCollide = false | |
290 | prt9.Name = "BladeP5" | |
291 | prt9.Locked = true | |
292 | prt9.Size = Vector3.new(1,1,1) | |
293 | prt9.Parent = swordholder | |
294 | prt9.Reflectance = 0.25 | |
295 | msh9.Parent = prt9 | |
296 | prt9.BrickColor = bladecolor | |
297 | local prt10 = Instance.new("Part") | |
298 | prt10.formFactor = 1 | |
299 | prt10.CanCollide = false | |
300 | prt10.Name = "BladeP6" | |
301 | prt10.Locked = true | |
302 | prt10.Size = Vector3.new(1,1,1) | |
303 | prt10.Parent = swordholder | |
304 | prt10.Reflectance = 0.25 | |
305 | msh10.Parent = prt10 | |
306 | prt10.BrickColor = bladecolor | |
307 | local prt11 = Instance.new("Part") | |
308 | prt11.formFactor = 1 | |
309 | prt11.CanCollide = false | |
310 | prt11.Name = "BladeP7" | |
311 | prt11.Locked = true | |
312 | prt11.Size = Vector3.new(1,1,1) | |
313 | prt11.Parent = swordholder | |
314 | prt11.Reflectance = 0.25 | |
315 | msh11.Parent = prt11 | |
316 | prt11.BrickColor = bladecolor | |
317 | local prt12 = Instance.new("Part") | |
318 | prt12.formFactor = 1 | |
319 | prt12.CanCollide = false | |
320 | prt12.Name = "BladeP8" | |
321 | prt12.Locked = true | |
322 | prt12.Size = Vector3.new(1,1,1) | |
323 | prt12.Parent = swordholder | |
324 | prt12.Reflectance = 0.25 | |
325 | msh12.Parent = prt12 | |
326 | prt12.BrickColor = bladecolor | |
327 | local prt13 = Instance.new("Part") | |
328 | prt13.formFactor = 1 | |
329 | prt13.CanCollide = false | |
330 | prt13.Name = "BladeP9" | |
331 | prt13.Locked = true | |
332 | prt13.Size = Vector3.new(1,1,1) | |
333 | prt13.Parent = swordholder | |
334 | prt13.Reflectance = 0.25 | |
335 | msh13.Parent = prt13 | |
336 | prt13.BrickColor = bladecolor | |
337 | local prt14 = Instance.new("Part") | |
338 | prt14.formFactor = 1 | |
339 | prt14.CanCollide = false | |
340 | prt14.Name = "BladeP10" | |
341 | prt14.Locked = true | |
342 | prt14.Size = Vector3.new(1,1,1) | |
343 | prt14.Parent = swordholder | |
344 | prt14.Reflectance = 0.25 | |
345 | msh14.Parent = prt14 | |
346 | prt14.BrickColor = bladecolor | |
347 | local prt15 = Instance.new("Part") | |
348 | prt15.formFactor = 1 | |
349 | prt15.CanCollide = false | |
350 | prt15.Name = "BladeP11" | |
351 | prt15.Locked = true | |
352 | prt15.Size = Vector3.new(1,1,1) | |
353 | prt15.Parent = swordholder | |
354 | prt15.Reflectance = 0.25 | |
355 | msh15.Parent = prt15 | |
356 | prt15.BrickColor = bladecolor | |
357 | local prt16 = Instance.new("Part") | |
358 | prt16.formFactor = 1 | |
359 | prt16.CanCollide = false | |
360 | prt16.Name = "BladeP12" | |
361 | prt16.Locked = true | |
362 | prt16.Size = Vector3.new(1,1,1) | |
363 | prt16.Parent = swordholder | |
364 | prt16.Reflectance = 0.25 | |
365 | msh16.Parent = prt16 | |
366 | prt16.BrickColor = bladecolor | |
367 | local prt17 = Instance.new("Part") | |
368 | prt17.formFactor = 1 | |
369 | prt17.CanCollide = false | |
370 | prt17.Name = "BladeP13" | |
371 | prt17.Locked = true | |
372 | prt17.Size = Vector3.new(1,1,1) | |
373 | prt17.Parent = swordholder | |
374 | prt17.Reflectance = 0.25 | |
375 | msh17.Parent = prt17 | |
376 | prt17.BrickColor = bladecolor | |
377 | local prt18 = Instance.new("Part") | |
378 | prt18.formFactor = 1 | |
379 | prt18.CanCollide = false | |
380 | prt18.Name = "BladeP14" | |
381 | prt18.Locked = true | |
382 | prt18.Size = Vector3.new(1,1,1) | |
383 | prt18.Parent = swordholder | |
384 | prt18.Reflectance = 0.25 | |
385 | msh18.Parent = prt18 | |
386 | prt18.BrickColor = bladecolor | |
387 | local prt19 = Instance.new("Part") | |
388 | prt19.formFactor = 1 | |
389 | prt19.CanCollide = false | |
390 | prt19.Name = "BladeP15" | |
391 | prt19.Locked = true | |
392 | prt19.Size = Vector3.new(1,1,1) | |
393 | prt19.Parent = swordholder | |
394 | prt19.Reflectance = 0.25 | |
395 | msh19.Parent = prt19 | |
396 | prt19.BrickColor = bladecolor | |
397 | local prt20 = Instance.new("Part") | |
398 | prt20.formFactor = 1 | |
399 | prt20.CanCollide = false | |
400 | prt20.Name = "BladeP16" | |
401 | prt20.Locked = true | |
402 | prt20.Size = Vector3.new(1,1,1) | |
403 | prt20.Parent = swordholder | |
404 | prt20.Reflectance = 0.25 | |
405 | msh20.Parent = prt20 | |
406 | prt20.BrickColor = bladecolor | |
407 | local prt21 = Instance.new("Part") | |
408 | prt21.formFactor = 1 | |
409 | prt21.CanCollide = false | |
410 | prt21.Name = "BladeP17" | |
411 | prt21.Locked = true | |
412 | prt21.Size = Vector3.new(1,1,1) | |
413 | prt21.Parent = swordholder | |
414 | prt21.Reflectance = 0.25 | |
415 | msh21.Parent = prt21 | |
416 | prt21.BrickColor = bladecolor | |
417 | local prt22 = Instance.new("Part") | |
418 | prt22.formFactor = 1 | |
419 | prt22.CanCollide = false | |
420 | prt22.Name = "BladeP18" | |
421 | prt22.Locked = true | |
422 | prt22.Size = Vector3.new(1,1,1) | |
423 | prt22.Parent = swordholder | |
424 | prt22.Reflectance = 0.25 | |
425 | msh22.Parent = prt22 | |
426 | prt22.BrickColor = bladecolor | |
427 | local prt23 = Instance.new("Part") | |
428 | prt23.formFactor = 1 | |
429 | prt23.CanCollide = false | |
430 | prt23.Name = "BladeP19" | |
431 | prt23.Locked = true | |
432 | prt23.Size = Vector3.new(1,1,1) | |
433 | prt23.Parent = swordholder | |
434 | prt23.Reflectance = 0.25 | |
435 | msh23.Parent = prt23 | |
436 | prt23.BrickColor = bladecolor | |
437 | local prt24 = Instance.new("Part") | |
438 | prt24.formFactor = 1 | |
439 | prt24.CanCollide = false | |
440 | prt24.Name = "BladeP20" | |
441 | prt24.Locked = true | |
442 | prt24.Size = Vector3.new(1,1,1) | |
443 | prt24.Parent = swordholder | |
444 | prt24.Reflectance = 0.25 | |
445 | msh24.Parent = prt24 | |
446 | prt24.BrickColor = bladecolor | |
447 | local prt25 = Instance.new("Part") | |
448 | prt25.formFactor = 1 | |
449 | prt25.CanCollide = false | |
450 | prt25.Name = "BladeP21" | |
451 | prt25.Locked = true | |
452 | prt25.Size = Vector3.new(1,1,1) | |
453 | prt25.Parent = swordholder | |
454 | prt25.Reflectance = 0.25 | |
455 | msh25.Parent = prt25 | |
456 | prt25.BrickColor = bladecolor | |
457 | local prt26 = Instance.new("Part") | |
458 | prt26.formFactor = 1 | |
459 | prt26.CanCollide = false | |
460 | prt26.Name = "BladeP22" | |
461 | prt26.Locked = true | |
462 | prt26.Size = Vector3.new(1,1,1) | |
463 | prt26.Parent = swordholder | |
464 | prt26.Reflectance = 0.25 | |
465 | msh26.Parent = prt26 | |
466 | prt26.BrickColor = bladecolor | |
467 | local prt27 = Instance.new("Part") | |
468 | prt27.formFactor = 1 | |
469 | prt27.CanCollide = false | |
470 | prt27.Name = "BladeP23" | |
471 | prt27.Locked = true | |
472 | prt27.Size = Vector3.new(1,1,1) | |
473 | prt27.Parent = swordholder | |
474 | prt27.Reflectance = 0.25 | |
475 | msh27.Parent = prt27 | |
476 | prt27.BrickColor = bladecolor | |
477 | local prt28 = Instance.new("Part") | |
478 | prt28.formFactor = 1 | |
479 | prt28.CanCollide = false | |
480 | prt28.Name = "BladeP24" | |
481 | prt28.Locked = true | |
482 | prt28.Size = Vector3.new(1,1,1) | |
483 | prt28.Parent = swordholder | |
484 | prt28.Reflectance = 0.25 | |
485 | msh28.Parent = prt28 | |
486 | prt28.BrickColor = bladecolor | |
487 | local prt29 = Instance.new("Part") | |
488 | prt29.formFactor = 1 | |
489 | prt29.CanCollide = false | |
490 | prt29.Name = "BladeP25" | |
491 | prt29.Locked = true | |
492 | prt29.Size = Vector3.new(1,1,1) | |
493 | prt29.Parent = swordholder | |
494 | prt29.Reflectance = 0 | |
495 | msh29.Parent = prt29 | |
496 | prt29.BrickColor = handlecolor | |
497 | local prt30 = Instance.new("Part") | |
498 | prt30.formFactor = 1 | |
499 | prt30.CanCollide = false | |
500 | prt30.Name = "BladeP24" | |
501 | prt30.Locked = true | |
502 | prt30.Size = Vector3.new(1,1,1) | |
503 | prt30.Parent = swordholder | |
504 | prt30.Reflectance = 0 | |
505 | msh30.Parent = prt30 | |
506 | prt30.BrickColor = handlecolor | |
507 | local prt31 = Instance.new("Part") | |
508 | prt31.formFactor = 1 | |
509 | prt31.CanCollide = false | |
510 | prt31.Name = "BladeP25" | |
511 | prt31.Locked = true | |
512 | prt31.Size = Vector3.new(1,1,1) | |
513 | prt31.Parent = swordholder | |
514 | prt31.Reflectance = 0 | |
515 | msh31.Parent = prt31 | |
516 | prt31.BrickColor = handlecolor | |
517 | local prt32 = Instance.new("Part") | |
518 | prt32.formFactor = 1 | |
519 | prt32.CanCollide = false | |
520 | prt32.Name = "BladeP26" | |
521 | prt32.Locked = true | |
522 | prt32.Size = Vector3.new(1,1,1) | |
523 | prt32.Parent = swordholder | |
524 | prt32.Reflectance = 0 | |
525 | msh32.Parent = prt32 | |
526 | prt32.BrickColor = handlecolor | |
527 | local w1 = Instance.new("Weld") | |
528 | w1.Parent = prt1 | |
529 | w1.Part0 = prt1 | |
530 | local w2 = Instance.new("Weld") | |
531 | w2.Parent = prt2 | |
532 | w2.Part0 = prt2 | |
533 | w2.Part1 = prt1 | |
534 | w2.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
535 | w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(0, -2, 0) | |
536 | local w3 = Instance.new("Weld") | |
537 | w3.Parent = prt3 | |
538 | w3.Part0 = prt3 | |
539 | w3.Part1 = prt2 | |
540 | w3.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
541 | w3.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(0, (-1.950+0.36), 0.125) | |
542 | local w4 = Instance.new("Weld") | |
543 | w4.Parent = prt4 | |
544 | w4.Part0 = prt4 | |
545 | w4.Part1 = prt2 | |
546 | w4.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
547 | w4.C0 = CFrame.fromEulerAnglesXYZ(0, math.rad(180),0) * CFrame.new(0, (-1.95+0.36), -0.125) | |
548 | local w5 = Instance.new("Weld") | |
549 | w5.Parent = prt5 | |
550 | w5.Part0 = prt5 | |
551 | w5.Part1 = prt2 | |
552 | w5.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
553 | w5.C0 = CFrame.fromEulerAnglesXYZ(0, math.rad(0),0) * CFrame.new(0, 1.75, 0) | |
554 | local w6 = Instance.new("Weld") | |
555 | w6.Parent = prt6 | |
556 | w6.Part0 = prt6 | |
557 | w6.Part1 = prt2 | |
558 | w6.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
559 | w6.C0 = CFrame.fromEulerAnglesXYZ(0, math.rad(0),0) * CFrame.new(0, 1.75, 0) | |
560 | local w7 = Instance.new("Weld") | |
561 | w7.Parent = prt7 | |
562 | w7.Part0 = prt7 | |
563 | w7.Part1 = prt2 | |
564 | w7.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
565 | w7.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(0, (-1.950+0.66), 0.3) | |
566 | local w8 = Instance.new("Weld") | |
567 | w8.Parent = prt8 | |
568 | w8.Part0 = prt8 | |
569 | w8.Part1 = prt2 | |
570 | w8.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
571 | w8.C0 = CFrame.fromEulerAnglesXYZ(0, math.rad(180),0) * CFrame.new(0, (-1.95+0.66), -0.3) | |
572 | local w9 = Instance.new("Weld") | |
573 | w9.Parent = prt9 | |
574 | w9.Part0 = prt9 | |
575 | w9.Part1 = prt2 | |
576 | w9.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
577 | w9.C0 = CFrame.fromEulerAnglesXYZ(0, 0,math.rad(180)) * CFrame.new(0, (-1.950+0.885), 0.3) | |
578 | local w10 = Instance.new("Weld") | |
579 | w10.Parent = prt10 | |
580 | w10.Part0 = prt10 | |
581 | w10.Part1 = prt2 | |
582 | w10.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
583 | w10.C0 = CFrame.fromEulerAnglesXYZ(0, math.rad(180),math.rad(180)) * CFrame.new(0, (-1.95+0.885), -0.3) | |
584 | local w11 = Instance.new("Weld") | |
585 | w11.Parent = prt11 | |
586 | w11.Part0 = prt11 | |
587 | w11.Part1 = prt2 | |
588 | w11.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
589 | w11.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(0, (-1.950+1.01), 0.3) | |
590 | local w12 = Instance.new("Weld") | |
591 | w12.Parent = prt12 | |
592 | w12.Part0 = prt12 | |
593 | w12.Part1 = prt2 | |
594 | w12.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
595 | w12.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(180),math.rad(0)) * CFrame.new(0, (-1.95+1.01), -0.3) | |
596 | local w13 = Instance.new("Weld") | |
597 | w13.Parent = prt13 | |
598 | w13.Part0 = prt13 | |
599 | w13.Part1 = prt2 | |
600 | w13.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
601 | w13.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(180)) * CFrame.new(0, (-1.950+1.16--[[1.685]]), 0.3) | |
602 | local w14 = Instance.new("Weld") | |
603 | w14.Parent = prt14 | |
604 | w14.Part0 = prt14 | |
605 | w14.Part1 = prt2 | |
606 | w14.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
607 | w14.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(180),math.rad(180)) * CFrame.new(0, (-1.95+1.16), -0.3) | |
608 | local w15 = Instance.new("Weld") | |
609 | w15.Parent = prt15 | |
610 | w15.Part0 = prt15 | |
611 | w15.Part1 = prt2 | |
612 | w15.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
613 | w15.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(0, (-1.950+1.285), 0.3) | |
614 | local w16 = Instance.new("Weld") | |
615 | w16.Parent = prt16 | |
616 | w16.Part0 = prt16 | |
617 | w16.Part1 = prt2 | |
618 | w16.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
619 | w16.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(180),math.rad(0)) * CFrame.new(0, (-1.95+1.285), -0.3) | |
620 | local w17 = Instance.new("Weld") | |
621 | w17.Parent = prt17 | |
622 | w17.Part0 = prt17 | |
623 | w17.Part1 = prt2 | |
624 | w17.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
625 | w17.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(180)) * CFrame.new(0, (-1.950+(1.285+0.375)), 0.3) | |
626 | local w18 = Instance.new("Weld") | |
627 | w18.Parent = prt18 | |
628 | w18.Part0 = prt18 | |
629 | w18.Part1 = prt2 | |
630 | w18.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
631 | w18.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(180),math.rad(180)) * CFrame.new(0, (-1.95+(1.285+0.375)), -0.3) | |
632 | local w19 = Instance.new("Weld") | |
633 | w19.Parent = prt19 | |
634 | w19.Part0 = prt19 | |
635 | w19.Part1 = prt2 | |
636 | w19.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
637 | w19.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(0, (-1.950+(1.285+1.08)), 0.3) | |
638 | local w20 = Instance.new("Weld") | |
639 | w20.Parent = prt20 | |
640 | w20.Part0 = prt20 | |
641 | w20.Part1 = prt2 | |
642 | w20.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
643 | w20.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(180),math.rad(0)) * CFrame.new(0, (-1.95+(1.285+1.08)), -0.3) | |
644 | local w21 = Instance.new("Weld") | |
645 | w21.Parent = prt21 | |
646 | w21.Part0 = prt21 | |
647 | w21.Part1 = prt2 | |
648 | w21.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
649 | w21.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(180)) * CFrame.new(0, (-1.950+(1.285+1.305)), 0.3) | |
650 | local w22 = Instance.new("Weld") | |
651 | w22.Parent = prt22 | |
652 | w22.Part0 = prt22 | |
653 | w22.Part1 = prt2 | |
654 | w22.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
655 | w22.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(180),math.rad(180)) * CFrame.new(0, (-1.95+(1.285+1.305)), -0.3) | |
656 | local w23 = Instance.new("Weld") | |
657 | w23.Parent = prt23 | |
658 | w23.Part0 = prt23 | |
659 | w23.Part1 = prt2 | |
660 | w23.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
661 | w23.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(0, (-1.950+(1.285+1.6)), 0.35) | |
662 | local w24 = Instance.new("Weld") | |
663 | w24.Parent = prt24 | |
664 | w24.Part0 = prt24 | |
665 | w24.Part1 = prt2 | |
666 | w24.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
667 | w24.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(180),math.rad(0)) * CFrame.new(0, (-1.95+(1.285+1.6)), -0.35) | |
668 | local w25 = Instance.new("Weld") | |
669 | w25.Parent = prt25 | |
670 | w25.Part0 = prt25 | |
671 | w25.Part1 = prt2 | |
672 | w25.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
673 | w25.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(180)) * CFrame.new(0, (-1.95+(1.285+1.8625)), 0.35) | |
674 | local w26 = Instance.new("Weld") | |
675 | w26.Parent = prt26 | |
676 | w26.Part0 = prt26 | |
677 | w26.Part1 = prt2 | |
678 | w26.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
679 | w26.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(180),math.rad(180)) * CFrame.new(0, (-1.95+(1.285+1.8625)), -0.35) | |
680 | local w27 = Instance.new("Weld") | |
681 | w27.Parent = prt27 | |
682 | w27.Part0 = prt27 | |
683 | w27.Part1 = prt2 | |
684 | w27.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
685 | w27.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(0, (-1.95+(1.285+2.175)), 0.4) | |
686 | local w28 = Instance.new("Weld") | |
687 | w28.Parent = prt28 | |
688 | w28.Part0 = prt28 | |
689 | w28.Part1 = prt2 | |
690 | w28.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
691 | w28.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(180),math.rad(0)) * CFrame.new(0, (-1.95+(1.285+2.175)), -0.4) | |
692 | local w29 = Instance.new("Weld") | |
693 | w29.Parent = prt29 | |
694 | w29.Part0 = prt29 | |
695 | w29.Part1 = prt2 | |
696 | w29.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
697 | w29.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), 0,math.rad(0)) * CFrame.new(0, (1.95+(0)), 0.4) | |
698 | local w30 = Instance.new("Weld") | |
699 | w30.Parent = prt30 | |
700 | w30.Part0 = prt30 | |
701 | w30.Part1 = prt2 | |
702 | w30.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
703 | w30.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180),math.rad(0)) * CFrame.new(0, (1.95+(0)), -0.4) | |
704 | local w31 = Instance.new("Weld") | |
705 | w31.Parent = prt31 | |
706 | w31.Part0 = prt31 | |
707 | w31.Part1 = prt2 | |
708 | w31.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
709 | w31.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-135), 0,math.rad(0)) * CFrame.new(0, (2.05+(0)), -0.74) | |
710 | local w32 = Instance.new("Weld") | |
711 | w32.Parent = prt32 | |
712 | w32.Part0 = prt32 | |
713 | w32.Part1 = prt2 | |
714 | w32.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
715 | w32.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-135), math.rad(180),math.rad(0)) * CFrame.new(0, (2.05+(0)), 0.74) | |
716 | ||
717 | local RAP = Instance.new("Part") | |
718 | RAP.formFactor = 0 | |
719 | RAP.CanCollide = false | |
720 | RAP.Name = "RAPart" | |
721 | RAP.Locked = true | |
722 | RAP.Size = Vector3.new(1,1,1) | |
723 | RAP.Parent = swordholder | |
724 | RAP.Transparency = 1 | |
725 | local w = Instance.new("Weld") | |
726 | w.Parent = RAP | |
727 | w.Part0 = RAP | |
728 | w.Part1 = RightArm | |
729 | w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
730 | w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 1, 0) | |
731 | ||
732 | function unequipweld() | |
733 | w1.Part1 = Torso | |
734 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
735 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-225),math.rad(-90), 0) * CFrame.new(-0.7, -1, -0.6) | |
736 | end | |
737 | ||
738 | unequipweld() | |
739 | ||
740 | function equipweld() | |
741 | w1.Part1 = RAP | |
742 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
743 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), 0, 0) * CFrame.new(0, 0, 0) | |
744 | end | |
745 | ||
746 | function ss(parent,p) | |
747 | ||
748 | local SlashSound = Instance.new("Sound") | |
749 | SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav" | |
750 | SlashSound.Parent = parent | |
751 | SlashSound.Volume = .7 | |
752 | SlashSound.Pitch = p | |
753 | SlashSound.PlayOnRemove = true | |
754 | coroutine.resume(coroutine.create(function() | |
755 | wait() | |
756 | SlashSound.Parent = nil | |
757 | end)) | |
758 | end | |
759 | function uss(parent,p) | |
760 | ||
761 | local SlashSound = Instance.new("Sound") | |
762 | SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav" | |
763 | SlashSound.Parent = parent | |
764 | SlashSound.Volume = .7 | |
765 | SlashSound.Pitch = p | |
766 | SlashSound.PlayOnRemove = true | |
767 | coroutine.resume(coroutine.create(function() | |
768 | wait() | |
769 | SlashSound.Parent = nil | |
770 | end)) | |
771 | end | |
772 | function cs(parent,p) | |
773 | ||
774 | local SlashSound = Instance.new("Sound") | |
775 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137" | |
776 | SlashSound.Parent = parent | |
777 | SlashSound.Volume = .7 | |
778 | SlashSound.Pitch = p | |
779 | SlashSound.PlayOnRemove = true | |
780 | coroutine.resume(coroutine.create(function() | |
781 | wait() | |
782 | SlashSound.Parent = nil | |
783 | end)) | |
784 | end | |
785 | function ls(parent,p) | |
786 | ||
787 | local SlashSound = Instance.new("Sound") | |
788 | SlashSound.SoundId = "http://www.roblox.com/asset?id=1369158" | |
789 | SlashSound.Parent = parent | |
790 | SlashSound.Volume = .7 | |
791 | SlashSound.Pitch = p | |
792 | SlashSound.PlayOnRemove = true | |
793 | coroutine.resume(coroutine.create(function() | |
794 | wait() | |
795 | SlashSound.Parent = nil | |
796 | end)) | |
797 | end | |
798 | function rs(parent,p) | |
799 | ||
800 | local SlashSound = Instance.new("Sound") | |
801 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=12222084" | |
802 | SlashSound.Parent = parent | |
803 | SlashSound.Volume = .7 | |
804 | SlashSound.Pitch = p | |
805 | SlashSound.PlayOnRemove = true | |
806 | coroutine.resume(coroutine.create(function() | |
807 | wait() | |
808 | SlashSound.Parent = nil | |
809 | end)) | |
810 | end | |
811 | function b2s(parent,p) | |
812 | ||
813 | local SlashSound = Instance.new("Sound") | |
814 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=12222065" | |
815 | SlashSound.Parent = parent | |
816 | SlashSound.Volume = .7 | |
817 | SlashSound.Pitch = p | |
818 | SlashSound.PlayOnRemove = true | |
819 | coroutine.resume(coroutine.create(function() | |
820 | wait(0.1) | |
821 | SlashSound.Parent = nil | |
822 | end)) | |
823 | end | |
824 | ||
825 | function hideanim() | |
826 | coroutine.resume(coroutine.create(function() | |
827 | for i = 1, 0 , -0.1 do | |
828 | wait() | |
829 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45)*i) * CFrame.new(0, 0, 0.75*i) | |
830 | end | |
831 | end)) | |
832 | for i = 1 , 0 , -0.1 do | |
833 | wait() | |
834 | RW.C0 = CFrame.new(1.5-0.5*i,0.5-0.25*i,-0.75*i) * CFrame.fromEulerAnglesXYZ(math.rad(67.5-22.5*i), 0, math.rad(22.5-67.5*i)) | |
835 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
836 | LW.C0 = CFrame.new(-1.5+0.5*i, 0.5-0.25*i, -0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45*i),0,math.rad(45*i)) | |
837 | LW.C1 = CFrame.new(0, 0.5, 0) | |
838 | end | |
839 | LWRem() | |
840 | for i = 1 , 0 , -0.15 do | |
841 | wait() | |
842 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(135)-math.rad(67.5)*i, 0, math.rad(45-22.5*i)) | |
843 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
844 | LW.C0 = CFrame.new(-1.5, 0.5, -0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(0.5-0.5*i,0,1-1*i) | |
845 | LW.C1 = CFrame.new(0, 0.5, 0) | |
846 | end | |
847 | coroutine.resume(coroutine.create(function() | |
848 | for i = 1 , 0 , -0.1 do | |
849 | wait() | |
850 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90+90*i), 0, 0) * CFrame.new(0, 0,0.75) | |
851 | end | |
852 | end)) | |
853 | for i = 1 , 0 , -0.1 do | |
854 | wait() | |
855 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(270)-math.rad(135)*i, 1-1*i,-1+(1+math.rad(45))*i) | |
856 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
857 | LW.C0 = CFrame.new(-1.5, 0.5, -0.5*i) * CFrame.fromEulerAnglesXYZ(0.5*i,0,1*i) | |
858 | LW.C1 = CFrame.new(0, 0.5, 0) | |
859 | end | |
860 | unequipweld() | |
861 | for i = 1 , 0 , -0.2 do | |
862 | wait() | |
863 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(270)*i, 1*i,-1*i) | |
864 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
865 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
866 | LW.C1 = CFrame.new(0, 0.5, 0) | |
867 | end | |
868 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) | |
869 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
870 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
871 | LW.C1 = CFrame.new(0, 0.5, 0) | |
872 | end | |
873 | ||
874 | ||
875 | function equipanim() | |
876 | attack = true | |
877 | for i = 0 , 1 , 0.2 do | |
878 | wait() | |
879 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(270)*i, 1*i,-1*i) | |
880 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
881 | end | |
882 | equipweld() | |
883 | coroutine.resume(coroutine.create(function() | |
884 | for i = 0 , 1 , 0.1 do | |
885 | wait() | |
886 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90+90*i), 0, 0) * CFrame.new(0, 0, 0) | |
887 | end | |
888 | end)) | |
889 | uss(game.Workspace,1) | |
890 | for i = 0 , 1 , 0.1 do | |
891 | wait() | |
892 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(270)-math.rad(135)*i, 1-1*i,-1+(1+math.rad(45))*i) | |
893 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
894 | ||
895 | end | |
896 | ||
897 | for i = 0 , 1 , 0.15 do | |
898 | wait() | |
899 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(135)-math.rad(67.5)*i, 0, math.rad(45-22.5*i)) | |
900 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
901 | ||
902 | end | |
903 | LWFunc() | |
904 | coroutine.resume(coroutine.create(function() | |
905 | for i = 0 , 1 , 0.1 do | |
906 | wait() | |
907 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45)*i) * CFrame.new(0, 0, 0.75*i) | |
908 | end | |
909 | end)) | |
910 | for i = 0 , 1 , 0.1 do | |
911 | wait() | |
912 | RW.C0 = CFrame.new(1.5-0.5*i,0.5-0.25*i,-0.75*i) * CFrame.fromEulerAnglesXYZ(math.rad(67.5-42.5*i), 0, math.rad(22.5-67.5*i)) | |
913 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
914 | LW.C0 = CFrame.new(-1.5+0.5*i, 0.5-0.25*i, -0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25*i),0,math.rad(45*i)) | |
915 | LW.C1 = CFrame.new(0, 0.5, 0) | |
916 | end | |
917 | attack = false | |
918 | end | |
919 | ||
920 | ||
921 | function blast(n,s,c,prt) | |
922 | local colors = {BrickColor.new(c)} | |
923 | local randomv = Vector3.new(n,n,n) | |
924 | local mesh = Instance.new("SpecialMesh") | |
925 | mesh.MeshType = "Sphere" | |
926 | mesh.Scale = randomv * Vector3.new(0.15,0.15,0.15) | |
927 | local shell = Instance.new("Part") | |
928 | mesh.Parent = shell | |
929 | shell.Anchored = true | |
930 | shell.formFactor = 1 | |
931 | shell.Size = Vector3.new(1,1,1) | |
932 | shell.CFrame = prt.CFrame | |
933 | shell.Parent = swordholder | |
934 | shell.Transparency = 0 | |
935 | shell.BrickColor = colors[math.random(1,#colors)] | |
936 | shell.CanCollide = false | |
937 | coroutine.resume(coroutine.create(function() | |
938 | for i = 0 , 1 , 0.15*s do | |
939 | wait() | |
940 | mesh.Scale = randomv * Vector3.new(i,i,i) | |
941 | shell.Transparency = 1*i | |
942 | end | |
943 | shell.Transparency = 1 | |
944 | shell.Parent = nil | |
945 | end)) | |
946 | end | |
947 | ||
948 | function bubblyblast(n,s,c,prt,withwaitornot) | |
949 | local colors = {BrickColor.new(c)} | |
950 | local randomv = Vector3.new(n,n,n) | |
951 | for i = 1 , 5 do | |
952 | local C = prt.CFrame | |
953 | local mesh = Instance.new("SpecialMesh") | |
954 | mesh.MeshType = "Sphere" | |
955 | mesh.Scale = Vector3.new(0,0,0) | |
956 | local shell = Instance.new("Part") | |
957 | mesh.Parent = shell | |
958 | shell.Anchored = true | |
959 | shell.formFactor = 0 | |
960 | shell.Size = Vector3.new(1,1,1) | |
961 | shell.CFrame = CFrame.new(C.p,C.p + Vector3.new(math.random(-360,360),math.random(-360,360),math.random(-360,360))) | |
962 | shell.CFrame = shell.CFrame | |
963 | shell.Parent = swordholder | |
964 | shell.Transparency = 0 | |
965 | shell.BrickColor = colors[math.random(1,#colors)] | |
966 | shell.CanCollide = false | |
967 | coroutine.resume(coroutine.create(function() | |
968 | for i = 0 , 1 , 0.1*s do | |
969 | wait() | |
970 | shell.Transparency = 1*i | |
971 | shell.CFrame = shell.CFrame + (shell.CFrame.lookVector * 0.25) | |
972 | mesh.Scale = randomv * Vector3.new(i,i,i) | |
973 | end | |
974 | shell.Transparency = 1 | |
975 | shell.Parent = nil | |
976 | end)) | |
977 | if withwaitornot == true then | |
978 | wait() | |
979 | end | |
980 | end | |
981 | end | |
982 | ||
983 | function ringblast(n,s,c,prt) | |
984 | local colors = {BrickColor.new(c)} | |
985 | local randomv = Vector3.new(n,n,n) | |
986 | local mesh = Instance.new("SpecialMesh") | |
987 | mesh.MeshType = "FileMesh" | |
988 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
989 | mesh.Scale = randomv * Vector3.new(2,2,2) | |
990 | local shell = Instance.new("Part") | |
991 | mesh.Parent = shell | |
992 | shell.Anchored = true | |
993 | shell.formFactor = 1 | |
994 | shell.Size = Vector3.new(1,1,1) | |
995 | shell.CFrame = prt.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
996 | shell.Parent = swordholder | |
997 | shell.Transparency = 0 | |
998 | shell.BrickColor = colors[math.random(1,#colors)] | |
999 | shell.CanCollide = false | |
1000 | coroutine.resume(coroutine.create(function() | |
1001 | for i = 0 , 1 , 0.15*s do | |
1002 | wait() | |
1003 | mesh.Scale = (randomv * Vector3.new(2,2,2)) * Vector3.new(i,i,i) | |
1004 | shell.Transparency = 1*i | |
1005 | end | |
1006 | shell.Transparency = 1 | |
1007 | shell.Parent = nil | |
1008 | end)) | |
1009 | end | |
1010 | if (script.Parent.className ~= "HopperBin") then | |
1011 | Tool = Instance.new("HopperBin") | |
1012 | Tool.Parent = Backpack | |
1013 | Tool.Name = "Soul Eater" | |
1014 | script.Parent = Tool | |
1015 | end | |
1016 | Bin = script.Parent | |
1017 | function damagesplat(dmg,hit,critornot,healornot) | |
1018 | local OffsetX = -2.5 | |
1019 | local OffsetY = 5 | |
1020 | local OffsetZ = 0 | |
1021 | local bill = Instance.new("BillboardGui") | |
1022 | bill.Size = UDim2.new(1,0,1,0) | |
1023 | bill.Adornee = hit | |
1024 | bill.StudsOffset = Vector3.new(OffsetX,OffsetY,OffsetZ) | |
1025 | bill.Parent = hit.Parent | |
1026 | bill.Name = "DamageSplat" | |
1027 | local tex = Instance.new("TextLabel") | |
1028 | tex.Size = UDim2.new(5,0,2.5,0) | |
1029 | tex.Parent = bill | |
1030 | tex.Text = dmg | |
1031 | tex.BackgroundTransparency = 1 | |
1032 | tex.ZIndex = 4 | |
1033 | tex.FontSize = "Size24" | |
1034 | local tex2 = Instance.new("ImageLabel") | |
1035 | tex2.Size = UDim2.new(1,0,1,0) | |
1036 | tex2.Parent = tex | |
1037 | tex2.BackgroundTransparency = 1 | |
1038 | tex2.Image = "http://www.roblox.com/asset/?id=42611276" | |
1039 | if critornot == true then | |
1040 | tex.TextColor3 = Color3.new(1,0.2,0.2) | |
1041 | elseif critornot == false then | |
1042 | tex.TextColor3 = Color3.new(0,0,0) | |
1043 | end | |
1044 | if healornot == true then | |
1045 | tex.TextColor3 = Color3.new(0.2,0.5,0.5) | |
1046 | end | |
1047 | coroutine.resume(coroutine.create(function() | |
1048 | wait(0.25) | |
1049 | for i = 0 , 1 , 0.075 do | |
1050 | wait() | |
1051 | bill.StudsOffset = Vector3.new(OffsetX,OffsetY+5*i,OffsetZ) | |
1052 | tex.TextTransparency = 1*i | |
1053 | end | |
1054 | bill.Parent = nil | |
1055 | end)) | |
1056 | end | |
1057 | function OT(hit) | |
1058 | if Hitdeb == 1 then return end | |
1059 | if hit.Parent == nil then return end | |
1060 | local hum = hit.Parent:findFirstChild("Humanoid") | |
1061 | if hum ~= nil and hum ~= Character.Humanoid then | |
1062 | local critrandomizer = math.random(1,crtrate) | |
1063 | if critrandomizer ~= 1 then | |
1064 | local rndmdamage = math.random(mindamage,maxdamage) | |
1065 | damagesplat(rndmdamage,hit,false) | |
1066 | hum:TakeDamage(rndmdamage) | |
1067 | elseif critrandomizer == 1 then | |
1068 | local rndmdamage = math.random(maxdamage,crtmaxdamage) | |
1069 | damagesplat(rndmdamage,hit,true) | |
1070 | hum:TakeDamage(rndmdamage) | |
1071 | end | |
1072 | Hitdeb = 1 | |
1073 | end | |
1074 | end | |
1075 | function OT(hit) | |
1076 | if Hitdeb == 1 then return end | |
1077 | if hit.Parent == nil then return end | |
1078 | local hum = hit.Parent:findFirstChild("Humanoid") | |
1079 | if hum ~= nil and hum ~= Character.Humanoid then | |
1080 | local critrandomizer = math.random(1,crtrate) | |
1081 | if critrandomizer ~= 1 then | |
1082 | local rndmdamage = math.random(mindamage,maxdamage) | |
1083 | damagesplat(rndmdamage,hit,false) | |
1084 | hum:TakeDamage(rndmdamage) | |
1085 | elseif critrandomizer == 1 then | |
1086 | local rndmdamage = math.random(maxdamage,crtmaxdamage) | |
1087 | damagesplat(rndmdamage,hit,true) | |
1088 | hum:TakeDamage(rndmdamage) | |
1089 | end | |
1090 | Hitdeb = 1 | |
1091 | end | |
1092 | end | |
1093 | function OT2(hit) | |
1094 | if Hitdeb == 1 then return end | |
1095 | if hit.Parent == nil then return end | |
1096 | local hum = hit.Parent:findFirstChild("Humanoid") | |
1097 | if hum ~= nil and hum ~= Character.Humanoid then | |
1098 | local critrandomizer = math.random(1,crtrate) | |
1099 | if critrandomizer ~= 1 then | |
1100 | local rndmdamage = math.random(mindamage,maxdamage) | |
1101 | damagesplat(rndmdamage,hit,false,false) | |
1102 | damagesplat(rndmdamage,Head,false,true) | |
1103 | hum:TakeDamage(rndmdamage) | |
1104 | Character.Humanoid:TakeDamage(-rndmdamage) | |
1105 | bubblyblast(2.5,0.5,"Bright green",hit) | |
1106 | elseif critrandomizer == 1 then | |
1107 | local rndmdamage = math.random(maxdamage,crtmaxdamage) | |
1108 | damagesplat(rndmdamage,hit,true) | |
1109 | damagesplat(rndmdamage,Head,false,true) | |
1110 | hum:TakeDamage(rndmdamage) | |
1111 | Character.Humanoid:TakeDamage(-rndmdamage) | |
1112 | bubblyblast(2.5,0.5,"Bright green",hit) | |
1113 | end | |
1114 | Hitdeb = 1 | |
1115 | end | |
1116 | end | |
1117 | function OT3(hit) | |
1118 | if Hitdeb == 1 then return end | |
1119 | if hit.Parent == nil then return end | |
1120 | local hum = hit.Parent:findFirstChild("Humanoid") | |
1121 | if hum ~= nil and hum ~= Character.Humanoid then | |
1122 | local hitornotrandomizer = math.random(1,3) | |
1123 | if hitornotrandomizer ~= 1 then | |
1124 | damagesplat(0,hit,false) | |
1125 | end | |
1126 | if hitornotrandomizer == 1 then | |
1127 | local critrandomizer = math.random(1,crtrate) | |
1128 | if critrandomizer ~= 1 then | |
1129 | local rndmdamage = math.random(mindamage,maxdamage) | |
1130 | damagesplat(rndmdamage,hit,false) | |
1131 | hum:TakeDamage(rndmdamage) | |
1132 | elseif critrandomizer == 1 then | |
1133 | local rndmdamage = math.random(maxdamage,crtmaxdamage) | |
1134 | damagesplat(rndmdamage,hit,true) | |
1135 | hum:TakeDamage(rndmdamage) | |
1136 | end | |
1137 | end | |
1138 | Hitdeb = 1 | |
1139 | end | |
1140 | end | |
1141 | function AoE(p,magnitude,damage,critornot) | |
1142 | local c = game.Workspace:GetChildren(); | |
1143 | for i = 1, #c do | |
1144 | local hum = c[i]:findFirstChild("Humanoid") | |
1145 | if hum ~= nil and hum.Health ~= 0 then | |
1146 | local head = c[i]:findFirstChild("Head"); | |
1147 | if head ~= nil then | |
1148 | local targ = head.Position - p.Position; | |
1149 | local mag = targ.magnitude; | |
1150 | if mag <= magnitude and c[i].Name ~= Character.Name then | |
1151 | local foundd = false | |
1152 | for ii = 1 , #AoETrue do | |
1153 | if AoETrue[ii] == c[i].Name then | |
1154 | foundd = true | |
1155 | end | |
1156 | end | |
1157 | if foundd then | |
1158 | end | |
1159 | -- | |
1160 | if not foundd then | |
1161 | hum:TakeDamage(damage) | |
1162 | damagesplat(damage,head,critornot) | |
1163 | table.insert(AoETrue,c[i].Name) | |
1164 | end | |
1165 | end | |
1166 | end | |
1167 | end | |
1168 | end | |
1169 | end | |
1170 | ||
1171 | function AoETremor(p,magnitude,damage,critornot) | |
1172 | local c = game.Workspace:GetChildren(); | |
1173 | local founded = {} | |
1174 | for o = 1, #c do | |
1175 | local hum = c[o]:findFirstChild("Humanoid") | |
1176 | if hum ~= nil and hum.Health ~= 0 then | |
1177 | local head = c[o]:findFirstChild("Head"); | |
1178 | if head ~= nil then | |
1179 | local targ = head.Position - p.Position; | |
1180 | local mag = targ.magnitude; | |
1181 | if mag <= magnitude and c[o].Name ~= Character.Name then | |
1182 | table.insert(founded,c[o]) | |
1183 | end | |
1184 | end | |
1185 | end | |
1186 | end | |
1187 | ||
1188 | if #founded ~= 0 then | |
1189 | local foundd = false | |
1190 | local randommm = math.floor(math.random(1,#founded)) | |
1191 | for i = 1, #founded do | |
1192 | ||
1193 | if randommm == i then | |
1194 | local hum = founded[i].Humanoid | |
1195 | local c = founded[i] | |
1196 | local CF = c.Torso.CFrame * CFrame.new(0,-4,0) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0) | |
1197 | local F = CFrame.new(c.Torso.Position,Torso.Position) | |
1198 | local CF2 = F * CFrame.new(0,-5,0) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0) + F.lookVector * 2 | |
1199 | local earthm = Instance.new("BlockMesh") | |
1200 | earthm.Scale = Vector3.new(2.5,2.5,2.5) | |
1201 | local earth = Instance.new("Part") | |
1202 | earth.formFactor = 0 | |
1203 | earth.CanCollide = false | |
1204 | earth.Name = "Earth1" | |
1205 | earth.Locked = true | |
1206 | earth.Anchored = true | |
1207 | earth.Size = Vector3.new(1,1,1) | |
1208 | earth.Parent = swordholder | |
1209 | earth.CFrame = CF | |
1210 | earthm.Parent = earth | |
1211 | earth.BrickColor = BrickColor.new("Brown") | |
1212 | earth.Transparency = 0 | |
1213 | local earthm2 = Instance.new("BlockMesh") | |
1214 | earthm2.Scale = Vector3.new(1.5,5,1.5) | |
1215 | local earth2 = Instance.new("Part") | |
1216 | earth2.formFactor = 0 | |
1217 | earth2.CanCollide = false | |
1218 | earth2.Name = "Earth2" | |
1219 | earth2.Locked = true | |
1220 | earth2.Anchored = true | |
1221 | earth2.Size = Vector3.new(1,1,1) | |
1222 | earth2.Parent = swordholder | |
1223 | earth2.CFrame = CF2 | |
1224 | earthm2.Parent = earth2 | |
1225 | earth2.BrickColor = BrickColor.new("Brown") | |
1226 | earth2.Transparency = 0 | |
1227 | local earthm3 = Instance.new("SpecialMesh") | |
1228 | earthm3.Scale = Vector3.new(1.5,2.5,1.5) | |
1229 | earthm3.MeshType = "Wedge" | |
1230 | local earth3 = Instance.new("Part") | |
1231 | earth3.formFactor = 0 | |
1232 | earth3.CanCollide = false | |
1233 | earth3.Name = "Earth3" | |
1234 | earth3.Locked = true | |
1235 | earth3.Anchored = true | |
1236 | earth3.Size = Vector3.new(1,1,1) | |
1237 | earth3.Parent = swordholder | |
1238 | earth3.CFrame = earth2.CFrame * CFrame.new(0,5,0) | |
1239 | earthm3.Parent = earth3 | |
1240 | earth3.BrickColor = BrickColor.new("Brown") | |
1241 | earth3.Transparency = 0 | |
1242 | hum:TakeDamage(damage) | |
1243 | damagesplat(damage,c.Head,critornot) | |
1244 | table.insert(AoETrue,founded[i].Name) | |
1245 | coroutine.resume(coroutine.create(function() | |
1246 | for i = 1 , 1 do | |
1247 | rs(game.Workspace,5) | |
1248 | end | |
1249 | for z = 0 , 1 , 0.2 do | |
1250 | wait() | |
1251 | earth.CFrame = CF + Vector3.new(0,1*z,0) | |
1252 | earth2.CFrame = CF2 + Vector3.new(0,1.5*z,0) + (F.lookVector * -2*z) | |
1253 | earth3.CFrame = earth2.CFrame * CFrame.new(0,3.75,0) | |
1254 | end | |
1255 | wait(2) | |
1256 | earth.Parent = nil | |
1257 | earth2.Parent = nil | |
1258 | earth3.Parent = nil | |
1259 | end)) | |
1260 | ||
1261 | ||
1262 | end | |
1263 | end | |
1264 | end | |
1265 | end | |
1266 | ||
1267 | ||
1268 | function AoEQuake(p,magnitude,damage,critornot) | |
1269 | local c = game.Workspace:GetChildren(); | |
1270 | local founded = {} | |
1271 | for o = 1, #c do | |
1272 | local hum = c[o]:findFirstChild("Humanoid") | |
1273 | if hum ~= nil and hum.Health ~= 0 then | |
1274 | local head = c[o]:findFirstChild("Head"); | |
1275 | if head ~= nil then | |
1276 | local targ = head.Position - p.Position; | |
1277 | local mag = targ.magnitude; | |
1278 | if mag <= magnitude and c[o].Name ~= Character.Name then | |
1279 | table.insert(founded,c[o]) | |
1280 | end | |
1281 | end | |
1282 | end | |
1283 | end | |
1284 | ||
1285 | if #founded ~= 0 then | |
1286 | local foundd = false | |
1287 | local randommm = math.floor(math.random(1,#founded)) | |
1288 | for i = 1, #founded do | |
1289 | ||
1290 | if randommm == i then | |
1291 | local hum = founded[i].Humanoid | |
1292 | local c = founded[i] | |
1293 | local F = CFrame.new(c.Torso.Position,Torso.Position) | |
1294 | local CF = c.Torso.CFrame * CFrame.new(0,-4.5,1) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0) + (F.lookVector * 1) | |
1295 | local CF2 = (c.Torso.CFrame) * CFrame.new(0,-4.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad(45+90),math.rad(0),0) + (F.lookVector * -1) | |
1296 | local CF3 = (c.Torso.CFrame) * CFrame.new(1.5,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(-45)) + (F.lookVector * 1) | |
1297 | local CF4 = (c.Torso.CFrame) * CFrame.new(-1.5,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(45)) + (F.lookVector * -1) | |
1298 | local CF5 = (c.Torso.CFrame) * CFrame.new(0,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)) + (F.lookVector * 0) | |
1299 | local earthm = Instance.new("BlockMesh") | |
1300 | earthm.Scale = Vector3.new(1.5,4,1.5) | |
1301 | local earth = Instance.new("Part") | |
1302 | earth.formFactor = 0 | |
1303 | earth.CanCollide = false | |
1304 | earth.Name = "Earth1" | |
1305 | earth.Locked = true | |
1306 | earth.Anchored = true | |
1307 | earth.Size = Vector3.new(1,1,1) | |
1308 | earth.Parent = swordholder | |
1309 | earth.CFrame = CF | |
1310 | earthm.Parent = earth | |
1311 | earth.BrickColor = BrickColor.new("Brown") | |
1312 | earth.Transparency = 0 | |
1313 | local earthm2 = Instance.new("BlockMesh") | |
1314 | earthm2.Scale = Vector3.new(1.5,4,1.5) | |
1315 | local earth2 = Instance.new("Part") | |
1316 | earth2.formFactor = 0 | |
1317 | earth2.CanCollide = false | |
1318 | earth2.Name = "Earth2" | |
1319 | earth2.Locked = true | |
1320 | earth2.Anchored = true | |
1321 | earth2.Size = Vector3.new(1,1,1) | |
1322 | earth2.Parent = swordholder | |
1323 | earth2.CFrame = CF2 | |
1324 | earthm2.Parent = earth2 | |
1325 | earth2.BrickColor = BrickColor.new("Brown") | |
1326 | earth2.Transparency = 0 | |
1327 | local earthm3 = Instance.new("BlockMesh") | |
1328 | earthm3.Scale = Vector3.new(1.5,4,1.5) | |
1329 | local earth3 = Instance.new("Part") | |
1330 | earth3.formFactor = 0 | |
1331 | earth3.CanCollide = false | |
1332 | earth3.Name = "Earth3" | |
1333 | earth3.Locked = true | |
1334 | earth3.Anchored = true | |
1335 | earth3.Size = Vector3.new(1,1,1) | |
1336 | earth3.Parent = swordholder | |
1337 | earth3.CFrame = CF3 | |
1338 | earthm3.Parent = earth3 | |
1339 | earth3.BrickColor = BrickColor.new("Brown") | |
1340 | earth3.Transparency = 0 | |
1341 | local earthm4 = Instance.new("BlockMesh") | |
1342 | earthm4.Scale = Vector3.new(1.5,4,1.5) | |
1343 | local earth4 = Instance.new("Part") | |
1344 | earth4.formFactor = 0 | |
1345 | earth4.CanCollide = false | |
1346 | earth4.Name = "Earth4" | |
1347 | earth4.Locked = true | |
1348 | earth4.Anchored = true | |
1349 | earth4.Size = Vector3.new(1,1,1) | |
1350 | earth4.Parent = swordholder | |
1351 | earth4.CFrame = CF4 | |
1352 | earthm4.Parent = earth4 | |
1353 | earth4.BrickColor = BrickColor.new("Brown") | |
1354 | earth4.Transparency = 0 | |
1355 | local earthm5 = Instance.new("SpecialMesh") | |
1356 | earthm5.Scale = Vector3.new(3,5,3) | |
1357 | earthm5.MeshType = "FileMesh" | |
1358 | earthm5.MeshId = "http://www.roblox.com/asset/?id=1778999" | |
1359 | local earth5 = Instance.new("Part") | |
1360 | earth5.formFactor = 0 | |
1361 | earth5.CanCollide = false | |
1362 | earth5.Name = "Earth5" | |
1363 | earth5.Locked = true | |
1364 | earth5.Anchored = true | |
1365 | earth5.Size = Vector3.new(1,1,1) | |
1366 | earth5.Parent = swordholder | |
1367 | earth5.CFrame = CF5 | |
1368 | earthm5.Parent = earth5 | |
1369 | earth5.BrickColor = BrickColor.new("Brown") | |
1370 | earth5.Transparency = 0 | |
1371 | hum:TakeDamage(damage) | |
1372 | damagesplat(damage,c.Head,critornot) | |
1373 | table.insert(AoETrue,founded[i].Name) | |
1374 | coroutine.resume(coroutine.create(function() | |
1375 | for i = 1 , 3 do | |
1376 | rs(game.Workspace,3) | |
1377 | end | |
1378 | for z = 0 , 1 , 0.2 do | |
1379 | wait() | |
1380 | earth.CFrame = CF + Vector3.new(0,2*z,0) | |
1381 | earth2.CFrame = CF2 + Vector3.new(0,2*z,0) | |
1382 | earth3.CFrame = CF3 + Vector3.new(0,2*z,0) | |
1383 | earth4.CFrame = CF4 + Vector3.new(0,2*z,0) | |
1384 | earth5.CFrame = CF5 + Vector3.new(0,4*z,0) | |
1385 | end | |
1386 | wait(2) | |
1387 | for z = 0 , 1 , 0.2 do | |
1388 | wait() | |
1389 | earth.CFrame = CF + Vector3.new(0,2-2*z,0) | |
1390 | earth2.CFrame = CF2 + Vector3.new(0,2-2*z,0) | |
1391 | earth3.CFrame = CF3 + Vector3.new(0,2-2*z,0) | |
1392 | earth4.CFrame = CF4 + Vector3.new(0,2-2*z,0) | |
1393 | earth5.CFrame = CF5 + Vector3.new(0,4-7*z,0) | |
1394 | end | |
1395 | earth.Parent = nil | |
1396 | earth2.Parent = nil | |
1397 | earth3.Parent = nil | |
1398 | earth4.Parent = nil | |
1399 | earth5.Parent = nil | |
1400 | end)) | |
1401 | ||
1402 | ||
1403 | end | |
1404 | end | |
1405 | end | |
1406 | end | |
1407 | ||
1408 | ||
1409 | function AoECataclysm(p,magnitude,damage,critornot) | |
1410 | local c = game.Workspace:GetChildren(); | |
1411 | local founded = {} | |
1412 | for o = 1, #c do | |
1413 | local hum = c[o]:findFirstChild("Humanoid") | |
1414 | if hum ~= nil and hum.Health ~= 0 then | |
1415 | local head = c[o]:findFirstChild("Head"); | |
1416 | if head ~= nil then | |
1417 | local targ = head.Position - p.Position; | |
1418 | local mag = targ.magnitude; | |
1419 | if mag <= magnitude and c[o].Name ~= Character.Name then | |
1420 | table.insert(founded,c[o]) | |
1421 | --blast(2.5,0.5,"Really red",prt2,false) | |
1422 | end | |
1423 | end | |
1424 | end | |
1425 | end | |
1426 | ||
1427 | if #founded ~= 0 then | |
1428 | local foundd = false | |
1429 | local randommm = math.floor(math.random(1,#founded)) | |
1430 | for i = 1, #founded do | |
1431 | ||
1432 | if randommm == i then | |
1433 | local hum = founded[i].Humanoid | |
1434 | local c = founded[i] | |
1435 | local F = CFrame.new(c.Torso.Position,Torso.Position) | |
1436 | local CF = c.Torso.CFrame * CFrame.new(0,-4.5,2.5) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0) + (F.lookVector * 1) | |
1437 | local CF2 = (c.Torso.CFrame) * CFrame.new(0,-4.5,-2.5) * CFrame.fromEulerAnglesXYZ(math.rad(45+90),math.rad(0),0) + (F.lookVector * -1) | |
1438 | local CF3 = (c.Torso.CFrame) * CFrame.new(3,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(-45)) + (F.lookVector * 1) | |
1439 | local CF4 = (c.Torso.CFrame) * CFrame.new(-3,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(45)) + (F.lookVector * -1) | |
1440 | local CF5 = (c.Torso.CFrame) * CFrame.new(0,-20,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(math.random(-360,350)),math.rad(0)) + (F.lookVector * 0) | |
1441 | local earthm = Instance.new("BlockMesh") | |
1442 | earthm.Scale = Vector3.new(1.5,4,1.5) | |
1443 | local earth = Instance.new("Part") | |
1444 | earth.formFactor = 0 | |
1445 | earth.CanCollide = false | |
1446 | earth.Name = "Earth1" | |
1447 | earth.Locked = true | |
1448 | earth.Anchored = true | |
1449 | earth.Size = Vector3.new(1,1,1) | |
1450 | earth.Parent = swordholder | |
1451 | earth.CFrame = CF | |
1452 | earthm.Parent = earth | |
1453 | earth.BrickColor = BrickColor.new("Brown") | |
1454 | earth.Transparency = 0 | |
1455 | local earthm2 = Instance.new("BlockMesh") | |
1456 | earthm2.Scale = Vector3.new(1.5,4,1.5) | |
1457 | local earth2 = Instance.new("Part") | |
1458 | earth2.formFactor = 0 | |
1459 | earth2.CanCollide = false | |
1460 | earth2.Name = "Earth2" | |
1461 | earth2.Locked = true | |
1462 | earth2.Anchored = true | |
1463 | earth2.Size = Vector3.new(1,1,1) | |
1464 | earth2.Parent = swordholder | |
1465 | earth2.CFrame = CF2 | |
1466 | earthm2.Parent = earth2 | |
1467 | earth2.BrickColor = BrickColor.new("Brown") | |
1468 | earth2.Transparency = 0 | |
1469 | local earthm3 = Instance.new("BlockMesh") | |
1470 | earthm3.Scale = Vector3.new(1.5,4,1.5) | |
1471 | local earth3 = Instance.new("Part") | |
1472 | earth3.formFactor = 0 | |
1473 | earth3.CanCollide = false | |
1474 | earth3.Name = "Earth3" | |
1475 | earth3.Locked = true | |
1476 | earth3.Anchored = true | |
1477 | earth3.Size = Vector3.new(1,1,1) | |
1478 | earth3.Parent = swordholder | |
1479 | earth3.CFrame = CF3 | |
1480 | earthm3.Parent = earth3 | |
1481 | earth3.BrickColor = BrickColor.new("Brown") | |
1482 | earth3.Transparency = 0 | |
1483 | local earthm4 = Instance.new("BlockMesh") | |
1484 | earthm4.Scale = Vector3.new(1.5,4,1.5) | |
1485 | local earth4 = Instance.new("Part") | |
1486 | earth4.formFactor = 0 | |
1487 | earth4.CanCollide = false | |
1488 | earth4.Name = "Earth4" | |
1489 | earth4.Locked = true | |
1490 | earth4.Anchored = true | |
1491 | earth4.Size = Vector3.new(1,1,1) | |
1492 | earth4.Parent = swordholder | |
1493 | earth4.CFrame = CF4 | |
1494 | earthm4.Parent = earth4 | |
1495 | earth4.BrickColor = BrickColor.new("Brown") | |
1496 | earth4.Transparency = 0 | |
1497 | local earthm5 = Instance.new("BlockMesh") | |
1498 | earthm5.Scale = Vector3.new(5,15,1) | |
1499 | local earth5 = Instance.new("Part") | |
1500 | earth5.formFactor = 0 | |
1501 | earth5.CanCollide = false | |
1502 | earth5.Name = "Earth5" | |
1503 | earth5.Locked = true | |
1504 | earth5.Anchored = true | |
1505 | earth5.Size = Vector3.new(1,1,1) | |
1506 | earth5.Parent = swordholder | |
1507 | earth5.CFrame = CF5 | |
1508 | earthm5.Parent = earth5 | |
1509 | earth5.BrickColor = BrickColor.new("Brown") | |
1510 | earth5.Transparency = 0 | |
1511 | local earthm6 = Instance.new("SpecialMesh") | |
1512 | earthm6.Scale = Vector3.new(1,2,2.5) | |
1513 | earthm6.MeshType = "Wedge" | |
1514 | local earth6 = Instance.new("Part") | |
1515 | earth6.formFactor = 0 | |
1516 | earth6.CanCollide = false | |
1517 | earth6.Name = "EarthTip1" | |
1518 | earth6.Locked = true | |
1519 | earth6.Anchored = true | |
1520 | earth6.Size = Vector3.new(1,1,1) | |
1521 | earth6.Parent = swordholder | |
1522 | earth6.CFrame = CF5 * CFrame.new(-1.25,8.5+22,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0) | |
1523 | earthm6.Parent = earth6 | |
1524 | earth6.BrickColor = BrickColor.new("Brown") | |
1525 | earth6.Transparency = 0 | |
1526 | local earthm7 = Instance.new("SpecialMesh") | |
1527 | earthm7.Scale = Vector3.new(1,2,2.5) | |
1528 | earthm7.MeshType = "Wedge" | |
1529 | local earth7 = Instance.new("Part") | |
1530 | earth7.formFactor = 0 | |
1531 | earth7.CanCollide = false | |
1532 | earth7.Name = "EarthTip2" | |
1533 | earth7.Locked = true | |
1534 | earth7.Anchored = true | |
1535 | earth7.Size = Vector3.new(1,1,1) | |
1536 | earth7.Parent = swordholder | |
1537 | earth7.CFrame = CF5 * CFrame.new(1.25,8.5+22,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90+180),0) | |
1538 | earthm7.Parent = earth7 | |
1539 | earth7.BrickColor = BrickColor.new("Brown") | |
1540 | earth7.Transparency = 0 | |
1541 | hum:TakeDamage(damage) | |
1542 | damagesplat(damage,c.Head,critornot) | |
1543 | table.insert(AoETrue,founded[i].Name) | |
1544 | coroutine.resume(coroutine.create(function() | |
1545 | for i = 1 , 5 do | |
1546 | rs(game.Workspace,2) | |
1547 | end | |
1548 | for z = 0 , 1 , 0.1 do | |
1549 | wait() | |
1550 | earth.CFrame = CF + Vector3.new(0,2*z,0) | |
1551 | earth2.CFrame = CF2 + Vector3.new(0,2*z,0) | |
1552 | earth3.CFrame = CF3 + Vector3.new(0,2*z,0) | |
1553 | earth4.CFrame = CF4 + Vector3.new(0,2*z,0) | |
1554 | earth5.CFrame = CF5 + Vector3.new(0,22*z,0) | |
1555 | earth6.CFrame = CF5 * CFrame.new(-1.25,8.5+22*z,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0) | |
1556 | earth7.CFrame = CF5 * CFrame.new(1.25,8.5+22*z,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90+180),0) | |
1557 | end | |
1558 | wait(2) | |
1559 | for z = 0 , 1 , 0.2 do | |
1560 | wait() | |
1561 | earth.CFrame = CF + Vector3.new(0,2-2*z,0) | |
1562 | earth2.CFrame = CF2 + Vector3.new(0,2-2*z,0) | |
1563 | earth3.CFrame = CF3 + Vector3.new(0,2-2*z,0) | |
1564 | earth4.CFrame = CF4 + Vector3.new(0,2-2*z,0) | |
1565 | earth5.CFrame = CF5 + Vector3.new(0,22-30*z,0) | |
1566 | earth6.CFrame = CF5 * CFrame.new(-1.25,30.5-22*z,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0) | |
1567 | earth7.CFrame = CF5 * CFrame.new(1.25,30.5-22*z,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90+180),0) | |
1568 | end | |
1569 | earth.Parent = nil | |
1570 | earth2.Parent = nil | |
1571 | earth3.Parent = nil | |
1572 | earth4.Parent = nil | |
1573 | earth5.Parent = nil | |
1574 | earth6.Parent = nil | |
1575 | earth7.Parent = nil | |
1576 | end)) | |
1577 | ||
1578 | ||
1579 | end | |
1580 | end | |
1581 | end | |
1582 | end | |
1583 | ||
1584 | ||
1585 | function AoETundra(p,magnitude,damage,critornot) | |
1586 | local c = game.Workspace:GetChildren(); | |
1587 | local founded = {} | |
1588 | for o = 1, #c do | |
1589 | local hum = c[o]:findFirstChild("Humanoid") | |
1590 | if hum ~= nil and hum.Health ~= 0 then | |
1591 | local head = c[o]:findFirstChild("Head"); | |
1592 | if head ~= nil then | |
1593 | local targ = head.Position - p.Position; | |
1594 | local mag = targ.magnitude; | |
1595 | if mag <= magnitude and c[o].Name ~= Character.Name then | |
1596 | table.insert(founded,c[o]) | |
1597 | end | |
1598 | end | |
1599 | end | |
1600 | end | |
1601 | ||
1602 | if #founded ~= 0 then | |
1603 | local foundd = false | |
1604 | local randommm = math.floor(math.random(1,#founded)) | |
1605 | for i = 1, #founded do | |
1606 | ||
1607 | if randommm == i then | |
1608 | local hum = founded[i].Humanoid | |
1609 | local c = founded[i] | |
1610 | local F = CFrame.new(c.Torso.Position,Torso.Position) | |
1611 | local CF = c.Torso.CFrame * CFrame.new(0,-4.5,1) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0) + (F.lookVector * 1) | |
1612 | local CF2 = (c.Torso.CFrame) * CFrame.new(0,-4.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad(45+90),math.rad(0),0) + (F.lookVector * -1) | |
1613 | local CF3 = (c.Torso.CFrame) * CFrame.new(1.5,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(-45)) + (F.lookVector * 1) | |
1614 | local CF4 = (c.Torso.CFrame) * CFrame.new(-1.5,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(45)) + (F.lookVector * -1) | |
1615 | local CF5 = (c.Torso.CFrame) * CFrame.new(0,-5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(math.random(-360,350)),math.rad(0)) + (F.lookVector * 0) | |
1616 | local earthm = Instance.new("BlockMesh") | |
1617 | earthm.Scale = Vector3.new(1.5,4,1.5) | |
1618 | local earth = Instance.new("Part") | |
1619 | earth.formFactor = 0 | |
1620 | earth.CanCollide = false | |
1621 | earth.Name = "Earth1" | |
1622 | earth.Locked = true | |
1623 | earth.Anchored = true | |
1624 | earth.Size = Vector3.new(1,1,1) | |
1625 | earth.Parent = swordholder | |
1626 | earth.CFrame = CF | |
1627 | earthm.Parent = earth | |
1628 | earth.BrickColor = BrickColor.new("Brown") | |
1629 | earth.Transparency = 0 | |
1630 | local earthm2 = Instance.new("BlockMesh") | |
1631 | earthm2.Scale = Vector3.new(1.5,4,1.5) | |
1632 | local earth2 = Instance.new("Part") | |
1633 | earth2.formFactor = 0 | |
1634 | earth2.CanCollide = false | |
1635 | earth2.Name = "Earth2" | |
1636 | earth2.Locked = true | |
1637 | earth2.Anchored = true | |
1638 | earth2.Size = Vector3.new(1,1,1) | |
1639 | earth2.Parent = swordholder | |
1640 | earth2.CFrame = CF2 | |
1641 | earthm2.Parent = earth2 | |
1642 | earth2.BrickColor = BrickColor.new("Brown") | |
1643 | earth2.Transparency = 0 | |
1644 | local earthm3 = Instance.new("BlockMesh") | |
1645 | earthm3.Scale = Vector3.new(1.5,4,1.5) | |
1646 | local earth3 = Instance.new("Part") | |
1647 | earth3.formFactor = 0 | |
1648 | earth3.CanCollide = false | |
1649 | earth3.Name = "Earth3" | |
1650 | earth3.Locked = true | |
1651 | earth3.Anchored = true | |
1652 | earth3.Size = Vector3.new(1,1,1) | |
1653 | earth3.Parent = swordholder | |
1654 | earth3.CFrame = CF3 | |
1655 | earthm3.Parent = earth3 | |
1656 | earth3.BrickColor = BrickColor.new("Brown") | |
1657 | earth3.Transparency = 0 | |
1658 | local earthm4 = Instance.new("BlockMesh") | |
1659 | earthm4.Scale = Vector3.new(1.5,4,1.5) | |
1660 | local earth4 = Instance.new("Part") | |
1661 | earth4.formFactor = 0 | |
1662 | earth4.CanCollide = false | |
1663 | earth4.Name = "Earth4" | |
1664 | earth4.Locked = true | |
1665 | earth4.Anchored = true | |
1666 | earth4.Size = Vector3.new(1,1,1) | |
1667 | earth4.Parent = swordholder | |
1668 | earth4.CFrame = CF4 | |
1669 | earthm4.Parent = earth4 | |
1670 | earth4.BrickColor = BrickColor.new("Brown") | |
1671 | earth4.Transparency = 0 | |
1672 | local earthm5 = Instance.new("SpecialMesh") | |
1673 | earthm5.Scale = Vector3.new(3,5,3) | |
1674 | earthm5.MeshType = "Wedge" | |
1675 | local earth5 = Instance.new("Part") | |
1676 | earth5.formFactor = 0 | |
1677 | earth5.CanCollide = false | |
1678 | earth5.Name = "Earth5" | |
1679 | earth5.Locked = true | |
1680 | earth5.Anchored = true | |
1681 | earth5.Size = Vector3.new(1,1,1) | |
1682 | earth5.Parent = swordholder | |
1683 | earth5.CFrame = CF5 | |
1684 | earthm5.Parent = earth5 | |
1685 | earth5.BrickColor = BrickColor.new("Bright blue") | |
1686 | earth5.Reflectance = 0.5 | |
1687 | earth5.Transparency = 0.25 | |
1688 | hum:TakeDamage(damage) | |
1689 | damagesplat(damage,c.Head,critornot) | |
1690 | table.insert(AoETrue,founded[i].Name) | |
1691 | coroutine.resume(coroutine.create(function() | |
1692 | for i = 1 , 3 do | |
1693 | rs(game.Workspace,3) | |
1694 | end | |
1695 | for z = 0 , 1 , 0.2 do | |
1696 | wait() | |
1697 | earth.CFrame = CF + Vector3.new(0,2*z,0) | |
1698 | earth2.CFrame = CF2 + Vector3.new(0,2*z,0) | |
1699 | earth3.CFrame = CF3 + Vector3.new(0,2*z,0) | |
1700 | earth4.CFrame = CF4 + Vector3.new(0,2*z,0) | |
1701 | earth5.CFrame = CF5 + Vector3.new(0,3*z,0) | |
1702 | end | |
1703 | wait(2) | |
1704 | for z = 0 , 1 , 0.2 do | |
1705 | wait() | |
1706 | earth.CFrame = CF + Vector3.new(0,2-2*z,0) | |
1707 | earth2.CFrame = CF2 + Vector3.new(0,2-2*z,0) | |
1708 | earth3.CFrame = CF3 + Vector3.new(0,2-2*z,0) | |
1709 | earth4.CFrame = CF4 + Vector3.new(0,2-2*z,0) | |
1710 | earth5.CFrame = CF5 + Vector3.new(0,3-7*z,0) | |
1711 | end | |
1712 | earth.Parent = nil | |
1713 | earth2.Parent = nil | |
1714 | earth3.Parent = nil | |
1715 | earth4.Parent = nil | |
1716 | earth5.Parent = nil | |
1717 | end)) | |
1718 | ||
1719 | ||
1720 | end | |
1721 | end | |
1722 | end | |
1723 | end | |
1724 | ||
1725 | ||
1726 | function AoEIceberg(p,magnitude,damage,critornot) | |
1727 | local c = game.Workspace:GetChildren(); | |
1728 | local founded = {} | |
1729 | for o = 1, #c do | |
1730 | local hum = c[o]:findFirstChild("Humanoid") | |
1731 | if hum ~= nil and hum.Health ~= 0 then | |
1732 | local head = c[o]:findFirstChild("Head"); | |
1733 | if head ~= nil then | |
1734 | local targ = head.Position - p.Position; | |
1735 | local mag = targ.magnitude; | |
1736 | if mag <= magnitude and c[o].Name ~= Character.Name then | |
1737 | table.insert(founded,c[o]) | |
1738 | end | |
1739 | end | |
1740 | end | |
1741 | end | |
1742 | ||
1743 | if #founded ~= 0 then | |
1744 | local foundd = false | |
1745 | local randommm = math.floor(math.random(1,#founded)) | |
1746 | for i = 1, #founded do | |
1747 | ||
1748 | if randommm == i then | |
1749 | local hum = founded[i].Humanoid | |
1750 | local c = founded[i] | |
1751 | local F = CFrame.new(c.Torso.Position,Torso.Position) | |
1752 | local CF = c.Torso.CFrame * CFrame.new(0,-4.5,2.5) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0) + (F.lookVector * 1) | |
1753 | local CF2 = (c.Torso.CFrame) * CFrame.new(0,-4.5,-2.5) * CFrame.fromEulerAnglesXYZ(math.rad(45+90),math.rad(0),0) + (F.lookVector * -1) | |
1754 | local CF3 = (c.Torso.CFrame) * CFrame.new(3,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(-45)) + (F.lookVector * 1) | |
1755 | local CF4 = (c.Torso.CFrame) * CFrame.new(-3,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(45)) + (F.lookVector * -1) | |
1756 | local CF5 = (c.Torso.CFrame) * CFrame.new(0,-20,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(math.random(-360,350)),math.rad(0)) + (F.lookVector * 0) | |
1757 | local earthm = Instance.new("BlockMesh") | |
1758 | earthm.Scale = Vector3.new(1.5,4,1.5) | |
1759 | local earth = Instance.new("Part") | |
1760 | earth.formFactor = 0 | |
1761 | earth.CanCollide = false | |
1762 | earth.Name = "Earth1" | |
1763 | earth.Locked = true | |
1764 | earth.Anchored = true | |
1765 | earth.Size = Vector3.new(1,1,1) | |
1766 | earth.Parent = swordholder | |
1767 | earth.CFrame = CF | |
1768 | earthm.Parent = earth | |
1769 | earth.BrickColor = BrickColor.new("Brown") | |
1770 | earth.Transparency = 0 | |
1771 | local earthm2 = Instance.new("BlockMesh") | |
1772 | earthm2.Scale = Vector3.new(1.5,4,1.5) | |
1773 | local earth2 = Instance.new("Part") | |
1774 | earth2.formFactor = 0 | |
1775 | earth2.CanCollide = false | |
1776 | earth2.Name = "Earth2" | |
1777 | earth2.Locked = true | |
1778 | earth2.Anchored = true | |
1779 | earth2.Size = Vector3.new(1,1,1) | |
1780 | earth2.Parent = swordholder | |
1781 | earth2.CFrame = CF2 | |
1782 | earthm2.Parent = earth2 | |
1783 | earth2.BrickColor = BrickColor.new("Brown") | |
1784 | earth2.Transparency = 0 | |
1785 | local earthm3 = Instance.new("BlockMesh") | |
1786 | earthm3.Scale = Vector3.new(1.5,4,1.5) | |
1787 | local earth3 = Instance.new("Part") | |
1788 | earth3.formFactor = 0 | |
1789 | earth3.CanCollide = false | |
1790 | earth3.Name = "Earth3" | |
1791 | earth3.Locked = true | |
1792 | earth3.Anchored = true | |
1793 | earth3.Size = Vector3.new(1,1,1) | |
1794 | earth3.Parent = swordholder | |
1795 | earth3.CFrame = CF3 | |
1796 | earthm3.Parent = earth3 | |
1797 | earth3.BrickColor = BrickColor.new("Brown") | |
1798 | earth3.Transparency = 0 | |
1799 | local earthm4 = Instance.new("BlockMesh") | |
1800 | earthm4.Scale = Vector3.new(1.5,4,1.5) | |
1801 | local earth4 = Instance.new("Part") | |
1802 | earth4.formFactor = 0 | |
1803 | earth4.CanCollide = false | |
1804 | earth4.Name = "Earth4" | |
1805 | earth4.Locked = true | |
1806 | earth4.Anchored = true | |
1807 | earth4.Size = Vector3.new(1,1,1) | |
1808 | earth4.Parent = swordholder | |
1809 | earth4.CFrame = CF4 | |
1810 | earthm4.Parent = earth4 | |
1811 | earth4.BrickColor = BrickColor.new("Brown") | |
1812 | earth4.Transparency = 0 | |
1813 | local earthm5 = Instance.new("BlockMesh") | |
1814 | earthm5.Scale = Vector3.new(5,15,1) | |
1815 | local earth5 = Instance.new("Part") | |
1816 | earth5.formFactor = 0 | |
1817 | earth5.CanCollide = false | |
1818 | earth5.Name = "Earth5" | |
1819 | earth5.Locked = true | |
1820 | earth5.Anchored = true | |
1821 | earth5.Size = Vector3.new(1,1,1) | |
1822 | earth5.Parent = swordholder | |
1823 | earth5.CFrame = CF5 | |
1824 | earthm5.Parent = earth5 | |
1825 | earth5.BrickColor = BrickColor.new("Bright blue") | |
1826 | earth5.Reflectance = 0.5 | |
1827 | earth5.Transparency = 0.25 | |
1828 | local earthm6 = Instance.new("SpecialMesh") | |
1829 | earthm6.Scale = Vector3.new(1,2,2.5) | |
1830 | earthm6.MeshType = "Wedge" | |
1831 | local earth6 = Instance.new("Part") | |
1832 | earth6.formFactor = 0 | |
1833 | earth6.CanCollide = false | |
1834 | earth6.Name = "EarthTip1" | |
1835 | earth6.Locked = true | |
1836 | earth6.Anchored = true | |
1837 | earth6.Size = Vector3.new(1,1,1) | |
1838 | earth6.Parent = swordholder | |
1839 | earth6.CFrame = CF5 * CFrame.new(-1.25,8.5+22,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0) | |
1840 | earthm6.Parent = earth6 | |
1841 | earth6.BrickColor = BrickColor.new("Bright blue") | |
1842 | earth6.Reflectance = 0.5 | |
1843 | earth6.Transparency = 0.25 | |
1844 | local earthm7 = Instance.new("SpecialMesh") | |
1845 | earthm7.Scale = Vector3.new(1,2,2.5) | |
1846 | earthm7.MeshType = "Wedge" | |
1847 | local earth7 = Instance.new("Part") | |
1848 | earth7.formFactor = 0 | |
1849 | earth7.CanCollide = false | |
1850 | earth7.Name = "EarthTip2" | |
1851 | earth7.Locked = true | |
1852 | earth7.Anchored = true | |
1853 | earth7.Size = Vector3.new(1,1,1) | |
1854 | earth7.Parent = swordholder | |
1855 | earth7.CFrame = CF5 * CFrame.new(1.25,8.5+22,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90+180),0) | |
1856 | earthm7.Parent = earth7 | |
1857 | earth7.BrickColor = BrickColor.new("Bright blue") | |
1858 | earth7.Reflectance = 0.5 | |
1859 | earth7.Transparency = 0.25 | |
1860 | hum:TakeDamage(damage) | |
1861 | damagesplat(damage,c.Head,critornot) | |
1862 | table.insert(AoETrue,founded[i].Name) | |
1863 | coroutine.resume(coroutine.create(function() | |
1864 | for i = 1 , 5 do | |
1865 | rs(game.Workspace,2) | |
1866 | end | |
1867 | for z = 0 , 1 , 0.1 do | |
1868 | wait() | |
1869 | earth.CFrame = CF + Vector3.new(0,2*z,0) | |
1870 | earth2.CFrame = CF2 + Vector3.new(0,2*z,0) | |
1871 | earth3.CFrame = CF3 + Vector3.new(0,2*z,0) | |
1872 | earth4.CFrame = CF4 + Vector3.new(0,2*z,0) | |
1873 | earth5.CFrame = CF5 + Vector3.new(0,22*z,0) | |
1874 | earth6.CFrame = CF5 * CFrame.new(-1.25,8.5+22*z,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0) | |
1875 | earth7.CFrame = CF5 * CFrame.new(1.25,8.5+22*z,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90+180),0) | |
1876 | end | |
1877 | wait(2) | |
1878 | for z = 0 , 1 , 0.2 do | |
1879 | wait() | |
1880 | earth.CFrame = CF + Vector3.new(0,2-2*z,0) | |
1881 | earth2.CFrame = CF2 + Vector3.new(0,2-2*z,0) | |
1882 | earth3.CFrame = CF3 + Vector3.new(0,2-2*z,0) | |
1883 | earth4.CFrame = CF4 + Vector3.new(0,2-2*z,0) | |
1884 | earth5.CFrame = CF5 + Vector3.new(0,22-30*z,0) | |
1885 | earth6.CFrame = CF5 * CFrame.new(-1.25,30.5-22*z,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0) | |
1886 | earth7.CFrame = CF5 * CFrame.new(1.25,30.5-22*z,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90+180),0) | |
1887 | end | |
1888 | earth.Parent = nil | |
1889 | earth2.Parent = nil | |
1890 | earth3.Parent = nil | |
1891 | earth4.Parent = nil | |
1892 | earth5.Parent = nil | |
1893 | earth6.Parent = nil | |
1894 | earth7.Parent = nil | |
1895 | end)) | |
1896 | ||
1897 | ||
1898 | end | |
1899 | end | |
1900 | end | |
1901 | end | |
1902 | ||
1903 | function AoEFume(p,magnitude,damage,critornot) | |
1904 | local c = game.Workspace:GetChildren(); | |
1905 | local founded = {} | |
1906 | for o = 1, #c do | |
1907 | local hum = c[o]:findFirstChild("Humanoid") | |
1908 | if hum ~= nil and hum.Health ~= 0 then | |
1909 | local head = c[o]:findFirstChild("Head"); | |
1910 | if head ~= nil then | |
1911 | local targ = head.Position - p.Position; | |
1912 | local mag = targ.magnitude; | |
1913 | if mag <= magnitude and c[o].Name ~= Character.Name then | |
1914 | table.insert(founded,c[o]) | |
1915 | --blast(2.5,0.5,"Really red",prt2,false) | |
1916 | end | |
1917 | end | |
1918 | end | |
1919 | end | |
1920 | ||
1921 | if #founded ~= 0 then | |
1922 | local foundd = false | |
1923 | local randommm = math.floor(math.random(1,#founded)) | |
1924 | for i = 1, #founded do | |
1925 | ||
1926 | if randommm == i then | |
1927 | local hum = founded[i].Humanoid | |
1928 | local c = founded[i] | |
1929 | local F = CFrame.new(c.Torso.Position,Torso.Position) | |
1930 | local CF = c.Torso.CFrame * CFrame.new(0,-4.5,1) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0) + (F.lookVector * 1) | |
1931 | local CF2 = (c.Torso.CFrame) * CFrame.new(0,-4.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad(45+90),math.rad(0),0) + (F.lookVector * -1) | |
1932 | local CF3 = (c.Torso.CFrame) * CFrame.new(1.5,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(-45)) + (F.lookVector * 1) | |
1933 | local CF4 = (c.Torso.CFrame) * CFrame.new(-1.5,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(45)) + (F.lookVector * -1) | |
1934 | local CF5 = (c.Torso.CFrame) * CFrame.new(0,1,0) | |
1935 | ||
1936 | local earthm = Instance.new("BlockMesh") | |
1937 | earthm.Scale = Vector3.new(1.5,4,1.5) | |
1938 | local earth = Instance.new("Part") | |
1939 | earth.formFactor = 0 | |
1940 | earth.CanCollide = false | |
1941 | earth.Name = "Earth1" | |
1942 | earth.Locked = true | |
1943 | earth.Anchored = true | |
1944 | earth.Size = Vector3.new(1,1,1) | |
1945 | earth.Parent = swordholder | |
1946 | earth.CFrame = CF | |
1947 | earthm.Parent = earth | |
1948 | earth.BrickColor = BrickColor.new("Brown") | |
1949 | earth.Transparency = 0 | |
1950 | local earthm2 = Instance.new("BlockMesh") | |
1951 | earthm2.Scale = Vector3.new(1.5,4,1.5) | |
1952 | local earth2 = Instance.new("Part") | |
1953 | earth2.formFactor = 0 | |
1954 | earth2.CanCollide = false | |
1955 | earth2.Name = "Earth2" | |
1956 | earth2.Locked = true | |
1957 | earth2.Anchored = true | |
1958 | earth2.Size = Vector3.new(1,1,1) | |
1959 | earth2.Parent = swordholder | |
1960 | earth2.CFrame = CF2 | |
1961 | earthm2.Parent = earth2 | |
1962 | earth2.BrickColor = BrickColor.new("Brown") | |
1963 | earth2.Transparency = 0 | |
1964 | local earthm3 = Instance.new("BlockMesh") | |
1965 | earthm3.Scale = Vector3.new(1.5,4,1.5) | |
1966 | local earth3 = Instance.new("Part") | |
1967 | earth3.formFactor = 0 | |
1968 | earth3.CanCollide = false | |
1969 | earth3.Name = "Earth3" | |
1970 | earth3.Locked = true | |
1971 | earth3.Anchored = true | |
1972 | earth3.Size = Vector3.new(1,1,1) | |
1973 | earth3.Parent = swordholder | |
1974 | earth3.CFrame = CF3 | |
1975 | earthm3.Parent = earth3 | |
1976 | earth3.BrickColor = BrickColor.new("Brown") | |
1977 | earth3.Transparency = 0 | |
1978 | local earthm4 = Instance.new("BlockMesh") | |
1979 | earthm4.Scale = Vector3.new(1.5,4,1.5) | |
1980 | local earth4 = Instance.new("Part") | |
1981 | earth4.formFactor = 0 | |
1982 | earth4.CanCollide = false | |
1983 | earth4.Name = "Earth4" | |
1984 | earth4.Locked = true | |
1985 | earth4.Anchored = true | |
1986 | earth4.Size = Vector3.new(1,1,1) | |
1987 | earth4.Parent = swordholder | |
1988 | earth4.CFrame = CF4 | |
1989 | earthm4.Parent = earth4 | |
1990 | earth4.BrickColor = BrickColor.new("Brown") | |
1991 | earth4.Transparency = 0 | |
1992 | ||
1993 | hum:TakeDamage(damage) | |
1994 | damagesplat(damage,c.Head,critornot) | |
1995 | table.insert(AoETrue,founded[i].Name) | |
1996 | coroutine.resume(coroutine.create(function() | |
1997 | ||
1998 | for i = 1 , 3 do | |
1999 | b2s(game.Workspace,1) | |
2000 | end | |
2001 | for z = 0 , 1 , 0.2 do | |
2002 | wait() | |
2003 | earth.CFrame = CF + Vector3.new(0,2*z,0) | |
2004 | earth2.CFrame = CF2 + Vector3.new(0,2*z,0) | |
2005 | earth3.CFrame = CF3 + Vector3.new(0,2*z,0) | |
2006 | earth4.CFrame = CF4 + Vector3.new(0,2*z,0) | |
2007 | end | |
2008 | for i = 1 , 15 do | |
2009 | local colors = {BrickColor.new("Really red"),BrickColor.new("Bright orange")} | |
2010 | local rndm = math.random(1,5) | |
2011 | local randomv = Vector3.new(rndm,rndm,rndm) | |
2012 | local mesh = Instance.new("SpecialMesh") | |
2013 | mesh.MeshType = "Sphere" | |
2014 | mesh.Scale = Vector3.new(0,0,0) | |
2015 | local shell = Instance.new("Part") | |
2016 | mesh.Parent = shell | |
2017 | shell.Anchored = true | |
2018 | shell.formFactor = 0 | |
2019 | shell.Size = Vector3.new(1,1,1) | |
2020 | local dir = CFrame.new(c.Torso.Position + Vector3.new(0,1,0),(c.Torso.Position + Vector3.new(0,1,0)) + Vector3.new(math.random(-2,2),3,math.random(-2,2))) | |
2021 | shell.CFrame = (c.Torso.CFrame * CFrame.new(0,0,0)) | |
2022 | shell.CFrame = shell.CFrame | |
2023 | shell.Parent = swordholder | |
2024 | shell.Transparency = 0 | |
2025 | shell.BrickColor = colors[math.random(1,#colors)] | |
2026 | shell.CanCollide = false | |
2027 | coroutine.resume(coroutine.create(function() | |
2028 | for i = 0 , 1 , 0.05 do | |
2029 | wait() | |
2030 | shell.Transparency = 1*i | |
2031 | shell.CFrame = shell.CFrame + (dir.lookVector * 1*i) | |
2032 | mesh.Scale = randomv * Vector3.new(i,i,i) | |
2033 | end | |
2034 | shell.Transparency = 1 | |
2035 | shell.Parent = nil | |
2036 | end)) | |
2037 | wait() | |
2038 | end | |
2039 | wait(2) | |
2040 | for z = 0 , 1 , 0.2 do | |
2041 | wait() | |
2042 | earth.CFrame = CF + Vector3.new(0,2-2*z,0) | |
2043 | earth2.CFrame = CF2 + Vector3.new(0,2-2*z,0) | |
2044 | earth3.CFrame = CF3 + Vector3.new(0,2-2*z,0) | |
2045 | earth4.CFrame = CF4 + Vector3.new(0,2-2*z,0) | |
2046 | end | |
2047 | earth.Parent = nil | |
2048 | earth2.Parent = nil | |
2049 | earth3.Parent = nil | |
2050 | earth4.Parent = nil | |
2051 | end)) | |
2052 | ||
2053 | ||
2054 | end | |
2055 | ||
2056 | end | |
2057 | end | |
2058 | end | |
2059 | ||
2060 | function AoEEruption(p,magnitude,damage,critornot) | |
2061 | local c = game.Workspace:GetChildren(); | |
2062 | local founded = {} | |
2063 | for o = 1, #c do | |
2064 | local hum = c[o]:findFirstChild("Humanoid") | |
2065 | if hum ~= nil and hum.Health ~= 0 then | |
2066 | local head = c[o]:findFirstChild("Head"); | |
2067 | if head ~= nil then | |
2068 | local targ = head.Position - p.Position; | |
2069 | local mag = targ.magnitude; | |
2070 | if mag <= magnitude and c[o].Name ~= Character.Name then | |
2071 | table.insert(founded,c[o]) | |
2072 | end | |
2073 | end | |
2074 | end | |
2075 | end | |
2076 | ||
2077 | if #founded ~= 0 then | |
2078 | local foundd = false | |
2079 | local randommm = math.floor(math.random(1,#founded)) | |
2080 | for i = 1, #founded do | |
2081 | ||
2082 | if randommm == i then | |
2083 | local hum = founded[i].Humanoid | |
2084 | local c = founded[i] | |
2085 | local F = CFrame.new(c.Torso.Position,Torso.Position) | |
2086 | local CF = c.Torso.CFrame * CFrame.new(0,-4.5,2.5) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0) + (F.lookVector * 1) | |
2087 | local CF2 = (c.Torso.CFrame) * CFrame.new(0,-4.5,-2.5) * CFrame.fromEulerAnglesXYZ(math.rad(45+90),math.rad(0),0) + (F.lookVector * -1) | |
2088 | local CF3 = (c.Torso.CFrame) * CFrame.new(3,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(-45)) + (F.lookVector * 1) | |
2089 | local CF4 = (c.Torso.CFrame) * CFrame.new(-3,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(45)) + (F.lookVector * -1) | |
2090 | local CF5 = (c.Torso.CFrame) * CFrame.new(0,-20,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(math.random(-360,350)),math.rad(0)) + (F.lookVector * 0) | |
2091 | local earthm = Instance.new("BlockMesh") | |
2092 | earthm.Scale = Vector3.new(1.5,4,1.5) | |
2093 | local earth = Instance.new("Part") | |
2094 | earth.formFactor = 0 | |
2095 | earth.CanCollide = false | |
2096 | earth.Name = "Earth1" | |
2097 | earth.Locked = true | |
2098 | earth.Anchored = true | |
2099 | earth.Size = Vector3.new(1,1,1) | |
2100 | earth.Parent = swordholder | |
2101 | earth.CFrame = CF | |
2102 | earthm.Parent = earth | |
2103 | earth.BrickColor = BrickColor.new("Brown") | |
2104 | earth.Transparency = 0 | |
2105 | local earthm2 = Instance.new("BlockMesh") | |
2106 | earthm2.Scale = Vector3.new(1.5,4,1.5) | |
2107 | local earth2 = Instance.new("Part") | |
2108 | earth2.formFactor = 0 | |
2109 | earth2.CanCollide = false | |
2110 | earth2.Name = "Earth2" | |
2111 | earth2.Locked = true | |
2112 | earth2.Anchored = true | |
2113 | earth2.Size = Vector3.new(1,1,1) | |
2114 | earth2.Parent = swordholder | |
2115 | earth2.CFrame = CF2 | |
2116 | earthm2.Parent = earth2 | |
2117 | earth2.BrickColor = BrickColor.new("Brown") | |
2118 | earth2.Transparency = 0 | |
2119 | local earthm3 = Instance.new("BlockMesh") | |
2120 | earthm3.Scale = Vector3.new(1.5,4,1.5) | |
2121 | local earth3 = Instance.new("Part") | |
2122 | earth3.formFactor = 0 | |
2123 | earth3.CanCollide = false | |
2124 | earth3.Name = "Earth3" | |
2125 | earth3.Locked = true | |
2126 | earth3.Anchored = true | |
2127 | earth3.Size = Vector3.new(1,1,1) | |
2128 | earth3.Parent = swordholder | |
2129 | earth3.CFrame = CF3 | |
2130 | earthm3.Parent = earth3 | |
2131 | earth3.BrickColor = BrickColor.new("Brown") | |
2132 | earth3.Transparency = 0 | |
2133 | local earthm4 = Instance.new("BlockMesh") | |
2134 | earthm4.Scale = Vector3.new(1.5,4,1.5) | |
2135 | local earth4 = Instance.new("Part") | |
2136 | earth4.formFactor = 0 | |
2137 | earth4.CanCollide = false | |
2138 | earth4.Name = "Earth4" | |
2139 | earth4.Locked = true | |
2140 | earth4.Anchored = true | |
2141 | earth4.Size = Vector3.new(1,1,1) | |
2142 | earth4.Parent = swordholder | |
2143 | earth4.CFrame = CF4 | |
2144 | earthm4.Parent = earth4 | |
2145 | earth4.BrickColor = BrickColor.new("Brown") | |
2146 | earth4.Transparency = 0 | |
2147 | local earthm5 = Instance.new("CylinderMesh") | |
2148 | earthm5.Scale = Vector3.new(5,15,5) | |
2149 | local earth5 = Instance.new("Part") | |
2150 | earth5.formFactor = 0 | |
2151 | earth5.CanCollide = false | |
2152 | earth5.Name = "Earth5" | |
2153 | earth5.Locked = true | |
2154 | earth5.Anchored = true | |
2155 | earth5.Size = Vector3.new(1,1,1) | |
2156 | earth5.Parent = swordholder | |
2157 | earth5.CFrame = CF5 | |
2158 | earthm5.Parent = earth5 | |
2159 | earth5.BrickColor = BrickColor.new("Really red") | |
2160 | earth5.Transparency = 0.25 | |
2161 | hum:TakeDamage(damage) | |
2162 | damagesplat(damage,c.Head,critornot) | |
2163 | table.insert(AoETrue,founded[i].Name) | |
2164 | coroutine.resume(coroutine.create(function() | |
2165 | for i = 1 , 5 do | |
2166 | rs(game.Workspace,2) | |
2167 | end | |
2168 | for z = 0 , 1 , 0.2 do | |
2169 | wait() | |
2170 | earth.CFrame = CF + Vector3.new(0,2*z,0) | |
2171 | earth2.CFrame = CF2 + Vector3.new(0,2*z,0) | |
2172 | earth3.CFrame = CF3 + Vector3.new(0,2*z,0) | |
2173 | earth4.CFrame = CF4 + Vector3.new(0,2*z,0) | |
2174 | earth5.CFrame = CF5 + Vector3.new(0,22*z,0) | |
2175 | end | |
2176 | for z = 0 , 1 , 0.1 do | |
2177 | wait() | |
2178 | earthm5.Scale = Vector3.new(5,15+500*z,5) | |
2179 | end | |
2180 | for i = 1 , 30 do | |
2181 | local colors = {BrickColor.new("Really red"),BrickColor.new("Bright orange")} | |
2182 | local rndm = math.random(1,5) | |
2183 | local randomv = Vector3.new(rndm,rndm,rndm) | |
2184 | local mesh = Instance.new("SpecialMesh") | |
2185 | mesh.MeshType = "Sphere" | |
2186 | mesh.Scale = Vector3.new(0,0,0) | |
2187 | local shell = Instance.new("Part") | |
2188 | mesh.Parent = shell | |
2189 | shell.Anchored = true | |
2190 | shell.formFactor = 0 | |
2191 | shell.Size = Vector3.new(1,1,1) | |
2192 | local dir = CFrame.new(c.Torso.Position + Vector3.new(0,1,0),(c.Torso.Position + Vector3.new(0,1,0)) + Vector3.new(math.random(-2,2),3,math.random(-2,2))) | |
2193 | shell.CFrame = (c.Torso.CFrame * CFrame.new(0,0,0)) | |
2194 | shell.CFrame = shell.CFrame | |
2195 | shell.Parent = swordholder | |
2196 | shell.Transparency = 0 | |
2197 | shell.BrickColor = colors[math.random(1,#colors)] | |
2198 | shell.CanCollide = false | |
2199 | coroutine.resume(coroutine.create(function() | |
2200 | for i = 0 , 1 , 0.05 do | |
2201 | wait() | |
2202 | shell.Transparency = 1*i | |
2203 | shell.CFrame = shell.CFrame + (dir.lookVector * 1*i) | |
2204 | mesh.Scale = randomv * Vector3.new(i,i,i) | |
2205 | end | |
2206 | shell.Transparency = 1 | |
2207 | shell.Parent = nil | |
2208 | end)) | |
2209 | wait() | |
2210 | end | |
2211 | wait(1) | |
2212 | for z = 0 , 1 , 0.2 do | |
2213 | wait() | |
2214 | earth.CFrame = CF + Vector3.new(0,2-2*z,0) | |
2215 | earth2.CFrame = CF2 + Vector3.new(0,2-2*z,0) | |
2216 | earth3.CFrame = CF3 + Vector3.new(0,2-2*z,0) | |
2217 | earth4.CFrame = CF4 + Vector3.new(0,2-2*z,0) | |
2218 | earth5.CFrame = CF5 + Vector3.new(0,22-30*z,0) | |
2219 | earthm5.Scale = Vector3.new(5-5*z,515-500*z,5-5*z) | |
2220 | end | |
2221 | earth.Parent = nil | |
2222 | earth2.Parent = nil | |
2223 | earth3.Parent = nil | |
2224 | earth4.Parent = nil | |
2225 | earth5.Parent = nil | |
2226 | end)) | |
2227 | ||
2228 | ||
2229 | end | |
2230 | end | |
2231 | end | |
2232 | end | |
2233 | ||
2234 | ||
2235 | ||
2236 | function effect() | |
2237 | local clone = prt2:clone() | |
2238 | clone.Parent = Character | |
2239 | clone.Anchored = true | |
2240 | clone.Transparency = 0 | |
2241 | clone.BrickColor = BrickColor.new("Really red") | |
2242 | coroutine.resume(coroutine.create(function() | |
2243 | for i = 0 , 1 , 0.1 do | |
2244 | clone.Transparency = 1*i | |
2245 | wait() | |
2246 | end | |
2247 | clone.Parent = nil | |
2248 | end)) | |
2249 | local clone = prt3:clone() | |
2250 | clone.Parent = Character | |
2251 | clone.Anchored = true | |
2252 | clone.Transparency = 0 | |
2253 | clone.BrickColor = BrickColor.new("Really red") | |
2254 | coroutine.resume(coroutine.create(function() | |
2255 | for i = 0 , 1 , 0.1 do | |
2256 | clone.Transparency = 1*i | |
2257 | wait() | |
2258 | end | |
2259 | clone.Parent = nil | |
2260 | end)) | |
2261 | local clone = prt4:clone() | |
2262 | clone.Parent = Character | |
2263 | clone.Anchored = true | |
2264 | clone.Transparency = 0 | |
2265 | clone.BrickColor = BrickColor.new("Really red") | |
2266 | coroutine.resume(coroutine.create(function() | |
2267 | for i = 0 , 1 , 0.1 do | |
2268 | clone.Transparency = 1*i | |
2269 | wait() | |
2270 | end | |
2271 | clone.Parent = nil | |
2272 | end)) | |
2273 | end | |
2274 | ||
2275 | function walkspeed(value) | |
2276 | Character.Humanoid.WalkSpeed = value | |
2277 | end | |
2278 | ||
2279 | ||
2280 | ||
2281 | function atktype(s,e) | |
2282 | ||
2283 | coroutine.resume(coroutine.create(function () | |
2284 | attacktype = e | |
2285 | wait(0.25) | |
2286 | if attack == false then | |
2287 | attacktype = s | |
2288 | end | |
2289 | end)) | |
2290 | ||
2291 | end | |
2292 | ||
2293 | ||
2294 | function slash() | |
2295 | attack = true | |
2296 | for i = 0 , 1 , 0.1 do | |
2297 | wait() | |
2298 | RW.C0 = CFrame.new(1,0.25+0.75*i,-0.75) * CFrame.fromEulerAnglesXYZ(math.rad(45+135*i), 0, math.rad(-45)) | |
2299 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2300 | LW.C0 = CFrame.new(-1, 0.25+0.75*i, -0.75) * CFrame.fromEulerAnglesXYZ(math.rad(45+135*i),0,math.rad(45)) | |
2301 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2302 | end | |
2303 | ss(game.Workspace,1) | |
2304 | local con = prt2.Touched:connect(OT) | |
2305 | local CF = Torso.CFrame | |
2306 | local bg = Instance.new("BodyGyro") | |
2307 | bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge) | |
2308 | bg.P = bg.P + 10000 | |
2309 | bg.cframe = CF | |
2310 | bg.Parent = Torso | |
2311 | local bv = Instance.new("BodyPosition") | |
2312 | bv.Parent = Torso | |
2313 | bv.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
2314 | bv.position = CF.p + (Vector3.new(0,3,0) + (CF.lookVector * 5)) | |
2315 | for i = 0 , 1 , 0.2 do | |
2316 | wait() | |
2317 | RW.C0 = CFrame.new(1,1-0.75*i,-0.75) * CFrame.fromEulerAnglesXYZ(math.rad(180-225*i), 0, math.rad(-45)) | |
2318 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2319 | LW.C0 = CFrame.new(-1, 1-0.75*i, -0.75) * CFrame.fromEulerAnglesXYZ(math.rad(180-225*i),0,math.rad(45)) | |
2320 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2321 | effect() | |
2322 | if i == 0.8 then | |
2323 | bv.position = CF.p + (Vector3.new(0,-1,0) + (CF.lookVector * 12.5)) | |
2324 | end | |
2325 | end | |
2326 | --RWLFunc() | |
2327 | --LWLFunc() | |
2328 | for i = 0 , 1 , 0.1 do | |
2329 | wait() | |
2330 | RW.C0 = CFrame.new(1,0.25,-0.75) * CFrame.fromEulerAnglesXYZ(math.rad(-45+150*i), 0, math.rad(-45)) | |
2331 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2332 | LW.C0 = CFrame.new(-1, 0.25, -0.75) * CFrame.fromEulerAnglesXYZ(math.rad(-45+150*i),0,math.rad(45)) | |
2333 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2334 | RWL.C0 = CFrame.new(1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(45*i),0,0) | |
2335 | RWL.C1 = CFrame.new(0.5, 1, 0) | |
2336 | LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-45*i),0,0) | |
2337 | LWL.C1 = CFrame.new(-0.5, 1-1*i, 0.5*i) | |
2338 | if i == 0.2 then | |
2339 | bv.position = CF.p + (Vector3.new(0,0,0) + (CF.lookVector * 0)) | |
2340 | ss(game.Workspace,1.25) | |
2341 | end | |
2342 | end | |
2343 | for i = 0 , 1 , 0.1 do | |
2344 | wait() | |
2345 | RW.C0 = CFrame.new(1,0.25,-0.75) * CFrame.fromEulerAnglesXYZ(math.rad(105-60*i), 0, math.rad(45-90)) | |
2346 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2347 | LW.C0 = CFrame.new(-1, 0.25, -0.75) * CFrame.fromEulerAnglesXYZ(math.rad(105-60*i),0,math.rad(-45+90)) | |
2348 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2349 | delay(0.1,function() | |
2350 | RWL.C0 = CFrame.new(1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(45-45*i),0,0) | |
2351 | RWL.C1 = CFrame.new(0.5, 1, 0) | |
2352 | LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+45*i),0,0) | |
2353 | LWL.C1 = CFrame.new(-0.5, 1*i, 0.5-0.5*i) | |
2354 | end) | |
2355 | end | |
2356 | bg.Parent = nil | |
2357 | bv.Parent = nil | |
2358 | wait(0.125) | |
2359 | delay(0.2,function() | |
2360 | --RWLRem() | |
2361 | --LWLRem() | |
2362 | ||
2363 | end) | |
2364 | con:disconnect() | |
2365 | Hitdeb = 0 | |
2366 | wait(0.3) | |
2367 | --LegsFix() | |
2368 | attack = false | |
2369 | end | |
2370 | ||
2371 | function revenge() | |
2372 | attack = true | |
2373 | for i = 0 , 1 , 0.1 do | |
2374 | wait() | |
2375 | RW.C0 = CFrame.new(1,0.25+1*i,-0.75+0.75*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+135*i), 0, math.rad(-45)) | |
2376 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2377 | LW.C0 = CFrame.new(-1, 0.25+1*i, -0.75+0.75*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+135*i),0,math.rad(45)) | |
2378 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2379 | end | |
2380 | cs(game.Workspace,1.25) | |
2381 | bubblyblast(2.5,0.5,"Really red",prt2,false) | |
2382 | wait(0.1) | |
2383 | bubblyblast(2.5,0.5,"Really red",prt2,false) | |
2384 | wait(0.1) | |
2385 | bubblyblast(2.5,0.5,"Really red",prt2,false) | |
2386 | wait(0.1) | |
2387 | if Character.Humanoid.MaxHealth - Character.Humanoid.Health >= 10 then | |
2388 | mindamage = Character.Humanoid.MaxHealth - Character.Humanoid.Health - 10 | |
2389 | elseif Character.Humanoid.MaxHealth - Character.Humanoid.Health < 10 then | |
2390 | mindamage = 0 | |
2391 | end | |
2392 | maxdamage = Character.Humanoid.MaxHealth - Character.Humanoid.Health | |
2393 | crtmaxdamage = Character.Humanoid.MaxHealth - Character.Humanoid.Health + 25 | |
2394 | ss(game.Workspace,1) | |
2395 | local con = prt2.Touched:connect(OT) | |
2396 | local bv = Instance.new("BodyPosition") | |
2397 | bv.Parent = Torso | |
2398 | bv.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
2399 | local CF = Torso.CFrame | |
2400 | bv.position = CF.p + (Vector3.new(0,8,0) + (Torso.CFrame.lookVector * 5)) | |
2401 | for i = 0 , 1 , 0.2 do | |
2402 | wait() | |
2403 | RW.C0 = CFrame.new(1,1.25-1*i,-0.75*i) * CFrame.fromEulerAnglesXYZ(math.rad(180-225*i), 0, math.rad(-45)) | |
2404 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2405 | LW.C0 = CFrame.new(-1, 1.25-1*i, -0.75*i) * CFrame.fromEulerAnglesXYZ(math.rad(180-225*i),0,math.rad(45)) | |
2406 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2407 | effect() | |
2408 | if i == 0.4 then | |
2409 | bv.position = CF.p + (Vector3.new(0,-1,0) + (Torso.CFrame.lookVector * 12.5)) | |
2410 | end | |
2411 | end | |
2412 | for i = 0 , 1 , 0.1 do | |
2413 | wait() | |
2414 | RW.C0 = CFrame.new(1,0.25,-0.75) * CFrame.fromEulerAnglesXYZ(math.rad(-45+90*i), 0, math.rad(-45)) | |
2415 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2416 | LW.C0 = CFrame.new(-1, 0.25, -0.75) * CFrame.fromEulerAnglesXYZ(math.rad(-45+90*i),0,math.rad(45)) | |
2417 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2418 | end | |
2419 | bv.Parent = nil | |
2420 | wait(0.25) | |
2421 | mindamage = omindamage | |
2422 | maxdamage = omaxdamage | |
2423 | crtmaxdamage = ocrtmaxdamage | |
2424 | con:disconnect() | |
2425 | Hitdeb = 0 | |
2426 | attack = false | |
2427 | end | |
2428 | ||
2429 | ||
2430 | ||
2431 | function quickslash() | |
2432 | attack = true | |
2433 | local windeffect = true | |
2434 | for i = 0 , 1 , 0.2 do | |
2435 | wait() | |
2436 | RW.C0 = CFrame.new(1,0.25+0.75*i,-0.75) * CFrame.fromEulerAnglesXYZ(math.rad(45+135*i), 0, math.rad(-45)) | |
2437 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2438 | LW.C0 = CFrame.new(-1, 0.25+0.75*i, -0.75) * CFrame.fromEulerAnglesXYZ(math.rad(45+135*i),0,math.rad(45)) | |
2439 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2440 | end | |
2441 | coroutine.resume(coroutine.create(function() | |
2442 | repeat | |
2443 | wait() | |
2444 | local manaringm = Instance.new("SpecialMesh") | |
2445 | manaringm.Scale = Vector3.new(3,1,3) | |
2446 | manaringm.MeshType = "FileMesh" | |
2447 | manaringm.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
2448 | local manaring = Instance.new("Part") | |
2449 | manaring.formFactor = 1 | |
2450 | manaring.CanCollide = false | |
2451 | manaring.Name = "Handle" | |
2452 | manaring.Locked = true | |
2453 | manaring.Anchored = true | |
2454 | manaring.Size = Vector3.new(1,1,1) | |
2455 | manaring.Parent = swordholder | |
2456 | manaring.CFrame = Torso.CFrame * CFrame.new(0,-2.5,0) | |
2457 | manaringm.Parent = manaring | |
2458 | manaring.BrickColor = BrickColor.new("Institutional white") | |
2459 | manaring.Transparency = 0.5 | |
2460 | delay(0.25,function() | |
2461 | for i = 0 , 1 , 0.1 do | |
2462 | wait() | |
2463 | manaring.Transparency = 0.5+0.5*i | |
2464 | end | |
2465 | manaring.Parent = nil | |
2466 | end) | |
2467 | until windeffect == false | |
2468 | end)) | |
2469 | --RWLFunc() | |
2470 | --LWLFunc() | |
2471 | coroutine.resume(coroutine.create(function() | |
2472 | for i = 0 , 1 , 0.1 do | |
2473 | wait() | |
2474 | RWL.C0 = CFrame.new(1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-45*i),0,0) | |
2475 | RWL.C1 = CFrame.new(0.5, 1, 0) | |
2476 | LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-45*i),0,0) | |
2477 | LWL.C1 = CFrame.new(-0.5, 1,0) | |
2478 | end end)) | |
2479 | ss(game.Workspace,1.25) | |
2480 | local con = prt2.Touched:connect(OT) | |
2481 | local CF = Torso.CFrame | |
2482 | local bg = Instance.new("BodyGyro") | |
2483 | bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge) | |
2484 | bg.P = bg.P + 10000 | |
2485 | bg.cframe = CF | |
2486 | bg.Parent = Torso | |
2487 | local bv = Instance.new("BodyPosition") | |
2488 | bv.Parent = Torso | |
2489 | bv.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
2490 | bv.P = bv.P + 10000 | |
2491 | bv.position = CF.p + (Vector3.new(0,0,0) + (CF.lookVector * 12.5)) | |
2492 | for i = 0 , 1 , 0.2 do | |
2493 | wait() | |
2494 | RW.C0 = CFrame.new(1,1-0.75*i,-0.75) * CFrame.fromEulerAnglesXYZ(math.rad(180-225*i), 0, math.rad(-45)) | |
2495 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2496 | LW.C0 = CFrame.new(-1, 1-0.75*i, -0.75) * CFrame.fromEulerAnglesXYZ(math.rad(180-225*i),0,math.rad(45)) | |
2497 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2498 | effect() | |
2499 | end | |
2500 | for i = 0 , 1 , 0.2 do | |
2501 | wait() | |
2502 | RW.C0 = CFrame.new(1,0.25,-0.75) * CFrame.fromEulerAnglesXYZ(math.rad(-45+150*i), 0, math.rad(-45)) | |
2503 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2504 | LW.C0 = CFrame.new(-1, 0.25, -0.75) * CFrame.fromEulerAnglesXYZ(math.rad(-45+150*i),0,math.rad(45)) | |
2505 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2506 | RWL.C0 = CFrame.new(1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+90*i),0,0) | |
2507 | RWL.C1 = CFrame.new(0.5, 1, 0) | |
2508 | LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0) | |
2509 | LWL.C1 = CFrame.new(-0.5, 1-1*i,0.5*i) | |
2510 | if i == 0.2 then | |
2511 | bv.position = CF.p + (Vector3.new(0,0,0) + (CF.lookVector * 0)) | |
2512 | ss(game.Workspace,1.75) | |
2513 | windeffect = false | |
2514 | end | |
2515 | end | |
2516 | for i = 0 , 1 , 0.1 do | |
2517 | wait() | |
2518 | RW.C0 = CFrame.new(1,0.25,-0.75) * CFrame.fromEulerAnglesXYZ(math.rad(105-60*i), 0, math.rad(45-90)) | |
2519 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2520 | LW.C0 = CFrame.new(-1, 0.25, -0.75) * CFrame.fromEulerAnglesXYZ(math.rad(105-60*i),0,math.rad(-45+90)) | |
2521 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2522 | delay(0.1,function() | |
2523 | RWL.C0 = CFrame.new(1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(45-45*i),0,0) | |
2524 | RWL.C1 = CFrame.new(0.5, 1, 0) | |
2525 | LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+45*i),0,0) | |
2526 | LWL.C1 = CFrame.new(-0.5, 1*i, 0.5-0.5*i) | |
2527 | end) | |
2528 | end | |
2529 | bv.Parent = nil | |
2530 | bg.Parent = nil | |
2531 | wait(0.125) | |
2532 | delay(0.15,function() | |
2533 | --RWLRem() | |
2534 | --LWLRem() | |
2535 | end) | |
2536 | con:disconnect() | |
2537 | Hitdeb = 0 | |
2538 | wait(0.3) | |
2539 | attack = false | |
2540 | --LegsFix() | |
2541 | end | |
2542 | ||
2543 | ||
2544 | function windslash() | |
2545 | attack = true | |
2546 | local windeffect = true | |
2547 | for i = 0 , 1 , 0.2 do | |
2548 | wait() | |
2549 | RW.C0 = CFrame.new(1+0.5*i,0.25+0.25*i,-0.75+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+45*i), 0, math.rad(-45+45*i)) | |
2550 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2551 | LW.C0 = CFrame.new(-1-0.5*i, 0.25+0.25*i, -0.75+0.75*i) * CFrame.fromEulerAnglesXYZ(math.rad(45-90*i),0,math.rad(45-90*i)) | |
2552 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2553 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90+90*i), 0, math.rad(-45+45*i)) * CFrame.new(0, 0, 0.75-0.75*i) | |
2554 | end | |
2555 | coroutine.resume(coroutine.create(function() | |
2556 | repeat | |
2557 | wait(0.05) | |
2558 | local manaringm = Instance.new("SpecialMesh") | |
2559 | manaringm.Scale = Vector3.new(6,3,4) | |
2560 | manaringm.MeshType = "FileMesh" | |
2561 | manaringm.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
2562 | local manaring = Instance.new("Part") | |
2563 | manaring.formFactor = 1 | |
2564 | manaring.CanCollide = false | |
2565 | manaring.Name = "Handle" | |
2566 | manaring.Locked = true | |
2567 | manaring.Anchored = true | |
2568 | manaring.Size = Vector3.new(1,1,1) | |
2569 | manaring.Parent = swordholder | |
2570 | manaring.CFrame = Torso.CFrame * CFrame.new(0,0,-2.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) | |
2571 | manaringm.Parent = manaring | |
2572 | manaring.BrickColor = BrickColor.new("Institutional white") | |
2573 | manaring.Transparency = 0.5 | |
2574 | local manaringm2 = Instance.new("SpecialMesh") | |
2575 | manaringm2.Scale = Vector3.new(6,5,4) | |
2576 | manaringm2.MeshType = "FileMesh" | |
2577 | manaringm2.MeshId = "http://www.roblox.com/asset/?id=1038653" | |
2578 | local manaring2 = Instance.new("Part") | |
2579 | manaring2.formFactor = 1 | |
2580 | manaring2.CanCollide = false | |
2581 | manaring2.Name = "Handle2" | |
2582 | manaring2.Locked = true | |
2583 | manaring2.Anchored = true | |
2584 | manaring2.Size = Vector3.new(1,1,1) | |
2585 | manaring2.Parent = swordholder | |
2586 | manaring2.CFrame = Torso.CFrame * CFrame.new(0,-0.25,-4.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
2587 | manaringm2.Parent = manaring2 | |
2588 | manaring2.BrickColor = BrickColor.new("Institutional white") | |
2589 | manaring2.Transparency = 0.5 | |
2590 | delay(0.25,function() | |
2591 | for i = 0 , 1 , 0.1 do | |
2592 | wait() | |
2593 | manaring.Transparency = 0.5+0.5*i | |
2594 | manaring2.Transparency = 0.5+0.5*i | |
2595 | end | |
2596 | manaring.Parent = nil | |
2597 | manaring2.Parent = nil | |
2598 | end) | |
2599 | until windeffect == false | |
2600 | end)) | |
2601 | ss(game.Workspace,0.5) | |
2602 | local bv = Instance.new("BodyPosition") | |
2603 | bv.Parent = Torso | |
2604 | bv.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
2605 | bv.P = bv.P + 100 | |
2606 | local CF = Torso.CFrame | |
2607 | local bg = Instance.new("BodyGyro") | |
2608 | bg.maxTorque = Vector3.new(math.huge,0,math.huge) | |
2609 | bg.P = bg.P + 10000 | |
2610 | bg.cframe = CF | |
2611 | bg.Parent = Torso | |
2612 | bv.position = Torso.CFrame.p + (Vector3.new(0,0,0) + (Torso.CFrame.lookVector * 7.5)) | |
2613 | for i = 0 , 25 do | |
2614 | wait() | |
2615 | bv.position = Torso.CFrame.p + (Vector3.new(0,0,0) + (Torso.CFrame.lookVector * 7.5)) | |
2616 | local critrandomizer = math.random(1,crtrate) | |
2617 | if critrandomizer ~= 1 then | |
2618 | local rndmdamage = math.random(mindamage,maxdamage) | |
2619 | AoE(prt2,12.5,math.floor(rndmdamage*0.75),false) | |
2620 | elseif critrandomizer == 1 then | |
2621 | local rndmdamage = math.random(maxdamage,crtmaxdamage) | |
2622 | AoE(prt2,12.5,math.floor(rndmdamage*0.75),true) | |
2623 | end | |
2624 | end | |
2625 | windeffect = false | |
2626 | for ii = 1 , #AoETrue do | |
2627 | table.remove(AoETrue,#AoETrue) | |
2628 | end | |
2629 | for i = 0 , 1 , 0.1 do | |
2630 | wait() | |
2631 | RW.C0 = CFrame.new(1.5-0.5*i,0.5-0.25*i,0.25-1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-45*i), 0, math.rad(-45*i)) | |
2632 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2633 | LW.C0 = CFrame.new(-1.5+0.5*i, 0.25-0.25*i, -0.75*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-45*i),0,math.rad(-45+90*i)) | |
2634 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2635 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45*i)) * CFrame.new(0, 0, 0.75*i) | |
2636 | end | |
2637 | bv.Parent = nil | |
2638 | bg.Parent = nil | |
2639 | wait(0.125) | |
2640 | Hitdeb = 0 | |
2641 | wait(0.3) | |
2642 | attack = false | |
2643 | end | |
2644 | ||
2645 | function drain() | |
2646 | attack = true | |
2647 | for i = 0 , 1 , 0.1 do | |
2648 | wait() | |
2649 | RW.C0 = CFrame.new(1,0.25+0.25*i,-0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+25*i), 0, math.rad(-45)) | |
2650 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2651 | LW.C0 = CFrame.new(-1, 0.25+0.25*i, -0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+25*i),0,math.rad(45)) | |
2652 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2653 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90+90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75-0.75*i) | |
2654 | end | |
2655 | ss(game.Workspace,1) | |
2656 | local con = prt2.Touched:connect(OT2) | |
2657 | local CF = Torso.CFrame | |
2658 | local bg = Instance.new("BodyGyro") | |
2659 | bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge) | |
2660 | bg.P = bg.P + 10000 | |
2661 | bg.cframe = CF | |
2662 | bg.Parent = Torso | |
2663 | local bv = Instance.new("BodyPosition") | |
2664 | bv.Parent = Torso | |
2665 | bv.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
2666 | bv.position = CF.p + (Vector3.new(0,0,0) + (CF.lookVector * 0)) | |
2667 | for i = 0 , 1 , 0.1 do | |
2668 | wait() | |
2669 | RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(70+20*i), 0, math.rad(-45)) | |
2670 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2671 | LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(70+20*i),0,math.rad(45)) | |
2672 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2673 | bv.position = CF.p + (Vector3.new(0,0,0) + (CF.lookVector * 15*i)) | |
2674 | effect() | |
2675 | end | |
2676 | ||
2677 | for i = 0 , 1 , 0.1 do | |
2678 | wait() | |
2679 | RW.C0 = CFrame.new(1,0.5-0.25*i,-0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-45*i), 0, math.rad(-45)) | |
2680 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2681 | LW.C0 = CFrame.new(-1, 0.5-0.25*i, -0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-45*i),0,math.rad(45)) | |
2682 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2683 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75*i) | |
2684 | if i == 0.2 then | |
2685 | bv.position = CF.p + (Vector3.new(0,5,0) + (CF.lookVector * 0.5)) | |
2686 | ss(game.Workspace,1.25) | |
2687 | end | |
2688 | if i == 0.5 then | |
2689 | bv.position = CF.p + (Vector3.new(0,0,0) + (CF.lookVector * 0)) | |
2690 | end | |
2691 | end | |
2692 | bg.Parent = nil | |
2693 | bv.Parent = nil | |
2694 | wait(0.125) | |
2695 | con:disconnect() | |
2696 | Hitdeb = 0 | |
2697 | wait(0.3) | |
2698 | attack = false | |
2699 | end | |
2700 | ||
2701 | ||
2702 | function unleash() | |
2703 | attack = true | |
2704 | local gg = swordholder:GetChildren() | |
2705 | local thing = 1 | |
2706 | cs(game.Workspace,1.25) | |
2707 | for i = 0 , 1 , 0.1 do | |
2708 | wait() | |
2709 | RW.C0 = CFrame.new(1+0.5*i,0.25+0.25*i,-0.75+0.75*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+135*i), 0, math.rad(-45+90*i)) | |
2710 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2711 | LW.C0 = CFrame.new(-1, 0.25+0.25*i, -0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+25*i),0,math.rad(45)) | |
2712 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2713 | for l = 1 , #gg do | |
2714 | if gg[l].className == "Part" and gg[l].Name ~= "RAPart" then | |
2715 | gg[l].Transparency = 1*i | |
2716 | end | |
2717 | end | |
2718 | if thing == 2 then | |
2719 | thing = 1 | |
2720 | end | |
2721 | if thing == 1 then | |
2722 | thing = thing + 1 | |
2723 | bubblyblast(0.75,2,"Institutional white",prt2,false) | |
2724 | ringblast(2,0.5,"Institutional white",prt2) | |
2725 | end | |
2726 | ||
2727 | end | |
2728 | ss(game.Workspace,1) | |
2729 | mindamage = 50 | |
2730 | maxdamage = 95 | |
2731 | crtmaxdamage = 150 | |
2732 | local con = prt2.Touched:connect(OT3) | |
2733 | local CF = Torso.CFrame | |
2734 | local bg = Instance.new("BodyGyro") | |
2735 | bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge) | |
2736 | bg.P = bg.P + 10000 | |
2737 | bg.cframe = CF | |
2738 | bg.Parent = Torso | |
2739 | local bv = Instance.new("BodyPosition") | |
2740 | bv.Parent = Torso | |
2741 | bv.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
2742 | bv.position = CF.p + (Vector3.new(0,0,0) + (CF.lookVector * 0)) | |
2743 | for i = 0 , 1 , 0.1 do | |
2744 | wait() | |
2745 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.75*i) * CFrame.fromEulerAnglesXYZ(math.rad(180-135*i), 0, math.rad(45-45*i)) | |
2746 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2747 | LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(70+20*i),0,math.rad(45)) | |
2748 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2749 | bv.position = CF.p + (Vector3.new(0,0,0) + (CF.lookVector * 15*i)) | |
2750 | if thing == 2 then | |
2751 | thing = 1 | |
2752 | end | |
2753 | if thing == 1 then | |
2754 | thing = thing + 1 | |
2755 | bubblyblast(0.5,2,"Institutional white",prt2,false) | |
2756 | ringblast(1.5,0.5,"Institutional white",prt2) | |
2757 | end | |
2758 | ||
2759 | end | |
2760 | bv.P = bv.P + 10000 | |
2761 | for i = 0 , 1 , 0.1 do | |
2762 | wait() | |
2763 | RW.C0 = CFrame.new(1,0.5-0.25*i,-0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-45*i), 0, math.rad(-45)) | |
2764 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2765 | LW.C0 = CFrame.new(-1, 0.5-0.25*i, -0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-45*i),0,math.rad(45)) | |
2766 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2767 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75*i) | |
2768 | for l = 1 , #gg do | |
2769 | if gg[l].className == "Part" and gg[l].Name ~= "RAPart" then | |
2770 | gg[l].Transparency = 1-1*i | |
2771 | end | |
2772 | end | |
2773 | if i == 0.2 then | |
2774 | bv.position = CF.p + (Vector3.new(0,5,0) + (CF.lookVector * 0.5)) | |
2775 | ss(game.Workspace,1.25) | |
2776 | ls(game.Workspace,1.25) | |
2777 | end | |
2778 | if i == 0.5 then | |
2779 | bv.position = CF.p + (Vector3.new(0,0,0) + (CF.lookVector * 0)) | |
2780 | end | |
2781 | end | |
2782 | bg.Parent = nil | |
2783 | bv.Parent = nil | |
2784 | wait(0.125) | |
2785 | mindamage = omindamage | |
2786 | maxdamage = omaxdamage | |
2787 | crtmaxdamage = ocrtmaxdamage | |
2788 | con:disconnect() | |
2789 | Hitdeb = 0 | |
2790 | wait(0.3) | |
2791 | attack = false | |
2792 | end | |
2793 | ||
2794 | ||
2795 | function tremor() | |
2796 | attack = true | |
2797 | local thing = 1 | |
2798 | for i = 0 , 1 , 0.1 do | |
2799 | wait() | |
2800 | RW.C0 = CFrame.new(1,0.25+0.75*i,-0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i), 0, math.rad(-45)) | |
2801 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2802 | LW.C0 = CFrame.new(-1, 0.25+0.75*i, -0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i),0,math.rad(45)) | |
2803 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2804 | if thing == 2 then | |
2805 | thing = 1 | |
2806 | end | |
2807 | if thing == 1 then | |
2808 | thing = thing + 1 | |
2809 | ringblast(1,0.5,"Brown",prt2) | |
2810 | end | |
2811 | end | |
2812 | cs(game.Workspace,1.5) | |
2813 | for i = 0 , 1 , 0.2 do | |
2814 | wait() | |
2815 | RW.C0 = CFrame.new(1,1,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i), 0, math.rad(-45)) | |
2816 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2817 | LW.C0 = CFrame.new(-1,1, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i),0,math.rad(45)) | |
2818 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2819 | effect() | |
2820 | end | |
2821 | wait(0.1) | |
2822 | for i = 0 , 1 , 0.1 do | |
2823 | wait() | |
2824 | RW.C0 = CFrame.new(1,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i), 0, math.rad(-45)) | |
2825 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2826 | LW.C0 = CFrame.new(-1, 1-0.5*i, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i),0,math.rad(45)) | |
2827 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2828 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90+90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75-0.75*i) | |
2829 | effect() | |
2830 | end | |
2831 | mindamage = 15 | |
2832 | maxdamage = 35 | |
2833 | crtmaxdamage = 50 | |
2834 | local critrandomizer = math.random(1,crtrate) | |
2835 | if critrandomizer ~= 1 then | |
2836 | local rndmdamage = math.random(mindamage,maxdamage) | |
2837 | AoETremor(prt2,15,rndmdamage,false) | |
2838 | elseif critrandomizer == 1 then | |
2839 | local rndmdamage = math.random(maxdamage,crtmaxdamage) | |
2840 | AoETremor(prt2,15,rndmdamage,true) | |
2841 | end | |
2842 | local CFf = prt2.CFrame * CFrame.new(0,1.5,0) | |
2843 | local earthm = Instance.new("BlockMesh") | |
2844 | earthm.Scale = Vector3.new(1.5,1.5,1.5) | |
2845 | local earth = Instance.new("Part") | |
2846 | earth.formFactor = 0 | |
2847 | earth.CanCollide = false | |
2848 | earth.Name = "Earth1" | |
2849 | earth.Locked = true | |
2850 | earth.Anchored = true | |
2851 | earth.Size = Vector3.new(1,1,1) | |
2852 | earth.Parent = swordholder | |
2853 | earth.CFrame = CFf | |
2854 | earthm.Parent = earth | |
2855 | earth.BrickColor = BrickColor.new("Brown") | |
2856 | earth.Transparency = 0 | |
2857 | for i = 1 , 1 do | |
2858 | rs(game.Workspace,2.75) | |
2859 | end | |
2860 | for i = 0 , 1 , 0.1 do | |
2861 | wait() | |
2862 | earth.CFrame = CFf * CFrame.new(0,-0.25*i,0.15*i) | |
2863 | end | |
2864 | wait(0.25) | |
2865 | for i = 0 , 1 , 0.1 do | |
2866 | wait() | |
2867 | RW.C0 = CFrame.new(1,0.5-0.25*i,-0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i), 0, math.rad(-45)) | |
2868 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2869 | LW.C0 = CFrame.new(-1, 0.5-0.25*i, -0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i),0,math.rad(45)) | |
2870 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2871 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75*i) | |
2872 | end | |
2873 | for ii = 1 , #AoETrue do | |
2874 | table.remove(AoETrue,#AoETrue) | |
2875 | end | |
2876 | for i = 0 , 1 , 0.1 do | |
2877 | wait() | |
2878 | earth.CFrame = CFf * CFrame.new(0,-0.25+1*i,0.15-0.15*i) | |
2879 | end | |
2880 | earth.Parent = nil | |
2881 | attack = false | |
2882 | mindamage = omindamage | |
2883 | maxdamage = omaxdamage | |
2884 | crtmaxdamage = ocrtmaxdamage | |
2885 | end | |
2886 | ||
2887 | ||
2888 | function quake() | |
2889 | attack = true | |
2890 | local thing = 1 | |
2891 | for i = 0 , 1 , 0.1 do | |
2892 | wait() | |
2893 | RW.C0 = CFrame.new(1,0.25+0.75*i,-0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i), 0, math.rad(-45)) | |
2894 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2895 | LW.C0 = CFrame.new(-1, 0.25+0.75*i, -0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i),0,math.rad(45)) | |
2896 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2897 | if thing == 2 then | |
2898 | thing = 1 | |
2899 | end | |
2900 | if thing == 1 then | |
2901 | thing = thing + 1 | |
2902 | ringblast(2,0.5,"Brown",prt2) | |
2903 | end | |
2904 | end | |
2905 | cs(game.Workspace,1.5) | |
2906 | for i = 0 , 1 , 0.2 do | |
2907 | wait() | |
2908 | RW.C0 = CFrame.new(1,1,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i), 0, math.rad(-45)) | |
2909 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2910 | LW.C0 = CFrame.new(-1,1, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i),0,math.rad(45)) | |
2911 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2912 | effect() | |
2913 | end | |
2914 | wait(0.1) | |
2915 | for i = 0 , 1 , 0.1 do | |
2916 | wait() | |
2917 | RW.C0 = CFrame.new(1,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i), 0, math.rad(-45)) | |
2918 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2919 | LW.C0 = CFrame.new(-1, 1-0.5*i, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i),0,math.rad(45)) | |
2920 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2921 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90+90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75-0.75*i) | |
2922 | effect() | |
2923 | end | |
2924 | mindamage = 25 | |
2925 | maxdamage = 45 | |
2926 | crtmaxdamage = 55 | |
2927 | local critrandomizer = math.random(1,crtrate) | |
2928 | if critrandomizer ~= 1 then | |
2929 | local rndmdamage = math.random(mindamage,maxdamage) | |
2930 | AoEQuake(prt2,15,rndmdamage,false) | |
2931 | elseif critrandomizer == 1 then | |
2932 | local rndmdamage = math.random(maxdamage,crtmaxdamage) | |
2933 | AoEQuake(prt2,15,rndmdamage,true) | |
2934 | end | |
2935 | local CFf = prt2.CFrame * CFrame.new(0,1.5,0) | |
2936 | local earthm = Instance.new("BlockMesh") | |
2937 | earthm.Scale = Vector3.new(2,2,2) | |
2938 | local earth = Instance.new("Part") | |
2939 | earth.formFactor = 0 | |
2940 | earth.CanCollide = false | |
2941 | earth.Name = "Earth1" | |
2942 | earth.Locked = true | |
2943 | earth.Anchored = true | |
2944 | earth.Size = Vector3.new(1,1,1) | |
2945 | earth.Parent = swordholder | |
2946 | earth.CFrame = CFf | |
2947 | earthm.Parent = earth | |
2948 | earth.BrickColor = BrickColor.new("Brown") | |
2949 | earth.Transparency = 0 | |
2950 | for i = 1 , 1 do | |
2951 | rs(game.Workspace,2) | |
2952 | end | |
2953 | for i = 0 , 1 , 0.1 do | |
2954 | wait() | |
2955 | earth.CFrame = CFf * CFrame.new(0,-0.3*i,0.15*i) | |
2956 | end | |
2957 | wait(0.25) | |
2958 | for i = 0 , 1 , 0.1 do | |
2959 | wait() | |
2960 | RW.C0 = CFrame.new(1,0.5-0.25*i,-0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i), 0, math.rad(-45)) | |
2961 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2962 | LW.C0 = CFrame.new(-1, 0.5-0.25*i, -0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i),0,math.rad(45)) | |
2963 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2964 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75*i) | |
2965 | end | |
2966 | for ii = 1 , #AoETrue do | |
2967 | table.remove(AoETrue,#AoETrue) | |
2968 | end | |
2969 | for i = 0 , 1 , 0.1 do | |
2970 | wait() | |
2971 | earth.CFrame = CFf * CFrame.new(0,-0.25+1*i,0.15-0.15*i) | |
2972 | end | |
2973 | earth.Parent = nil | |
2974 | attack = false | |
2975 | mindamage = omindamage | |
2976 | maxdamage = omaxdamage | |
2977 | crtmaxdamage = ocrtmaxdamage | |
2978 | end | |
2979 | ||
2980 | function cataclysm() | |
2981 | attack = true | |
2982 | local thing = 1 | |
2983 | for i = 0 , 1 , 0.1 do | |
2984 | wait() | |
2985 | RW.C0 = CFrame.new(1,0.25+0.75*i,-0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i), 0, math.rad(-45)) | |
2986 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2987 | LW.C0 = CFrame.new(-1, 0.25+0.75*i, -0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i),0,math.rad(45)) | |
2988 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2989 | if thing == 2 then | |
2990 | thing = 1 | |
2991 | end | |
2992 | if thing == 1 then | |
2993 | thing = thing + 1 | |
2994 | ringblast(3.5,1,"Brown",prt2) | |
2995 | end | |
2996 | end | |
2997 | cs(game.Workspace,1.5) | |
2998 | for i = 0 , 1 , 0.2 do | |
2999 | wait() | |
3000 | RW.C0 = CFrame.new(1,1,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i), 0, math.rad(-45)) | |
3001 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3002 | LW.C0 = CFrame.new(-1,1, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i),0,math.rad(45)) | |
3003 | LW.C1 = CFrame.new(0, 0.5, 0) | |
3004 | effect() | |
3005 | end | |
3006 | wait(0.1) | |
3007 | for i = 0 , 1 , 0.1 do | |
3008 | wait() | |
3009 | RW.C0 = CFrame.new(1,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i), 0, math.rad(-45)) | |
3010 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3011 | LW.C0 = CFrame.new(-1, 1-0.5*i, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i),0,math.rad(45)) | |
3012 | LW.C1 = CFrame.new(0, 0.5, 0) | |
3013 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90+90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75-0.75*i) | |
3014 | effect() | |
3015 | end | |
3016 | mindamage = 35 | |
3017 | maxdamage = 65 | |
3018 | crtmaxdamage = 75 | |
3019 | local critrandomizer = math.random(1,crtrate) | |
3020 | if critrandomizer ~= 1 then | |
3021 | local rndmdamage = math.random(mindamage,maxdamage) | |
3022 | AoECataclysm(prt2,15,rndmdamage,false) | |
3023 | elseif critrandomizer == 1 then | |
3024 | local rndmdamage = math.random(maxdamage,crtmaxdamage) | |
3025 | AoECataclysm(prt2,15,rndmdamage,true) | |
3026 | end | |
3027 | local CFf = prt2.CFrame * CFrame.new(0,1.5,0) | |
3028 | local earthm = Instance.new("BlockMesh") | |
3029 | earthm.Scale = Vector3.new(2,2,2) | |
3030 | local earth = Instance.new("Part") | |
3031 | earth.formFactor = 0 | |
3032 | earth.CanCollide = false | |
3033 | earth.Name = "Earth1" | |
3034 | earth.Locked = true | |
3035 | earth.Anchored = true | |
3036 | earth.Size = Vector3.new(1,1,1) | |
3037 | earth.Parent = swordholder | |
3038 | earth.CFrame = CFf | |
3039 | earthm.Parent = earth | |
3040 | earth.BrickColor = BrickColor.new("Brown") | |
3041 | earth.Transparency = 0 | |
3042 | for i = 1 , 1 do | |
3043 | rs(game.Workspace,2) | |
3044 | end | |
3045 | for i = 0 , 1 , 0.1 do | |
3046 | wait() | |
3047 | earth.CFrame = CFf * CFrame.new(0,-0.3*i,0.15*i) | |
3048 | end | |
3049 | wait(0.25) | |
3050 | for i = 0 , 1 , 0.1 do | |
3051 | wait() | |
3052 | RW.C0 = CFrame.new(1,0.5-0.25*i,-0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i), 0, math.rad(-45)) | |
3053 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3054 | LW.C0 = CFrame.new(-1, 0.5-0.25*i, -0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i),0,math.rad(45)) | |
3055 | LW.C1 = CFrame.new(0, 0.5, 0) | |
3056 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75*i) | |
3057 | end | |
3058 | for ii = 1 , #AoETrue do | |
3059 | table.remove(AoETrue,#AoETrue) | |
3060 | end | |
3061 | for i = 0 , 1 , 0.1 do | |
3062 | wait() | |
3063 | earth.CFrame = CFf * CFrame.new(0,-0.25+1*i,0.15-0.15*i) | |
3064 | end | |
3065 | earth.Parent = nil | |
3066 | attack = false | |
3067 | mindamage = omindamage | |
3068 | maxdamage = omaxdamage | |
3069 | crtmaxdamage = ocrtmaxdamage | |
3070 | end | |
3071 | ||
3072 | function fume() | |
3073 | attack = true | |
3074 | local thing = 1 | |
3075 | for i = 0 , 1 , 0.1 do | |
3076 | wait() | |
3077 | RW.C0 = CFrame.new(1,0.25+0.75*i,-0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i), 0, math.rad(-45)) | |
3078 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3079 | LW.C0 = CFrame.new(-1, 0.25+0.75*i, -0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i),0,math.rad(45)) | |
3080 | LW.C1 = CFrame.new(0, 0.5, 0) | |
3081 | if thing == 2 then | |
3082 | thing = 1 | |
3083 | end | |
3084 | if thing == 1 then | |
3085 | thing = thing + 1 | |
3086 | ringblast(2,0.5,"Really red",prt2) | |
3087 | end | |
3088 | end | |
3089 | cs(game.Workspace,1.5) | |
3090 | for i = 0 , 1 , 0.2 do | |
3091 | wait() | |
3092 | RW.C0 = CFrame.new(1,1,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i), 0, math.rad(-45)) | |
3093 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3094 | LW.C0 = CFrame.new(-1,1, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i),0,math.rad(45)) | |
3095 | LW.C1 = CFrame.new(0, 0.5, 0) | |
3096 | effect() | |
3097 | end | |
3098 | wait(0.1) | |
3099 | for i = 0 , 1 , 0.1 do | |
3100 | wait() | |
3101 | RW.C0 = CFrame.new(1,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i), 0, math.rad(-45)) | |
3102 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3103 | LW.C0 = CFrame.new(-1, 1-0.5*i, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i),0,math.rad(45)) | |
3104 | LW.C1 = CFrame.new(0, 0.5, 0) | |
3105 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90+90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75-0.75*i) | |
3106 | effect() | |
3107 | end | |
3108 | mindamage = 25 | |
3109 | maxdamage = 45 | |
3110 | crtmaxdamage = 55 | |
3111 | local critrandomizer = math.random(1,crtrate) | |
3112 | if critrandomizer ~= 1 then | |
3113 | local rndmdamage = math.random(mindamage,maxdamage) | |
3114 | AoEFume(prt2,15,rndmdamage,false) | |
3115 | elseif critrandomizer == 1 then | |
3116 | local rndmdamage = math.random(maxdamage,crtmaxdamage) | |
3117 | AoEFume(prt2,15,rndmdamage,true) | |
3118 | end | |
3119 | local CFf = prt2.CFrame * CFrame.new(0,1.5,0) | |
3120 | local earthm = Instance.new("BlockMesh") | |
3121 | earthm.Scale = Vector3.new(2,2,2) | |
3122 | local earth = Instance.new("Part") | |
3123 | earth.formFactor = 0 | |
3124 | earth.CanCollide = false | |
3125 | earth.Name = "Earth1" | |
3126 | earth.Locked = true | |
3127 | earth.Anchored = true | |
3128 | earth.Size = Vector3.new(1,1,1) | |
3129 | earth.Parent = swordholder | |
3130 | earth.CFrame = CFf | |
3131 | earthm.Parent = earth | |
3132 | earth.BrickColor = BrickColor.new("Brown") | |
3133 | earth.Transparency = 0 | |
3134 | for i = 1 , 1 do | |
3135 | rs(game.Workspace,2) | |
3136 | end | |
3137 | for i = 0 , 1 , 0.1 do | |
3138 | wait() | |
3139 | earth.CFrame = CFf * CFrame.new(0,-0.3*i,0.15*i) | |
3140 | end | |
3141 | wait(0.25) | |
3142 | for i = 0 , 1 , 0.1 do | |
3143 | wait() | |
3144 | RW.C0 = CFrame.new(1,0.5-0.25*i,-0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i), 0, math.rad(-45)) | |
3145 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3146 | LW.C0 = CFrame.new(-1, 0.5-0.25*i, -0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i),0,math.rad(45)) | |
3147 | LW.C1 = CFrame.new(0, 0.5, 0) | |
3148 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75*i) | |
3149 | end | |
3150 | for ii = 1 , #AoETrue do | |
3151 | table.remove(AoETrue,#AoETrue) | |
3152 | end | |
3153 | for i = 0 , 1 , 0.1 do | |
3154 | wait() | |
3155 | earth.CFrame = CFf * CFrame.new(0,-0.25+1*i,0.15-0.15*i) | |
3156 | end | |
3157 | earth.Parent = nil | |
3158 | attack = false | |
3159 | mindamage = omindamage | |
3160 | maxdamage = omaxdamage | |
3161 | crtmaxdamage = ocrtmaxdamage | |
3162 | end | |
3163 | --Eruption | |
3164 | ||
3165 | function eruption() | |
3166 | attack = true | |
3167 | local thing = 1 | |
3168 | for i = 0 , 1 , 0.1 do | |
3169 | wait() | |
3170 | RW.C0 = CFrame.new(1,0.25+0.75*i,-0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i), 0, math.rad(-45)) | |
3171 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3172 | LW.C0 = CFrame.new(-1, 0.25+0.75*i, -0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i),0,math.rad(45)) | |
3173 | LW.C1 = CFrame.new(0, 0.5, 0) | |
3174 | if thing == 2 then | |
3175 | thing = 1 | |
3176 | end | |
3177 | if thing == 1 then | |
3178 | thing = thing + 1 | |
3179 | ringblast(3.5,1,"Really red",prt2) | |
3180 | end | |
3181 | end | |
3182 | cs(game.Workspace,1.5) | |
3183 | for i = 0 , 1 , 0.2 do | |
3184 | wait() | |
3185 | RW.C0 = CFrame.new(1,1,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i), 0, math.rad(-45)) | |
3186 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3187 | LW.C0 = CFrame.new(-1,1, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i),0,math.rad(45)) | |
3188 | LW.C1 = CFrame.new(0, 0.5, 0) | |
3189 | effect() | |
3190 | end | |
3191 | wait(0.1) | |
3192 | for i = 0 , 1 , 0.1 do | |
3193 | wait() | |
3194 | RW.C0 = CFrame.new(1,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i), 0, math.rad(-45)) | |
3195 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3196 | LW.C0 = CFrame.new(-1, 1-0.5*i, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i),0,math.rad(45)) | |
3197 | LW.C1 = CFrame.new(0, 0.5, 0) | |
3198 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90+90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75-0.75*i) | |
3199 | effect() | |
3200 | end | |
3201 | mindamage = 35 | |
3202 | maxdamage = 65 | |
3203 | crtmaxdamage = 75 | |
3204 | local critrandomizer = math.random(1,crtrate) | |
3205 | if critrandomizer ~= 1 then | |
3206 | local rndmdamage = math.random(mindamage,maxdamage) | |
3207 | AoEEruption(prt2,15,rndmdamage,false) | |
3208 | elseif critrandomizer == 1 then | |
3209 | local rndmdamage = math.random(maxdamage,crtmaxdamage) | |
3210 | AoEEruption(prt2,15,rndmdamage,true) | |
3211 | end | |
3212 | local CFf = prt2.CFrame * CFrame.new(0,1.5,0) | |
3213 | local earthm = Instance.new("BlockMesh") | |
3214 | earthm.Scale = Vector3.new(2,2,2) | |
3215 | local earth = Instance.new("Part") | |
3216 | earth.formFactor = 0 | |
3217 | earth.CanCollide = false | |
3218 | earth.Name = "Earth1" | |
3219 | earth.Locked = true | |
3220 | earth.Anchored = true | |
3221 | earth.Size = Vector3.new(1,1,1) | |
3222 | earth.Parent = swordholder | |
3223 | earth.CFrame = CFf | |
3224 | earthm.Parent = earth | |
3225 | earth.BrickColor = BrickColor.new("Brown") | |
3226 | earth.Transparency = 0 | |
3227 | for i = 1 , 1 do | |
3228 | rs(game.Workspace,2) | |
3229 | end | |
3230 | for i = 0 , 1 , 0.1 do | |
3231 | wait() | |
3232 | earth.CFrame = CFf * CFrame.new(0,-0.3*i,0.15*i) | |
3233 | end | |
3234 | wait(0.25) | |
3235 | for i = 0 , 1 , 0.1 do | |
3236 | wait() | |
3237 | RW.C0 = CFrame.new(1,0.5-0.25*i,-0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i), 0, math.rad(-45)) | |
3238 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3239 | LW.C0 = CFrame.new(-1, 0.5-0.25*i, -0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i),0,math.rad(45)) | |
3240 | LW.C1 = CFrame.new(0, 0.5, 0) | |
3241 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75*i) | |
3242 | end | |
3243 | for ii = 1 , #AoETrue do | |
3244 | table.remove(AoETrue,#AoETrue) | |
3245 | end | |
3246 | for i = 0 , 1 , 0.1 do | |
3247 | wait() | |
3248 | earth.CFrame = CFf * CFrame.new(0,-0.25+1*i,0.15-0.15*i) | |
3249 | end | |
3250 | earth.Parent = nil | |
3251 | attack = false | |
3252 | mindamage = omindamage | |
3253 | maxdamage = omaxdamage | |
3254 | crtmaxdamage = ocrtmaxdamage | |
3255 | end | |
3256 | function tundra() | |
3257 | attack = true | |
3258 | local thing = 1 | |
3259 | for i = 0 , 1 , 0.1 do | |
3260 | wait() | |
3261 | RW.C0 = CFrame.new(1,0.25+0.75*i,-0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i), 0, math.rad(-45)) | |
3262 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3263 | LW.C0 = CFrame.new(-1, 0.25+0.75*i, -0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i),0,math.rad(45)) | |
3264 | LW.C1 = CFrame.new(0, 0.5, 0) | |
3265 | if thing == 2 then | |
3266 | thing = 1 | |
3267 | end | |
3268 | if thing == 1 then | |
3269 | thing = thing + 1 | |
3270 | ringblast(2,0.5,"Bright blue",prt2) | |
3271 | end | |
3272 | end | |
3273 | cs(game.Workspace,1.5) | |
3274 | for i = 0 , 1 , 0.2 do | |
3275 | wait() | |
3276 | RW.C0 = CFrame.new(1,1,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i), 0, math.rad(-45)) | |
3277 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3278 | LW.C0 = CFrame.new(-1,1, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i),0,math.rad(45)) | |
3279 | LW.C1 = CFrame.new(0, 0.5, 0) | |
3280 | effect() | |
3281 | end | |
3282 | wait(0.1) | |
3283 | for i = 0 , 1 , 0.1 do | |
3284 | wait() | |
3285 | RW.C0 = CFrame.new(1,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i), 0, math.rad(-45)) | |
3286 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3287 | LW.C0 = CFrame.new(-1, 1-0.5*i, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i),0,math.rad(45)) | |
3288 | LW.C1 = CFrame.new(0, 0.5, 0) | |
3289 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90+90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75-0.75*i) | |
3290 | effect() | |
3291 | end | |
3292 | mindamage = 25 | |
3293 | maxdamage = 45 | |
3294 | crtmaxdamage = 55 | |
3295 | local critrandomizer = math.random(1,crtrate) | |
3296 | if critrandomizer ~= 1 then | |
3297 | local rndmdamage = math.random(mindamage,maxdamage) | |
3298 | AoETundra(prt2,15,rndmdamage,false) | |
3299 | elseif critrandomizer == 1 then | |
3300 | local rndmdamage = math.random(maxdamage,crtmaxdamage) | |
3301 | AoETundra(prt2,15,rndmdamage,true) | |
3302 | end | |
3303 | local CFf = prt2.CFrame * CFrame.new(0,1.5,0) | |
3304 | local earthm = Instance.new("BlockMesh") | |
3305 | earthm.Scale = Vector3.new(2,2,2) | |
3306 | local earth = Instance.new("Part") | |
3307 | earth.formFactor = 0 | |
3308 | earth.CanCollide = false | |
3309 | earth.Name = "Earth1" | |
3310 | earth.Locked = true | |
3311 | earth.Anchored = true | |
3312 | earth.Size = Vector3.new(1,1,1) | |
3313 | earth.Parent = swordholder | |
3314 | earth.CFrame = CFf | |
3315 | earthm.Parent = earth | |
3316 | earth.BrickColor = BrickColor.new("Brown") | |
3317 | earth.Transparency = 0 | |
3318 | for i = 1 , 1 do | |
3319 | rs(game.Workspace,2) | |
3320 | end | |
3321 | for i = 0 , 1 , 0.1 do | |
3322 | wait() | |
3323 | earth.CFrame = CFf * CFrame.new(0,-0.3*i,0.15*i) | |
3324 | end | |
3325 | wait(0.25) | |
3326 | for i = 0 , 1 , 0.1 do | |
3327 | wait() | |
3328 | RW.C0 = CFrame.new(1,0.5-0.25*i,-0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i), 0, math.rad(-45)) | |
3329 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3330 | LW.C0 = CFrame.new(-1, 0.5-0.25*i, -0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i),0,math.rad(45)) | |
3331 | LW.C1 = CFrame.new(0, 0.5, 0) | |
3332 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75*i) | |
3333 | end | |
3334 | for ii = 1 , #AoETrue do | |
3335 | table.remove(AoETrue,#AoETrue) | |
3336 | end | |
3337 | for i = 0 , 1 , 0.1 do | |
3338 | wait() | |
3339 | earth.CFrame = CFf * CFrame.new(0,-0.25+1*i,0.15-0.15*i) | |
3340 | end | |
3341 | earth.Parent = nil | |
3342 | attack = false | |
3343 | mindamage = omindamage | |
3344 | maxdamage = omaxdamage | |
3345 | crtmaxdamage = ocrtmaxdamage | |
3346 | end | |
3347 | function iceberg() | |
3348 | attack = true | |
3349 | local thing = 1 | |
3350 | for i = 0 , 1 , 0.1 do | |
3351 | wait() | |
3352 | RW.C0 = CFrame.new(1,0.25+0.75*i,-0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i), 0, math.rad(-45)) | |
3353 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3354 | LW.C0 = CFrame.new(-1, 0.25+0.75*i, -0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i),0,math.rad(45)) | |
3355 | LW.C1 = CFrame.new(0, 0.5, 0) | |
3356 | if thing == 2 then | |
3357 | thing = 1 | |
3358 | end | |
3359 | if thing == 1 then | |
3360 | thing = thing + 1 | |
3361 | ringblast(3.5,1,"Bright blue",prt2) | |
3362 | end | |
3363 | end | |
3364 | cs(game.Workspace,1.5) | |
3365 | for i = 0 , 1 , 0.2 do | |
3366 | wait() | |
3367 | RW.C0 = CFrame.new(1,1,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i), 0, math.rad(-45)) | |
3368 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3369 | LW.C0 = CFrame.new(-1,1, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i),0,math.rad(45)) | |
3370 | LW.C1 = CFrame.new(0, 0.5, 0) | |
3371 | effect() | |
3372 | end | |
3373 | wait(0.1) | |
3374 | for i = 0 , 1 , 0.1 do | |
3375 | wait() | |
3376 | RW.C0 = CFrame.new(1,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i), 0, math.rad(-45)) | |
3377 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3378 | LW.C0 = CFrame.new(-1, 1-0.5*i, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i),0,math.rad(45)) | |
3379 | LW.C1 = CFrame.new(0, 0.5, 0) | |
3380 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90+90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75-0.75*i) | |
3381 | effect() | |
3382 | end | |
3383 | mindamage = 35 | |
3384 | maxdamage = 65 | |
3385 | crtmaxdamage = 75 | |
3386 | local critrandomizer = math.random(1,crtrate) | |
3387 | if critrandomizer ~= 1 then | |
3388 | local rndmdamage = math.random(mindamage,maxdamage) | |
3389 | AoEIceberg(prt2,15,rndmdamage,false) | |
3390 | elseif critrandomizer == 1 then | |
3391 | local rndmdamage = math.random(maxdamage,crtmaxdamage) | |
3392 | AoEIceberg(prt2,15,rndmdamage,true) | |
3393 | end | |
3394 | local CFf = prt2.CFrame * CFrame.new(0,1.5,0) | |
3395 | local earthm = Instance.new("BlockMesh") | |
3396 | earthm.Scale = Vector3.new(2,2,2) | |
3397 | local earth = Instance.new("Part") | |
3398 | earth.formFactor = 0 | |
3399 | earth.CanCollide = false | |
3400 | earth.Name = "Earth1" | |
3401 | earth.Locked = true | |
3402 | earth.Anchored = true | |
3403 | earth.Size = Vector3.new(1,1,1) | |
3404 | earth.Parent = swordholder | |
3405 | earth.CFrame = CFf | |
3406 | earthm.Parent = earth | |
3407 | earth.BrickColor = BrickColor.new("Brown") | |
3408 | earth.Transparency = 0 | |
3409 | for i = 1 , 1 do | |
3410 | rs(game.Workspace,2) | |
3411 | end | |
3412 | for i = 0 , 1 , 0.1 do | |
3413 | wait() | |
3414 | earth.CFrame = CFf * CFrame.new(0,-0.3*i,0.15*i) | |
3415 | end | |
3416 | wait(0.25) | |
3417 | for i = 0 , 1 , 0.1 do | |
3418 | wait() | |
3419 | RW.C0 = CFrame.new(1,0.5-0.25*i,-0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i), 0, math.rad(-45)) | |
3420 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3421 | LW.C0 = CFrame.new(-1, 0.5-0.25*i, -0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i),0,math.rad(45)) | |
3422 | LW.C1 = CFrame.new(0, 0.5, 0) | |
3423 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75*i) | |
3424 | end | |
3425 | for ii = 1 , #AoETrue do | |
3426 | table.remove(AoETrue,#AoETrue) | |
3427 | end | |
3428 | for i = 0 , 1 , 0.1 do | |
3429 | wait() | |
3430 | earth.CFrame = CFf * CFrame.new(0,-0.25+1*i,0.15-0.15*i) | |
3431 | end | |
3432 | earth.Parent = nil | |
3433 | attack = false | |
3434 | mindamage = omindamage | |
3435 | maxdamage = omaxdamage | |
3436 | crtmaxdamage = ocrtmaxdamage | |
3437 | end | |
3438 | hold = false | |
3439 | function ob1d(mouse) | |
3440 | hold = true | |
3441 | end | |
3442 | function ob1u(mouse) | |
3443 | hold = false | |
3444 | end | |
3445 | buttonhold = false | |
3446 | function key(key) | |
3447 | if attack == true then return end | |
3448 | if key == "q" then | |
3449 | slash() | |
3450 | end | |
3451 | if key == "e" then | |
3452 | revenge() | |
3453 | end | |
3454 | if key == "r" then | |
3455 | quickslash() | |
3456 | end | |
3457 | if key == "t" then | |
3458 | windslash() | |
3459 | end | |
3460 | if key == "y" then | |
3461 | drain() | |
3462 | end | |
3463 | if key == "f" then | |
3464 | unleash() | |
3465 | end | |
3466 | if key == "z" then | |
3467 | tremor() | |
3468 | end | |
3469 | if key == "x" then | |
3470 | quake() | |
3471 | end | |
3472 | if key == "c" then | |
3473 | cataclysm() | |
3474 | end | |
3475 | if key == "v" then | |
3476 | fume() | |
3477 | end | |
3478 | if key == "b" then | |
3479 | eruption() | |
3480 | end | |
3481 | if key == "n" then | |
3482 | tundra() | |
3483 | end | |
3484 | if key == "m" then | |
3485 | iceberg() | |
3486 | end | |
3487 | end | |
3488 | function key2(key) | |
3489 | end | |
3490 | function s(mouse) | |
3491 | mouse.Button1Down:connect(function() ob1d(mouse) end) | |
3492 | mouse.Button1Up:connect(function() ob1u(mouse) end) | |
3493 | mouse.KeyDown:connect(key) | |
3494 | mouse.KeyUp:connect(key2) | |
3495 | RWFunc() | |
3496 | equipanim() | |
3497 | end | |
3498 | function ds(mouse) | |
3499 | hideanim() | |
3500 | wait(0.1) | |
3501 | RWRem() | |
3502 | LWRem() | |
3503 | end | |
3504 | Bin.Selected:connect(s) | |
3505 | Bin.Deselected:connect(ds) | |
3506 | -- lego mediafire |