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