SHOW:
|
|
- or go back to the newest paste.
1 | ||
2 | local plr = game.Players.LocalPlayer | |
3 | 2 | |
4 | do | |
5 | 3 | |
6 | local filteredMessages = { ['___'] = '___' }; | |
7 | 4 | |
8 | local onPropertyChanged = function (obj) | |
9 | 5 | |
10 | if (obj:isDescendantOf (workspace)) then | |
11 | 6 | |
12 | local objText = obj.Text; | |
13 | 7 | |
14 | ||
15 | 8 | |
16 | if (objText ~= '___' and objText:find '(%S)') then | |
17 | 9 | |
18 | if (filteredMessages [objText] and filteredMessages [objText] ~= objText) then | |
19 | 10 | |
20 | obj.Text = filteredMessages [objText]; | |
21 | 11 | |
22 | elseif (not filteredMessages [objText]) then | |
23 | 12 | |
24 | obj.Text = '___'; | |
25 | 13 | |
26 | ||
27 | 14 | |
28 | local filtered = game:service 'Chat':FilterStringForBroadcast (objText, game:service 'Players'.localPlayer); | |
29 | 15 | |
30 | ||
31 | 16 | |
32 | filteredMessages [objText] = filtered; | |
33 | 17 | |
34 | filteredMessages [filtered] = filtered; | |
35 | 18 | |
36 | ||
37 | 19 | |
38 | obj.Text = filtered; | |
39 | 20 | |
40 | end; | |
41 | 21 | |
42 | end; | |
43 | 22 | |
44 | end; | |
45 | 23 | |
46 | end; | |
47 | 24 | |
48 | ||
49 | 25 | |
50 | local newInstance = Instance.new; | |
51 | 26 | |
52 | Instance = { | |
53 | 27 | |
54 | new = function (class, parent) | |
55 | 28 | |
56 | local obj = newInstance (class, parent); | |
57 | 29 | |
58 | ||
59 | 30 | |
60 | if (pcall (function()return obj.Text;end)) then | |
61 | 31 | |
62 | obj:getPropertyChangedSignal ('Parent'):connect (function () onPropertyChanged (obj) end); | |
63 | 32 | |
64 | obj:getPropertyChangedSignal ('Text'):connect (function() onPropertyChanged (obj) end); | |
65 | 33 | |
66 | end; | |
67 | 34 | |
68 | ||
69 | 35 | |
70 | return obj; | |
71 | 36 | |
72 | end; | |
73 | 37 | |
74 | }; | |
75 | 38 | |
76 | end; | |
77 | 39 | |
78 | base = Instance.new("ScreenGui",plr.PlayerGui) | |
79 | 40 | |
80 | bbg = Instance.new("BillboardGui",plr.Character.Head) | |
81 | 41 | |
82 | bbg.Size = UDim2.new(0,200,0,50) | |
83 | 42 | |
84 | bbg.StudsOffset = Vector3.new(0,3,0) | |
85 | 43 | |
86 | bbgTl = Instance.new("TextLabel",bbg) | |
87 | 44 | |
88 | bbgTl.BackgroundTransparency = 1 | |
89 | 45 | |
90 | bbgTl.Size = UDim2.new(10,0,1,0) | |
91 | 46 | |
92 | bbgTl.Position = UDim2.new(-4.5,0,0,0) | |
93 | 47 | |
94 | bbgTl.Font = "Cartoon" | |
95 | 48 | |
96 | bbgTl.Text = " " | |
97 | 49 | |
98 | bbgTl.TextSize = 35 | |
99 | 50 | |
100 | bbgTl.TextStrokeColor3 = Color3.new(1,1,1) | |
101 | 51 | |
102 | bbgTl.TextColor3 = Color3.new(255,223,0) | |
103 | 52 | |
104 | bbgTl.TextStrokeTransparency = 0 | |
105 | 53 | |
106 | bbgTl.TextWrapped = true | |
107 | 54 | |
108 | plr.Chatted:connect(function(msg) | |
109 | 55 | |
110 | bbgTl.Text = msg | |
111 | 56 | |
112 | wait(9) | |
113 | 57 | |
114 | if bbgTl.Text == msg then | |
115 | 58 | |
116 | bbgTl.Text = " " | |
117 | 59 | |
118 | end | |
119 | 60 | |
120 | end) | |
121 | 61 | |
122 | local d = game.Workspace.firebudgy:GetChildren() | |
123 | 62 | |
124 | for i=1, #d do | |
125 | 63 | |
126 | if (d[i].className == "Accessory") then | |
127 | 64 | |
128 | d[i]:remove() | |
129 | 65 | |
130 | end | |
131 | 66 | |
132 | end | |
133 | 67 | |
134 | Meshes = { | |
135 | 68 | |
136 | Blast = '20329976', | |
137 | 69 | |
138 | Crown = '1323306', | |
139 | 70 | |
140 | Ring = '3270017', | |
141 | 71 | |
142 | Claw = '10681506', | |
143 | 72 | |
144 | Crystal = '9756362', | |
145 | 73 | |
146 | Coil = '9753878', | |
147 | 74 | |
148 | Cloud = '1095708', | |
149 | 75 | |
150 | } | |
151 | 76 | |
152 | clangsounds = { | |
153 | 77 | |
154 | '199149119', | |
155 | 78 | |
156 | '199149109', | |
157 | 79 | |
158 | '199149072', | |
159 | 80 | |
160 | '199149025', | |
161 | 81 | |
162 | '199148971' | |
163 | 82 | |
164 | } | |
165 | 83 | |
166 | hitsounds = { | |
167 | 84 | |
168 | '199149137', | |
169 | 85 | |
170 | '199149186', | |
171 | 86 | |
172 | '199149221', | |
173 | 87 | |
174 | '199149235', | |
175 | 88 | |
176 | '199149269', | |
177 | 89 | |
178 | '199149297' | |
179 | 90 | |
180 | } | |
181 | 91 | |
182 | blocksounds = { | |
183 | 92 | |
184 | '199148933', | |
185 | 93 | |
186 | '199148947' | |
187 | 94 | |
188 | } | |
189 | 95 | |
190 | armorsounds = { | |
191 | 96 | |
192 | '199149321', | |
193 | 97 | |
194 | '199149338', | |
195 | 98 | |
196 | '199149367', | |
197 | 99 | |
198 | '199149409', | |
199 | 100 | |
200 | '199149452' | |
201 | 101 | |
202 | } | |
203 | 102 | |
204 | woosh = { | |
205 | 103 | |
206 | Heavy1 = '320557353', | |
207 | 104 | |
208 | Heavy2 = '320557382', | |
209 | 105 | |
210 | Heavy3 = '320557453', | |
211 | 106 | |
212 | Heavy4 = '199144226', | |
213 | 107 | |
214 | Heavy5 = '203691447', | |
215 | 108 | |
216 | Heavy6 = '203691467', | |
217 | 109 | |
218 | Heavy7 = '203691492', | |
219 | 110 | |
220 | Light1 = '320557413', | |
221 | 111 | |
222 | Light2 = '320557487', | |
223 | 112 | |
224 | Light3 = '199145095', | |
225 | 113 | |
226 | Light4 = '199145146', | |
227 | 114 | |
228 | Light5 = '199145887', | |
229 | 115 | |
230 | Light6 = '199145913', | |
231 | 116 | |
232 | Light7 = '199145841', | |
233 | 117 | |
234 | Medium1 = '320557518', | |
235 | 118 | |
236 | Medium2 = '320557537', | |
237 | 119 | |
238 | Medium3 = '320557563', | |
239 | 120 | |
240 | Medium4 = '199145204' | |
241 | 121 | |
242 | } | |
243 | 122 | |
244 | music = {--i like music a lot | |
245 | 123 | |
246 | Breaking = '179281636', | |
247 | 124 | |
248 | FinalReckoning = '357375770', | |
249 | 125 | |
250 | NotDeadYet = '346175829', | |
251 | 126 | |
252 | Intense = '151514610', | |
253 | 127 | |
254 | JumpP1 = '160536628', | |
255 | 128 | |
256 | JumpP2 = '60536666', | |
257 | 129 | |
258 | SonsOfWar = '158929777', | |
259 | 130 | |
260 | WrathOfSea = '165520893', | |
261 | 131 | |
262 | ProtecTorsofEarth = '160542922', | |
263 | 132 | |
264 | SkyTitans = '179282324', | |
265 | 133 | |
266 | ArchAngel = '144043274', | |
267 | 134 | |
268 | Anticipation = '168614529', | |
269 | - | |
269 | + | 135 |
270 | TheMartyred = '186849544', | |
271 | 136 | |
272 | AwakeP1 = '335631255', | |
273 | 137 | |
274 | AwakeP2 = '335631297', | |
275 | 138 | |
276 | ReadyAimFireP1 = '342455387', | |
277 | 139 | |
278 | ReadyAimFireP2 = '342455399', | |
279 | 140 | |
280 | DarkLordP1 = '209567483', | |
281 | 141 | |
282 | DarkLordP2 = '209567529', | |
283 | 142 | |
284 | BloodDrainP1 = '162914123', | |
285 | 143 | |
286 | BloodDrainP2 = '162914203', | |
287 | 144 | |
288 | DanceOfSwords = '320473062', | |
289 | 145 | |
290 | Opal = '286415112', | |
291 | 146 | |
292 | Calamity = '190454307', | |
293 | 147 | |
294 | Hypnotica = '155968128', | |
295 | 148 | |
296 | Nemisis = '160453802', | |
297 | 149 | |
298 | Breathe = '276963903', | |
299 | 150 | |
300 | GateToTheRift = '270655227', | |
301 | 151 | |
302 | InfernalBeserking = '244143404', | |
303 | 152 | |
304 | Trust = '246184492', | |
305 | 153 | |
306 | AwakeningTheProject = '245121821', | |
307 | 154 | |
308 | BloodPain = '242545577', | |
309 | 155 | |
310 | Chaos = '247241693', | |
311 | 156 | |
312 | NightmareFictionHighStake = '248062278', | |
313 | 157 | |
314 | TheWhiteWeapon = '247236446', | |
315 | 158 | |
316 | Gale = '256851659', | |
317 | 159 | |
318 | ImperialCode = '256848383', | |
319 | 160 | |
320 | - | |
320 | + | |
321 | 161 | |
322 | - | |
322 | + | |
323 | 162 | |
324 | TheGodFist = '348541501', | |
325 | 163 | |
326 | BattleForSoul = '321185592', | |
327 | 164 | |
328 | TheDarkColossus = '305976780', | |
329 | 165 | |
330 | - | |
330 | + | |
331 | 166 | |
332 | - | |
332 | + | |
333 | 167 | |
334 | Exorcist = '299796054', | |
335 | 168 | |
336 | CrimsonFlames = '297799220', | |
337 | 169 | |
338 | UltimatePower = '295753229', | |
339 | - | |
339 | + | 170 |
340 | DrivingInTheDark = '295753229', | |
341 | 171 | |
342 | AscendToPower = '293860654', | |
343 | 172 | |
344 | GodOfTheSun = '293612495', | |
345 | - | |
345 | + | 173 |
346 | DarkRider = '293861765', | |
347 | 174 | |
348 | Vengeance = '293375555', | |
349 | 175 | |
350 | SoundOfWar = '293376196', | |
351 | - | |
351 | + | 176 |
352 | HellsCrusaders = '293012202', | |
353 | - | |
353 | + | 177 |
354 | Legend = '293011823', | |
355 | 178 | |
356 | - | |
356 | + | |
357 | 179 | |
358 | } | |
359 | 180 | |
360 | misc = { | |
361 | 181 | |
362 | GroundSlam = '199145477', | |
363 | 182 | |
364 | LaserSlash = '199145497', | |
365 | 183 | |
366 | RailGunFire = '199145534', | |
367 | 184 | |
368 | Charge1 = '199145659', | |
369 | 185 | |
370 | Charge2 = '169380469', | |
371 | 186 | |
372 | Charge3 = '169380479', | |
373 | 187 | |
374 | EmptyGun = '203691822', | |
375 | 188 | |
376 | GunShoot = '203691837', | |
377 | 189 | |
378 | Stomp1 = '200632875', | |
379 | 190 | |
380 | Stomp2 = '200632561', | |
381 | 191 | |
382 | TelsaCannonCharge = '169445572', | |
383 | 192 | |
384 | TelsaCannonShoot = '169445602', | |
385 | 193 | |
386 | AncientHymm = '245313442' | |
387 | 194 | |
388 | } | |
389 | 195 | |
390 | wait(1 / 60) | |
391 | 196 | |
392 | local Player = game.Players.localPlayer | |
393 | 197 | |
394 | local Character = Player.Character | |
395 | 198 | |
396 | local Humanoid = Character.Humanoid | |
397 | - | |
397 | + | 199 |
398 | local mouse = Player:GetMouse() | |
399 | 200 | |
400 | local m = Instance.new('Model', Character) | |
401 | 201 | |
402 | m.Name = "WeaponModel" | |
403 | 202 | |
404 | local LeftArm = Character["Left Arm"] | |
405 | 203 | |
406 | local RightArm = Character["Right Arm"] | |
407 | 204 | |
408 | local LeftLeg = Character["Left Leg"] | |
409 | 205 | |
410 | local RightLeg = Character["Right Leg"] | |
411 | 206 | |
412 | local Head = Character.Head | |
413 | 207 | |
414 | local Torso = Character.Torso | |
415 | - | |
415 | + | 208 |
416 | local cam = game.Workspace.CurrentCamera | |
417 | 209 | |
418 | local RootPart = Character.HumanoidRootPart | |
419 | 210 | |
420 | local RootJoint = RootPart.RootJoint | |
421 | 211 | |
422 | --cam.CameraSubject = Head | |
423 | - | |
423 | + | 212 |
424 | local equipped = false | |
425 | 213 | |
426 | local attack = false | |
427 | 214 | |
428 | local Anim = 'Idle' | |
429 | 215 | |
430 | local idle = 0 | |
431 | 216 | |
432 | - | |
432 | + | |
433 | 217 | |
434 | local battlestance = false | |
435 | 218 | |
436 | local attacktype = 1 | |
437 | 219 | |
438 | - | |
438 | + | |
439 | 220 | |
440 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
441 | 221 | |
442 | - | |
442 | + | |
443 | 222 | |
444 | local sine = 0 | |
445 | 223 | |
446 | local change = 1 | |
447 | 224 | |
448 | local on = false | |
449 | 225 | |
450 | local grabbed = false | |
451 | - | |
451 | + | 226 |
452 | local skill1 = false | |
453 | 227 | |
454 | - | |
454 | + | |
455 | 228 | |
456 | local skill3 = false | |
457 | 229 | |
458 | local skill4 = false | |
459 | 230 | |
460 | local cooldown1 = 0 | |
461 | 231 | |
462 | local cooldown2 = 0 | |
463 | 232 | |
464 | local cooldown3 = 0 | |
465 | 233 | |
466 | local cooldown4 = 0 | |
467 | 234 | |
468 | local co1 = 10--how long it will take for skill to cooldown | |
469 | 235 | |
470 | local co2 = 15 | |
471 | 236 | |
472 | local co3 = 15 | |
473 | 237 | |
474 | local co4 = 25 | |
475 | 238 | |
476 | local inputserv = game:GetService('UserInputService') | |
477 | 239 | |
478 | local typing = false | |
479 | 240 | |
480 | local crit = false | |
481 | 241 | |
482 | local critchance = 2--critical chance percentage | |
483 | 242 | |
484 | local critdamageaddmin = 3--minimum amount of critical damage being added to regular damage | |
485 | 243 | |
486 | local critdamageaddmax = 7--maximum amount | |
487 | 244 | |
488 | local maxstamina = 100--max amount of stamina | |
489 | 245 | |
490 | local stamina = 0--stamina you start out with | |
491 | 246 | |
492 | local skill1stam = 10--how much stamina is needed for a skill | |
493 | 247 | |
494 | local skill2stam = 10 | |
495 | 248 | |
496 | local skill3stam = 20 | |
497 | 249 | |
498 | local skill4stam = 30 | |
499 | - | |
499 | + | 250 |
500 | local recovermana = 3--how much mana per second | |
501 | 251 | |
502 | local defensevalue = 1--how much defense this character has | |
503 | 252 | |
504 | local speedvalue = 1--how much speed this character has | |
505 | 253 | |
506 | --speed is 16*speedvalue | |
507 | 254 | |
508 | local mindamage = 5--self explanatory | |
509 | 255 | |
510 | local maxdamage = 7--self explanatory | |
511 | 256 | |
512 | local damagevalue = 1--how much damage this character has | |
513 | 257 | |
514 | --damage is math.random(mindamage,maxdamage)*damagevalue | |
515 | 258 | |
516 | --damage(hit, mindamage, maxdamage, 1, 1, RootPart) | |
517 | 259 | |
518 | --asd | |
519 | 260 | |
520 | local cn = CFrame.new-- make things easier :) | |
521 | 261 | |
522 | local mr = math.rad | |
523 | 262 | |
524 | local angles = CFrame.Angles | |
525 | 263 | |
526 | local ud = UDim2.new | |
527 | 264 | |
528 | local c3 = Color3.new | |
529 | 265 | |
530 | local skillcolorscheme = c3(1, 1, 1)--color scheme for skills lol | |
531 | 266 | |
532 | --asd | |
533 | 267 | |
534 | local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
535 | 268 | |
536 | Humanoid.Animator:Destroy() | |
537 | 269 | |
538 | 270 | |
539 | --Angles For RootJoint `~` | |
540 | 271 | |
541 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
542 | 272 | |
543 | --Save Shoulders/Hips | |
544 | 273 | |
545 | RSH, LSH = nil, nil | |
546 | 274 | |
547 | RHS, LHS = nil, nil | |
548 | 275 | |
549 | --Shoulders | |
550 | 276 | |
551 | RW = Instance.new("Weld") | |
552 | 277 | |
553 | LW = Instance.new("Weld") | |
554 | 278 | |
555 | --Hips | |
556 | 279 | |
557 | RH = Instance.new("Weld") | |
558 | 280 | |
559 | LH = Instance.new("Weld") | |
560 | 281 | |
561 | -- | |
562 | 282 | |
563 | Player = Player | |
564 | 283 | |
565 | ch = Character | |
566 | 284 | |
567 | LHS = Torso["Left Hip"] | |
568 | 285 | |
569 | RHS = Torso["Right Hip"] | |
570 | 286 | |
571 | RSH = ch.Torso["Right Shoulder"] | |
572 | 287 | |
573 | LSH = ch.Torso["Left Shoulder"] | |
574 | 288 | |
575 | -- | |
576 | 289 | |
577 | RSH.Parent = nil | |
578 | 290 | |
579 | LSH.Parent = nil | |
580 | 291 | |
581 | -- | |
582 | 292 | |
583 | LHS.Parent = nil | |
584 | 293 | |
585 | RHS.Parent = nil | |
586 | 294 | |
587 | -- | |
588 | 295 | |
589 | RW.Name = "RW" | |
590 | 296 | |
591 | RW.Part0 = ch.Torso | |
592 | 297 | |
593 | RW.C0 = cn(1.5, 0.5, 0) | |
594 | 298 | |
595 | RW.C1 = cn(0, 0.5, 0) | |
596 | 299 | |
597 | RW.Part1 = ch["Right Arm"] | |
598 | 300 | |
599 | RW.Parent = ch.Torso | |
600 | 301 | |
601 | -- | |
602 | 302 | |
603 | LW.Name = "LW" | |
604 | 303 | |
605 | LW.Part0 = ch.Torso | |
606 | 304 | |
607 | LW.C0 = cn(-1.5, 0.5, 0) | |
608 | 305 | |
609 | LW.C1 = cn(0, 0.5, 0) | |
610 | 306 | |
611 | LW.Part1 = ch["Left Arm"] | |
612 | 307 | |
613 | LW.Parent = ch.Torso | |
614 | 308 | |
615 | -- | |
616 | 309 | |
617 | LH.Name = "LH" | |
618 | 310 | |
619 | LH.Part0 = ch.Torso | |
620 | 311 | |
621 | LH.C0 = cn(-0.5, -2, 0) | |
622 | 312 | |
623 | LH.Part1 = ch["Left Leg"] | |
624 | 313 | |
625 | LH.Parent = ch.Torso | |
626 | 314 | |
627 | - | |
627 | + | |
628 | 315 | |
629 | RH.Name = "RH" | |
630 | 316 | |
631 | RH.Part0 = ch.Torso | |
632 | 317 | |
633 | RH.C0 = cn(0.5, -2, 0) | |
634 | 318 | |
635 | RH.Part1 = ch["Right Leg"] | |
636 | 319 | |
637 | RH.Parent = ch.Torso | |
638 | 320 | |
639 | 321 | |
640 | local Flying = false | |
641 | 322 | |
642 | 323 | |
643 | game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function(jump) | |
644 | 324 | |
645 | if Flying == true then | |
646 | 325 | |
647 | if jump == "Jump" then | |
648 | 326 | |
649 | Humanoid.Jump = false | |
650 | 327 | |
651 | end | |
652 | 328 | |
653 | end | |
654 | 329 | |
655 | end) | |
656 | 330 | |
657 | 331 | |
658 | Humanoid.CameraOffset = Vector3.new(0, -2, 0) | |
659 | 332 | |
660 | 333 | |
661 | Torso.Transparency = 1 | |
662 | 334 | |
663 | Head.Transparency = 1 | |
664 | 335 | |
665 | LeftLeg.Transparency = 1 | |
666 | 336 | |
667 | RightLeg.Transparency = 1 | |
668 | 337 | |
669 | LeftArm.Transparency = 1 | |
670 | 338 | |
671 | RightArm.Transparency = 1 | |
672 | 339 | |
673 | 340 | |
674 | for i,v in pairs (Character:GetChildren()) do | |
675 | 341 | |
676 | if v.ClassName == "Hat" | |
677 | 342 | |
678 | then v:Destroy() | |
679 | 343 | |
680 | end | |
681 | 344 | |
682 | end | |
683 | 345 | |
684 | 346 | |
685 | for i,v in pairs (Character.Head:GetChildren()) do | |
686 | 347 | |
687 | if v.ClassName == "Decal" | |
688 | 348 | |
689 | then v:Destroy() | |
690 | 349 | |
691 | end | |
692 | 350 | |
693 | end | |
694 | 351 | |
695 | 352 | |
696 | - | |
696 | + | |
697 | 353 | |
698 | 354 | |
699 | local scrn = Instance.new('ScreenGui') | |
700 | 355 | |
701 | scrn.Parent = nil | |
702 | 356 | |
703 | 357 | |
704 | function makeframe(par, trans, pos, size, color) | |
705 | 358 | |
706 | local frame = Instance.new('Frame', par) | |
707 | 359 | |
708 | frame.BackgroundTransparency = trans | |
709 | 360 | |
710 | frame.BorderSizePixel = 0 | |
711 | 361 | |
712 | frame.Position = pos | |
713 | - | |
713 | + | 362 |
714 | frame.Size = size | |
715 | 363 | |
716 | frame.BackgroundColor3 = color | |
717 | 364 | |
718 | return frame | |
719 | 365 | |
720 | end | |
721 | 366 | |
722 | function makelabel(par, text) | |
723 | 367 | |
724 | local label = Instance.new('TextLabel', par) | |
725 | 368 | |
726 | label.BackgroundTransparency = 1 | |
727 | 369 | |
728 | label.Size = ud(1, 0, 1, 0) | |
729 | 370 | |
730 | label.Position = ud(0, 0, 0, 0) | |
731 | 371 | |
732 | label.TextColor3 = c3(255, 255, 255) | |
733 | 372 | |
734 | label.TextStrokeTransparency = 0 | |
735 | 373 | |
736 | label.FontSize = Enum.FontSize.Size32 | |
737 | 374 | |
738 | label.Font = Enum.Font.SourceSansBold | |
739 | 375 | |
740 | label.BorderSizePixel = 0 | |
741 | 376 | |
742 | label.TextScaled = true | |
743 | 377 | |
744 | label.Text = text | |
745 | 378 | |
746 | end | |
747 | 379 | |
748 | framesk1 = makeframe(scrn, .5, ud(.23, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme) | |
749 | 380 | |
750 | framesk2 = makeframe(scrn, .5, ud(.5, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme) | |
751 | 381 | |
752 | framesk3 = makeframe(scrn, .5, ud(.5, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme) | |
753 | 382 | |
754 | framesk4 = makeframe(scrn, .5, ud(.23, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme) | |
755 | 383 | |
756 | bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme) | |
757 | 384 | |
758 | - | |
758 | + | |
759 | 385 | |
760 | bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme) | |
761 | 386 | |
762 | bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme) | |
763 | 387 | |
764 | text1 = makelabel(framesk1, '[3] Skill3') | |
765 | 388 | |
766 | text2 = makelabel(framesk2, '[4] Skill4') | |
767 | 389 | |
768 | text3 = makelabel(framesk3, "[2] Skill2") | |
769 | 390 | |
770 | text4 = makelabel(framesk4, '[1] Skill1') | |
771 | 391 | |
772 | - | |
772 | + | |
773 | 392 | |
774 | staminacover = makeframe(staminabar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(61 / 255, 171 / 255, 1)) | |
775 | 393 | |
776 | staminatext = makelabel(staminabar, 'Mana') | |
777 | 394 | |
778 | healthbar = makeframe(scrn, .5, ud(.5, 0, .82, 0), ud(.26, 0, .03, 0), c3(1, 1, 0)) | |
779 | 395 | |
780 | healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 46 / 255, 49 / 255)) | |
781 | 396 | |
782 | healthtext = makelabel(healthbar, 'Health') | |
783 | 397 | |
784 | 398 | |
785 | local stats = Instance.new('Folder', Character) | |
786 | 399 | |
787 | stats.Name = 'Stats' | |
788 | 400 | |
789 | local block = Instance.new('BoolValue', stats) | |
790 | 401 | |
791 | block.Name = 'Block' | |
792 | 402 | |
793 | block.Value = false | |
794 | 403 | |
795 | local stun = Instance.new('BoolValue', stats) | |
796 | 404 | |
797 | stun.Name = 'Stun' | |
798 | 405 | |
799 | stun.Value = false | |
800 | 406 | |
801 | local defense = Instance.new('NumberValue', stats) | |
802 | 407 | |
803 | defense.Name = 'Defence' | |
804 | 408 | |
805 | defense.Value = defensevalue | |
806 | 409 | |
807 | local speed = Instance.new('NumberValue', stats) | |
808 | 410 | |
809 | speed.Name = 'Speed' | |
810 | 411 | |
811 | speed.Value = speedvalue | |
812 | 412 | |
813 | local damagea = Instance.new('NumberValue', stats) | |
814 | 413 | |
815 | damagea.Name = 'Damage' | |
816 | 414 | |
817 | damagea.Value = damagevalue | |
818 | 415 | |
819 | 416 | |
820 | function atktype(s, e) | |
821 | 417 | |
822 | coroutine.resume(coroutine.create(function() | |
823 | 418 | |
824 | attacktype = e | |
825 | 419 | |
826 | wait(1.5) | |
827 | 420 | |
828 | attacktype = s | |
829 | 421 | |
830 | end)) | |
831 | 422 | |
832 | end | |
833 | 423 | |
834 | 424 | |
835 | function turncrit() | |
836 | 425 | |
837 | coroutine.resume(coroutine.create(function() | |
838 | 426 | |
839 | print'CRITICAL!' | |
840 | 427 | |
841 | crit = true | |
842 | 428 | |
843 | wait(.25) | |
844 | 429 | |
845 | crit = false | |
846 | 430 | |
847 | end)) | |
848 | 431 | |
849 | end | |
850 | 432 | |
851 | 433 | |
852 | function subtractstamina(k) | |
853 | 434 | |
854 | if stamina >= k then | |
855 | 435 | |
856 | stamina = stamina - k | |
857 | 436 | |
858 | end | |
859 | 437 | |
860 | end | |
861 | 438 | |
862 | 439 | |
863 | function clerp(a, b, t) | |
864 | 440 | |
865 | return a:lerp(b, t) | |
866 | 441 | |
867 | end | |
868 | 442 | |
869 | 443 | |
870 | function randomizer(percent) | |
871 | 444 | |
872 | local randomized = math.random(0, 100) | |
873 | 445 | |
874 | if randomized <= percent then | |
875 | 446 | |
876 | return true | |
877 | 447 | |
878 | elseif randomized >= percent then | |
879 | 448 | |
880 | - | |
880 | + | |
881 | 449 | |
882 | end | |
883 | 450 | |
884 | end | |
885 | 451 | |
886 | - | |
886 | + | 452 |
887 | local RbxUtility = LoadLibrary("RbxUtility") | |
888 | 453 | |
889 | local Create = RbxUtility.Create | |
890 | 454 | |
891 | 455 | |
892 | function RemoveOutlines(part) | |
893 | 456 | |
894 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
895 | 457 | |
896 | end | |
897 | 458 | |
898 | ||
899 | 459 | |
900 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
901 | 460 | |
902 | local Part = Create("Part"){ | |
903 | 461 | |
904 | formFactor = FormFactor, | |
905 | 462 | |
906 | Parent = Parent, | |
907 | - | CreateMesh("SpecialMesh",TailHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
907 | + | 463 |
908 | - | Wings=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Wings",Vector3.new(1.38, 0.600000024, 0.400000006)) |
908 | + | |
909 | - | Wingsweld=CreateWeld(m,Handle,Wings,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00999832153, -1.35054588, -0.870742798, -3.57603994e-007, 1.84772534e-006, 0.999992847, 0.707109332, 0.707094491, -2.27373675e-013, -0.707105219, 0.707105219, 0)) |
909 | + | 464 |
910 | - | CreateMesh("SpecialMesh",Wings,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=188700920 ",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.600000024, 0.928000093)) |
910 | + | |
911 | 465 | |
912 | CanCollide = false, | |
913 | - | CreateMesh("SpecialMesh",HeadHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
913 | + | 466 |
914 | - | HeadHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Bright yellow","HeadHandle",Vector3.new(0.799999774, 0.800000012, 1.19999993)) |
914 | + | |
915 | - | HeadHandleweld=CreateWeld(m,HeadHandleConnector,HeadHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(.5,.3,0)) |
915 | + | 467 |
916 | - | CreateMesh("SpecialMesh",HeadHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
916 | + | |
917 | - | BlinkPartL=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","BlinkPartL",Vector3.new(0.430000007, 0.349999994, 0.209999993)) |
917 | + | 468 |
918 | - | BlinkPartLweld=CreateWeld(m,HeadHandle,BlinkPartL,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.627552032, -0.15424633, 0.675392151, 0.965920627, 3.52720974e-007, 0.258818448, -3.27823614e-007, 0.999994576, -4.27638327e-007, -0.258816987, 3.32397349e-007, 0.965925992)) |
918 | + | |
919 | 469 | |
920 | Size = Size, | |
921 | 470 | |
922 | Material = Material, | |
923 | 471 | |
924 | } | |
925 | 472 | |
926 | RemoveOutlines(Part) | |
927 | 473 | |
928 | return Part | |
929 | 474 | |
930 | end | |
931 | 475 | |
932 | ||
933 | 476 | |
934 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
935 | 477 | |
936 | local Msh = Create(Mesh){ | |
937 | 478 | |
938 | Parent = Part, | |
939 | 479 | |
940 | Offset = OffSet, | |
941 | 480 | |
942 | Scale = Scale, | |
943 | 481 | |
944 | } | |
945 | 482 | |
946 | if Mesh == "SpecialMesh" then | |
947 | 483 | |
948 | Msh.MeshType = MeshType | |
949 | 484 | |
950 | Msh.MeshId = MeshId | |
951 | 485 | |
952 | end | |
953 | 486 | |
954 | return Msh | |
955 | 487 | |
956 | end | |
957 | 488 | |
958 | ||
959 | 489 | |
960 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
961 | 490 | |
962 | local Weld = Create("Weld"){ | |
963 | 491 | |
964 | Parent = Parent, | |
965 | 492 | |
966 | Part0 = Part0, | |
967 | 493 | |
968 | Part1 = Part1, | |
969 | 494 | |
970 | C0 = C0, | |
971 | 495 | |
972 | C1 = C1, | |
973 | 496 | |
974 | } | |
975 | 497 | |
976 | return Weld | |
977 | 498 | |
978 | end | |
979 | 499 | |
980 | 500 | |
981 | function rayCast(pos, dir, maxl, ignore) | |
982 | 501 | |
983 | return game:service("Workspace"):FindPartOnRay(Ray.new(pos, dir.unit * (maxl or 999.999)), ignore) | |
984 | 502 | |
985 | end | |
986 | 503 | |
987 | --Effects | |
988 | 504 | |
989 | function makeeffect(par, size, pos1, trans, trans1, howmuch, delay1, id, type) | |
990 | 505 | |
991 | local p = Instance.new('Part', par or workspace) | |
992 | 506 | |
993 | p.CFrame = pos1 | |
994 | 507 | |
995 | p.Anchored = true | |
996 | 508 | |
997 | p.Material = 'SmoothPlastic' | |
998 | 509 | |
999 | p.CanCollide = false | |
1000 | 510 | |
1001 | p.TopSurface = 0 | |
1002 | 511 | |
1003 | p.Size = Vector3.new(1, 1, 1) | |
1004 | 512 | |
1005 | p.BottomSurface = 0 | |
1006 | 513 | |
1007 | p.Transparency = trans | |
1008 | 514 | |
1009 | p.FormFactor = 'Custom' | |
1010 | - | |
1010 | + | 515 |
1011 | RemoveOutlines(p) | |
1012 | 516 | |
1013 | - | |
1013 | + | |
1014 | 517 | |
1015 | mesh.Scale = size | |
1016 | 518 | |
1017 | if id ~= nil and type == nil then | |
1018 | 519 | |
1019 | mesh.MeshId = 'rbxassetid://'..id | |
1020 | 520 | |
1021 | elseif id == nil and type ~= nil then | |
1022 | 521 | |
1023 | mesh.MeshType = type | |
1024 | 522 | |
1025 | elseif id == nil and type == nil then | |
1026 | - | |
1026 | + | 523 |
1027 | - | |
1027 | + | |
1028 | 524 | |
1029 | end | |
1030 | 525 | |
1031 | coroutine.wrap(function() | |
1032 | 526 | |
1033 | for i = 0, delay1, .1 do | |
1034 | 527 | |
1035 | - | |
1035 | + | |
1036 | 528 | |
1037 | p.CFrame = p.CFrame | |
1038 | 529 | |
1039 | mesh.Scale = mesh.Scale + howmuch | |
1040 | 530 | |
1041 | p.Transparency = p.Transparency + trans1 | |
1042 | 531 | |
1043 | end | |
1044 | 532 | |
1045 | p:Destroy() | |
1046 | 533 | |
1047 | end)() | |
1048 | - | |
1048 | + | 534 |
1049 | return p | |
1050 | 535 | |
1051 | end | |
1052 | 536 | |
1053 | function clangy(cframe) | |
1054 | 537 | |
1055 | wait(1 / 60) | |
1056 | 538 | |
1057 | local clang = {} | |
1058 | 539 | |
1059 | local dis = 0 | |
1060 | 540 | |
1061 | local part = Instance.new('Part', nil) | |
1062 | 541 | |
1063 | part.CFrame = cframe | |
1064 | 542 | |
1065 | part.Anchored = true | |
1066 | - | |
1066 | + | 543 |
1067 | part.CanCollide = false | |
1068 | 544 | |
1069 | part.BrickColor = BrickColor.new('New Yeller') | |
1070 | 545 | |
1071 | part.FormFactor = 'Custom' | |
1072 | 546 | |
1073 | part.Name = 'clanger' | |
1074 | 547 | |
1075 | part.Size = Vector3.new(.2, .2, .2) | |
1076 | 548 | |
1077 | part.TopSurface = 10 | |
1078 | 549 | |
1079 | part.BottomSurface = 10 | |
1080 | - | |
1080 | + | 550 |
1081 | part.RightSurface = 10 | |
1082 | 551 | |
1083 | part.LeftSurface = 10 | |
1084 | 552 | |
1085 | part.BackSurface = 10 | |
1086 | 553 | |
1087 | part.FrontSurface = 10 | |
1088 | 554 | |
1089 | --part.Material='Neon' | |
1090 | 555 | |
1091 | part:BreakJoints() | |
1092 | 556 | |
1093 | local mesh = Instance.new('BlockMesh', part) | |
1094 | - | |
1094 | + | 557 |
1095 | coroutine.wrap(function() | |
1096 | 558 | |
1097 | for i = 1, 7 do | |
1098 | 559 | |
1099 | wait(1 / 60) | |
1100 | 560 | |
1101 | dis = dis + .2 | |
1102 | 561 | |
1103 | local partc = part:clone() | |
1104 | 562 | |
1105 | partc.Parent = workspace | |
1106 | 563 | |
1107 | partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0) | |
1108 | 564 | |
1109 | partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0) | |
1110 | 565 | |
1111 | table.insert(clang, partc) | |
1112 | 566 | |
1113 | end | |
1114 | 567 | |
1115 | for i, v in pairs(clang) do | |
1116 | 568 | |
1117 | coroutine.wrap(function() | |
1118 | 569 | |
1119 | for i = 1, 10 do | |
1120 | 570 | |
1121 | wait(.01) | |
1122 | 571 | |
1123 | v.Transparency = v.Transparency + .1 | |
1124 | 572 | |
1125 | end | |
1126 | 573 | |
1127 | v:destroy() | |
1128 | 574 | |
1129 | end)() | |
1130 | 575 | |
1131 | end | |
1132 | 576 | |
1133 | end)() | |
1134 | 577 | |
1135 | end | |
1136 | 578 | |
1137 | --damage effects | |
1138 | 579 | |
1139 | function circle(color, pos1) | |
1140 | 580 | |
1141 | local p = Instance.new('Part', m) | |
1142 | 581 | |
1143 | p.BrickColor = BrickColor.new(color) | |
1144 | 582 | |
1145 | p.CFrame = pos1 | |
1146 | 583 | |
1147 | p.Anchored = true | |
1148 | 584 | |
1149 | p.Material = 'Plastic' | |
1150 | 585 | |
1151 | p.CanCollide = false | |
1152 | 586 | |
1153 | p.TopSurface = 0 | |
1154 | 587 | |
1155 | p.Size = Vector3.new(1, 1, 1) | |
1156 | 588 | |
1157 | p.BottomSurface = 0 | |
1158 | 589 | |
1159 | p.Transparency = 0.35 | |
1160 | 590 | |
1161 | p.FormFactor = 'Custom' | |
1162 | 591 | |
1163 | local mesh = Instance.new('CylinderMesh', p) | |
1164 | 592 | |
1165 | mesh.Scale = Vector3.new(0, 0, 0) | |
1166 | 593 | |
1167 | coroutine.wrap(function() | |
1168 | 594 | |
1169 | for i = 0, 5, .1 do | |
1170 | 595 | |
1171 | wait(1 / 60) | |
1172 | 596 | |
1173 | p.CFrame = p.CFrame | |
1174 | 597 | |
1175 | mesh.Scale = mesh.Scale + Vector3.new(.5, 0, .5) | |
1176 | 598 | |
1177 | p.Transparency = p.Transparency + .025 | |
1178 | 599 | |
1179 | end | |
1180 | 600 | |
1181 | p:Destroy() | |
1182 | 601 | |
1183 | end)() | |
1184 | 602 | |
1185 | end | |
1186 | - | |
1186 | + | 603 |
1187 | function firespaz1(color, pos1) | |
1188 | 604 | |
1189 | local p = Instance.new('Part', m) | |
1190 | - | |
1190 | + | 605 |
1191 | p.BrickColor = BrickColor.new(color) | |
1192 | 606 | |
1193 | p.CFrame = pos1 | |
1194 | 607 | |
1195 | p.Anchored = true | |
1196 | 608 | |
1197 | p.Material = 'Plastic' | |
1198 | 609 | |
1199 | p.CanCollide = false | |
1200 | 610 | |
1201 | p.TopSurface = 0 | |
1202 | 611 | |
1203 | p.Size = Vector3.new(1, 1, 1) | |
1204 | 612 | |
1205 | p.BottomSurface = 0 | |
1206 | 613 | |
1207 | p.Transparency = 0.5 | |
1208 | 614 | |
1209 | p.FormFactor = 'Custom' | |
1210 | 615 | |
1211 | local mesh = Instance.new('BlockMesh', p) | |
1212 | 616 | |
1213 | mesh.Scale = Vector3.new(1, 1, 1) | |
1214 | 617 | |
1215 | coroutine.wrap(function() | |
1216 | 618 | |
1217 | for i = 0, 15, .1 do | |
1218 | 619 | |
1219 | wait(1 / 30) | |
1220 | 620 | |
1221 | p.CFrame = p.CFrame * CFrame.new(0, .1, 0) | |
1222 | 621 | |
1223 | mesh.Scale = mesh.Scale - Vector3.new(.1, .1, .1) | |
1224 | 622 | |
1225 | p.Transparency = p.Transparency + .025 | |
1226 | 623 | |
1227 | end | |
1228 | 624 | |
1229 | p:Destroy() | |
1230 | 625 | |
1231 | end)() | |
1232 | 626 | |
1233 | end | |
1234 | 627 | |
1235 | 628 | |
1236 | function pickrandom(tablesa) | |
1237 | 629 | |
1238 | local randomized = tablesa[math.random(1, #tablesa)] | |
1239 | 630 | |
1240 | return randomized | |
1241 | 631 | |
1242 | end | |
1243 | 632 | |
1244 | function sound(id, pitch, volume, par, last) | |
1245 | 633 | |
1246 | local s = Instance.new('Sound', par or Torso) | |
1247 | 634 | |
1248 | s.SoundId = 'rbxassetid://'..id | |
1249 | 635 | |
1250 | s.Pitch = pitch or 1 | |
1251 | 636 | |
1252 | s.Volume = volume or 1 | |
1253 | 637 | |
1254 | wait() | |
1255 | 638 | |
1256 | s:play() | |
1257 | 639 | |
1258 | game.Debris:AddItem(s, last or 120) | |
1259 | 640 | |
1260 | end | |
1261 | 641 | |
1262 | function clangy(cframe) | |
1263 | 642 | |
1264 | wait(1 / 60) | |
1265 | 643 | |
1266 | local clang = {} | |
1267 | 644 | |
1268 | local dis = 0 | |
1269 | 645 | |
1270 | local part = Instance.new('Part', nil) | |
1271 | 646 | |
1272 | part.CFrame = cframe | |
1273 | 647 | |
1274 | part.Anchored = true | |
1275 | 648 | |
1276 | part.CanCollide = false | |
1277 | 649 | |
1278 | part.BrickColor = BrickColor.new('New Yeller') | |
1279 | 650 | |
1280 | part.FormFactor = 'Custom' | |
1281 | 651 | |
1282 | part.Name = 'clanger' | |
1283 | 652 | |
1284 | part.Size = Vector3.new(.2, .2, .2) | |
1285 | 653 | |
1286 | part.TopSurface = 10 | |
1287 | 654 | |
1288 | part.BottomSurface = 10 | |
1289 | 655 | |
1290 | part.RightSurface = 10 | |
1291 | 656 | |
1292 | part.LeftSurface = 10 | |
1293 | 657 | |
1294 | part.BackSurface = 10 | |
1295 | 658 | |
1296 | part.FrontSurface = 10 | |
1297 | 659 | |
1298 | --part.Material='Neon' | |
1299 | 660 | |
1300 | part:BreakJoints() | |
1301 | 661 | |
1302 | local mesh = Instance.new('BlockMesh', part) | |
1303 | 662 | |
1304 | coroutine.wrap(function() | |
1305 | 663 | |
1306 | for i = 1, 7 do | |
1307 | 664 | |
1308 | wait(1 / 60) | |
1309 | 665 | |
1310 | dis = dis + .2 | |
1311 | 666 | |
1312 | local partc = part:clone() | |
1313 | 667 | |
1314 | partc.Parent = workspace | |
1315 | 668 | |
1316 | partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0) | |
1317 | 669 | |
1318 | partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0) | |
1319 | 670 | |
1320 | table.insert(clang, partc) | |
1321 | 671 | |
1322 | end | |
1323 | 672 | |
1324 | for i, v in pairs(clang) do | |
1325 | 673 | |
1326 | coroutine.wrap(function() | |
1327 | 674 | |
1328 | for i = 1, 10 do | |
1329 | 675 | |
1330 | wait(.01) | |
1331 | 676 | |
1332 | v.Transparency = v.Transparency + .1 | |
1333 | 677 | |
1334 | end | |
1335 | 678 | |
1336 | v:destroy() | |
1337 | 679 | |
1338 | end)() | |
1339 | 680 | |
1340 | end | |
1341 | 681 | |
1342 | end)() | |
1343 | 682 | |
1344 | end | |
1345 | 683 | |
1346 | --damage effects | |
1347 | 684 | |
1348 | --Effects | |
1349 | 685 | |
1350 | so = function(id, par, vol, pit) | |
1351 | 686 | |
1352 | coroutine.resume(coroutine.create(function() | |
1353 | 687 | |
1354 | local sou = Instance.new("Sound", par or workspace) | |
1355 | 688 | |
1356 | sou.Volume = vol | |
1357 | 689 | |
1358 | sou.Pitch = pit or 1 | |
1359 | 690 | |
1360 | sou.SoundId = id | |
1361 | 691 | |
1362 | wait() | |
1363 | 692 | |
1364 | sou:play() | |
1365 | 693 | |
1366 | game:GetService("Debris"):AddItem(sou, 6) | |
1367 | 694 | |
1368 | end)) | |
1369 | 695 | |
1370 | end | |
1371 | 696 | |
1372 | 697 | |
1373 | local function getclosest(obj, distance) | |
1374 | 698 | |
1375 | local last, lastx = distance + 1 | |
1376 | 699 | |
1377 | for i, v in pairs(workspace:GetChildren()) do | |
1378 | 700 | |
1379 | if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then | |
1380 | 701 | |
1381 | local t = v.Torso | |
1382 | 702 | |
1383 | local dist = (t.Position - obj.Position).magnitude | |
1384 | 703 | |
1385 | if dist <= distance then | |
1386 | 704 | |
1387 | if dist < last then | |
1388 | 705 | |
1389 | last = dist | |
1390 | 706 | |
1391 | lastx = v | |
1392 | 707 | |
1393 | end | |
1394 | 708 | |
1395 | end | |
1396 | 709 | |
1397 | end | |
1398 | 710 | |
1399 | end | |
1400 | 711 | |
1401 | return lastx | |
1402 | 712 | |
1403 | end | |
1404 | 713 | |
1405 | 714 | |
1406 | function makegui(cframe, text) | |
1407 | 715 | |
1408 | local a = math.random(-10, 10) / 100 | |
1409 | 716 | |
1410 | local c = Instance.new("Part") | |
1411 | 717 | |
1412 | c.Transparency = 1 | |
1413 | 718 | |
1414 | Instance.new("BodyGyro").Parent = c | |
1415 | 719 | |
1416 | c.Parent = m | |
1417 | 720 | |
1418 | c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0)) | |
1419 | 721 | |
1420 | local f = Instance.new("BodyPosition") | |
1421 | 722 | |
1422 | f.P = 2000 | |
1423 | 723 | |
1424 | f.D = 100 | |
1425 | 724 | |
1426 | f.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
1427 | 725 | |
1428 | f.position = c.Position + Vector3.new(0, 3, 0) | |
1429 | 726 | |
1430 | f.Parent = c | |
1431 | 727 | |
1432 | game:GetService("Debris"):AddItem(c, .5 + 6) | |
1433 | 728 | |
1434 | c.CanCollide = false | |
1435 | 729 | |
1436 | m.Parent = workspace | |
1437 | 730 | |
1438 | c.CanCollide = false | |
1439 | 731 | |
1440 | local bg = Instance.new('BillboardGui', m) | |
1441 | 732 | |
1442 | bg.Adornee = c | |
1443 | 733 | |
1444 | bg.Size = UDim2.new(1, 0, 1, 0) | |
1445 | 734 | |
1446 | bg.StudsOffset = Vector3.new(0, 0, 0) | |
1447 | 735 | |
1448 | bg.AlwaysOnTop = false | |
1449 | 736 | |
1450 | local tl = Instance.new('TextLabel', bg) | |
1451 | 737 | |
1452 | tl.BackgroundTransparency = 1 | |
1453 | 738 | |
1454 | tl.Size = UDim2.new(1, 0, 1, 0) | |
1455 | 739 | |
1456 | tl.Text = text | |
1457 | 740 | |
1458 | tl.Font = 'SourceSansBold' | |
1459 | 741 | |
1460 | tl.FontSize = 'Size42' | |
1461 | 742 | |
1462 | if crit == true then | |
1463 | 743 | |
1464 | tl.TextColor3 = Color3.new(180 / 255, 0, 0) | |
1465 | 744 | |
1466 | else | |
1467 | 745 | |
1468 | tl.TextColor3 = Color3.new(255, 180 / 255, 51 / 255) | |
1469 | 746 | |
1470 | end | |
1471 | 747 | |
1472 | tl.TextStrokeTransparency = 0 | |
1473 | 748 | |
1474 | tl.TextScaled = true | |
1475 | 749 | |
1476 | tl.TextWrapped = true | |
1477 | 750 | |
1478 | coroutine.wrap(function() | |
1479 | 751 | |
1480 | wait(2) | |
1481 | 752 | |
1482 | for i = 1, 10 do | |
1483 | 753 | |
1484 | wait() | |
1485 | 754 | |
1486 | tl.TextTransparency = tl.TextTransparency + .1 | |
1487 | 755 | |
1488 | end | |
1489 | 756 | |
1490 | end)() | |
1491 | 757 | |
1492 | end | |
1493 | 758 | |
1494 | 759 | |
1495 | function tag(hum, Player) | |
1496 | 760 | |
1497 | local creator = Instance.new('ObjectValue', hum) | |
1498 | 761 | |
1499 | creator.Value = Player | |
1500 | 762 | |
1501 | creator.Name = 'creator' | |
1502 | 763 | |
1503 | end | |
1504 | 764 | |
1505 | function untag(hum) | |
1506 | 765 | |
1507 | if hum ~= nil then | |
1508 | 766 | |
1509 | local tag = hum:findFirstChild("creator") | |
1510 | 767 | |
1511 | if tag ~= nil then | |
1512 | 768 | |
1513 | tag.Parent = nil | |
1514 | 769 | |
1515 | end | |
1516 | 770 | |
1517 | end | |
1518 | 771 | |
1519 | end | |
1520 | 772 | |
1521 | 773 | |
1522 | function tagPlayer(h) | |
1523 | 774 | |
1524 | coroutine.wrap(function() | |
1525 | 775 | |
1526 | tag(h, Player) | |
1527 | 776 | |
1528 | wait(1) | |
1529 | 777 | |
1530 | untag(h) | |
1531 | 778 | |
1532 | end)() | |
1533 | 779 | |
1534 | end | |
1535 | 780 | |
1536 | function damage(hit, mind, maxd, knock, type, prop) | |
1537 | 781 | |
1538 | --[[ | |
1539 | 782 | |
1540 | to apply it to a Player directly, make the first arg go to the Players Torso | |
1541 | 783 | |
1542 | 1 - normal type(damage and knockback) | |
1543 | 784 | |
1544 | 2 - drain type(damage no knockback) | |
1545 | 785 | |
1546 | 3 - lifesteal(absorbs hp) crit does not have an effect on how much life is absorbed | |
1547 | 786 | |
1548 | 4 - heal(heals target) | |
1549 | 787 | |
1550 | 5 - subtracts enemies defense | |
1551 | 788 | |
1552 | 6 - subtracts enemies speed | |
1553 | 789 | |
1554 | 7 - | |
1555 | 790 | |
1556 | ]] | |
1557 | 791 | |
1558 | if hit.Name:lower() == 'Hitbox' then | |
1559 | 792 | |
1560 | local pos = CFrame.new(0, 1, -1) | |
1561 | 793 | |
1562 | sound(pickrandom(clangsounds), math.random(100, 150) / 100, 1, Torso, 6) | |
1563 | 794 | |
1564 | coroutine.wrap(function() | |
1565 | 795 | |
1566 | for i = 1, 4 do | |
1567 | 796 | |
1568 | clangy(Torso.CFrame * pos * CFrame.Angles(0, math.rad(math.random(0, 360)), 0)) | |
1569 | 797 | |
1570 | end | |
1571 | 798 | |
1572 | end)() | |
1573 | 799 | |
1574 | end | |
1575 | 800 | |
1576 | if hit.Parent == nil then | |
1577 | 801 | |
1578 | return | |
1579 | 802 | |
1580 | end | |
1581 | 803 | |
1582 | local h = hit.Parent:FindFirstChild("Humanoid") | |
1583 | 804 | |
1584 | for i, v in pairs(hit.Parent:children()) do | |
1585 | 805 | |
1586 | if v:IsA("Humanoid") then | |
1587 | 806 | |
1588 | h = v | |
1589 | 807 | |
1590 | end | |
1591 | 808 | |
1592 | end | |
1593 | 809 | |
1594 | if hit.Parent.Parent:FindFirstChild('Torso') ~= nil then | |
1595 | 810 | |
1596 | h = hit.Parent.Parent:FindFirstChild('Humanoid') | |
1597 | 811 | |
1598 | end | |
1599 | 812 | |
1600 | if hit.Parent:IsA('Hat') then | |
1601 | 813 | |
1602 | hit = hit.Parent.Parent:findFirstChild('Head') | |
1603 | 814 | |
1604 | end | |
1605 | 815 | |
1606 | local D = math.random(mind, maxd) * damagea.Value | |
1607 | 816 | |
1608 | if h.Parent:FindFirstChild('Stats') then | |
1609 | 817 | |
1610 | D = D / h.Parent:FindFirstChild('Stats').Defence.Value | |
1611 | 818 | |
1612 | elseif not h.Parent:FindFirstChild('Stats') then | |
1613 | 819 | |
1614 | D = D | |
1615 | 820 | |
1616 | end | |
1617 | 821 | |
1618 | if h then | |
1619 | 822 | |
1620 | makegui(h.Parent.Head.CFrame, tostring(math.floor(D + .5))) | |
1621 | 823 | |
1622 | end | |
1623 | 824 | |
1624 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
1625 | 825 | |
1626 | if type == 1 then | |
1627 | 826 | |
1628 | tagPlayer(h) | |
1629 | 827 | |
1630 | local asd = randomizer(critchance) | |
1631 | 828 | |
1632 | if asd == true then | |
1633 | 829 | |
1634 | turncrit() | |
1635 | 830 | |
1636 | end | |
1637 | 831 | |
1638 | if crit == false then | |
1639 | 832 | |
1640 | h.Health = h.Health - D | |
1641 | 833 | |
1642 | else | |
1643 | 834 | |
1644 | h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax)) | |
1645 | 835 | |
1646 | end | |
1647 | 836 | |
1648 | so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100) | |
1649 | 837 | |
1650 | local vp = Instance.new('BodyVelocity') | |
1651 | 838 | |
1652 | vp.P = 500 | |
1653 | 839 | |
1654 | vp.maxForce = Vector3.new(math.huge, 0, math.huge) | |
1655 | 840 | |
1656 | vp.velocity = prop.CFrame.lookVector * knock + prop.Velocity / 1.05 | |
1657 | 841 | |
1658 | if knock > 0 then | |
1659 | 842 | |
1660 | vp.Parent = hit.Parent.Torso | |
1661 | 843 | |
1662 | end | |
1663 | 844 | |
1664 | game:GetService("Debris"):AddItem(vp, .5) | |
1665 | 845 | |
1666 | elseif type == 2 then | |
1667 | 846 | |
1668 | so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100) | |
1669 | 847 | |
1670 | local asd = randomizer(critchance) | |
1671 | 848 | |
1672 | if asd == true then | |
1673 | 849 | |
1674 | turncrit() | |
1675 | 850 | |
1676 | end | |
1677 | 851 | |
1678 | if crit == false then | |
1679 | 852 | |
1680 | h.Health = h.Health - D | |
1681 | 853 | |
1682 | else | |
1683 | 854 | |
1684 | h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax)) | |
1685 | 855 | |
1686 | end | |
1687 | 856 | |
1688 | tagPlayer(h) | |
1689 | 857 | |
1690 | elseif type == 3 then | |
1691 | 858 | |
1692 | tagPlayer(h) | |
1693 | 859 | |
1694 | local asd = randomizer(critchance) | |
1695 | 860 | |
1696 | if asd == true then | |
1697 | 861 | |
1698 | turncrit() | |
1699 | 862 | |
1700 | end | |
1701 | 863 | |
1702 | if crit == false then | |
1703 | 864 | |
1704 | h.Health = h.Health - D | |
1705 | 865 | |
1706 | else | |
1707 | 866 | |
1708 | h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax)) | |
1709 | 867 | |
1710 | end | |
1711 | 868 | |
1712 | Character.Humanoid.Health = Character.Humanoid.Health + D / 2 | |
1713 | 869 | |
1714 | so("http://www.roblox.com/asset/?id=206083232", hit, 1, 1.5) | |
1715 | 870 | |
1716 | for i = 1, 10 do | |
1717 | 871 | |
1718 | firespaz1('Bright red', hit.CFrame * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))) | |
1719 | 872 | |
1720 | end | |
1721 | 873 | |
1722 | elseif type == 4 then | |
1723 | 874 | |
1724 | h.Health = h.Health + D | |
1725 | 875 | |
1726 | so("http://www.roblox.com/asset/?id=186883084", hit, 1, 1) | |
1727 | 876 | |
1728 | circle('Dark green', h.Parent.Torso.CFrame * CFrame.new(0, -2.5, 0)) | |
1729 | 877 | |
1730 | end | |
1731 | 878 | |
1732 | end | |
1733 | 879 | |
1734 | end | |
1735 | 880 | |
1736 | 881 | |
1737 | function subtrackstamina(k) | |
1738 | 882 | |
1739 | if stamina >= k then | |
1740 | 883 | |
1741 | stamina = stamina - k | |
1742 | 884 | |
1743 | end | |
1744 | 885 | |
1745 | end | |
1746 | 886 | |
1747 | 887 | |
1748 | Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright yellow","Handle",Vector3.new(2.39999986, 1.20000005, 1.39999998)) | |
1749 | 888 | |
1750 | Handleweld=CreateWeld(m,Torso,Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.200019836, 2.05684233, -1.52587891e-005, -3.33786011e-006, 5.10364771e-007, -1.00000072, 7.4505806e-007, 0.999990106, 5.23030758e-006, 0.999992847, 1.10268593e-006, -2.98023224e-006)) | |
1751 | 889 | |
1752 | CreateMesh("SpecialMesh",Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1753 | 890 | |
1754 | LLeg1Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Bright yellow","LLeg1Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
1755 | 891 | |
1756 | LLeg1Connectorweld=CreateWeld(m,Handle,LLeg1Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.271961212, 0.323261261, 0.554561615, 0.953878522, 0.237942964, 0.183013678, -0.270872086, 0.945040286, 0.183021933, -0.12940976, -0.224147677, 0.965908945)) | |
1757 | 892 | |
1758 | CreateMesh("SpecialMesh",LLeg1Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1759 | 893 | |
1760 | LLeg2Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Bright yellow","LLeg2Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
1761 | 894 | |
1762 | LLeg2Connectorweld=CreateWeld(m,Handle,LLeg2Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.286304474, 0.549964905, 0.383785248, 0.87001282, -0.368683487, -0.327339649, 0.475172013, 0.804078519, 0.357260257, 0.131499231, -0.466358542, 0.874748588)) | |
1763 | 895 | |
1764 | CreateMesh("SpecialMesh",LLeg2Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1765 | 896 | |
1766 | NeckHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Bright yellow","NeckHandleConnector",Vector3.new(0.799999714, 0.800000012, 0.99999994)) | |
1767 | 897 | |
1768 | NeckHandleConnectorweld=CreateWeld(m,Handle,NeckHandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.800014496, 2.2649765e-006, -1.52587891e-005, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695)) | |
1769 | 898 | |
1770 | CreateMesh("SpecialMesh",NeckHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1771 | 899 | |
1772 | RLeg2Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Bright yellow","RLeg2Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
1773 | 900 | |
1774 | RLeg2Connectorweld=CreateWeld(m,Handle,RLeg2Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.284488678, 0.502339363, -0.511051178, 0.866028607, -0.433008194, 0.249994621, 0.482959986, 0.853833973, -0.194110557, -0.12941049, 0.288845479, 0.948575199)) | |
1775 | 901 | |
1776 | CreateMesh("SpecialMesh",RLeg2Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1777 | 902 | |
1778 | RLeg1Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Bright yellow","RLeg1Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
1779 | 903 | |
1780 | RLeg1Connectorweld=CreateWeld(m,Handle,RLeg1Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.434127808, 0.261667252, -0.51184082, 0.953878462, 0.277202159, 0.115192153, -0.270872086, 0.960207343, -0.0678096935, -0.129410967, 0.0334844999, 0.991011441)) | |
1781 | 904 | |
1782 | CreateMesh("SpecialMesh",RLeg1Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1783 | 905 | |
1784 | TailHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Bright yellow","TailHandleConnector",Vector3.new(0.799999714, 0.800000012, 0.99999994)) | |
1785 | 906 | |
1786 | TailHandleConnectorweld=CreateWeld(m,Handle,TailHandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.800014496, -4.17232513e-006, -1.14440918e-005, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695)) | |
1787 | 907 - | |
1788 | HeadHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Bright orange","HeadHandleConnector",Vector3.new(0.799999774, 0.800000012, 1.19999993)) | |
1789 | 912 - | |
1790 | HeadHandleConnectorweld=CreateWeld(m, NeckHandleConnector, HeadHandleConnector, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.13883209, -1.22878647, -4.95910645e-005, 0.965921879, -0.258816749, -8.3394184e-007, 0.258814901, 0.965910494, 1.70232727e-006, 7.33734851e-009, -1.24428539e-008, 0.999992847)) | |
1791 | 913 | |
1792 | CreateMesh("SpecialMesh",BlinkPartL,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1793 | 914 | |
1794 | BlinkPartR=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","BlinkPartR",Vector3.new(0.430000007, 0.349999994, 0.209999919)) | |
1795 | 915 | |
1796 | BlinkPartRweld=CreateWeld(m,HeadHandle,BlinkPartR,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.668586731, 0.0254650116, 0.6536026, 0.963257611, 0.166627169, -0.210616693, 0.170450777, -0.985360563, 7.06354513e-007, -0.207533255, -0.035900455, -0.977568686)) | |
1797 | 916 | |
1798 | CreateMesh("SpecialMesh",BlinkPartR,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1799 | 917 | |
1800 | Head=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright yellow","Head",Vector3.new(1.59999979, 1, 1.19999993)) | |
1801 | 918 | |
1802 | Headweld=CreateWeld(m,HeadHandle,Head,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399993896, -0.100018501, -3.81469727e-006, 0.999994338, -7.45053441e-008, 0, 4.59620352e-013, 0.999994516, 5.40012479e-013, -6.82121026e-013, -1.62003744e-012, 1)) | |
1803 | 919 | |
1804 | CreateMesh("SpecialMesh",Head,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1805 | 920 | |
1806 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(0.200000003, 1.39999998, 0.200000003)) | |
1807 | 921 | |
1808 | Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.268547058, 0.0147666931, 0.492343903, 0.266456544, 0.961500287, -0.0669870079, -0.937416613, 0.24235782, -0.249999925, -0.22414504, 0.129409671, 0.965918422)) | |
1809 | 922 | |
1810 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1811 | 923 | |
1812 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.400000006, 1.39999998, 0.400000006)) | |
1813 | 924 | |
1814 | Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.35981369, -0.0811252594, -0.392364502, 0.499998569, 0.866011322, 1.38495011e-007, -0.836511791, 0.482955486, 0.258817196, 0.224141717, -0.129405871, 0.965918958)) | |
1815 | 925 | |
1816 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1817 | 926 | |
1818 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.400000006, 1.39999998, 0.400000006)) | |
1819 | 927 | |
1820 | Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.359809875, -0.0811347961, 0.392364502, 0.500002265, 0.866017759, 4.3843329e-009, -0.836509109, 0.48296532, -0.25881812, -0.224141061, 0.129409656, 0.965926051)) | |
1821 | 928 | |
1822 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1823 | 929 | |
1824 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(0.200000003, 1.39999998, 0.200000003)) | |
1825 | 930 | |
1826 | Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.268550873, 0.0147647858, -0.492359161, 0.266456187, 0.961500764, 0.066986382, -0.937418401, 0.242359444, 0.249994203, 0.224138066, -0.129404321, 0.965920031)) | |
1827 | 931 | |
1828 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1829 | 932 | |
1830 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(0.599999785, 0.400000006, 0.399999917)) | |
1831 | 933 | |
1832 | Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.706802368, -0.148231506, -0.399997711, 0.999991596, -8.94065053e-008, -6.82121026e-013, -4.47030253e-008, 0.999991894, -1.00897068e-012, -4.54747351e-013, -1.05160325e-012, 1)) | |
1833 | 934 | |
1834 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1835 | 935 | |
1836 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(0.599999785, 0.400000006, 0.399999917)) | |
1837 | 936 | |
1838 | Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.706802368, -0.148216248, 0.399990082, 0.999985158, -5.96041865e-008, -1.13686838e-012, -8.94065053e-008, 0.999985576, -1.15107923e-012, -6.82121026e-013, -1.44950718e-012, 1)) | |
1839 | 937 | |
1840 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1841 | 938 | |
1842 | LLeg1Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Bright yellow","LLeg1Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
1843 | 939 | |
1844 | LLeg1Handleweld=CreateWeld(m,LLeg1Connector,LLeg1Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0365982056, 0.0366020203, 0.193164825, 0.999997556, -8.96677375e-006, -5.36441803e-007, -8.96677375e-006, 0.999984801, 3.7252903e-006, -5.36441803e-007, 3.7252903e-006, 0.999984503)) | |
1845 | 940 | |
1846 | CreateMesh("SpecialMesh",LLeg1Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1847 | 941 | |
1848 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright yellow","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024)) | |
1849 | 942 | |
1850 | Partweld=CreateWeld(m,LLeg1Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.299993515, 7.62939453e-006, 0.999997556, -8.96677375e-006, -5.36441803e-007, -8.96677375e-006, 0.999984801, 3.7252903e-006, -5.36441803e-007, 3.7252903e-006, 0.999984503)) | |
1851 | 943 | |
1852 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1853 | 944 | |
1854 | LLeg2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Bright yellow","LLeg2Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
1855 | 945 | |
1856 | LLeg2Handleweld=CreateWeld(m,LLeg2Connector,LLeg2Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0654640198, 0.0714416504, 0.174942017, 1.0000006, 4.96953726e-006, 2.38418579e-006, 4.96953726e-006, 0.999982536, 4.35113907e-006, 2.38418579e-006, 4.35113907e-006, 0.999983668)) | |
1857 | 946 | |
1858 | CreateMesh("SpecialMesh",LLeg2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1859 | 947 | |
1860 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright yellow","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024)) | |
1861 | 948 | |
1862 | Partweld=CreateWeld(m,LLeg2Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, 0.300003052, 0, 1.0000006, 4.96953726e-006, 2.38418579e-006, 4.96953726e-006, 0.999982536, 4.35113907e-006, 2.38418579e-006, 4.35113907e-006, 0.999983668)) | |
1863 | 949 | |
1864 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1865 | 950 | |
1866 | RLeg1Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Bright yellow","RLeg1Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
1867 | 951 | |
1868 | RLeg1Handleweld=CreateWeld(m,RLeg1Connector,RLeg1Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 0.999997318, -9.39005986e-006, -1.82539225e-006, -9.39005986e-006, 0.999983907, 2.83867121e-006, -1.82539225e-006, 2.83867121e-006, 0.999985874)) | |
1869 | 952 | |
1870 | CreateMesh("SpecialMesh",RLeg1Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1871 | 953 | |
1872 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright yellow","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024)) | |
1873 | 954 | |
1874 | Partweld=CreateWeld(m,RLeg1Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-006, 0.299995422, 7.62939453e-006, 0.999997318, -9.39005986e-006, -1.82539225e-006, -9.39005986e-006, 0.999983907, 2.83867121e-006, -1.82539225e-006, 2.83867121e-006, 0.999985874)) | |
1875 | 955 | |
1876 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1877 | 956 | |
1878 | RLeg2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Bright yellow","RLeg2Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
1879 | 957 | |
1880 | RLeg2Handleweld=CreateWeld(m,RLeg2Connector,RLeg2Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0499954224, 0.038819313, -0.189697266, 0.999999583, 6.79865479e-006, -3.51667404e-006, 6.79865479e-006, 0.999980748, -1.23679638e-006, -3.51667404e-006, -1.23679638e-006, 0.999986768)) | |
1881 | 958 | |
1882 | CreateMesh("SpecialMesh",RLeg2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1883 | 959 | |
1884 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright yellow","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024)) | |
1885 | 960 | |
1886 | Partweld=CreateWeld(m,RLeg2Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 0.299996376, -7.62939453e-006, 0.999999583, 6.79865479e-006, -3.51667404e-006, 6.79865479e-006, 0.999980748, -1.23679638e-006, -3.51667404e-006, -1.23679638e-006, 0.999986768)) | |
1887 | 961 | |
1888 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1889 | 962 | |
1890 | NeckHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Bright yellow","NeckHandle",Vector3.new(0.799999714, 0.800000012, 0.99999994)) | |
1891 | 963 | |
1892 | NeckHandleweld=CreateWeld(m,NeckHandleConnector,NeckHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695)) | |
1893 | 964 | |
1894 | CreateMesh("SpecialMesh",NeckHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1895 | 965 | |
1896 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright yellow","Part",Vector3.new(1.5999999, 0.800000012, 0.99999994)) | |
1897 | 966 | |
1898 | Partweld=CreateWeld(m,NeckHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.673364639, 0.315284729, 1.14440918e-005, 0.499996573, 0.866005898, 1.41687553e-006, -0.866028965, 0.499994099, 1.24860276e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695)) | |
1899 | 967 | |
1900 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1901 | 968 | |
1902 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright yellow","Part",Vector3.new(1.5999999, 1, 1.39999998)) | |
1903 | 969 | |
1904 | Partweld=CreateWeld(m,NeckHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.456003189, -0.000812530518, 1.52587891e-005, 0.707109332, 0.707094491, 1.05421987e-006, -0.707105219, 0.707105219, 1.56317299e-006, 2.27782948e-009, -3.0485694e-009, 0.999992847)) | |
1905 | 970 | |
1906 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1907 | 971 | |
1908 | TailHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Bright yellow","TailHandle",Vector3.new(0.799999714, 0.800000012, 0.99999994)) | |
1909 | 972 | |
1910 | TailHandleweld=CreateWeld(m,TailHandleConnector,TailHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -1.90734863e-006, 0, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695)) | |
1911 | 973 | |
1912 | CreateMesh("SpecialMesh",TailHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1913 | 974 | |
1914 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright yellow","Part",Vector3.new(1.39999974, 0.800000012, 0.99999994)) | |
1915 | 975 | |
1916 | Partweld=CreateWeld(m,TailHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.299999237, 3.57627869e-007, 0, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695)) | |
1917 | 976 | |
1918 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1919 | 977 | |
1920 | Tail2HandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Bright yellow","Tail2HandleConnector",Vector3.new(0.599999726, 0.800000012, 0.799999952)) | |
1921 | 978 | |
1922 | Tail2HandleConnectorweld=CreateWeld(m,TailHandle,Tail2HandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.674129486, -0.0147686005, -0.00961303711, 0.999255121, 0.0334871411, -0.0192402583, -0.0341572762, 0.998781741, -0.0350642987, 0.0180421956, 0.0356986672, 0.999185622)) | |
1923 | 979 | |
1924 | CreateMesh("SpecialMesh",Tail2HandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1925 | 980 | |
1926 | Tail2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Bright yellow","Tail2Handle",Vector3.new(0.599999726, 0.800000012, 0.799999952)) | |
1927 | 981 | |
1928 | Tail2Handleweld=CreateWeld(m,Tail2HandleConnector,Tail2Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1.00000131, -5.39020402e-006, -1.95577741e-007, -5.39020402e-006, 0.999980748, 1.59069896e-006, -1.95577741e-007, 1.59069896e-006, 0.999985993)) | |
1929 | 982 | |
1930 | CreateMesh("SpecialMesh",Tail2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1931 | 983 | |
1932 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright yellow","Part",Vector3.new(1.39999974, 0.800000012, 0.799999952)) | |
1933 | 984 | |
1934 | Partweld=CreateWeld(m,Tail2Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.399993896, -2.86102295e-006, 3.81469727e-006, 1.00000131, -5.39020402e-006, -1.95577741e-007, -5.39020402e-006, 0.999980748, 1.59069896e-006, -1.95577741e-007, 1.59069896e-006, 0.999985993)) | |
1935 | 985 | |
1936 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1937 | 986 | |
1938 | Tail3HandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Bright yellow","Tail3HandleConnector",Vector3.new(0.599999845, 0.800000012, 0.799999952)) | |
1939 | 987 | |
1940 | Tail3HandleConnectorweld=CreateWeld(m,Tail2Handle,Tail3HandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.933692932, 0.152185202, 0.0128250122, 0.989802122, -0.139427915, 0.0292246509, 0.138289496, 0.989660025, 0.0377997532, -0.0341934189, -0.0333709307, 0.998850942)) | |
1941 | 988 | |
1942 | CreateMesh("SpecialMesh",Tail3HandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1943 | 989 | |
1944 | Tail3Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Bright yellow","Tail3Handle",Vector3.new(0.599999845, 0.800000012, 0.799999952)) | |
1945 | 990 | |
1946 | Tail3Handleweld=CreateWeld(m,Tail3HandleConnector,Tail3Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1, 2.3010216e-009, 0, 2.3010216e-009, 1, 0, 0, 0, 1.00000012)) | |
1947 | 991 | |
1948 | CreateMesh("SpecialMesh",Tail3Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1949 | 992 | |
1950 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(1.79999983, 0.800000012, 0.200000003)) | |
1951 | 993 | |
1952 | Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.04519272, 0.064440012, -0.0208930969, 1, 2.3010216e-009, 0, 2.3010216e-009, 1, 0, 0, 0, 1.00000012)) | |
1953 | 994 | |
1954 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1955 | 995 | |
1956 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(1.79999983, 0.600000024, 0.200000003)) | |
1957 | 996 | |
1958 | Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.11207199, 0.0611591339, 0.00499725342, 0.965926647, -0.258816153, -5.12227416e-008, 0.258816123, 0.965926647, -1.83936208e-007, 9.68575478e-008, 1.64000085e-007, 1)) | |
1959 | 997 | |
1960 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1961 | 998 | |
1962 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(1.79999983, 0.600000024, 0.200000003)) | |
1963 | 999 | |
1964 | Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.07800674, 0.0849123001, -0.020816803, 0.965926468, 0.258816481, 2.40281224e-007, -0.258821636, 0.965915978, -1.06403604e-006, -1.3038516e-006, 2.83645932e-006, 0.999992907)) | |
1965 | 1000 | |
1966 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1967 | 1001 | |
1968 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright yellow","Part",Vector3.new(1.39999986, 0.800000012, 0.799999952)) | |
1969 | 1002 | |
1970 | Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.400001526, -2.14576721e-006, -3.81469727e-006, 1, 2.3010216e-009, 0, 2.3010216e-009, 1, 0, 0, 0, 1.00000012)) | |
1971 | 1003 | |
1972 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1973 | 1004 | |
1974 | 1005 | |
1975 | mouse.Button1Down:connect(function() | |
1976 | 1006 | |
1977 | end) | |
1978 | 1007 | |
1979 | 1008 | |
1980 | mouse.KeyDown:connect(function(k) | |
1981 | 1009 | |
1982 | k = k:lower() | |
1983 | 1010 | |
1984 | if k == "f" and attack == false and Flying == false then | |
1985 | 1011 | |
1986 | Humanoid.CameraOffset = Vector3.new(0, -1, 0) | |
1987 | 1012 | |
1988 | Humanoid.WalkSpeed = 25 | |
1989 | 1013 | |
1990 | Flying = true | |
1991 | 1014 | |
1992 | elseif k == "f" and attack == false and Flying == true then | |
1993 | 1015 | |
1994 | Humanoid.CameraOffset = Vector3.new(0, -2, 0) | |
1995 | 1016 | |
1996 | Humanoid.WalkSpeed = 16 | |
1997 | 1017 | |
1998 | Flying = false | |
1999 | 1018 | |
2000 | end | |
2001 | 1019 | |
2002 | end) | |
2003 | 1020 | |
2004 | 1021 | |
2005 | 1022 | |
2006 | inputserv.InputBegan:connect(function(k) | |
2007 | 1023 | |
2008 | if k.KeyCode == Enum.KeyCode.One and typing == false and cooldown3 >= co1 and stamina >= skill1stam then | |
2009 | 1024 | |
2010 | elseif k.KeyCode == Enum.KeyCode.Two and typing == false and cooldown3 >= co2 and stamina >= skill2stam then | |
2011 | 1025 | |
2012 | elseif k.KeyCode == Enum.KeyCode.Three and typing == false and cooldown3 >= co3 and stamina >= skill3stam then | |
2013 | 1026 | |
2014 | elseif k.KeyCode == Enum.KeyCode.Four and typing == false and cooldown3 >= co4 and stamina >= skill4stam then | |
2015 | 1027 | |
2016 | end | |
2017 | 1028 | |
2018 | end) | |
2019 | 1029 | |
2020 | 1030 | |
2021 | inputserv.InputBegan:connect(function(k) | |
2022 | 1031 | |
2023 | if k.KeyCode == Enum.KeyCode.Slash then | |
2024 | 1032 | |
2025 | local fin = nil | |
2026 | 1033 | |
2027 | typing = true | |
2028 | 1034 | |
2029 | fin = inputserv.InputBegan:connect(function(k) | |
2030 | 1035 | |
2031 | if k.KeyCode == Enum.KeyCode.Return or k.UserInputType == Enum.UserInputType.MouseButton1 then | |
2032 | 1036 | |
2033 | typing = false | |
2034 | 1037 | |
2035 | fin:disconnect() | |
2036 | 1038 | |
2037 | end | |
2038 | 1039 | |
2039 | end) | |
2040 | 1040 | |
2041 | end | |
2042 | 1041 | |
2043 | end) | |
2044 | 1042 | |
2045 | 1043 | |
2046 | function updateskills() | |
2047 | 1044 | |
2048 | if cooldown1 <= co1 then | |
2049 | 1045 | |
2050 | cooldown1 = cooldown1 + 1 / 30 | |
2051 | 1046 | |
2052 | end | |
2053 | 1047 | |
2054 | if cooldown2 <= co2 then | |
2055 | 1048 | |
2056 | cooldown2 = cooldown2 + 1 / 30 | |
2057 | 1049 | |
2058 | end | |
2059 | 1050 | |
2060 | if cooldown3 <= co3 then | |
2061 | 1051 | |
2062 | cooldown3 = cooldown3 + 1 / 30 | |
2063 | 1052 | |
2064 | end | |
2065 | 1053 | |
2066 | if cooldown4 <= co4 then | |
2067 | 1054 | |
2068 | cooldown4 = cooldown4 + 1 / 30 | |
2069 | 1055 | |
2070 | end | |
2071 | 1056 | |
2072 | if stamina <= maxstamina then | |
2073 | 1057 | |
2074 | stamina = stamina + recovermana / 30 | |
2075 | 1058 | |
2076 | end | |
2077 | 1059 | |
2078 | end | |
2079 | 1060 | |
2080 | 1061 | |
2081 | coroutine.resume(coroutine.create(function(Part,Weld) | |
2082 | 1062 | |
2083 | while Part.Parent~=nil do | |
2084 | 1063 | |
2085 | wait(5) | |
2086 | 1064 | |
2087 | for i=0,1,0.2 do | |
2088 | 1065 | |
2089 | wait() | |
2090 | 1066 | |
2091 | BlinkPartR.Mesh.Scale = Vector3.new(.7-1*i,1,1) | |
2092 | 1067 | |
2093 | end | |
2094 | 1068 | |
2095 | for i=0,1,0.2 do | |
2096 | 1069 | |
2097 | wait() | |
2098 | 1070 | |
2099 | BlinkPartR.Mesh.Scale = Vector3.new(.7+.3*i,1,1) | |
2100 | 1071 | |
2101 | end | |
2102 | 1072 | |
2103 | end | |
2104 | 1073 | |
2105 | end),BlinkPartR,BlinkPartRweld) | |
2106 | 1074 | |
2107 | 1075 | |
2108 | coroutine.resume(coroutine.create(function(Part,Weld) | |
2109 | 1076 | |
2110 | while Part.Parent~=nil do | |
2111 | 1077 | |
2112 | wait(5) | |
2113 | 1078 | |
2114 | for i=0,1,0.2 do | |
2115 | 1079 | |
2116 | wait() | |
2117 | 1080 | |
2118 | BlinkPartL.Mesh.Scale = Vector3.new(.7-1*i,1,1) | |
2119 | 1081 | |
2120 | end | |
2121 | 1082 | |
2122 | for i=0,1,0.2 do | |
2123 | 1083 | |
2124 | wait() | |
2125 | 1084 | |
2126 | BlinkPartL.Mesh.Scale = Vector3.new(.7+.3*i,1,1) | |
2127 | 1085 | |
2128 | end | |
2129 | 1086 | |
2130 | end | |
2131 | 1087 | |
2132 | end),BlinkPartL,BlinkPartLweld) | |
2133 | 1088 | |
2134 | 1089 | |
2135 | game:GetService'RunService'.Heartbeat:connect(function() | |
2136 | 1090 | |
2137 | updateskills() | |
2138 | 1091 | |
2139 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
2140 | 1092 | |
2141 | velocity = RootPart.Velocity.y | |
2142 | 1093 | |
2143 | sine = sine + change | |
2144 | 1094 | |
2145 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
2146 | 1095 | |
2147 | if equipped == true or equipped == false then | |
2148 | 1096 | |
2149 | if RootPart.Velocity.y > 1 and hit == nil and stun.Value ~= true then | |
2150 | 1097 | |
2151 | Anim = "Jump" | |
2152 | 1098 | |
2153 | if attack == false then | |
2154 | 1099 | |
2155 | Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 2) * angles(math.rad(50), math.rad(0), math.rad(0)), .3) | |
2156 | 1100 | |
2157 | NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3) | |
2158 | 1101 | |
2159 | HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
2160 | 1102 | |
2161 | LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3) | |
2162 | 1103 | |
2163 | LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3) | |
2164 | 1104 | |
2165 | RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3) | |
2166 | 1105 | |
2167 | RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3) | |
2168 | 1106 | |
2169 | TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3) | |
2170 | 1107 | |
2171 | Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3) | |
2172 | 1108 | |
2173 | Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3) | |
2174 | 1109 | |
2175 | end | |
2176 | 1110 | |
2177 | elseif RootPart.Velocity.y < -1 and hit == nil and stun.Value ~= true then | |
2178 | 1111 | |
2179 | Anim = "Fall" | |
2180 | 1112 | |
2181 | if attack == false then | |
2182 | 1113 | |
2183 | Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 1) * angles(math.rad(20), math.rad(0), math.rad(0)), .3) | |
2184 | 1114 | |
2185 | NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), .3) | |
2186 | 1115 | |
2187 | HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), .3) | |
2188 | 1116 | |
2189 | LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
2190 | 1117 | |
2191 | LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
2192 | 1118 | |
2193 | RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
2194 | 1119 | |
2195 | RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
2196 | 1120 | |
2197 | TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3) | |
2198 | 1121 | |
2199 | Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3) | |
2200 | 1122 | |
2201 | Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3) | |
2202 | 1123 | |
2203 | end | |
2204 | 1124 | |
2205 | elseif Torsovelocity < 1 and hit ~= nil and stun.Value ~= true then | |
2206 | 1125 | |
2207 | Anim = "Idle" | |
2208 | 1126 | |
2209 | if attack == false and Flying == false then | |
2210 | 1127 | |
2211 | change = 1 | |
2212 | 1128 | |
2213 | Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
2214 | 1129 | |
2215 | NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10+1.5*math.cos(sine/10))), .3) | |
2216 | 1130 | |
2217 | HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-5+1.5*math.cos(sine/10))), .3) | |
2218 | 1131 | |
2219 | LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3) | |
2220 | 1132 | |
2221 | LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3) | |
2222 | 1133 | |
2223 | RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3) | |
2224 | 1134 | |
2225 | RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3) | |
2226 | 1135 | |
2227 | TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(15*math.cos(sine/15)), math.rad(5*math.cos(sine/25))), .3) | |
2228 | 1136 | |
2229 | Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(-15*math.cos(sine/15)), math.rad(20*math.cos(sine/15)), math.rad(2*math.cos(sine/15))), .3) | |
2230 | 1137 | |
2231 | Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(15*math.cos(sine/15)), math.rad(10*math.cos(sine/15)), math.rad(0)), .3) | |
2232 | 1138 | |
2233 | elseif attack == false and Flying == true then | |
2234 | 1139 | |
2235 | Handleweld.C0 = clerp(Handleweld.C0, cn(0, 3.5+.2*math.cos(sine/10), 2) * angles(math.rad(40+2*math.cos(sine/10)), math.rad(0), math.rad(0)), .3) | |
2236 | 1140 | |
2237 | NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10+3*math.cos(sine/10))), .3) | |
2238 | 1141 | |
2239 | HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20-3*math.cos(sine/10))), .3) | |
2240 | 1142 | |
2241 | LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3) | |
2242 | 1143 | |
2243 | LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3) | |
2244 | 1144 | |
2245 | RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3) | |
2246 | 1145 | |
2247 | RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3) | |
2248 | 1146 | |
2249 | TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20-3*math.cos(sine/10))), .3) | |
2250 | 1147 | |
2251 | Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10+2*math.cos(sine/10))), .3) | |
2252 | 1148 | |
2253 | Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(15-1.5*math.cos(sine/10))), .3) | |
2254 | 1149 | |
2255 | end | |
2256 | 1150 | |
2257 | elseif Torsovelocity > 2 and hit ~= nil and stun.Value ~= true then | |
2258 | 1151 | |
2259 | Anim = "Walk" | |
2260 | 1152 | |
2261 | if attack == false and Flying == false then | |
2262 | 1153 | |
2263 | change = 1 | |
2264 | 1154 | |
2265 | Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 0) * angles(math.rad(1.5+1*math.cos(sine/10)), math.rad(0), math.rad(0)), .3) | |
2266 | 1155 | |
2267 | NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(5+2*math.cos(sine/10))), .3) | |
2268 | 1156 | |
2269 | HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(5+1.5*math.cos(sine/10))), .3) | |
2270 | 1157 | |
2271 | LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30*math.cos(sine/4.5))), .3) | |
2272 | 1158 | |
2273 | LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30*math.cos(sine/5))), .3) | |
2274 | 1159 | |
2275 | RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30*math.cos(sine/5))), .3) | |
2276 | 1160 | |
2277 | RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30*math.cos(sine/4.5))), .3) | |
2278 | 1161 | |
2279 | TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3*math.cos(sine/15))), .3) | |
2280 | 1162 | |
2281 | Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2*math.cos(sine/15))), .3) | |
2282 | 1163 | |
2283 | Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3*math.cos(sine/15))), .3) | |
2284 | 1164 | |
2285 | elseif attack == false and Flying == true then | |
2286 | 1165 | |
2287 | change = 1 | |
2288 | 1166 | |
2289 | Handleweld.C0 = clerp(Handleweld.C0, cn(0, 3.5+.2*math.cos(sine/10), 1) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
2290 | 1167 | |
2291 | NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10+1*math.cos(sine/10))), .3) | |
2292 | 1168 | |
2293 | HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20+1*math.cos(sine/10))), .3) | |
2294 | 1169 | |
2295 | LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3) | |
2296 | 1170 | |
2297 | LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3) | |
2298 | 1171 | |
2299 | RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3) | |
2300 | 1172 | |
2301 | RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3) | |
2302 | 1173 | |
2303 | TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10-3*math.cos(sine/10))), .3) | |
2304 | 1174 | |
2305 | Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(5+2*math.cos(sine/10))), .3) | |
2306 | 1175 | |
2307 | Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3-1.5*math.cos(sine/10))), .3) | |
2308 | 1176 | |
2309 | end | |
2310 | 1177 | |
2311 | end | |
2312 | 1178 | |
2313 | end | |
2314 | 1179 | |
2315 | end) | |
2316 | 1180 | |
2317 | 1181 | |
2318 | local plr = game.Players.LocalPlayer | |
2319 | 1182 | |
2320 | Workspace.firebudgy.Humanoid.MaxHealth = math.huge | |
2321 | 1183 | |
2322 | Instance.new("ForceField",plr.Character).Visible = false | |
2323 | 1184 | |
2324 | 1185 | |
2325 | mouse = plr:GetMouse() | |
2326 | 1186 | |
2327 | mouse.Button1Down:connect(function() | |
2328 | 1187 | |
2329 | if plr.Character.Parent ~= workspace.Camera then | |
2330 | 1188 | |
2331 | if mouse ~= nil then | |
2332 | 1189 | |
2333 | if mouse.Target ~= nil then | |
2334 | 1190 | |
2335 | part = mouse.Target | |
2336 | 1191 | |
2337 | bp = Instance.new("BodyPosition",part) | |
2338 | 1192 | |
2339 | bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
2340 | 1193 | |
2341 | bp.Position = part.Position | |
2342 | 1194 | |
2343 | particles = Instance.new("ParticleEmitter",part) | |
2344 | 1195 | |
2345 | particles.Color = ColorSequence.new(Color3.new(1,0.6,0)) | |
2346 | 1196 | |
2347 | particles.Size = NumberSequence.new(1) | |
2348 | 1197 | |
2349 | particles.Texture = "rbxassetid://292289455" | |
2350 | 1198 | |
2351 | particles.VelocitySpread = 360 | |
2352 | 1199 | |
2353 | particles.Speed = NumberRange.new(0) | |
2354 | 1200 | |
2355 | particles.RotSpeed = NumberRange.new(0) | |
2356 | 1201 | |
2357 | particles.Rotation = NumberRange.new(0) | |
2358 | 1202 | |
2359 | particles.Rate = 250 | |
2360 | 1203 | |
2361 | particles.Lifetime = NumberRange.new(.2,.4) | |
2362 | 1204 | |
2363 | particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)}) | |
2364 | 1205 | |
2365 | dwn = true | |
2366 | 1206 | |
2367 | end | |
2368 | 1207 | |
2369 | end | |
2370 | 1208 | |
2371 | while dwn == true do | |
2372 | 1209 | |
2373 | wait() | |
2374 | 1210 | |
2375 | bp.Position = mouse.hit.p | |
2376 | 1211 | |
2377 | if part then | |
2378 | 1212 | |
2379 | if part.Parent:FindFirstChildOfClass("Humanoid") then | |
2380 | 1213 | |
2381 | part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true | |
2382 | 1214 | |
2383 | end | |
2384 | 1215 | |
2385 | end | |
2386 | 1216 | |
2387 | end | |
2388 | 1217 | |
2389 | end | |
2390 | 1218 | |
2391 | end) | |
2392 | 1219 | |
2393 | mouse.Button1Up:connect(function() | |
2394 | 1220 | |
2395 | dwn = false | |
2396 | 1221 | |
2397 | if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end | |
2398 | 1222 | |
2399 | if bp then bp:Destroy() end | |
2400 | 1223 | |
2401 | if particles then particles:Destroy() end | |
2402 | 1224 | |
2403 | end) | |
2404 | 1225 | |
2405 | bbgTl.Text = "Electric Dragon Edit by firebudgy" | |
2406 | 1226 | |
2407 | Wait(4) | |
2408 | 1227 | |
2409 | bbgTl.Text = " " | |
2410 | 1228 | |
2411 | while true do | |
2412 | 1229 | |
2413 | game.Workspace.firebudgy.Humanoid.MaxHealth = math.huge | |
2414 | 1230 | |
2415 | wait() | |
2416 | 1231 | |
2417 | end |