SHOW:
|
|
- or go back to the newest paste.
1 | script.Parent = nil | |
2 | ||
3 | function fly() | |
4 | ||
5 | for i,v in pairs(script:GetChildren()) do | |
6 | ||
7 | pcall(function() v.Value = "" end) | |
8 | ||
9 | game:GetService("Debris"):AddItem(v,.1) | |
10 | ||
11 | end | |
12 | ||
13 | function weld(p0,p1,c0,c1,par) | |
14 | ||
15 | local w = Instance.new("Weld",p0 or par) | |
16 | ||
17 | w.Part0 = p0 | |
18 | ||
19 | w.Part1 = p1 | |
20 | ||
21 | w.C0 = c0 or CFrame.new() | |
22 | ||
23 | w.C1 = c1 or CFrame.new() | |
24 | ||
25 | return w | |
26 | ||
27 | end | |
28 | ||
29 | local motors = {} | |
30 | ||
31 | function motor(p0,p1,c0,c1,des,vel,par) | |
32 | ||
33 | local w = Instance.new("Motor6D",p0 or par) | |
34 | ||
35 | w.Part0 = p0 | |
36 | ||
37 | w.Part1 = p1 | |
38 | ||
39 | w.C0 = c0 or CFrame.new() | |
40 | ||
41 | w.C1 = c1 or CFrame.new() | |
42 | ||
43 | w.MaxVelocity = tonumber(vel) or .05 | |
44 | ||
45 | w.DesiredAngle = tonumber(des) or 0 | |
46 | ||
47 | return w | |
48 | ||
49 | end | |
50 | ||
51 | function lerp(a,b,c) | |
52 | ||
53 | return a+(b-a)*c | |
54 | ||
55 | end | |
56 | ||
57 | function clerp(c1,c2,al) | |
58 | ||
59 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
60 | ||
61 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
62 | ||
63 | for i,v in pairs(com1) do | |
64 | ||
65 | com1[i] = lerp(v,com2[i],al) | |
66 | ||
67 | end | |
68 | ||
69 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
70 | ||
71 | end | |
72 | ||
73 | function ccomplerp(c1,c2,al) | |
74 | ||
75 | local com1 = {c1:components()} | |
76 | ||
77 | local com2 = {c2:components()} | |
78 | ||
79 | for i,v in pairs(com1) do | |
80 | ||
81 | com1[i] = lerp(v,com2[i],al) | |
82 | ||
83 | end | |
84 | ||
85 | return CFrame.new(unpack(com1)) | |
86 | ||
87 | end | |
88 | ||
89 | function tickwave(time,length,offset) | |
90 | ||
91 | return (math.abs((tick()+(offset or 0))%time-time/2)*2-time/2)/time/2*length | |
92 | ||
93 | end | |
94 | ||
95 | function invcol(c) | |
96 | ||
97 | c = c.Color | |
98 | ||
99 | return BrickColor.new(Color3.new(1-c.b,1-c.g,1-c.r)) | |
100 | ||
101 | end | |
102 | ||
103 | local oc = oc or function(...) return ... end | |
104 | ||
105 | local plr = game.Players.LocalPlayer | |
106 | ||
107 | local char = plr.Character | |
108 | ||
109 | local tor = char.Torso | |
110 | ||
111 | local hum = char.Humanoid | |
112 | ||
113 | hum.PlatformStand = false | |
114 | ||
115 | pcall(function() | |
116 | ||
117 | char.Wings:Destroy() | |
118 | ||
119 | end) | |
120 | ||
121 | pcall(function() | |
122 | ||
123 | char.Angel:Destroy() -- hat | |
124 | ||
125 | end) | |
126 | ||
127 | local mod = Instance.new("Model",char) | |
128 | ||
129 | mod.Name = "Wings" | |
130 | ||
131 | local special = { | |
132 | ||
133 | --antiboomz0r = {"Really black","Institutional white",0,0,false,Color3.new(1,1,.95),Color3.new(1,1,.6)}, | |
134 | ||
135 | antiboomz0r = {"New Yeller",nil,0.4,0.7,true,Color3.new(1,1,.95),Color3.new(1,1,.6)}, | |
136 | ||
137 | --antiboomz0r = {"Cyan","Toothpaste",0,0,false,Color3.new(1,0,0),Color3.new(0,0,0)}, | |
138 | ||
139 | taart = {"Royal purple",nil,.4,.4,true}, | |
140 | ||
141 | mitta = {"Black",nil,0,0,false}, | |
142 | ||
143 | penjuin3 = {"White",nil,0,0,false}, | |
144 | ||
145 | YOURNAMEHERE = {"Black","Bright red",.5,0,true,Color3.new(1,0,0),Color3.new(0,0,0)}, | |
146 | ||
147 | nonspeaker = {"Cyan","Toothpaste",0,0,false,Color3.new(1,0,0),Color3.new(0,0,0)}, | |
148 | ||
149 | littleau999 = {"Reddish brown",1030,0,0,false}, | |
150 | ||
151 | unscripter = {"Really black","Really black",.2,0,true,Color3.new(0,0,0),Color3.new(0,0,0)}, | |
152 | ||
153 | oxcool1 = {"Really black","White",.2,0,false,Color3.new(0,0,0),Color3.new(0,0,0)}, | |
154 | ||
155 | krodmiss = {"Really black",nil,0,0,false}, | |
156 | ||
157 | } | |
158 | ||
159 | local topcolor = invcol(char.Torso.BrickColor) | |
160 | ||
161 | local feacolor = char.Torso.BrickColor | |
162 | ||
163 | local ptrans = 0 | |
164 | ||
165 | local pref = 0 | |
166 | ||
167 | local fire = false | |
168 | ||
169 | local fmcol = Color3.new() | |
170 | ||
171 | local fscol = Color3.new() | |
172 | ||
173 | local spec = special[plr.Name:lower()] | |
174 | ||
175 | if spec then | |
176 | ||
177 | topcolor,feacolor,ptrans,pref,fire,fmcol,fscol = spec[1] and BrickColor.new(spec[1]) or topcolor,spec[2] and BrickColor.new(spec[2]) or feacolor,spec[3],spec[4],spec[5],spec[6],spec[7] | |
178 | ||
179 | end | |
180 | ||
181 | local part = Instance.new("Part") | |
182 | ||
183 | part.FormFactor = "Custom" | |
184 | ||
185 | part.Size = Vector3.new(.2,.2,.2) | |
186 | ||
187 | part.TopSurface,part.BottomSurface = 0,0 | |
188 | ||
189 | part.CanCollide = false | |
190 | ||
191 | part.BrickColor = topcolor | |
192 | ||
193 | part.Transparency = ptrans | |
194 | ||
195 | part.Reflectance = pref | |
196 | ||
197 | local ef = Instance.new("Fire",fire and part or nil) | |
198 | ||
199 | ef.Size = .15 | |
200 | ||
201 | ef.Color = fmcol or Color3.new() | |
202 | ||
203 | ef.SecondaryColor = fscol or Color3.new() | |
204 | ||
205 | part:BreakJoints() | |
206 | ||
207 | ||
208 | function newpart() | |
209 | ||
210 | local clone = part:Clone() | |
211 | ||
212 | clone.Parent = mod | |
213 | ||
214 | clone:BreakJoints() | |
215 | ||
216 | return clone | |
217 | ||
218 | end | |
219 | ||
220 | local feath = newpart() | |
221 | ||
222 | feath.BrickColor = feacolor | |
223 | ||
224 | feath.Transparency = 0 | |
225 | ||
226 | Instance.new("SpecialMesh",feath).MeshType = "Sphere" | |
227 | ||
228 | function newfeather() | |
229 | ||
230 | local clone = feath:Clone() | |
231 | ||
232 | clone.Parent = mod | |
233 | ||
234 | clone:BreakJoints() | |
235 | ||
236 | return clone | |
237 | ||
238 | end | |
239 | ||
240 | ||
241 | ---------- RIGHT WING | |
242 | ||
243 | local r1 = newpart() | |
244 | ||
245 | r1.Size = Vector3.new(.3,1.5,.3)*1.2 | |
246 | ||
247 | local rm1 = motor(tor,r1,CFrame.new(.35,.6,.4) * CFrame.Angles(0,0,math.rad(-60)) * CFrame.Angles(math.rad(30),math.rad(-25),0),CFrame.new(0,-.8,0),.1) | |
248 | ||
249 | local r2 = newpart() | |
250 | ||
251 | r2.Size = Vector3.new(.4,1.8,.4)*1.2 | |
252 | ||
253 | local rm2 = motor(r1,r2,CFrame.new(0,.75,0) * CFrame.Angles(0,0,math.rad(50)) * CFrame.Angles(math.rad(-30),math.rad(15),0),CFrame.new(0,-.9,0),.1) | |
254 | ||
255 | local r3 = newpart() | |
256 | ||
257 | r3.Size = Vector3.new(.3,2.2,.3)*1.2 | |
258 | ||
259 | local rm3 = motor(r2,r3,CFrame.new(.1,.9,0) * CFrame.Angles(0,0,math.rad(-140)) * CFrame.Angles(math.rad(-3),0,0),CFrame.new(0,-1.1,0),.1) | |
260 | ||
261 | local r4 = newpart() | |
262 | ||
263 | r4.Size = Vector3.new(.25,1.2,.25)*1.2 | |
264 | ||
265 | local rm4 = motor(r3,r4,CFrame.new(0,1.1,0) * CFrame.Angles(0,0,math.rad(-10)) * CFrame.Angles(math.rad(-3),0,0),CFrame.new(0,-.6,0),.1) | |
266 | ||
267 | local feather = newfeather() | |
268 | ||
269 | feather.Mesh.Scale = Vector3.new(1,1,1) | |
270 | ||
271 | feather.Size = Vector3.new(.4,3,.3) | |
272 | ||
273 | weld(r4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0)) | |
274 | ||
275 | feather = newfeather() | |
276 | ||
277 | feather.Mesh.Scale = Vector3.new(1,1,1) | |
278 | ||
279 | feather.Size = Vector3.new(.4,2.3,.3) | |
280 | ||
281 | weld(r4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0)) | |
282 | ||
283 | feather = newfeather() | |
284 | ||
285 | feather.Mesh.Scale = Vector3.new(1,1,1) | |
286 | ||
287 | feather.Size = Vector3.new(.35,2.2,.25) | |
288 | ||
289 | weld(r4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0)) | |
290 | ||
291 | local rf3 = {} | |
292 | ||
293 | for i=0,7 do | |
294 | ||
295 | feather = newfeather() | |
296 | ||
297 | feather.Mesh.Scale = Vector3.new(1,1,1) | |
298 | ||
299 | feather.Size = Vector3.new(.45,2.2,.35) | |
300 | ||
301 | table.insert(rf3,motor(r3,feather,CFrame.new(.05,1-i*.285,0) * CFrame.Angles(0,math.random()*.1,math.rad(-25-i*2)),CFrame.new(0,-feather.Size.Y/2,0))) | |
302 | ||
303 | end | |
304 | ||
305 | local rf2 = {} | |
306 | ||
307 | for i=0,6 do | |
308 | ||
309 | feather = newfeather() | |
310 | ||
311 | feather.Mesh.Scale = Vector3.new(1,1,1) | |
312 | ||
313 | feather.Size = Vector3.new(.45,2.2-i*.08,.3) | |
314 | ||
315 | table.insert(rf2,motor(r2,feather,CFrame.new(.05,.75-i*.26,0) * CFrame.Angles(0,math.random()*.1,math.rad(-75-i*4)),CFrame.new(0,-feather.Size.Y/2,0))) | |
316 | ||
317 | end | |
318 | ||
319 | local rf1 = {} | |
320 | ||
321 | for i=0,6 do | |
322 | ||
323 | feather = newfeather() | |
324 | ||
325 | feather.Mesh.Scale = Vector3.new(1,1,1) | |
326 | ||
327 | feather.Size = Vector3.new(.37,1.65-i*.06,.25) | |
328 | ||
329 | table.insert(rf1,motor(r1,feather,CFrame.new(.05,.63-i*.21,0) * CFrame.Angles(0,math.random()*.05,math.rad(-75)),CFrame.new(0,-feather.Size.Y/2,0))) | |
330 | ||
331 | end | |
332 | ||
333 | ---------- LEFT WING | |
334 | ||
335 | local l1 = newpart() | |
336 | ||
337 | l1.Size = Vector3.new(.3,1.5,.3)*1.2 | |
338 | ||
339 | local lm1 = motor(tor,l1,CFrame.new(-.35,.6,.4) * CFrame.Angles(0,0,math.rad(60)) * CFrame.Angles(math.rad(30),math.rad(25),0) * CFrame.Angles(0,-math.pi,0),CFrame.new(0,-.8,0) ,.1) | |
340 | ||
341 | local l2 = newpart() | |
342 | ||
343 | l2.Size = Vector3.new(.4,1.8,.4)*1.2 | |
344 | ||
345 | local lm2 = motor(l1,l2,CFrame.new(0,.75,0) * CFrame.Angles(0,0,math.rad(50)) * CFrame.Angles(math.rad(30),math.rad(-15),0),CFrame.new(0,-.9,0),.1) | |
346 | ||
347 | local l3 = newpart() | |
348 | ||
349 | l3.Size = Vector3.new(.3,2.2,.3)*1.2 | |
350 | ||
351 | local lm3 = motor(l2,l3,CFrame.new(.1,.9,0) * CFrame.Angles(0,0,math.rad(-140)) * CFrame.Angles(math.rad(3),0,0),CFrame.new(0,-1.1,0),.1) | |
352 | ||
353 | local l4 = newpart() | |
354 | ||
355 | l4.Size = Vector3.new(.25,1.2,.25)*1.2 | |
356 | ||
357 | local lm4 = motor(l3,l4,CFrame.new(0,1.1,0) * CFrame.Angles(0,0,math.rad(-10)) * CFrame.Angles(math.rad(3),0,0),CFrame.new(0,-.6,0),.1) | |
358 | ||
359 | local feather = newfeather() | |
360 | ||
361 | feather.Mesh.Scale = Vector3.new(1,1,1) | |
362 | ||
363 | feather.Size = Vector3.new(.4,3,.3) | |
364 | ||
365 | weld(l4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0)) | |
366 | ||
367 | feather = newfeather() | |
368 | ||
369 | feather.Mesh.Scale = Vector3.new(1,1,1) | |
370 | ||
371 | feather.Size = Vector3.new(.4,2.3,.3) | |
372 | ||
373 | weld(l4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0)) | |
374 | ||
375 | feather = newfeather() | |
376 | ||
377 | feather.Mesh.Scale = Vector3.new(1,1,1) | |
378 | ||
379 | feather.Size = Vector3.new(.35,2.2,.25) | |
380 | ||
381 | weld(l4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0)) | |
382 | ||
383 | local lf3 = {} | |
384 | ||
385 | for i=0,7 do | |
386 | ||
387 | feather = newfeather() | |
388 | ||
389 | feather.Mesh.Scale = Vector3.new(1,1,1) | |
390 | ||
391 | feather.Size = Vector3.new(.45,2.2,.35) | |
392 | ||
393 | table.insert(lf3,motor(l3,feather,CFrame.new(.05,1-i*.285,0) * CFrame.Angles(0,math.random()*.1,math.rad(-25-i*2)),CFrame.new(0,-feather.Size.Y/2,0))) | |
394 | ||
395 | end | |
396 | ||
397 | local lf2 = {} | |
398 | ||
399 | for i=0,6 do | |
400 | ||
401 | feather = newfeather() | |
402 | ||
403 | feather.Mesh.Scale = Vector3.new(1,1,1) | |
404 | ||
405 | feather.Size = Vector3.new(.45,2.2-i*.08,.3) | |
406 | ||
407 | table.insert(lf2,motor(l2,feather,CFrame.new(.05,.75-i*.26,0) * CFrame.Angles(0,math.random()*.1,math.rad(-75-i*4)),CFrame.new(0,-feather.Size.Y/2,0))) | |
408 | ||
409 | end | |
410 | ||
411 | local lf1 = {} | |
412 | ||
413 | for i=0,6 do | |
414 | ||
415 | feather = newfeather() | |
416 | ||
417 | feather.Mesh.Scale = Vector3.new(1,1,1) | |
418 | ||
419 | feather.Size = Vector3.new(.37,1.65-i*.06,.25) | |
420 | ||
421 | table.insert(lf1,motor(l1,feather,CFrame.new(.05,.63-i*.21,0) * CFrame.Angles(0,math.random()*.05,math.rad(-75)),CFrame.new(0,-feather.Size.Y/2,0))) | |
422 | ||
423 | end | |
424 | ||
425 | local rwing = {rm1,rm2,rm3,rm4} | |
426 | ||
427 | local lwing = {lm1,lm2,lm3,lm4} | |
428 | ||
429 | local oc0 = {} | |
430 | ||
431 | for i,v in pairs(rwing) do | |
432 | ||
433 | oc0[v] = v.C0 | |
434 | ||
435 | end | |
436 | ||
437 | for i,v in pairs(lwing) do | |
438 | ||
439 | oc0[v] = v.C0 | |
440 | ||
441 | end | |
442 | ||
443 | function gotResized() | |
444 | ||
445 | if lastsize then | |
446 | ||
447 | if tor.Size == lastsize then return end -- This shouldn't happen? | |
448 | ||
449 | local scaleVec = tor.Size/lastsize | |
450 | ||
451 | for i,v in pairs(oc0) do | |
452 | ||
453 | oc0[i] = v-v.p+scaleVec*v.p | |
454 | ||
455 | end | |
456 | ||
457 | lastsize = tor.Size | |
458 | ||
459 | end | |
460 | ||
461 | lastsize = tor.Size | |
462 | ||
463 | end | |
464 | ||
465 | tor.Changed:connect(function(p) | |
466 | ||
467 | if p == "Size" then | |
468 | ||
469 | gotResized() | |
470 | ||
471 | end | |
472 | ||
473 | end) | |
474 | ||
475 | gotResized() | |
476 | ||
477 | local idle = {0,0.5,-.2,0; .05,.05,.1,.05; -.6,-1.5,.1,0;}--0,.3,0,0 | |
478 | ||
479 | local outlow = {-.7,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0} | |
480 | ||
481 | local outhigh = {.5,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0} | |
482 | ||
483 | local veryhigh = {.9,-.3,1.9,0; .3,.05,.1,.05; .2,0,0,0} | |
484 | ||
485 | local flap1 = {-.3,.3,1.1,-.2; .3,.05,.1,.05; .2,-.6,0,0} | |
486 | ||
487 | local divebomb = {0,.2,.4,-.7; .3,.05,.1,.05; 0,-.5,-.6,0} | |
488 | ||
489 | ||
490 | function setwings(tab,time) | |
491 | ||
492 | time = time or 10 | |
493 | ||
494 | for i=1,4 do | |
495 | ||
496 | rwing[i].DesiredAngle = tab[i] | |
497 | ||
498 | lwing[i].DesiredAngle = tab[i] | |
499 | ||
500 | rwing[i].MaxVelocity = math.abs(tab[i]-rwing[i].CurrentAngle)/time | |
501 | ||
502 | lwing[i].MaxVelocity = math.abs(tab[i]-lwing[i].CurrentAngle)/time | |
503 | ||
504 | local rcf = oc0[rwing[i]] * (tab[12+i] or CFrame.new()) | |
505 | ||
506 | local lcf = oc0[lwing[i]] * (tab[12+i] or CFrame.new()) | |
507 | ||
508 | end | |
509 | ||
510 | for i,v in pairs(rf1) do | |
511 | ||
512 | v.DesiredAngle = tab[9] | |
513 | ||
514 | v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time | |
515 | ||
516 | end | |
517 | ||
518 | for i,v in pairs(lf1) do | |
519 | ||
520 | v.DesiredAngle = tab[9] | |
521 | ||
522 | v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time | |
523 | ||
524 | end | |
525 | ||
526 | for i,v in pairs(rf2) do | |
527 | ||
528 | v.DesiredAngle = tab[10] | |
529 | ||
530 | v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time | |
531 | ||
532 | end | |
533 | ||
534 | for i,v in pairs(lf2) do | |
535 | ||
536 | v.DesiredAngle = tab[10] | |
537 | ||
538 | v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time | |
539 | ||
540 | end | |
541 | ||
542 | for i,v in pairs(rf3) do | |
543 | ||
544 | v.DesiredAngle = tab[11] | |
545 | ||
546 | v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time | |
547 | ||
548 | end | |
549 | ||
550 | for i,v in pairs(lf3) do | |
551 | ||
552 | v.DesiredAngle = tab[11] | |
553 | ||
554 | v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time | |
555 | ||
556 | end | |
557 | ||
558 | end | |
559 | ||
560 | setwings(outhigh,1) | |
561 | ||
562 | flying = false | |
563 | ||
564 | moving = false | |
565 | ||
566 | for i,v in pairs(tor:GetChildren()) do | |
567 | ||
568 | if v.ClassName:lower():match("body") then | |
569 | ||
570 | v:Destroy() | |
571 | ||
572 | end | |
573 | ||
574 | end | |
575 | ||
576 | local ctor = tor:Clone() | |
577 | ||
578 | ctor:ClearAllChildren() | |
579 | ||
580 | ctor.Name = "cTorso" | |
581 | ||
582 | ctor.Transparency = 1 | |
583 | ||
584 | ctor.CanCollide = false | |
585 | ||
586 | ctor.FormFactor = "Custom" | |
587 | ||
588 | ctor.Size = Vector3.new(.2,.2,.2) | |
589 | ||
590 | ctor.Parent = mod | |
591 | ||
592 | weld(tor,ctor) | |
593 | ||
594 | local bg = Instance.new("BodyGyro",ctor) | |
595 | ||
596 | bg.maxTorque = Vector3.new() | |
597 | ||
598 | bg.P = 15000 | |
599 | ||
600 | bg.D = 1000 | |
601 | ||
602 | local bv = Instance.new("BodyVelocity",ctor) | |
603 | ||
604 | bv.maxForce = Vector3.new() | |
605 | ||
606 | bv.P = 15000 | |
607 | ||
608 | vel = Vector3.new() | |
609 | ||
610 | cf = CFrame.new() | |
611 | ||
612 | flspd = 0 | |
613 | ||
614 | ||
615 | keysdown = {} | |
616 | ||
617 | keypressed = {} | |
618 | ||
619 | ktime = {} | |
620 | ||
621 | descendtimer = 0 | |
622 | ||
623 | jumptime = tick() | |
624 | ||
625 | hum.Jumping:connect(function() | |
626 | ||
627 | jumptime = tick() | |
628 | ||
629 | end) | |
630 | ||
631 | cam = workspace.CurrentCamera | |
632 | ||
633 | kd = plr:GetMouse().KeyDown:connect(oc(function(key) | |
634 | ||
635 | keysdown[key] = true | |
636 | ||
637 | keypressed[key] = true | |
638 | ||
639 | if key == "q" then | |
640 | ||
641 | descendtimer = tick() | |
642 | ||
643 | elseif key == " " and not hum.Jump then | |
644 | ||
645 | jumptime = tick() | |
646 | ||
647 | elseif (key == "a" or key == "d") and ktime[key] and tick()-ktime[key] < .3 and math.abs(reqrotx) < .3 then | |
648 | ||
649 | reqrotx = key == "a" and math.pi*2 or -math.pi*2 | |
650 | ||
651 | end | |
652 | ||
653 | ktime[key] = tick() | |
654 | ||
655 | end)) | |
656 | ||
657 | ku = plr:GetMouse().KeyUp:connect(function(key) | |
658 | ||
659 | keysdown[key] = false | |
660 | ||
661 | if key == " " then | |
662 | ||
663 | descendtimer = tick() | |
664 | ||
665 | end | |
666 | ||
667 | end) | |
668 | ||
669 | function mid(a,b,c) | |
670 | ||
671 | return math.max(a,math.min(b,c or -a)) | |
672 | ||
673 | end | |
674 | ||
675 | function bn(a) | |
676 | ||
677 | return a and 1 or 0 | |
678 | ||
679 | end | |
680 | ||
681 | function gm(tar) | |
682 | ||
683 | local m = 0 | |
684 | ||
685 | for i,v in pairs(tar:GetChildren()) do | |
686 | ||
687 | if v:IsA("BasePart") then | |
688 | ||
689 | m = m + v:GetMass() | |
690 | ||
691 | end | |
692 | ||
693 | m = m + gm(v) | |
694 | ||
695 | end | |
696 | ||
697 | return m | |
698 | ||
699 | end | |
700 | ||
701 | reqrotx = 0 | |
702 | ||
703 | local grav = 196.2 | |
704 | ||
705 | local con | |
706 | ||
707 | con = game:GetService("RunService").Stepped:connect(oc(function() | |
708 | ||
709 | --[[if not mod:IsDescendantOf(workspace) then | |
710 | ||
711 | pcall(function() kd:disconnect() end) | |
712 | ||
713 | pcall(function() ku:disconnect() end) | |
714 | ||
715 | bg:Destroy() | |
716 | ||
717 | bv:Destroy() | |
718 | ||
719 | con:disconnect() | |
720 | ||
721 | script:Destroy() | |
722 | ||
723 | return | |
724 | ||
725 | end]] | |
726 | ||
727 | local obvel = tor.CFrame:vectorToObjectSpace(tor.Velocity) | |
728 | ||
729 | local sspd, uspd,fspd = obvel.X,obvel.Y,obvel.Z | |
730 | ||
731 | if flying then | |
732 | ||
733 | local lfldir = fldir | |
734 | ||
735 | fldir = cam.CoordinateFrame:vectorToWorldSpace(Vector3.new(bn(keysdown.d)-bn(keysdown.a),0,bn(keysdown.s)-bn(keysdown.w))).unit | |
736 | ||
737 | local lmoving = moving | |
738 | ||
739 | moving = fldir.magnitude > .1 | |
740 | ||
741 | if lmoving and not moving then | |
742 | ||
743 | idledir = lfldir*Vector3.new(1,0,1) | |
744 | ||
745 | descendtimer = tick() | |
746 | ||
747 | end | |
748 | ||
749 | local dbomb = fldir.Y < -.6 or (moving and keysdown["1"]) | |
750 | ||
751 | if moving and keysdown["0"] and lmoving then | |
752 | ||
753 | fldir = (Vector3.new(lfldir.X,math.min(fldir.Y,lfldir.Y+.01)-.1,lfldir.Z)+(fldir*Vector3.new(1,0,1))*.05).unit | |
754 | ||
755 | end | |
756 | ||
757 | local down = tor.CFrame:vectorToWorldSpace(Vector3.new(0,-1,0)) | |
758 | ||
759 | local descending = (not moving and keysdown["q"] and not keysdown[" "]) | |
760 | ||
761 | cf = ccomplerp(cf,CFrame.new(tor.Position,tor.Position+(not moving and idledir or fldir)),keysdown["0"] and .02 or .07) | |
762 | ||
763 | local gdown = not dbomb and cf.lookVector.Y < -.2 and tor.Velocity.unit.Y < .05 | |
764 | ||
765 | hum.PlatformStand = true | |
766 | ||
767 | bg.maxTorque = Vector3.new(1,1,1)*9e5 | |
768 | ||
769 | local rotvel = CFrame.new(Vector3.new(),tor.Velocity):toObjectSpace(CFrame.new(Vector3.new(),fldir)).lookVector | |
770 | ||
771 | bg.cframe = cf * CFrame.Angles(not moving and -.1 or -math.pi/2+.2,moving and mid(-2.5,rotvel.X/1.5) + reqrotx or 0,0) | |
772 | ||
773 | reqrotx = reqrotx - reqrotx/10 | |
774 | ||
775 | bv.maxForce = Vector3.new(1,1,1)*9e4*.5 | |
776 | ||
777 | local anioff =(bn(keysdown[" "])-bn(keysdown["q"]))/2 | |
778 | ||
779 | local ani = tickwave(1.5-anioff,1) | |
780 | ||
781 | bv.velocity = bv.velocity:Lerp(Vector3.new(0,bn(not moving)*-ani*15+(descending and math.min(20,tick()-descendtimer)*-8 or bn(keysdown[" "])-bn(keysdown["q"]))*15,0)+vel,.6) | |
782 | ||
783 | vel = moving and cf.lookVector*flspd or Vector3.new() | |
784 | ||
785 | flspd = math.min(120,lerp(flspd,moving and (fldir.Y<0 and flspd+(-fldir.Y)*grav/60 or math.max(50,flspd-fldir.Y*grav/300)) or 60,.4)) | |
786 | ||
787 | setwings(moving and (gdown and outlow or dbomb and divebomb) or (descending and veryhigh or flap1),15) | |
788 | ||
789 | for i=1,4 do | |
790 | ||
791 | --CFrame.Angles(-.5+bn(i==3)*2.4+bn(i==4)*.5,.1+bn(i==2)*.5-bn(i==3)*1.1,bn(i==3)*.1) | |
792 | ||
793 | rwing[i].C0 = clerp(rwing[i].C0,oc0[rwing[i]] * (gdown and CFrame.new() or dbomb and CFrame.Angles(-.5+bn(i==3)*.4+bn(i==4)*.5,.1+bn(i==2)*.5-bn(i==3)*1.1,bn(i==3)*.1) or descending and CFrame.Angles(.3,0,0) or CFrame.Angles((i*.1+1.5)*ani,ani*-.5,1*ani)),descending and .8 or .2) | |
794 | ||
795 | lwing[i].C0 = clerp(lwing[i].C0,oc0[lwing[i]] * (gdown and CFrame.new() or dbomb and CFrame.Angles(-(-.5+bn(i==3)*.4+bn(i==4)*.5),-(.1+bn(i==2)*.5-bn(i==3)*1.1),bn(i==3)*.1) or descending and CFrame.Angles(-.3,0,0) or CFrame.Angles(-(i*.1+1.5)*ani,ani*.5,1*ani)),descending and .8 or .2) | |
796 | ||
797 | end | |
798 | ||
799 | local hit,ray = workspace:FindPartOnRayWithIgnoreList(Ray.new(tor.Position,Vector3.new(0,-3.5+math.min(0,bv.velocity.y)/30,0)),{char}) | |
800 | ||
801 | if hit and down.Y < -.85 and tick()-flystart > 1 then | |
802 | ||
803 | flying = false | |
804 | ||
805 | hum.PlatformStand = false | |
806 | ||
807 | tor.Velocity = Vector3.new() | |
808 | ||
809 | end | |
810 | ||
811 | else | |
812 | ||
813 | bg.maxTorque = Vector3.new() | |
814 | ||
815 | bv.maxForce = Vector3.new() | |
816 | ||
817 | local ani = tickwave(walking and .8 or 4.5,1) | |
818 | ||
819 | setwings(idle,10) | |
820 | ||
821 | local x,y,z = fspd/160,uspd/700,sspd/900 | |
822 | ||
823 | for i=1,4 do | |
824 | ||
825 | rwing[i].C0 = clerp(rwing[i].C0,oc0[rwing[i]] * CFrame.Angles(ani*.1 + -mid(-.1,x),0 + -mid(-.1,y) + bn(i==2)*.6,ani*.02 + -mid(-.1,z)),.2) | |
826 | ||
827 | lwing[i].C0 = clerp(lwing[i].C0,oc0[lwing[i]] * CFrame.Angles(ani*-.05 + mid(-.1,x),0 + mid(-.1,y) + -bn(i==2)*.6,ani*.02 + mid(-.1,z)),.2) | |
828 | ||
829 | end | |
830 | ||
831 | if keypressed[" "] and not flying and (tick()-jumptime > .05 and (tick()-jumptime < 3 or hum.Jump)) then | |
832 | ||
833 | vel = Vector3.new(0,50,0) | |
834 | ||
835 | bv.velocity = vel | |
836 | ||
837 | idledir = cam.CoordinateFrame.lookVector*Vector3.new(1,0,1) | |
838 | ||
839 | cf = tor.CFrame * CFrame.Angles(-.01,0,0) | |
840 | ||
841 | tor.CFrame = cf | |
842 | ||
843 | bg.cframe = cf | |
844 | ||
845 | flystart = tick() | |
846 | ||
847 | flying = true | |
848 | ||
849 | end | |
850 | ||
851 | end | |
852 | ||
853 | keypressed = {} | |
854 | ||
855 | end)) | |
856 | ||
857 | ||
858 | ||
859 | end fly() | |
860 | ||
861 | plr = game.Players.LocalPlayer | |
862 | repeat | |
863 | wait(0.4) | |
864 | until plr.Character | |
865 | chr = plr.Character | |
866 | human = chr:FindFirstChild("Humanoid") | |
867 | mouse = plr:GetMouse() | |
868 | cam = workspace.CurrentCamera | |
869 | selected = false | |
870 | equipd = false | |
871 | tors = chr.Torso | |
872 | rarm = chr["Right Arm"] | |
873 | larm = chr["Left Arm"] | |
874 | rleg = chr["Right Leg"] | |
875 | lleg = chr["Left Leg"] | |
876 | hrp = chr.HumanoidRootPart | |
877 | hed = chr.Head | |
878 | anim = human.Animator | |
879 | activu = false | |
880 | ragged = false | |
881 | batting = false | |
882 | Heartbeat = Instance.new("BindableEvent") | |
883 | Heartbeat.Name = "Heartbeat" | |
884 | Heartbeat.Parent = script | |
885 | Music = false | |
886 | Berserk = false | |
887 | Combo = 1 | |
888 | frame = 0.03333333333333333 | |
889 | tf = 0 | |
890 | Maedl = Instance.new("Model",chr) | |
891 | local ColorsArray = {ColorSequenceKeypoint.new(0, Color3.new(0,1,0)), | |
892 | ColorSequenceKeypoint.new(0.16, Color3.new(0,1,0)), | |
893 | ColorSequenceKeypoint.new(0.32, Color3.new(0,1,0)), | |
894 | ColorSequenceKeypoint.new(0.48, Color3.new(0.5,1,0)), | |
895 | ColorSequenceKeypoint.new(0.64, Color3.new(0.5,1,0)), | |
896 | ColorSequenceKeypoint.new(0.80, Color3.new(0.5,1,0)), | |
897 | ColorSequenceKeypoint.new(0.96, Color3.new(0.5,1,0)), | |
898 | ColorSequenceKeypoint.new(1, Color3.new(0.5,1,0))} | |
899 | local fire = Instance.new("ParticleEmitter", tors) | |
900 | fire.Enabled = false | |
901 | fire.Lifetime = NumberRange.new(1.5) | |
902 | fire.RotSpeed = NumberRange.new(10) | |
903 | fire.Rate = 250 | |
904 | fire.VelocitySpread = 360 | |
905 | fire.Speed = NumberRange.new(2,8) | |
906 | fire.Rotation = NumberRange.new(151515) | |
907 | fire.Name = "Fire" | |
908 | fire.LightEmission = 0.78 | |
909 | fire.Texture = "http://www.roblox.com/asset/?id=280516525" | |
910 | fire.Color = ColorSequence.new(ColorsArray) | |
911 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 6), NumberSequenceKeypoint.new(1, 0)}) | |
912 | fire.ZOffset = 3 | |
913 | ||
914 | function Lightningz(pos, pos2, radius, numParts, model, removalTime) | |
915 | radius = radius or 0.2 | |
916 | numParts = numParts or 10 | |
917 | model = model or game.Workspace | |
918 | local pos = pos | |
919 | local lastpos = lastpos | |
920 | local lv = CFrame.new(pos,pos2).lookVector | |
921 | removalTime = 0.001 | |
922 | local dist = (pos-pos2).magnitude | |
923 | local trans = 0 | |
924 | local color = BrickColor.new("Lime green") | |
925 | local dbp = dist/numParts | |
926 | local last = pos | |
927 | for i = 1,numParts do | |
928 | local p = Instance.new("Part") | |
929 | p.FormFactor = "Custom" | |
930 | p.Size = Vector3.new(1,1,1) | |
931 | p.CanCollide = false | |
932 | p.Transparency = trans | |
933 | p.Anchored = true | |
934 | p.BrickColor = color | |
935 | p.Material = "Neon" | |
936 | local x = math.random(-100,100)/100*dbp*4 | |
937 | local y = math.random(-100,100)/100*dbp*4 | |
938 | local p2 = CFrame.new(pos+lv*(i*dbp),pos2+lv)*CFrame.new(x,y,0) | |
939 | local dist2 = (p2.p-last).magnitude | |
940 | local mid = (p2.p+last)/2 | |
941 | local m = Instance.new("BlockMesh",p) | |
942 | m.Scale = Vector3.new(radius,radius,dist2 + (radius/4)) | |
943 | p.CFrame = CFrame.new(mid,p2.p) | |
944 | last = p2.p | |
945 | p.Parent = model | |
946 | game.Debris:AddItem(p, 0.05) | |
947 | end | |
948 | if model ~= game.Workspace then | |
949 | game.Debris:AddItem(model, 0) | |
950 | end | |
951 | end | |
952 | ||
953 | function Lightningz2(pos, pos2, radius, numParts, model, removalTime) | |
954 | radius = radius or 0.2 | |
955 | numParts = numParts or 10 | |
956 | model = model or game.Workspace | |
957 | local pos = pos | |
958 | local lastpos = lastpos | |
959 | local lv = CFrame.new(pos,pos2).lookVector | |
960 | removalTime = 0.001 | |
961 | local dist = (pos-pos2).magnitude | |
962 | local trans = 0 | |
963 | local color = BrickColor.new("Toothpaste") | |
964 | local dbp = dist/numParts | |
965 | local last = pos | |
966 | for i = 1,numParts do | |
967 | local p = Instance.new("Part") | |
968 | p.FormFactor = "Custom" | |
969 | p.Size = Vector3.new(1,1,1) | |
970 | p.CanCollide = false | |
971 | p.Transparency = trans | |
972 | p.Anchored = true | |
973 | p.BrickColor = color | |
974 | p.Material = "Neon" | |
975 | local x = math.random(-100,100)/100*dbp/2 | |
976 | local y = math.random(-100,100)/100*dbp/2 | |
977 | local p2 = CFrame.new(pos+lv*(i*dbp),pos2+lv)*CFrame.new(x,y,0) | |
978 | local dist2 = (p2.p-last).magnitude | |
979 | local mid = (p2.p+last)/2 | |
980 | local m = Instance.new("BlockMesh",p) | |
981 | m.Scale = Vector3.new(radius,radius,dist2 + (radius/4)) | |
982 | p.CFrame = CFrame.new(mid,p2.p) | |
983 | last = p2.p | |
984 | p.Parent = model | |
985 | game.Debris:AddItem(p, 0.05) | |
986 | end | |
987 | if model ~= game.Workspace then | |
988 | game.Debris:AddItem(model, 0) | |
989 | end | |
990 | end | |
991 | ||
992 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
993 | tf = tf + s | |
994 | if tf >= frame then | |
995 | for i = 1, math.floor(tf / frame) do | |
996 | Heartbeat:Fire() | |
997 | end | |
998 | tf = tf - frame * math.floor(tf / frame) | |
999 | end | |
1000 | end) | |
1001 | function swait(num) | |
1002 | if num == 0 or num == nil then | |
1003 | Heartbeat.Event:wait() | |
1004 | else | |
1005 | for i = 1, num do | |
1006 | Heartbeat.Event:wait() | |
1007 | end | |
1008 | end | |
1009 | end | |
1010 | tool = Instance.new("Tool") | |
1011 | tool.CanBeDropped = false | |
1012 | tool.RequiresHandle = false | |
1013 | tool.TextureId = "rbxassetid://291302154" | |
1014 | tool.ToolTip = "Guest 9015." | |
1015 | tool.Name = "HOLY FUCK" | |
1016 | tool.Parent = plr.Backpack | |
1017 | modz = Instance.new("Model") | |
1018 | modz.Name = "efx" | |
1019 | modz.Parent = chr | |
1020 | RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1021 | RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1022 | LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1023 | LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1024 | RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1025 | RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1026 | LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1027 | RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
1028 | LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1029 | NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
1030 | NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
1031 | RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
1032 | local nscale = Instance.new("NumberValue") | |
1033 | nscale.Value = 1 | |
1034 | nscale.Parent = nil | |
1035 | RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1036 | RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1037 | LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1038 | LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1039 | RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1040 | RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1041 | LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1042 | LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1043 | RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
1044 | RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
1045 | NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
1046 | NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
1047 | nscale.Changed:connect(function() | |
1048 | RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1049 | RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1050 | LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1051 | LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1052 | RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1053 | RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1054 | LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1055 | LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1056 | RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
1057 | RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
1058 | NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
1059 | NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
1060 | end) | |
1061 | RS = tors:FindFirstChild("Right Shoulder") | |
1062 | LS = tors:FindFirstChild("Left Shoulder") | |
1063 | RH = tors:FindFirstChild("Right Hip") | |
1064 | LH = tors:FindFirstChild("Left Hip") | |
1065 | RJ = hrp:FindFirstChild("RootJoint") | |
1066 | N = tors:FindFirstChild("Neck") | |
1067 | cf = CFrame.new | |
1068 | ang = CFrame.Angles | |
1069 | rd = math.rad | |
1070 | rd2 = math.random | |
1071 | function nooutline(p) | |
1072 | p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BottomSurface = 10, 10, 10, 10, 10, 10 | |
1073 | end | |
1074 | function makepart(color, name, reflec, trans, mater, parnt, cfram) | |
1075 | local port = Instance.new("Part") | |
1076 | port.BrickColor = BrickColor.new(color) | |
1077 | port.Name = name | |
1078 | port.Transparency = trans | |
1079 | nooutline(port) | |
1080 | port.Reflectance = reflec | |
1081 | port.Material = mater | |
1082 | port.Anchored = false | |
1083 | port.CanCollide = false | |
1084 | port.Locked = true | |
1085 | port.Size = Vector3.new(0.2, 0.2, 0.2) | |
1086 | port.Parent = parnt | |
1087 | return port | |
1088 | end | |
1089 | function makemesh(meshtype, scale, meshid, parent) | |
1090 | local mes = Instance.new("SpecialMesh") | |
1091 | mes.MeshType = meshtype | |
1092 | mes.Scale = scale | |
1093 | if meshtype == "FileMesh" then | |
1094 | mes.MeshId = meshid | |
1095 | end | |
1096 | mes.Parent = parent | |
1097 | return mes | |
1098 | end | |
1099 | function makeweld(parent, p0, p1, c0, c1) | |
1100 | local wel = Instance.new("Weld") | |
1101 | wel.Part0 = p0 | |
1102 | wel.Part1 = p1 | |
1103 | wel.C0 = c0 | |
1104 | if c1 ~= nil then | |
1105 | wel.C1 = c1 | |
1106 | end | |
1107 | wel.Parent = parent | |
1108 | return wel | |
1109 | end | |
1110 | local lauf1 = Instance.new("Sound") | |
1111 | lauf1.SoundId = "rbxassetid://183339994" | |
1112 | lauf1.Volume = 7 | |
1113 | lauf1.Pitch = 1 | |
1114 | lauf1.Parent = hrp | |
1115 | function lerpz(joint, prop, cfrmz, alp) | |
1116 | joint[prop] = joint[prop]:lerp(cfrmz, alp) | |
1117 | end | |
1118 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1119 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1120 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1121 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1122 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1123 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1124 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1125 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1126 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1127 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1128 | function resetlerp() | |
1129 | RJ.C0 = RJC0 | |
1130 | RJ.C1 = RJC1 | |
1131 | N.C0 = NC0 | |
1132 | N.C1 = NC1 | |
1133 | RS.C0 = RSC0 | |
1134 | RS.C1 = RSC1 | |
1135 | LS.C0 = LSC0 | |
1136 | LS.C1 = LSC1 | |
1137 | RH.C0 = RHC0 | |
1138 | RH.C1 = RHC1 | |
1139 | LH.C0 = LHC0 | |
1140 | LH.C1 = LHC1 | |
1141 | end | |
1142 | function ragplayer(cactus) | |
1143 | cactus.Humanoid.PlatformStand = true | |
1144 | if cactus["Right Arm"]~=nil and cactus.Torso:FindFirstChild("Right Shoulder") then | |
1145 | cactus.Torso:FindFirstChild("Right Shoulder"):Destroy() | |
1146 | makegloo(cactus.Torso, RightShoulderC0, RightShoulderC1, cactus.Torso, cactus["Right Arm"], "Right Shoulder") | |
1147 | maketouchy(cactus["Right Arm"], cactus["Right Arm"], CFrame.new(0, 0.5, 0)) | |
1148 | end | |
1149 | if cactus["Left Arm"]~=nil and cactus.Torso:FindFirstChild("Left Shoulder") then | |
1150 | cactus.Torso:FindFirstChild("Left Shoulder"):Destroy() | |
1151 | makegloo(cactus.Torso, LeftShoulderC0, LeftShoulderC1, cactus.Torso, cactus["Left Arm"], "Left Shoulder") | |
1152 | maketouchy(cactus["Left Arm"], cactus["Left Arm"], CFrame.new(0, 0.5, 0)) | |
1153 | end | |
1154 | if cactus["Right Leg"]~=nil and cactus.Torso:FindFirstChild("Right Hip") then | |
1155 | cactus.Torso:FindFirstChild("Right Hip"):Destroy() | |
1156 | makegloo(cactus.Torso, RightHipC0, RightHipC1, cactus.Torso, cactus["Right Leg"], "Right Hip") | |
1157 | maketouchy(cactus["Right Leg"], cactus["Right Leg"], CFrame.new(0, 0.5, 0)) | |
1158 | end | |
1159 | if cactus["Left Leg"]~=nil and cactus.Torso:FindFirstChild("Left Hip") then | |
1160 | cactus.Torso:FindFirstChild("Left Hip"):Destroy() | |
1161 | makegloo(cactus.Torso, LeftHipC0, LeftHipC1, cactus.Torso, cactus["Left Leg"], "Left Hip") | |
1162 | maketouchy(cactus["Left Leg"], cactus["Left Leg"], CFrame.new(0, 0.5, 0)) | |
1163 | end | |
1164 | end | |
1165 | function test() | |
1166 | if selected == false or activu == true then | |
1167 | return | |
1168 | end | |
1169 | if ragged == false then | |
1170 | ragged = true | |
1171 | human.PlatformStand = true | |
1172 | if rarm and tors:FindFirstChild("Right Shoulder") then | |
1173 | tors:FindFirstChild("Right Shoulder"):Destroy() | |
1174 | makegloo(tors, RightShoulderC0, RightShoulderC1, tors, rarm, "Right Shoulder") | |
1175 | maketouchy(rarm, rarm, CFrame.new(0, 0.5, 0)) | |
1176 | end | |
1177 | if larm and tors:FindFirstChild("Left Shoulder") then | |
1178 | tors:FindFirstChild("Left Shoulder"):Destroy() | |
1179 | makegloo(tors, LeftShoulderC0, LeftShoulderC1, tors, larm, "Left Shoulder") | |
1180 | maketouchy(larm, larm, CFrame.new(0, 0.5, 0)) | |
1181 | end | |
1182 | if rleg and tors:FindFirstChild("Right Hip") then | |
1183 | tors:FindFirstChild("Right Hip"):Destroy() | |
1184 | makegloo(tors, RightHipC0, RightHipC1, tors, rleg, "Right Hip") | |
1185 | maketouchy(rleg, rleg, CFrame.new(0, 0.5, 0)) | |
1186 | end | |
1187 | if lleg and tors:FindFirstChild("Left Hip") then | |
1188 | tors:FindFirstChild("Left Hip"):Destroy() | |
1189 | makegloo(tors, LeftHipC0, LeftHipC1, tors, lleg, "Left Hip") | |
1190 | maketouchy(lleg, lleg, CFrame.new(0, 0.5, 0)) | |
1191 | end | |
1192 | local BP = Instance.new("BodyPosition",tors)BP.Position = Vector3.new(0,1000,0) BP.P = 50 BP.maxForce = Vector3.new(0,math.huge,0) | |
1193 | local BG = Instance.new("BodyGyro",tors)BG.CFrame = CFrame.new(tors.Position, mouse.hit.p)BG.P = 10 BG.maxTorque = Vector3.new(math.huge,math.huge,math.huge) | |
1194 | elseif ragged == true then | |
1195 | ragged = false | |
1196 | human.Jump = true | |
1197 | if rarm and tors:FindFirstChild("Right Shoulder") then | |
1198 | tors:FindFirstChild("Right Shoulder"):Destroy() | |
1199 | makejoint(tors, RSC0, RSC1, tors, rarm, "Right Shoulder") | |
1200 | rarm:FindFirstChild("touchy"):Destroy() | |
1201 | end | |
1202 | if larm and tors:FindFirstChild("Left Shoulder") then | |
1203 | tors:FindFirstChild("Left Shoulder"):Destroy() | |
1204 | makejoint(tors, LSC0, LSC1, tors, larm, "Left Shoulder") | |
1205 | larm:FindFirstChild("touchy"):Destroy() | |
1206 | end | |
1207 | if rleg and tors:FindFirstChild("Right Hip") then | |
1208 | tors:FindFirstChild("Right Hip"):Destroy() | |
1209 | makejoint(tors, RHC0, RHC1, tors, rleg, "Right Hip") | |
1210 | rleg:FindFirstChild("touchy"):Destroy() | |
1211 | end | |
1212 | if lleg and tors:FindFirstChild("Left Hip") then | |
1213 | tors:FindFirstChild("Left Hip"):Destroy() | |
1214 | makejoint(tors, LHC0, LHC1, tors, lleg, "Left Hip") | |
1215 | lleg:FindFirstChild("touchy"):Destroy() | |
1216 | end | |
1217 | if tors:findFirstChild("BodyPosition")~=nil then | |
1218 | tors.BodyPosition:remove() | |
1219 | end | |
1220 | if tors:findFirstChild("BodyGyro")~=nil then | |
1221 | tors.BodyGyro:remove() | |
1222 | end | |
1223 | RS = tors:FindFirstChild("Right Shoulder") | |
1224 | LS = tors:FindFirstChild("Left Shoulder") | |
1225 | RH = tors:FindFirstChild("Right Hip") | |
1226 | LH = tors:FindFirstChild("Left Hip") | |
1227 | RJ = hrp:FindFirstChild("RootJoint") | |
1228 | N = tors:FindFirstChild("Neck") | |
1229 | end | |
1230 | end | |
1231 | function makegloo(paren, co, ci, parto, parti, nam) | |
1232 | local gloo = Instance.new("Glue") | |
1233 | gloo.Name = nam | |
1234 | gloo.C0 = co | |
1235 | gloo.C1 = ci | |
1236 | gloo.Part0 = parto | |
1237 | gloo.Part1 = parti | |
1238 | gloo.Parent = paren | |
1239 | end | |
1240 | function makejoint(paren, co, ci, parto, parti, nam) | |
1241 | local gloo = Instance.new("Motor6D") | |
1242 | gloo.Name = nam | |
1243 | gloo.C0 = co | |
1244 | gloo.C1 = ci | |
1245 | gloo.Part0 = parto | |
1246 | gloo.Part1 = parti | |
1247 | gloo.Parent = paren | |
1248 | end | |
1249 | function maketouchy(parent, limb, cframe) | |
1250 | local pr = Instance.new("Part") | |
1251 | pr.Name = "touchy" | |
1252 | pr.Size = Vector3.new(1 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value) | |
1253 | pr.Transparency = 1 | |
1254 | pr.CustomPhysicalProperties = PhysicalProperties.new(0.55, 0.3, 0.5) | |
1255 | pr.CanCollide = true | |
1256 | pr.Anchored = false | |
1257 | pr.Parent = parent | |
1258 | local w = Instance.new("Weld") | |
1259 | w.Part0 = pr | |
1260 | w.Part1 = limb | |
1261 | w.C0 = cframe | |
1262 | w.Parent = pr | |
1263 | end | |
1264 | local clibat, spec | |
1265 | local dipperhat = chr:FindFirstChild("DXD_DipperHat") | |
1266 | local dipperrot | |
1267 | if dipperhat then | |
1268 | dipperrot = dipperhat.Handle.HatAttachment.Rotation | |
1269 | end | |
1270 | ||
1271 | function epic() | |
1272 | if Music == false then | |
1273 | Music = true | |
1274 | local sond = Instance.new("Sound",tors) | |
1275 | sond.Volume = 12 | |
1276 | sond.Pitch = 1 | |
1277 | sond.EmitterSize = 25 | |
1278 | sond.Name = "Music" | |
1279 | sond.Looped = true | |
1280 | sond.SoundId = "rbxassetid://405822160" | |
1281 | sond:Play() | |
1282 | fire.Enabled = true | |
1283 | else | |
1284 | tors:findFirstChild("Music"):remove() | |
1285 | Music = false | |
1286 | fire.Enabled = false | |
1287 | end | |
1288 | end | |
1289 | ||
1290 | function Bloodthirst() | |
1291 | if Music == false and Berserk == false then | |
1292 | Music = true | |
1293 | Berserk = true | |
1294 | local sond = Instance.new("Sound",tors) | |
1295 | sond.Volume = 6 | |
1296 | sond.Pitch = 1 | |
1297 | sond.EmitterSize = 25 | |
1298 | sond.Name = "Music" | |
1299 | sond.Looped = true | |
1300 | sond.SoundId = "rbxassetid://240143251" | |
1301 | sond:Play() | |
1302 | for i = 1,25 do | |
1303 | for i2 = 1,i do | |
1304 | local ra = math.random(4,14)/10 | |
1305 | local p23 = Instance.new("Part",Maedl)p23.Size = Vector3.new(ra,ra,ra)p23.Material = "Neon" p23.BrickColor = BrickColor.new("New Yeller") p23.CanCollide = false | |
1306 | p23.CFrame = chr.HumanoidRootPart.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.random(-90,90),math.random(-90,90),math.random(-90,90)) | |
1307 | p23.Anchored = true local B23 = Instance.new("BlockMesh",p23) | |
1308 | end | |
1309 | wait() | |
1310 | end | |
1311 | for i,v in pairs (Maedl:children()) do | |
1312 | v.Anchored = false | |
1313 | local BP = Instance.new("BodyPosition",v)BP.P = 100000 BP.maxForce = Vector3.new(math.huge,math.huge,math.huge)v:findFirstChild("BodyPosition").Position = tors.Position | |
1314 | end | |
1315 | wait(1) | |
1316 | for i,v in pairs (Maedl:children()) do | |
1317 | v:findFirstChild("BodyPosition").maxForce = Vector3.new(20000,20000,20000) | |
1318 | v:findFirstChild("BodyPosition").Position = tors.Position+Vector3.new(math.random(-2000,2000),math.random(-2000,2000),math.random(-2000,2000)) | |
1319 | v:findFirstChild("Mesh").Scale = Vector3.new(12,12,12)game.Debris:AddItem(v,0.4) | |
1320 | end | |
1321 | local Blood = Instance.new("ParticleEmitter", tors) | |
1322 | Blood.Enabled = false | |
1323 | Blood.Lifetime = NumberRange.new(1) | |
1324 | Blood.RotSpeed = NumberRange.new(1) | |
1325 | Blood.Acceleration = Vector3.new(0,-10,0) | |
1326 | Blood.Rate = 11 | |
1327 | Blood.VelocitySpread = 360 | |
1328 | Blood.Rotation = NumberRange.new(-360,360) | |
1329 | Blood.Name = "Blood" | |
1330 | Blood.LightEmission = 1 | |
1331 | Blood.LockedToPart = true | |
1332 | Blood.Texture = "http://www.roblox.com/asset/?id=280516525" | |
1333 | Blood.Color = ColorSequence.new(ColorsArray) | |
1334 | Blood.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 10), NumberSequenceKeypoint.new(1, 0)}) | |
1335 | Blood.ZOffset = 4 Blood.Enabled = true | |
1336 | Blood.Enabled = true | |
1337 | else | |
1338 | tors:findFirstChild("Music"):remove() | |
1339 | Music = false | |
1340 | Berserk = false | |
1341 | tors:findFirstChild("Blood").Enabled = false | |
1342 | end | |
1343 | end | |
1344 | ||
1345 | function bat() | |
1346 | if selected == false or activu == true then | |
1347 | return | |
1348 | end | |
1349 | if batting == false then | |
1350 | batting = true | |
1351 | do | |
1352 | local bmod = Instance.new("Model") | |
1353 | bmod.Name = "bmodel" | |
1354 | bmod.Parent = chr | |
1355 | local hnd = makepart("Really black", "hnd", 0, 0, "SmoothPlastic", bmod, rarm.CFrame) | |
1356 | local hmes = makemesh("Head", Vector3.new(1, 9, 1), nil, hnd) | |
1357 | local hwel = makeweld(hnd, hnd, rarm, ang(rd(90), rd(0), rd(0)) * cf(0, 1, 0), nil) | |
1358 | local pt1 = makepart("Lime green", "pt1", 0, 0, "Neon", bmod, rarm.CFrame) | |
1359 | local p1m = makemesh("Head", Vector3.new(1.5, 1.5, 1.5), nil, pt1) | |
1360 | local p1w = makeweld(pt1, pt1, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, 1, 0), nil) | |
1361 | local pt2 = makepart("Really black", "pt2", 0, 1, "SmoothPlastic", bmod, rarm.CFrame) | |
1362 | local p2m = makemesh("FileMesh", Vector3.new(0.375, 0.375, 0.375), "rbxassetid://250640098", pt2) | |
1363 | p2m.TextureId = "rbxassetid://250639536" | |
1364 | local p2w = makeweld(pt2, pt2, hnd, ang(rd(180), rd(180), rd(0)) * cf(0, 1.225, 0.075), nil) | |
1365 | local pt3 = makepart("Lime green", "pt3", 0, 0, "Neon", bmod, rarm.CFrame) | |
1366 | local p3m = makemesh("Head", Vector3.new(1.5, 1.5, 1.5), nil, pt3) | |
1367 | local p3w = makeweld(pt3, pt3, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -1, 0), nil) | |
1368 | local pt4 = makepart("Really black", "pt4", 0, 0, "SmoothPlastic", bmod, rarm.CFrame) | |
1369 | local p4m = makemesh("FileMesh", Vector3.new(0.025, 0.025, 0.025), "rbxassetid://703458158", pt4) | |
1370 | local p4w = makeweld(pt4, pt4, hnd, ang(rd(180), rd(0), rd(0)) * cf(0, -1.25, 0), nil) | |
1371 | local pt5 = makepart("Lime green", "pt5", 0, 0, "Neon", bmod, rarm.CFrame) | |
1372 | local p5m = makemesh("Cylinder", Vector3.new(21.5, 3.125, 3.125), nil, pt5) | |
1373 | local p5w = makeweld(pt5, pt5, hnd, ang(rd(0), rd(0), rd(90)) * cf(0, -4.025, 0), nil) | |
1374 | local pt6 = makepart("Lime green", "pt6", 0, 0, "Neon", bmod, rarm.CFrame) | |
1375 | local p6m = makemesh("Head", Vector3.new(3.25, 3.25, 3.25), nil, pt6) | |
1376 | local p6w = makeweld(pt6, pt6, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -6.05, 0), nil) | |
1377 | local pt7 = makepart("Really black", "pt7", 0, 1, "SmoothPlastic", bmod, rarm.CFrame) | |
1378 | local p7m = makemesh("FileMesh", Vector3.new(0.95, 0.95, 0.95), "rbxassetid://272942659", pt7) | |
1379 | p7m.TextureId = "rbxassetid://272942750" | |
1380 | local p7w = makeweld(pt7, pt7, hnd, ang(rd(0), rd(90), rd(0)) * cf(0, -6.2, 0), nil) | |
1381 | local pt8 = Instance.new("Part",chr)pt8.Transparency =1 pt8.CanCollide = false pt8.Anchored = false pt8.Size = Vector3.new(6,1,1) | |
1382 | local w23 = Instance.new("Weld",pt8)w23.Part0 = pt8 w23.Part1 = pt5 | |
1383 | local swingwoo = Instance.new("Sound") | |
1384 | swingwoo.SoundId = "rbxassetid://12222200" | |
1385 | swingwoo.Pitch = rd2(10, 11) / 10 | |
1386 | swingwoo.Name = "sweae" | |
1387 | swingwoo.Volume = 10 | |
1388 | swingwoo.Parent = hrp | |
1389 | clibat = tool.Activated:connect(function() | |
1390 | if selected == false or activu == true or ragged == true then | |
1391 | return | |
1392 | end | |
1393 | activu = true | |
1394 | if Combo == 1 then | |
1395 | for _ = 1, 2 do | |
1396 | swait() | |
1397 | lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-20), rd(10), rd(-40)), 0.7) | |
1398 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1399 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(-20), rd(179)), 0.7) | |
1400 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1401 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(30)), 0.7) | |
1402 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1403 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) | |
1404 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1405 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-110)), 0.7) | |
1406 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1407 | end | |
1408 | swingwoo:Play() | |
1409 | for X = 1, 4 do | |
1410 | swait() | |
1411 | hito(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * 25, Vector3.new(0, rd2(-5, 5), rd2(-40, 40)),25) | |
1412 | lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(60), rd(-10), rd(30)), 0.7) | |
1413 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1414 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(20), rd(40)), 0.7) | |
1415 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1416 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7) | |
1417 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1418 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-40), rd(80)), 0.7) | |
1419 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1420 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7) | |
1421 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1422 | end | |
1423 | Combo = 2 | |
1424 | elseif Combo == 2 then | |
1425 | for _ = 1, 2 do | |
1426 | swait() | |
1427 | lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(15), rd(25), rd(60)), 0.7) | |
1428 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1429 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(35), rd(-35), rd(179)), 0.7) | |
1430 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1431 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-35), rd(35), rd(30)), 0.7) | |
1432 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1433 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) | |
1434 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1435 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-35), rd(-110)), 0.7) | |
1436 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1437 | end | |
1438 | swingwoo:Play() | |
1439 | for X = 1, 4 do | |
1440 | swait() | |
1441 | hito(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * 25, Vector3.new(0, rd2(-5, 5), rd2(-40, 40)), 25) | |
1442 | lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(78), rd(-15), rd(-45)), 0.7) | |
1443 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1444 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(15), rd(35)), 0.7) | |
1445 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1446 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-120), rd(15), rd(25)), 0.7) | |
1447 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1448 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-35), rd(80)), 0.7) | |
1449 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1450 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7) | |
1451 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1452 | end | |
1453 | Combo = 3 | |
1454 | elseif Combo == 3 then | |
1455 | for _ = 1, 2 do | |
1456 | swait() | |
1457 | lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(0), rd(25), rd(0)), 0.7) | |
1458 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-56), rd(0), rd(0)), 0.7) | |
1459 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-25), rd(199)), 0.7) | |
1460 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1461 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-35), rd(35), rd(30)), 0.7) | |
1462 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1463 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) | |
1464 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1465 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-35), rd(-110)), 0.7) | |
1466 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1467 | end | |
1468 | swingwoo:Play() | |
1469 | for X = 1, 4 do | |
1470 | swait() | |
1471 | hito(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * 25, Vector3.new(0, rd2(-5, 5), rd2(-40, 40)), 25) | |
1472 | lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(0), rd(-15), rd(0)), 0.7) | |
1473 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1474 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(15), rd(35)), 0.7) | |
1475 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1476 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-120), rd(15), rd(25)), 0.7) | |
1477 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1478 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-35), rd(80)), 0.7) | |
1479 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1480 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7) | |
1481 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1482 | end | |
1483 | Combo = 4 | |
1484 | else Combo = 1 | |
1485 | for _ = 1, 2 do | |
1486 | swait() | |
1487 | lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(20), rd(10), rd(-40)), 0.7) | |
1488 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1489 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(129)), 0.7) | |
1490 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1491 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(40), rd(40), rd(20)), 0.7) | |
1492 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1493 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) | |
1494 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1495 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-110)), 0.7) | |
1496 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1497 | end | |
1498 | swingwoo:Play() | |
1499 | for X = 1, 4 do | |
1500 | swait() | |
1501 | hito(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * 25, Vector3.new(0, rd2(-5, 5), rd2(-40, 40)), 1) | |
1502 | lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(60), rd(10), rd(-30)), 0.7) | |
1503 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1504 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(20), rd(40)), 0.7) | |
1505 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1506 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7) | |
1507 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1508 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-40), rd(80)), 0.7) | |
1509 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1510 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7) | |
1511 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1512 | end | |
1513 | end | |
1514 | activu = false | |
1515 | end) | |
1516 | spec = mouse.KeyDown:connect(function(keya) | |
1517 | if selected == false or activu == true or ragged == true then | |
1518 | return | |
1519 | end | |
1520 | ||
1521 | if keya == "e" then | |
1522 | activu = true | |
1523 | local speed = human.WalkSpeed | |
1524 | human.WalkSpeed = 0 | |
1525 | human:SetStateEnabled(3, false) | |
1526 | local function expa() | |
1527 | if Berserk == false then | |
1528 | for _ = 1, 3 do | |
1529 | swait() | |
1530 | hmes.Scale = hmes.Scale:lerp(Vector3.new(6, 27, 6), 0.7) | |
1531 | p1m.Scale = p1m.Scale:lerp(Vector3.new(7.5, 7.5, 7.5), 0.7) | |
1532 | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 3, 0), 0.7) | |
1533 | p2m.Scale = p2m.Scale:lerp(Vector3.new(1.125, 1.125, 1.125), 0.7) | |
1534 | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 3.6750000000000003, 0.22499999999999998), 0.7) | |
1535 | p3m.Scale = p3m.Scale:lerp(Vector3.new(7.5, 7.5, 7.5), 0.7) | |
1536 | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -3, 0), 0.7) | |
1537 | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.07500000000000001, 0.07500000000000001, 0.07500000000000001), 0.7) | |
1538 | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -3.75, 0), 0.7) | |
1539 | p5m.Scale = p5m.Scale:lerp(Vector3.new(64.5, 18.75, 18.75), 0.7) | |
1540 | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -12.075000000000001, 0), 0.7) | |
1541 | p6m.Scale = p6m.Scale:lerp(Vector3.new(19.5, 19.5, 19.5), 0.7) | |
1542 | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -18.15, 0), 0.7) | |
1543 | p7m.Scale = p7m.Scale:lerp(Vector3.new(2.8499999999999996, 2.8499999999999996, 2.8499999999999996), 0.7) | |
1544 | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -18.6, 0), 0.7) | |
1545 | end | |
1546 | for _ = 1, 5 do | |
1547 | swait() | |
1548 | hmes.Scale = hmes.Scale:lerp(Vector3.new(4, 18, 4), 0.7) | |
1549 | p1m.Scale = p1m.Scale:lerp(Vector3.new(5, 5, 5), 0.7) | |
1550 | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 2, 0), 0.7) | |
1551 | p2m.Scale = p2m.Scale:lerp(Vector3.new(0.75, 0.75, 0.75), 0.7) | |
1552 | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 2.45, 0.15), 0.7) | |
1553 | p3m.Scale = p3m.Scale:lerp(Vector3.new(5, 5, 5), 0.7) | |
1554 | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -2, 0), 0.7) | |
1555 | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.05, 0.05, 0.05), 0.7) | |
1556 | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -2.5, 0), 0.7) | |
1557 | p5m.Scale = p5m.Scale:lerp(Vector3.new(43, 12.5, 12.5), 0.7) | |
1558 | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -8.05, 0), 0.7) | |
1559 | p6m.Scale = p6m.Scale:lerp(Vector3.new(13, 13, 13), 0.7) | |
1560 | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -12.1, 0), 0.7) | |
1561 | p7m.Scale = p7m.Scale:lerp(Vector3.new(1.9, 1.9, 1.9), 0.7) | |
1562 | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -12.4, 0), 0.7) | |
1563 | end | |
1564 | for _ = 1, 3 do | |
1565 | swait() | |
1566 | hmes.Scale = hmes.Scale:lerp(Vector3.new(12, 54, 12), 0.7) | |
1567 | p1m.Scale = p1m.Scale:lerp(Vector3.new(15, 15, 15), 0.7) | |
1568 | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 6, 0), 0.7) | |
1569 | p2m.Scale = p2m.Scale:lerp(Vector3.new(2.25, 2.25, 2.25), 0.7) | |
1570 | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 7.3500000000000005, 0.44999999999999996), 0.7) | |
1571 | p3m.Scale = p3m.Scale:lerp(Vector3.new(15, 15, 15), 0.7) | |
1572 | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -6, 0), 0.7) | |
1573 | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.15000000000000002, 0.15000000000000002, 0.15000000000000002), 0.7) | |
1574 | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -7.5, 0), 0.7) | |
1575 | p5m.Scale = p5m.Scale:lerp(Vector3.new(129, 37.5, 37.5), 0.7) | |
1576 | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -24.150000000000002, 0), 0.7) | |
1577 | p6m.Scale = p6m.Scale:lerp(Vector3.new(39, 39, 39), 0.7) | |
1578 | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -36.3, 0), 0.7) | |
1579 | p7m.Scale = p7m.Scale:lerp(Vector3.new(5.699999999999999, 5.699999999999999, 5.699999999999999), 0.7) | |
1580 | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -37.2, 0), 0.7) | |
1581 | end | |
1582 | for _ = 1, 5 do | |
1583 | swait() | |
1584 | hmes.Scale = hmes.Scale:lerp(Vector3.new(8, 36, 8), 0.7) | |
1585 | p1m.Scale = p1m.Scale:lerp(Vector3.new(10, 10, 10), 0.7) | |
1586 | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 4, 0), 0.7) | |
1587 | p2m.Scale = p2m.Scale:lerp(Vector3.new(1.5, 1.5, 1.5), 0.7) | |
1588 | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 4.9, 0.3), 0.7) | |
1589 | p3m.Scale = p3m.Scale:lerp(Vector3.new(10, 10, 10), 0.7) | |
1590 | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -4, 0), 0.7) | |
1591 | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.1, 0.1, 0.1), 0.7) | |
1592 | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -5, 0), 0.7) | |
1593 | p5m.Scale = p5m.Scale:lerp(Vector3.new(86, 25, 25), 0.7) | |
1594 | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -16.1, 0), 0.7) | |
1595 | p6m.Scale = p6m.Scale:lerp(Vector3.new(26, 26, 26), 0.7) | |
1596 | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -24.2, 0), 0.7) | |
1597 | p7m.Scale = p7m.Scale:lerp(Vector3.new(3.8, 3.8, 3.8), 0.7) | |
1598 | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -24.8, 0), 0.7) | |
1599 | end | |
1600 | for _ = 1, 3 do | |
1601 | swait() | |
1602 | hmes.Scale = hmes.Scale:lerp(Vector3.new(18, 81, 18), 0.7) | |
1603 | p1m.Scale = p1m.Scale:lerp(Vector3.new(22.5, 22.5, 22.5), 0.7) | |
1604 | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 9, 0), 0.7) | |
1605 | p2m.Scale = p2m.Scale:lerp(Vector3.new(3.375, 3.375, 3.375), 0.7) | |
1606 | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 11.025, 0.6749999999999999), 0.7) | |
1607 | p3m.Scale = p3m.Scale:lerp(Vector3.new(22.5, 22.5, 22.5), 0.7) | |
1608 | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -9, 0), 0.7) | |
1609 | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.225, 0.225, 0.225), 0.7) | |
1610 | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -11.25, 0), 0.7) | |
1611 | p5m.Scale = p5m.Scale:lerp(Vector3.new(193.5, 56.25, 56.25), 0.7) | |
1612 | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -36.225, 0), 0.7) | |
1613 | p6m.Scale = p6m.Scale:lerp(Vector3.new(58.5, 58.5, 58.5), 0.7) | |
1614 | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -54.449999999999996, 0), 0.7) | |
1615 | p7m.Scale = p7m.Scale:lerp(Vector3.new(5.699999999999999, 8.549999999999999, 8.549999999999999), 0.7) | |
1616 | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -55.800000000000004, 0), 0.7) | |
1617 | end | |
1618 | for _ = 1, 5 do | |
1619 | swait() | |
1620 | hmes.Scale = hmes.Scale:lerp(Vector3.new(14*2.5, 63*2.5, 14*2.5), 0.7) | |
1621 | p1m.Scale = p1m.Scale:lerp(Vector3.new(17.5*2.5, 17.5*2.5, 17.5*2.5), 0.7) | |
1622 | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 7*2.5, 0), 0.7) | |
1623 | p2m.Scale = p2m.Scale:lerp(Vector3.new(2.625*2.5, 2.625*2.5, 2.625*2.5), 0.7) | |
1624 | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 8.575000000000001*2.5, 0.525*2.5), 0.7) | |
1625 | p3m.Scale = p3m.Scale:lerp(Vector3.new(17.5*2.5, 17.5*2.5, 17.5*2.5), 0.7) | |
1626 | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -7*2.5, 0), 0.7) | |
1627 | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.17500000000000002*2.5, 0.17500000000000002*2.5, 0.17500000000000002*2.5), 0.7) | |
1628 | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -8.75*2.5, 0), 0.7) | |
1629 | p5m.Scale = p5m.Scale:lerp(Vector3.new(150.5*2.5, 43.75*2.5, 43.75*2.5), 0.7) | |
1630 | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -28.175000000000004*2.5, 0), 0.7) | |
1631 | p6m.Scale = p6m.Scale:lerp(Vector3.new(45.5*2.5, 45.5*2.5, 45.5*2.5), 0.7) | |
1632 | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -42.35*2.5, 0), 0.7) | |
1633 | p7m.Scale = p7m.Scale:lerp(Vector3.new(6.6499999999999995*2.5, 6.6499999999999995*2.5, 6.6499999999999995*2.5), 0.7) | |
1634 | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -43.4*2.5, 0), 0.7) | |
1635 | end | |
1636 | end | |
1637 | end | |
1638 | for _ = 1, 9 do | |
1639 | swait() | |
1640 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.5) | |
1641 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.5) | |
1642 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(-10)), 0.5) | |
1643 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1644 | lerpz(LS, "C0", LSC0 * cf(0, 0.2, -0.2) * ang(rd(70), rd(-60), rd(-100)), 0.5) | |
1645 | if dipperhat then | |
1646 | dipperhat.Handle.HatAttachment.Rotation = dipperhat.Handle.HatAttachment.Rotation:lerp(dipperrot + Vector3.new(0, 0, 0), 0.3) | |
1647 | end | |
1648 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1649 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-10)), 0.5) | |
1650 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1651 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-10), rd(-10)), 0.5) | |
1652 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1653 | end | |
1654 | for _ = 1, 9 do | |
1655 | swait() | |
1656 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.5) | |
1657 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.5) | |
1658 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(-10)), 0.5) | |
1659 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1660 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(35), rd(-50), rd(-100)), 0.3) | |
1661 | if dipperhat then | |
1662 | dipperhat.Handle.HatAttachment.Rotation = dipperhat.Handle.HatAttachment.Rotation:lerp(dipperrot + Vector3.new(15, 0, 0), 0.3) | |
1663 | end | |
1664 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1665 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-10)), 0.5) | |
1666 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1667 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-10), rd(-10)), 0.5) | |
1668 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1669 | end | |
1670 | for _ = 1, 30 do | |
1671 | swait() | |
1672 | lerpz(RJ, "C0", RJC0 * cf(1.1, 0.6, 0) * ang(rd(0), rd(0), rd(-120)), 0.2) | |
1673 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.2) | |
1674 | lerpz(RS, "C0", RSC0 * cf(0, -0.4, 0.2) * ang(rd(85), rd(0), rd(85)), 0.2) | |
1675 | lerpz(RS, "C1", RSC1 * cf(0, -0.4, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
1676 | lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.2) | |
1677 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
1678 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.2) | |
1679 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
1680 | lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.2) | |
1681 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
1682 | end | |
1683 | expa() | |
1684 | for O = 1, 10 do | |
1685 | swait() | |
1686 | lerpz(RJ, "C0", RJC0 * cf(0, 0.3, 0) * ang(rd(0), rd(0), rd(60)), 0.001 + O * 0.01) | |
1687 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.001 + O * 0.01) | |
1688 | lerpz(RS, "C0", RSC0 * cf(0, -0.4, 0.2) * ang(rd(85), rd(0), rd(85)), 0.001 + O * 0.01) | |
1689 | lerpz(RS, "C1", RSC1 * cf(0, -0.4, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01) | |
1690 | lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.001 + O * 0.01) | |
1691 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01) | |
1692 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.001 + O * 0.01) | |
1693 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01) | |
1694 | lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.001 + O * 0.01) | |
1695 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01) | |
1696 | end | |
1697 | local whoooo = Instance.new("Sound") | |
1698 | whoooo.Volume = 10 | |
1699 | whoooo.TimePosition = 0.15 | |
1700 | whoooo.Pitch = 0.5 | |
1701 | whoooo.SoundId = "rbxassetid://320557353" | |
1702 | whoooo.Parent = pt5 | |
1703 | whoooo:Play() | |
1704 | game.Debris:AddItem(whoooo, 2) | |
1705 | if Berserk == true then | |
1706 | for O = 1, 75 do | |
1707 | swait() | |
1708 | local O2 = O*0.015 | |
1709 | hito3(pt5, 25, 40, 0.75, hrp.CFrame.rightVector * -450 + Vector3.new(0, 200, 0), Vector3.new(0, rd2(-25, 25), rd2(-160, 160)), 25) | |
1710 | lerpz(RJ, "C0", RJC0 * cf(0.9, -0.7, 0) * ang(rd(0), rd(0), rd(60*O*(O2/2))), 0.1 + O * 0.02) | |
1711 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.1 + O * 0.02) | |
1712 | lerpz(RS, "C0", RSC0 * cf(0, -0.4, 0.2) * ang(rd(85), rd(0), rd(35)), 0.1 + O * 0.02) | |
1713 | lerpz(RS, "C1", RSC1 * cf(0, -0.4, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.02) | |
1714 | lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.1 + O * 0.02) | |
1715 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.02) | |
1716 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.1 + O * 0.02) | |
1717 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.02) | |
1718 | lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.1 + O * 0.02) | |
1719 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.02) | |
1720 | hmes.Scale = hmes.Scale:lerp(Vector3.new(14*O2, 63*O2, 14*O2), 0.7) | |
1721 | p1m.Scale = p1m.Scale:lerp(Vector3.new(17.5*O2, 17.5*O2, 17.5*O2), 0.7) | |
1722 | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 7*O2, 0), 0.7) | |
1723 | p2m.Scale = p2m.Scale:lerp(Vector3.new(2.625*O2, 2.625*O2, 2.625*O2), 0.7) | |
1724 | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 8.575000000000001*O2, 0.525*O2), 0.7) | |
1725 | p3m.Scale = p3m.Scale:lerp(Vector3.new(17.5*O2, 17.5*O2, 17.5*O2), 0.7) | |
1726 | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -7*O2, 0), 0.7) | |
1727 | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.17500000000000002*O2, 0.17500000000000002*O2, 0.17500000000000002*O2), 0.7) | |
1728 | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -8.75*O2, 0), 0.7) | |
1729 | p5m.Scale = p5m.Scale:lerp(Vector3.new(150.5*O2, 43.75*O2, 43.75*O2), 0.7) | |
1730 | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -28.175000000000004*O2, 0), 0.7) | |
1731 | p6m.Scale = p6m.Scale:lerp(Vector3.new(45.5*O2, 45.5*O2, 45.5*O2), 0.7) | |
1732 | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -42.35*O2, 0), 0.7) | |
1733 | p7m.Scale = p7m.Scale:lerp(Vector3.new(6.6499999999999995*O2, 6.6499999999999995*O2, 6.6499999999999995*O2), 0.7) | |
1734 | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -43.4*O2, 0), 0.7) | |
1735 | wait() | |
1736 | end | |
1737 | else | |
1738 | for O = 1, 6 do | |
1739 | swait() | |
1740 | hito(pt5, 25, 40, 0.75, hrp.CFrame.rightVector * -450 + Vector3.new(0, 200, 0), Vector3.new(0, rd2(-25, 25), rd2(-160, 160)), 25) | |
1741 | lerpz(RJ, "C0", RJC0 * cf(0.9, -0.7, 0) * ang(rd(0), rd(0), rd(120)), 0.1 + O * 0.05) | |
1742 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.1 + O * 0.05) | |
1743 | lerpz(RS, "C0", RSC0 * cf(0, -0.4, 0.2) * ang(rd(85), rd(0), rd(35)), 0.1 + O * 0.05) | |
1744 | lerpz(RS, "C1", RSC1 * cf(0, -0.4, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05) | |
1745 | lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.1 + O * 0.05) | |
1746 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05) | |
1747 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.1 + O * 0.05) | |
1748 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05) | |
1749 | lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.1 + O * 0.05) | |
1750 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05) | |
1751 | end | |
1752 | end | |
1753 | for O = 1, 13 do | |
1754 | swait() | |
1755 | hmes.Scale = hmes.Scale:lerp(Vector3.new(2, 9, 2), 0.05 + O * 0.075) | |
1756 | p1m.Scale = p1m.Scale:lerp(Vector3.new(2.5, 2.5, 2.5), 0.05 + O * 0.075) | |
1757 | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 1, 0), 0.05 + O * 0.075) | |
1758 | p2m.Scale = p2m.Scale:lerp(Vector3.new(0.375, 0.375, 0.375), 0.05 + O * 0.075) | |
1759 | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 1.225, 0.075), 0.05 + O * 0.075) | |
1760 | p3m.Scale = p3m.Scale:lerp(Vector3.new(2.5, 2.5, 2.5), 0.05 + O * 0.075) | |
1761 | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -1, 0), 0.05 + O * 0.075) | |
1762 | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.025, 0.025, 0.025), 0.05 + O * 0.075) | |
1763 | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -1.25, 0), 0.05 + O * 0.075) | |
1764 | p5m.Scale = p5m.Scale:lerp(Vector3.new(21.5, 6.25, 6.25), 0.05 + O * 0.075) | |
1765 | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -4.025, 0), 0.05 + O * 0.075) | |
1766 | p6m.Scale = p6m.Scale:lerp(Vector3.new(6.5, 6.5, 6.5), 0.05 + O * 0.075) | |
1767 | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -6.05, 0), 0.05 + O * 0.075) | |
1768 | p7m.Scale = p7m.Scale:lerp(Vector3.new(0.95, 0.95, 0.95), 0.05 + O * 0.075) | |
1769 | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -6.2, 0), 0.05 + O * 0.075) | |
1770 | lerpz(RJ, "C0", RJC0 * cf(1.1, -0.8, 0) * ang(rd(0), rd(0), rd(150)), 0.05 + O * 0.075) | |
1771 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.05 + O * 0.075) | |
1772 | lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(30), rd(10)), 0.05 + O * 0.075) | |
1773 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075) | |
1774 | lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(20), rd(20), rd(-20)), 0.05 + O * 0.075) | |
1775 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075) | |
1776 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.05 + O * 0.075) | |
1777 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075) | |
1778 | lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.05 + O * 0.075) | |
1779 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075) | |
1780 | end | |
1781 | if dipperhat then | |
1782 | dipperhat.Handle.HatAttachment.Rotation = dipperrot | |
1783 | end | |
1784 | human.WalkSpeed = speed | |
1785 | human:SetStateEnabled(3, true) | |
1786 | activu = false | |
1787 | end | |
1788 | if keya == "q" then | |
1789 | activu = true | |
1790 | do | |
1791 | local checkkey = true | |
1792 | local keyingup = mouse.KeyUp:connect(function(xzx) | |
1793 | if xzx == "q" then | |
1794 | checkkey = false | |
1795 | end | |
1796 | end) | |
1797 | repeat | |
1798 | if Berserk == true then | |
1799 | for _ = 1, 5 do | |
1800 | swait() | |
1801 | hmes.Scale = hmes.Scale:lerp(Vector3.new(8, 36, 8), 0.7) | |
1802 | p1m.Scale = p1m.Scale:lerp(Vector3.new(10, 10, 10), 0.7) | |
1803 | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 4, 0), 0.7) | |
1804 | p2m.Scale = p2m.Scale:lerp(Vector3.new(1.5, 1.5, 1.5), 0.7) | |
1805 | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 4.9, 0.3), 0.7) | |
1806 | p3m.Scale = p3m.Scale:lerp(Vector3.new(10, 10, 10), 0.7) | |
1807 | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -4, 0), 0.7) | |
1808 | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.1, 0.1, 0.1), 0.7) | |
1809 | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -5, 0), 0.7) | |
1810 | p5m.Scale = p5m.Scale:lerp(Vector3.new(86, 25, 25), 0.7) | |
1811 | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -16.1, 0), 0.7) | |
1812 | p6m.Scale = p6m.Scale:lerp(Vector3.new(26, 26, 26), 0.7) | |
1813 | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -24.2, 0), 0.7) | |
1814 | p7m.Scale = p7m.Scale:lerp(Vector3.new(3.8, 3.8, 3.8), 0.7) | |
1815 | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -24.8, 0), 0.7) | |
1816 | end | |
1817 | for _ = 1, 6 do | |
1818 | swait() | |
1819 | lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-20), rd(10), rd(-40)), 0.7) | |
1820 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1821 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(-20), rd(179)), 0.7) | |
1822 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1823 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(30)), 0.7) | |
1824 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1825 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) | |
1826 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1827 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-110)), 0.7) | |
1828 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1829 | end | |
1830 | swingwoo:Play() | |
1831 | for X = 1, 6 do | |
1832 | swait() | |
1833 | hito3(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * 25, Vector3.new(0, rd2(-5, 5), rd2(-40, 40))) | |
1834 | lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(60), rd(0), rd(10)), 0.7) | |
1835 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1836 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(20), rd(40)), 0.7) | |
1837 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1838 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7) | |
1839 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1840 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-40), rd(80)), 0.7) | |
1841 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1842 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7) | |
1843 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1844 | wait() | |
1845 | end | |
1846 | for O = 1, 13 do | |
1847 | swait() | |
1848 | hmes.Scale = hmes.Scale:lerp(Vector3.new(2, 9, 2), 0.05 + O * 0.075) | |
1849 | p1m.Scale = p1m.Scale:lerp(Vector3.new(2.5, 2.5, 2.5), 0.05 + O * 0.075) | |
1850 | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 1, 0), 0.05 + O * 0.075) | |
1851 | p2m.Scale = p2m.Scale:lerp(Vector3.new(0.375, 0.375, 0.375), 0.05 + O * 0.075) | |
1852 | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 1.225, 0.075), 0.05 + O * 0.075) | |
1853 | p3m.Scale = p3m.Scale:lerp(Vector3.new(2.5, 2.5, 2.5), 0.05 + O * 0.075) | |
1854 | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -1, 0), 0.05 + O * 0.075) | |
1855 | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.025, 0.025, 0.025), 0.05 + O * 0.075) | |
1856 | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -1.25, 0), 0.05 + O * 0.075) | |
1857 | p5m.Scale = p5m.Scale:lerp(Vector3.new(21.5, 6.25, 6.25), 0.05 + O * 0.075) | |
1858 | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -4.025, 0), 0.05 + O * 0.075) | |
1859 | p6m.Scale = p6m.Scale:lerp(Vector3.new(6.5, 6.5, 6.5), 0.05 + O * 0.075) | |
1860 | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -6.05, 0), 0.05 + O * 0.075) | |
1861 | p7m.Scale = p7m.Scale:lerp(Vector3.new(0.95, 0.95, 0.95), 0.05 + O * 0.075) | |
1862 | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -6.2, 0), 0.05 + O * 0.075) | |
1863 | end | |
1864 | else | |
1865 | for _ = 1, 2 do | |
1866 | swait() | |
1867 | lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-20), rd(10), rd(-40)), 0.7) | |
1868 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7) | |
1869 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(-20), rd(179)), 0.7) | |
1870 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1871 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(30)), 0.7) | |
1872 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1873 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) | |
1874 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1875 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-110)), 0.7) | |
1876 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1877 | end | |
1878 | swingwoo:Play() | |
1879 | for T = 1, 2 do | |
1880 | swait() | |
1881 | hito(pt5, 5, 4, 0.03, hrp.CFrame.lookVector * 10, Vector3.new(0, rd2(-2, 2), rd2(-10, 10)), 25) | |
1882 | lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(60), rd(-10), rd(30)), 0.7) | |
1883 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1884 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(20), rd(40)), 0.7) | |
1885 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1886 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7) | |
1887 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1888 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-40), rd(80)), 0.7) | |
1889 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1890 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7) | |
1891 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1892 | end | |
1893 | for _ = 1, 2 do | |
1894 | swait() | |
1895 | lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-30), rd(20), rd(0)), 0.7) | |
1896 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7) | |
1897 | lerpz(RS, "C0", RSC0 * cf(0, 0.5, 0) * ang(rd(60), rd(20), rd(179)), 0.7) | |
1898 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1899 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-40), rd(20), rd(30)), 0.7) | |
1900 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1901 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) | |
1902 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1903 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-30), rd(20), rd(35)), 0.7) | |
1904 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1905 | end | |
1906 | swingwoo:Play() | |
1907 | for T = 1, 2 do | |
1908 | swait() | |
1909 | if T == 2 then | |
1910 | hito(pt5, 5, 4, 0.03, hrp.CFrame.lookVector * 10, Vector3.new(0, rd2(-2, 2), rd2(-10, 10)),25) | |
1911 | end | |
1912 | lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(40), rd(40), rd(0)), 0.7) | |
1913 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7) | |
1914 | lerpz(RS, "C0", RSC0 * cf(0, 0.5, 0) * ang(rd(60), rd(20), rd(30)), 0.7) | |
1915 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1916 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7) | |
1917 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1918 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) | |
1919 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1920 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-30), rd(20), rd(-65)), 0.7) | |
1921 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1922 | end | |
1923 | end | |
1924 | until not checkkey | |
1925 | keyingup:Disconnect() | |
1926 | activu = false | |
1927 | end | |
1928 | end | |
1929 | if keya == "f" then | |
1930 | activu = true | |
1931 | do | |
1932 | local speed = human.WalkSpeed | |
1933 | human.WalkSpeed = 10 | |
1934 | human:SetStateEnabled(3, false) | |
1935 | local checkkey = true | |
1936 | local chargecounter = 0 | |
1937 | local keyingup = mouse.KeyUp:connect(function(xzx) | |
1938 | if xzx == "f" then | |
1939 | checkkey = false | |
1940 | end | |
1941 | end) | |
1942 | local firederp | |
1943 | for _ = 1, 8 do | |
1944 | swait() | |
1945 | hwel.C0 = hwel.C0:lerp(ang(rd(65), rd(0), rd(0)) * cf(0, 1, 0), 0.6) | |
1946 | lerpz(RJ, "C0", RJC0 * cf(0.5, 0.5, 0) * ang(rd(0), rd(0), rd(-70)), 0.5) | |
1947 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(60)), 0.5) | |
1948 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(70), rd(-10), rd(80)), 0.5) | |
1949 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1950 | lerpz(LS, "C0", LSC0 * cf(-0.3, -0.1, -1) * ang(rd(-10), rd(-70), rd(-75)), 0.5) | |
1951 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.5) | |
1952 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.5) | |
1953 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1954 | lerpz(LH, "C0", LHC0 * cf(0.5, 0, -0.4) * ang(rd(0), rd(80), rd(-5)), 0.5) | |
1955 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.5) | |
1956 | end | |
1957 | repeat | |
1958 | swait() | |
1959 | if Berserk == true then | |
1960 | chargecounter = chargecounter + 15 | |
1961 | else | |
1962 | chargecounter = chargecounter + 1 | |
1963 | end | |
1964 | lerpz(RS, "C0", RSC0 * cf(rd2(-5, 5) / 100, rd2(-5, 5) / 100, rd2(-5, 5) / 100) * ang(rd(rd2(65, 75)), rd(rd2(-15, 5)), rd(rd2(75, 85))), 0.05 + chargecounter * 0.002) | |
1965 | lerpz(LS, "C0", LSC0 * cf(-0.3, -0.1, -1) * ang(rd(rd2(-15, -5)), rd(rd2(-75, -65)), rd(rd2(-80, -70))), 0.05 + chargecounter * 0.002) | |
1966 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(rd2(-25, -15)), rd(0)), 0.05 + chargecounter * 0.002) | |
1967 | if chargecounter > 100 and firederp == nil then | |
1968 | P = fire:clone()P.Parent = pt8 P.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 0)}) | |
1969 | P.Speed = NumberRange.new(5,10)P.Enabled = true P.Lifetime = NumberRange.new(0.8)P.ZOffset = 2 | |
1970 | firederp = true | |
1971 | end | |
1972 | until not checkkey or chargecounter > 450 | |
1973 | swingwoo:Play() | |
1974 | for U = 1, 10 do | |
1975 | swait() | |
1976 | hito(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * (80 + chargecounter * 1) + Vector3.new(0, 6 + 6 * (chargecounter / 5), 0), Vector3.new(0, rd2(-25, 25) * (chargecounter / 25), rd2(-80, 80) * (chargecounter / 40)),chargecounter) | |
1977 | if chargecounter > 300 then | |
1978 | tagexplode(pt5, 25, 5) | |
1979 | elseif chargecounter > 200 then | |
1980 | tagexplode(pt5, 20, 4) | |
1981 | elseif chargecounter > 100 then | |
1982 | tagexplode(pt5, 10, 2) | |
1983 | elseif chargecounter > 50 then | |
1984 | tagexplode(pt5, 5, 1) | |
1985 | end | |
1986 | if firederp == true then | |
1987 | pt8:findFirstChild("Fire"):remove() | |
1988 | firederp = nil | |
1989 | end | |
1990 | hwel.C0 = hwel.C0:lerp(ang(rd(135), rd(0), rd(0)) * cf(0, 1, 0), 0.6) | |
1991 | lerpz(RJ, "C0", RJC0 * cf(0.5, -0.5, 0) * ang(rd(0), rd(0), rd(50)), 0.6) | |
1992 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(-30)), 0.6) | |
1993 | lerpz(RS, "C0", RSC0 * cf(0.75, 0.5, -0.5) * ang(rd(0), rd(60), rd(120)), 0.4) | |
1994 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(100), rd(0)), 0.4) | |
1995 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(20), rd(-125)), 0.4) | |
1996 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.4) | |
1997 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.6) | |
1998 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
1999 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(-10), rd(-6)), 0.6) | |
2000 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.6) | |
2001 | end | |
2002 | swait(10) | |
2003 | hwel.C0 = ang(rd(90), rd(0), rd(0)) * cf(0, 1, 0) | |
2004 | keyingup:Disconnect() | |
2005 | human.WalkSpeed = speed | |
2006 | human:SetStateEnabled(3, true) | |
2007 | activu = false | |
2008 | end | |
2009 | end | |
2010 | if keya == "h" then | |
2011 | activu = true | |
2012 | do | |
2013 | local speed = human.WalkSpeed | |
2014 | human.WalkSpeed = 10 | |
2015 | human:SetStateEnabled(3, false) | |
2016 | local checkkey = true | |
2017 | local chargecounter = 0 | |
2018 | local keyingup = mouse.KeyUp:connect(function(xzx) | |
2019 | if xzx == "h" then | |
2020 | checkkey = false | |
2021 | end | |
2022 | end) | |
2023 | local firederp | |
2024 | for _ = 1, 8 do | |
2025 | swait() | |
2026 | hwel.C0 = hwel.C0:lerp(ang(rd(65), rd(0), rd(0)) * cf(0, 1, 0), 0.6) | |
2027 | lerpz(RJ, "C0", RJC0 * cf(0.5, 0.5, 0) * ang(rd(0), rd(0), rd(-70)), 0.5) | |
2028 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(60)), 0.5) | |
2029 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(70), rd(-10), rd(80)), 0.5) | |
2030 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
2031 | lerpz(LS, "C0", LSC0 * cf(-0.3, -0.1, -1) * ang(rd(-10), rd(-70), rd(-75)), 0.5) | |
2032 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.5) | |
2033 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.5) | |
2034 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
2035 | lerpz(LH, "C0", LHC0 * cf(0.5, 0, -0.4) * ang(rd(0), rd(80), rd(-5)), 0.5) | |
2036 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.5) | |
2037 | end | |
2038 | repeat | |
2039 | swait() | |
2040 | if Berserk == true then | |
2041 | chargecounter = chargecounter + 10 | |
2042 | else | |
2043 | chargecounter = chargecounter + 1 | |
2044 | end | |
2045 | Lightningz(pt8.Position+Vector3.new(math.random(-chargecounter/100,chargecounter/100),math.random(-chargecounter/100,chargecounter/100),math.random((-chargecounter*6)/100,(chargecounter*6)/100)), pt8.Position+Vector3.new(math.random(-chargecounter/100,chargecounter/100),math.random(-chargecounter/100,chargecounter/100),math.random((-chargecounter*6)/100,(chargecounter*6)/100)), 0.05, 8, game.Workspace) | |
2046 | lerpz(RS, "C0", RSC0 * cf(rd2(-5, 5) / 100, rd2(-5, 5) / 100, rd2(-5, 5) / 100) * ang(rd(rd2(65, 75)), rd(rd2(-15, 5)), rd(rd2(75, 85))), 0.05 + chargecounter * 0.002) | |
2047 | lerpz(LS, "C0", LSC0 * cf(-0.3, -0.1, -1) * ang(rd(rd2(-15, -5)), rd(rd2(-75, -65)), rd(rd2(-80, -70))), 0.05 + chargecounter * 0.002) | |
2048 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(rd2(-25, -15)), rd(0)), 0.05 + chargecounter * 0.002) | |
2049 | until not checkkey or chargecounter > 450 | |
2050 | swingwoo:Play() | |
2051 | for U = 1, 10 do | |
2052 | swait() | |
2053 | hito4(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * (80 + chargecounter * 1) + Vector3.new(0, 6 + 6 * (chargecounter / 5), 0), Vector3.new(0, rd2(-25, 25) * (chargecounter / 25), rd2(-80, 80) * (chargecounter / 40)),chargecounter) | |
2054 | if chargecounter > 300 then | |
2055 | tagexplode(pt5, 25, 5) | |
2056 | elseif chargecounter > 200 then | |
2057 | tagexplode(pt5, 20, 4) | |
2058 | elseif chargecounter > 100 then | |
2059 | tagexplode(pt5, 10, 2) | |
2060 | elseif chargecounter > 50 then | |
2061 | tagexplode(pt5, 5, 1) | |
2062 | end | |
2063 | if firederp == true then | |
2064 | pt8:findFirstChild("Fire"):remove() | |
2065 | firederp = nil | |
2066 | end | |
2067 | hwel.C0 = hwel.C0:lerp(ang(rd(135), rd(0), rd(0)) * cf(0, 1, 0), 0.6) | |
2068 | lerpz(RJ, "C0", RJC0 * cf(0.5, -0.5, 0) * ang(rd(0), rd(0), rd(50)), 0.6) | |
2069 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(-30)), 0.6) | |
2070 | lerpz(RS, "C0", RSC0 * cf(0.75, 0.5, -0.5) * ang(rd(0), rd(60), rd(120)), 0.4) | |
2071 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(100), rd(0)), 0.4) | |
2072 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(20), rd(-125)), 0.4) | |
2073 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.4) | |
2074 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.6) | |
2075 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
2076 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(-10), rd(-6)), 0.6) | |
2077 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.6) | |
2078 | end | |
2079 | swait(10) | |
2080 | hwel.C0 = ang(rd(90), rd(0), rd(0)) * cf(0, 1, 0) | |
2081 | keyingup:Disconnect() | |
2082 | human.WalkSpeed = speed | |
2083 | human:SetStateEnabled(3, true) | |
2084 | activu = false | |
2085 | end | |
2086 | end | |
2087 | if keya == "t" then | |
2088 | activu = true | |
2089 | do | |
2090 | local speed = human.WalkSpeed | |
2091 | human.WalkSpeed = 10 | |
2092 | human:SetStateEnabled(3, false) | |
2093 | local checkkey = true | |
2094 | local chargecounter = 0 | |
2095 | local keyingup = mouse.KeyUp:connect(function(xzx) | |
2096 | if xzx == "t" then | |
2097 | checkkey = false | |
2098 | end | |
2099 | end) | |
2100 | local firederp | |
2101 | for _ = 1, 8 do | |
2102 | swait() | |
2103 | hwel.C0 = hwel.C0:lerp(ang(rd(65), rd(0), rd(0)) * cf(0, 1, 0), 0.6) | |
2104 | lerpz(RJ, "C0", RJC0 * cf(0.5, 0.5, 0) * ang(rd(0), rd(0), rd(-70)), 0.5) | |
2105 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(60)), 0.5) | |
2106 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(70), rd(-10), rd(80)), 0.5) | |
2107 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
2108 | lerpz(LS, "C0", LSC0 * cf(-0.3, -0.1, -1) * ang(rd(-10), rd(-70), rd(-75)), 0.5) | |
2109 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.5) | |
2110 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.5) | |
2111 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
2112 | lerpz(LH, "C0", LHC0 * cf(0.5, 0, -0.4) * ang(rd(0), rd(80), rd(-5)), 0.5) | |
2113 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.5) | |
2114 | end | |
2115 | repeat | |
2116 | swait() | |
2117 | if Berserk == true then | |
2118 | chargecounter = chargecounter + 15 | |
2119 | else | |
2120 | chargecounter = chargecounter + 1 | |
2121 | end | |
2122 | lerpz(RS, "C0", RSC0 * cf(rd2(-5, 5) / 100, rd2(-5, 5) / 100, rd2(-5, 5) / 100) * ang(rd(rd2(65, 75)), rd(rd2(-15, 5)), rd(rd2(75, 85))), 0.05 + chargecounter * 0.002) | |
2123 | lerpz(LS, "C0", LSC0 * cf(-0.3, -0.1, -1) * ang(rd(rd2(-15, -5)), rd(rd2(-75, -65)), rd(rd2(-80, -70))), 0.05 + chargecounter * 0.002) | |
2124 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(rd2(-25, -15)), rd(0)), 0.05 + chargecounter * 0.002) | |
2125 | if chargecounter > 100 and firederp == nil then | |
2126 | P = fire:clone()P.Parent = pt8 P.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 0)}) | |
2127 | P.Speed = NumberRange.new(5,10)P.Enabled = true P.Lifetime = NumberRange.new(0.8)P.ZOffset = 2 | |
2128 | firederp = true | |
2129 | end | |
2130 | until not checkkey or chargecounter > 450 | |
2131 | swingwoo:Play() | |
2132 | for U = 1, 10 do | |
2133 | swait() | |
2134 | hito2(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * (80 + chargecounter * 1) + Vector3.new(0, 6 + 6 * (chargecounter / 5), 0), Vector3.new(0, rd2(-25, 25) * (chargecounter / 25), rd2(-80, 80) * (chargecounter / 40)), 1) | |
2135 | if chargecounter > 300 then | |
2136 | tagexplode(pt5, 25, 5) | |
2137 | elseif chargecounter > 200 then | |
2138 | tagexplode(pt5, 20, 4) | |
2139 | elseif chargecounter > 100 then | |
2140 | tagexplode(pt5, 10, 2) | |
2141 | elseif chargecounter > 50 then | |
2142 | tagexplode(pt5, 5, 1) | |
2143 | end | |
2144 | if firederp == true then | |
2145 | pt8:findFirstChild("Fire"):remove() | |
2146 | firederp = nil | |
2147 | end | |
2148 | hwel.C0 = hwel.C0:lerp(ang(rd(135), rd(0), rd(0)) * cf(0, 1, 0), 0.6) | |
2149 | lerpz(RJ, "C0", RJC0 * cf(0.5, -0.5, 0) * ang(rd(0), rd(0), rd(50)), 0.6) | |
2150 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(-30)), 0.6) | |
2151 | lerpz(RS, "C0", RSC0 * cf(0.75, 0.5, -0.5) * ang(rd(0), rd(60), rd(120)), 0.4) | |
2152 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(100), rd(0)), 0.4) | |
2153 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(20), rd(-125)), 0.4) | |
2154 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.4) | |
2155 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.6) | |
2156 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
2157 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(-10), rd(-6)), 0.6) | |
2158 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.6) | |
2159 | end | |
2160 | batting = false | |
2161 | clibat:Disconnect() | |
2162 | spec:Disconnect() | |
2163 | hrp.sweae:Destroy() | |
2164 | local batmod = chr:FindFirstChild("bmodel") | |
2165 | batmod.hnd.Weld:Destroy() | |
2166 | batmod.PrimaryPart = batmod.hnd | |
2167 | batmod:SetPrimaryPartCFrame(rarm.CFrame * ang(rd(-90), rd(0), rd(0)) * cf(0, 0, -1)) | |
2168 | for _, A in pairs(batmod:GetChildren()) do | |
2169 | if A.ClassName == "Part" then | |
2170 | A.CanCollide = true | |
2171 | A.Anchored = false | |
2172 | end | |
2173 | end | |
2174 | batmod.Parent = workspace | |
2175 | game.Debris:AddItem(batmod, 8) | |
2176 | hwel.C0 = ang(rd(90), rd(0), rd(0)) * cf(0, 1, 0) | |
2177 | keyingup:Disconnect() | |
2178 | human.WalkSpeed = speed | |
2179 | human:SetStateEnabled(3, true) | |
2180 | activu = false | |
2181 | end | |
2182 | end | |
2183 | end) | |
2184 | end | |
2185 | elseif batting == true then | |
2186 | batting = false | |
2187 | clibat:Disconnect() | |
2188 | spec:Disconnect() | |
2189 | hrp.sweae:Destroy() | |
2190 | local batmod = chr:FindFirstChild("bmodel") | |
2191 | batmod.hnd.Weld:Destroy() | |
2192 | batmod.PrimaryPart = batmod.hnd | |
2193 | batmod:SetPrimaryPartCFrame(rarm.CFrame * ang(rd(-90), rd(0), rd(0)) * cf(0, 0, -1)) | |
2194 | for _, A in pairs(batmod:GetChildren()) do | |
2195 | if A.ClassName == "Part" then | |
2196 | A.CanCollide = true | |
2197 | A.Anchored = false | |
2198 | end | |
2199 | end | |
2200 | batmod.Parent = workspace | |
2201 | game.Debris:AddItem(batmod, 8) | |
2202 | end | |
2203 | end | |
2204 | local movin = false | |
2205 | local cliham, hamspec | |
2206 | function ham() | |
2207 | if batting == false then | |
2208 | batting = true | |
2209 | do | |
2210 | local bmod = Instance.new("Model") | |
2211 | bmod.Name = "bmodel" | |
2212 | bmod.Parent = chr | |
2213 | local makemotor = function(parent, p0, p1, c0, c1) | |
2214 | local wel = Instance.new("Motor6D") | |
2215 | wel.Part0 = p0 | |
2216 | wel.Part1 = p1 | |
2217 | wel.C0 = c0 | |
2218 | if c1 ~= nil then | |
2219 | wel.C1 = c1 | |
2220 | end | |
2221 | wel.Parent = parent | |
2222 | return wel | |
2223 | end | |
2224 | local hnd = makepart("Br. yellowish green", "hnd", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
2225 | hnd.Anchored = true | |
2226 | local hmes = makemesh("Head", Vector3.new(5, 30, 5), nil, hnd) | |
2227 | movin = true | |
2228 | hnd.CFrame = hrp.CFrame | |
2229 | coroutine.resume(coroutine.create(function() | |
2230 | while hnd.Anchored == true do | |
2231 | swait() | |
2232 | if movin then | |
2233 | hnd.CFrame = hnd.CFrame:lerp(hrp.CFrame * ang(rd(40), rd(0), rd(0)) * cf(0, 11, 0), 0.65) | |
2234 | end | |
2235 | end | |
2236 | end)) | |
2237 | local pt1 = makepart("Br. yellowish green", "pt1", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
2238 | local p1m = makemesh("Head", Vector3.new(6, 5.5, 5.5), nil, pt1) | |
2239 | local p1w = makemotor(pt1, pt1, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, 3, 0), nil) | |
2240 | local pt2 = makepart("Br. yellowish green", "pt2", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
2241 | local p2m = makemesh("Head", Vector3.new(6, 5.5, 5.5), nil, pt2) | |
2242 | local p2w = makemotor(pt2, pt2, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -3, 0), nil) | |
2243 | local pt3 = makepart("Bright yellow", "pt3", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
2244 | local p3m = makemesh("Head", Vector3.new(6.5, 6.5, 6.5), nil, pt3) | |
2245 | local p3w = makemotor(pt3, pt3, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, 3.75, 0), nil) | |
2246 | local pt4 = makepart("Br. yellowish green", "pt4", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
2247 | local p4m = makemesh("FileMesh", Vector3.new(1, 1, 1), "rbxassetid://250640098", pt4) | |
2248 | p4m.TextureId = "rbxassetid://250639536" | |
2249 | local p4w = makemotor(pt4, pt4, hnd, ang(rd(180), rd(180), rd(0)) * cf(0, 4.25, 0.25), nil) | |
2250 | local pt5 = makepart("Bright blue", "pt5", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
2251 | local p5m = makemesh("Head", Vector3.new(5, 90, 4), nil, pt5) | |
2252 | local p5w = makemotor(pt5, pt5, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -12, 0), nil) | |
2253 | local pt6 = makepart("Bright blue", "pt6", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
2254 | local p6m = makemesh("FileMesh", Vector3.new(0.16, 0.4, 0.16), "rbxassetid://703458158", pt6) | |
2255 | local p6w = makemotor(pt6, pt6, hnd, ang(rd(180), rd(0), rd(0)) * cf(0, -16, 0), nil) | |
2256 | local pt7 = makepart("Bright yellow", "pt7", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
2257 | local p7m = makemesh("Head", Vector3.new(75, 75, 75), nil, pt7) | |
2258 | local p7w = makemotor(pt7, pt7, hnd, ang(rd(0), rd(90), rd(0)) * cf(0, -27, 0), nil) | |
2259 | local hdec1 = Instance.new("Decal") | |
2260 | hdec1.Texture = "rbxasset://textures/face.png" | |
2261 | hdec1.Face = "Front" | |
2262 | hdec1.Parent = pt7 | |
2263 | local pt8 = makepart("Bright yellow", "pt8", 0, 1, "SmoothPlastic", bmod, hrp.CFrame) | |
2264 | local p8m = makemesh("Head", Vector3.new(75, 75, 75), nil, pt8) | |
2265 | local p8w = makemotor(pt8, pt8, hnd, ang(rd(0), rd(-90), rd(0)) * cf(0, -27, 0), nil) | |
2266 | local hdec2 = Instance.new("Decal") | |
2267 | hdec2.Texture = "rbxasset://textures/face.png" | |
2268 | hdec2.Face = "Front" | |
2269 | hdec2.Parent = pt8 | |
2270 | local pt9 = makepart("Bright yellow", "pt9", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
2271 | local p9m = makemesh("FileMesh", Vector3.new(12, 11, 11), "rbxassetid://272942659", pt9) | |
2272 | local p9w = makemotor(pt9, pt9, hnd, ang(rd(0), rd(90), rd(0)) * cf(0, -30, 0), nil) | |
2273 | p9m.TextureId = "rbxassetid://272942750" | |
2274 | local pt10 = makepart("Bright yellow", "pt10", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
2275 | local p10m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt10) | |
2276 | local p10w = makemotor(pt10, pt10, pt7, ang(rd(0), rd(0), rd(90)) * cf(11, 0, 0), nil) | |
2277 | local hdec3 = Instance.new("Decal") | |
2278 | hdec3.Texture = "rbxasset://textures/face.png" | |
2279 | hdec3.Face = "Front" | |
2280 | hdec3.Parent = pt10 | |
2281 | local pt11 = makepart("Bright yellow", "pt11", 0, 1, "SmoothPlastic", bmod, hrp.CFrame) | |
2282 | local p11m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt11) | |
2283 | local p11w = makemotor(pt11, pt11, pt7, ang(rd(0), rd(180), rd(90)) * cf(11, 0, 0), nil) | |
2284 | local hdec4 = Instance.new("Decal") | |
2285 | hdec4.Texture = "rbxasset://textures/face.png" | |
2286 | hdec4.Face = "Front" | |
2287 | hdec4.Parent = pt11 | |
2288 | local pt12 = makepart("Bright yellow", "pt12", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
2289 | local p12m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt12) | |
2290 | local p12w = makemotor(pt12, pt12, pt7, ang(rd(0), rd(0), rd(-90)) * cf(-11, 0, 0), nil) | |
2291 | local hdec5 = Instance.new("Decal") | |
2292 | hdec5.Texture = "rbxasset://textures/face.png" | |
2293 | hdec5.Face = "Front" | |
2294 | hdec5.Parent = pt12 | |
2295 | local pt13 = makepart("Bright yellow", "pt13", 0, 1, "SmoothPlastic", bmod, hrp.CFrame) | |
2296 | local p13m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt13) | |
2297 | local p13w = makemotor(pt13, pt13, pt7, ang(rd(0), rd(180), rd(-90)) * cf(-11, 0, 0), nil) | |
2298 | local hdec6 = Instance.new("Decal") | |
2299 | hdec6.Texture = "rbxasset://textures/face.png" | |
2300 | hdec6.Face = "Front" | |
2301 | hdec6.Parent = pt13 | |
2302 | cliham = tool.Activated:connect(function() | |
2303 | if selected == false or activu == true or ragged == true then | |
2304 | return | |
2305 | end | |
2306 | activu = true | |
2307 | movin = false | |
2308 | for B = 1, 20 do | |
2309 | swait() | |
2310 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.4) | |
2311 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(8), rd(0), rd(0)), 0.4) | |
2312 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-15), rd(-5), rd(170)), 0.4) | |
2313 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
2314 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-10), rd(10)), 0.4) | |
2315 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
2316 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(-10)), 0.4) | |
2317 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
2318 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-5), rd(10), rd(10)), 0.4) | |
2319 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
2320 | hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 0.1 + B * 0.045) | |
2321 | end | |
2322 | for B = 1, 30 do | |
2323 | swait() | |
2324 | lerpz(RJ, "C0", RJC0 * cf(0, 0.8, 0) * ang(rd(-25), rd(0), rd(-50)), 0.1 + B / 80) | |
2325 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-18), rd(0), rd(40)), 0.1 + B / 80) | |
2326 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-30), rd(-5), rd(160)), 0.1 + B / 80) | |
2327 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80) | |
2328 | lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-20), rd(-150)), 0.1 + B / 80) | |
2329 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80) | |
2330 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(-10)), 0.1 + B / 80) | |
2331 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80) | |
2332 | lerpz(LH, "C0", LHC0 * cf(0.5, 0, -0.4) * ang(rd(-5), rd(60), rd(-110)), 0.1 + B / 80) | |
2333 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80) | |
2334 | hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1) | |
2335 | end | |
2336 | for B = 1, 7 do | |
2337 | swait() | |
2338 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(40)), 0.015 + B / 15) | |
2339 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(9), rd(0), rd(-15)), 0.015 + B / 15) | |
2340 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-50), rd(100)), 0.015 + B / 15) | |
2341 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15) | |
2342 | lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-25), rd(-90)), 0.015 + B / 15) | |
2343 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15) | |
2344 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(10)), 0.015 + B / 15) | |
2345 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15) | |
2346 | lerpz(LH, "C0", LHC0 * cf(0.1, 0, -0.1) * ang(rd(-5), rd(20), rd(-20)), 0.015 + B / 15) | |
2347 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15) | |
2348 | hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1) | |
2349 | end | |
2350 | for B = 1, 4 do | |
2351 | swait() | |
2352 | lerpz(RJ, "C0", RJC0 * cf(0, -0.8, 0) * ang(rd(70), rd(0), rd(40)), 0.38 + B * 0.1) | |
2353 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(9), rd(0), rd(-15)), 0.38 + B * 0.1) | |
2354 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-40), rd(100)), 0.38 + B * 0.1) | |
2355 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1) | |
2356 | lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-25), rd(-90)), 0.38 + B * 0.1) | |
2357 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1) | |
2358 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(60)), 0.38 + B * 0.1) | |
2359 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1) | |
2360 | lerpz(LH, "C0", LHC0 * cf(0.1, 0, -0.1) * ang(rd(-5), rd(20), rd(70)), 0.38 + B * 0.1) | |
2361 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1) | |
2362 | hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1) | |
2363 | end | |
2364 | swait(15) | |
2365 | movin = true | |
2366 | activu = false | |
2367 | end) | |
2368 | end | |
2369 | elseif batting == true then | |
2370 | batting = false | |
2371 | cliham:Disconnect() | |
2372 | local badevz = chr:FindFirstChild("bmodel") | |
2373 | badevz.PrimaryPart = badevz.hnd | |
2374 | for _, A in pairs(badevz:GetChildren()) do | |
2375 | if A.ClassName == "Part" then | |
2376 | A.CanCollide = true | |
2377 | A.Anchored = false | |
2378 | end | |
2379 | end | |
2380 | movin = false | |
2381 | badevz.Parent = workspace | |
2382 | badevz:SetPrimaryPartCFrame(hrp.CFrame * ang(rd(40), rd(0), rd(0)) * cf(0, -11, 0)) | |
2383 | game.Debris:AddItem(badevz, 8) | |
2384 | end | |
2385 | end | |
2386 | game:GetService("ContentProvider"):Preload("rbxassetid://725969678") | |
2387 | function lauf() | |
2388 | if selected == false or activu == true then | |
2389 | return | |
2390 | end | |
2391 | lauf1:Play() | |
2392 | end | |
2393 | noobmodel = Instance.new("Model",chr) | |
2394 | function makenoob(cfrem, scalo, rags) | |
2395 | nscale.Value = scalo | |
2396 | local md = Instance.new("Model") | |
2397 | md.Name = "Noob" | |
2398 | md.Parent = workspace | |
2399 | local hu = Instance.new("Humanoid") | |
2400 | hu.RigType = "R6" | |
2401 | hu.MaxHealth = 100 * scalo | |
2402 | hu.Health = 100 * scalo | |
2403 | hu.Parent = md | |
2404 | local anm = Instance.new("Animator") | |
2405 | anm.Parent = hu | |
2406 | hu.PlatformStand = true | |
2407 | local light = function(part) | |
2408 | part.CustomPhysicalProperties = PhysicalProperties.new(0.35, 0.3, 0.5) | |
2409 | end | |
2410 | local hd = Instance.new("Part") | |
2411 | hd.Name = "Head" | |
2412 | hd.Size = Vector3.new(2 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value) | |
2413 | hd.TopSurface = "Smooth" | |
2414 | hd.BottomSurface = "Inlet" | |
2415 | hd.Locked = true | |
2416 | hd.BrickColor = BrickColor.new("Bright yellow") | |
2417 | hd.CanCollide = true | |
2418 | hd.Anchored = false | |
2419 | light(hd) | |
2420 | hd.Parent = md | |
2421 | local hm = Instance.new("SpecialMesh") | |
2422 | hm.MeshType = "Head" | |
2423 | hm.Scale = Vector3.new(1.25, 1.25, 1.25) | |
2424 | hm.Parent = hd | |
2425 | local hf = Instance.new("Decal") | |
2426 | hf.Texture = "rbxasset://textures/face.png" | |
2427 | local gen = math.random(1, 40) | |
2428 | if gen == 3 then | |
2429 | hf.Texture = "rbxassetid://260884109" | |
2430 | end | |
2431 | if gen == 8 then | |
2432 | hf.Texture = "rbxassetid://260569492" | |
2433 | end | |
2434 | if gen == 12 then | |
2435 | hf.Texture = "rbxassetid://259580505" | |
2436 | end | |
2437 | if gen == 16 then | |
2438 | hf.Texture = "rbxassetid://259579232" | |
2439 | end | |
2440 | if gen == 24 then | |
2441 | hf.Texture = "rbxassetid://259571525" | |
2442 | end | |
2443 | if gen == 28 then | |
2444 | hf.Texture = "rbxassetid://258283210" | |
2445 | end | |
2446 | if gen == 32 then | |
2447 | hf.Texture = "rbxassetid://258940032" | |
2448 | end | |
2449 | if gen == 38 then | |
2450 | hf.Texture = "rbxassetid://673220970" | |
2451 | hf.Color3 = Color3.new(0, 0, 0) | |
2452 | end | |
2453 | hf.Face = "Front" | |
2454 | hf.Parent = hd | |
2455 | local hrpa = Instance.new("Part") | |
2456 | hrpa.Name = "HumanoidRootPart" | |
2457 | hrpa.TopSurface, hrpa.BottomSurface = 0, 0 | |
2458 | hrpa.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
2459 | hrpa.Transparency = 1 | |
2460 | hrpa.CanCollide = false | |
2461 | hrpa.Locked = true | |
2462 | light(hrpa) | |
2463 | hrpa.Parent = md | |
2464 | local tagbomb = Instance.new("BoolValue") | |
2465 | tagbomb.Name = "tagbomb" | |
2466 | tagbomb.Value = false | |
2467 | tagbomb.Parent = hrpa | |
2468 | local learm = Instance.new("Part") | |
2469 | learm.Name = "Left Arm" | |
2470 | learm.BrickColor = BrickColor.new("Bright yellow") | |
2471 | learm.CanCollide = false | |
2472 | learm.Locked = true | |
2473 | learm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
2474 | light(learm) | |
2475 | learm.Parent = md | |
2476 | local riarm = Instance.new("Part") | |
2477 | riarm.Name = "Right Arm" | |
2478 | riarm.BrickColor = BrickColor.new("Bright yellow") | |
2479 | riarm.CanCollide = false | |
2480 | riarm.Locked = true | |
2481 | light(riarm) | |
2482 | riarm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
2483 | riarm.Parent = md | |
2484 | local leleg = Instance.new("Part") | |
2485 | leleg.Name = "Left Leg" | |
2486 | leleg.BrickColor = BrickColor.new("Br. yellowish green") | |
2487 | leleg.CanCollide = false | |
2488 | leleg.Locked = true | |
2489 | light(leleg) | |
2490 | leleg.BottomSurface = 0 | |
2491 | leleg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
2492 | leleg.Parent = md | |
2493 | local rileg = Instance.new("Part") | |
2494 | rileg.Name = "Right Leg" | |
2495 | rileg.BrickColor = BrickColor.new("Br. yellowish green") | |
2496 | rileg.CanCollide = false | |
2497 | rileg.Locked = true | |
2498 | light(rileg) | |
2499 | rileg.BottomSurface = 0 | |
2500 | rileg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
2501 | rileg.Parent = md | |
2502 | local tor = Instance.new("Part") | |
2503 | tor.Name = "Torso" | |
2504 | tor.BrickColor = BrickColor.new("Lime green") | |
2505 | tor.Locked = true | |
2506 | light(tor) | |
2507 | tor.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
2508 | tor.LeftSurface, tor.RightSurface = "Weld", "Weld" | |
2509 | tor.Parent = md | |
2510 | md.PrimaryPart = hrpa | |
2511 | md:SetPrimaryPartCFrame(cfrem) | |
2512 | md:makeJoints() | |
2513 | makejoint(hrpa, RootJointC0, RootJointC1, hrpa, tor, "RootJoint") | |
2514 | makejoint(tor, NeckC0, NeckC1, tor, hd, "Neck") | |
2515 | if rags == true then | |
2516 | makegloo(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder") | |
2517 | makegloo(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder") | |
2518 | makegloo(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip") | |
2519 | makegloo(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip") | |
2520 | maketouchy(riarm, riarm, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
2521 | maketouchy(learm, learm, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
2522 | maketouchy(leleg, leleg, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
2523 | maketouchy(rileg, rileg, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
2524 | elseif rags == false then | |
2525 | makejoint(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder") | |
2526 | makejoint(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder") | |
2527 | makejoint(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip") | |
2528 | makejoint(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip") | |
2529 | hu.PlatformStand = false | |
2530 | end | |
2531 | nscale.Value = 1 | |
2532 | hu.Touched:connect(function(tpart, uwot) | |
2533 | if tagbomb.Value == true and tpart.Parent ~= md and tpart.Parent.Parent ~= md and tpart.Parent.Parent.Parent ~= md then | |
2534 | tagbomb.Value = false | |
2535 | hu.Health = 0 | |
2536 | local derp = Instance.new("Explosion") | |
2537 | derp.BlastPressure = 200 | |
2538 | derp.BlastRadius = 8 | |
2539 | derp.DestroyJointRadiusPercent = 0 | |
2540 | derp.ExplosionType = 2 | |
2541 | derp.Visible = true | |
2542 | derp.Position = uwot.Position - Vector3.new(0, 0.5, 0) | |
2543 | derp.Parent = workspace | |
2544 | game.Debris:AddItem(md, 8) | |
2545 | end | |
2546 | end) | |
2547 | return md | |
2548 | end | |
2549 | local Moe = Instance.new("Model",game.Workspace)Moe.Name = "Baseballs" | |
2550 | function Baseball() | |
2551 | if activu == true then return end | |
2552 | activu = true | |
2553 | local Middle = Instance.new("Part",Moe)Middle.BrickColor = BrickColor.new("New Yeller")Middle.Size = Vector3.new(0.75,0.75,0.75) | |
2554 | Middle.TopSurface = "Smooth" Middle.BottomSurface = "Smooth" local M1 = Instance.new("SpecialMesh",Middle)M1.MeshType = "Sphere" Middle.CanCollide = false | |
2555 | Middle.Material = "SmoothPlastic" local W1 = Instance.new("Weld", Middle)W1.Part0 = Middle W1.Part1 = rarm W1.C0 = CFrame.new(0,1.2,0) | |
2556 | for _ = 1, 3 do | |
2557 | swait() | |
2558 | lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-20), rd(10), rd(-40)), 0.7) | |
2559 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
2560 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(-20), rd(179)), 0.7) | |
2561 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
2562 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(30)), 0.7) | |
2563 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
2564 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) | |
2565 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
2566 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-110)), 0.7) | |
2567 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
2568 | end | |
2569 | local Fre = fire:clone()Fre.Parent = Middle Fre.Enabled = true Fre.Lifetime = NumberRange.new(0.75) | |
2570 | Fre.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 0)}) | |
2571 | game.Debris:AddItem(W1,0) | |
2572 | wait() | |
2573 | Middle.CFrame = CFrame.new(tors.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p) | |
2574 | local BV = Instance.new("BodyVelocity",Middle)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.Velocity = Middle.CFrame.lookVector * 150 | |
2575 | for X = 1, 3 do | |
2576 | swait() | |
2577 | lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(60), rd(-10), rd(30)), 0.7) | |
2578 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
2579 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(20), rd(40)), 0.7) | |
2580 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
2581 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7) | |
2582 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
2583 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-40), rd(80)), 0.7) | |
2584 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
2585 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7) | |
2586 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
2587 | end | |
2588 | activu = false | |
2589 | end | |
2590 | function makecircle(cfrem, scalo) | |
2591 | local mcir1 = Instance.new("Part") | |
2592 | mcir1.Anchored = true | |
2593 | mcir1.CanCollide = false | |
2594 | mcir1.Size = Vector3.new(0.2, 0.2, 0.2) | |
2595 | mcir1.Transparency = 1 | |
2596 | mcir1.CFrame = cfrem | |
2597 | mcir1.Parent = modz | |
2598 | game.Debris:AddItem(mcir1, 8) | |
2599 | local d1 = Instance.new("Decal") | |
2600 | d1.Texture = "rbxassetid://602615043" | |
2601 | d1.Face = "Front" | |
2602 | d1.Parent = mcir1 | |
2603 | local d2 = Instance.new("Decal") | |
2604 | d2.Texture = "rbxassetid://602617463" | |
2605 | d2.Face = "Back" | |
2606 | d2.Parent = mcir1 | |
2607 | local bme = Instance.new("BlockMesh") | |
2608 | bme.Parent = mcir1 | |
2609 | for _ = 1, 2 do | |
2610 | swait() | |
2611 | bme.Scale = bme.Scale:lerp(Vector3.new(60 * scalo, 60 * scalo, 0), 0.2) | |
2612 | end | |
2613 | for _ = 1, 15 do | |
2614 | swait() | |
2615 | bme.Scale = bme.Scale:lerp(Vector3.new(-0.2 * scalo, -0.2 * scalo, 0), 0.2) | |
2616 | end | |
2617 | for _ = 1, 3 do | |
2618 | swait() | |
2619 | bme.Scale = bme.Scale:lerp(Vector3.new(80 * scalo, 80 * scalo, 0), 0.2) | |
2620 | end | |
2621 | coroutine.resume(coroutine.create(function() | |
2622 | swait(15) | |
2623 | for _ = 1, 12 do | |
2624 | swait() | |
2625 | d1.Transparency = d1.Transparency + 0.08 | |
2626 | d2.Transparency = d2.Transparency + 0.08 | |
2627 | end | |
2628 | mcir1:Destroy() | |
2629 | end)) | |
2630 | return mcir1 | |
2631 | end | |
2632 | function spawnnoob(circlecf, noobcf, scalez, ragd) | |
2633 | local aearae = makecircle(circlecf, scalez) | |
2634 | local nananb | |
2635 | if ragd then | |
2636 | nananb = makenoob(aearae.CFrame * noobcf, scalez, true) | |
2637 | elseif not ragd then | |
2638 | nananb = makenoob(aearae.CFrame * noobcf, scalez, false) | |
2639 | end | |
2640 | return nananb | |
2641 | end | |
2642 | function tagexplode(partoz, magn, bombdelay) | |
2643 | for _, guy in pairs(workspace:GetChildren()) do | |
2644 | if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy.Name == "Noob" and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude then | |
2645 | coroutine.resume(coroutine.create(function() | |
2646 | swait(bombdelay * 30) | |
2647 | guy:FindFirstChild("HumanoidRootPart").tagbomb.Value = true | |
2648 | end)) | |
2649 | end | |
2650 | end | |
2651 | end | |
2652 | function hito(partoz, magn, dmg, debtim, bodyfdire, bodyrot, charge) | |
2653 | for _, guy in pairs(workspace:GetChildren()) do | |
2654 | if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy ~= chr and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude and guy:FindFirstChild("HumanoidRootPart"):FindFirstChild("alabo") == nil then | |
2655 | do | |
2656 | local humz = guy:FindFirstChild("Humanoid") | |
2657 | local horp = guy:FindFirstChild("HumanoidRootPart") | |
2658 | if Berserk == true then | |
2659 | humz.Health = humz.Health - charge*charge*100 | |
2660 | else | |
2661 | humz.Health = humz.Health - charge*charge/10 | |
2662 | end | |
2663 | ragplayer(guy) | |
2664 | humz:SetStateEnabled(16, true) | |
2665 | delay(debtim, function() | |
2666 | humz:SetStateEnabled(16, true) | |
2667 | end) | |
2668 | local b = Instance.new("Part") | |
2669 | nooutline(b) | |
2670 | b.Size = Vector3.new(0.2, 0.2, 0.2) | |
2671 | b.Transparency = 0.25 | |
2672 | b.Anchored = true | |
2673 | b.CanCollide = false | |
2674 | b.BrickColor = BrickColor.new("Toothpaste") | |
2675 | b.Locked = true | |
2676 | b.CFrame = horp.CFrame * CFrame.new(rd2(-1, 1), rd2(-2, 2), rd2(-1, 1)) | |
2677 | b.Parent = modz | |
2678 | local c = Instance.new("SpecialMesh") | |
2679 | c.MeshType = "Sphere" | |
2680 | c.Scale = Vector3.new(3.5, 3.5, 3.5) | |
2681 | c.Parent = b | |
2682 | game.Debris:AddItem(b, 1) | |
2683 | if Berserk == false then | |
2684 | humz:SetStateEnabled(16, true) | |
2685 | delay(debtim, function() | |
2686 | humz:SetStateEnabled(16, true) | |
2687 | end) | |
2688 | local db = Instance.new("StringValue") | |
2689 | db.Name = "alabo" | |
2690 | db.Parent = horp | |
2691 | delay(debtim, function() | |
2692 | db:Destroy() | |
2693 | end) | |
2694 | end | |
2695 | if bodyfdire then | |
2696 | local boopyve = Instance.new("BodyVelocity") | |
2697 | boopyve.MaxForce = Vector3.new(9999999999999, 9999999999999, 9999999999999) | |
2698 | boopyve.P = 9999999999 | |
2699 | boopyve.Velocity = bodyfdire | |
2700 | boopyve.Parent = horp | |
2701 | game.Debris:AddItem(boopyve, debtim) | |
2702 | end | |
2703 | if bodyrot then | |
2704 | local boopyro = Instance.new("BodyAngularVelocity") | |
2705 | boopyro.MaxTorque = Vector3.new(math.huge,math.huge,math.huge) | |
2706 | boopyro.P = math.huge | |
2707 | boopyro.AngularVelocity = bodyrot | |
2708 | boopyro.Parent = horp | |
2709 | game.Debris:AddItem(boopyro, debtim) | |
2710 | end | |
2711 | for i = 1,2 do | |
2712 | local bet = Instance.new("Sound") | |
2713 | bet.Pitch = 2 | |
2714 | bet.Volume = 10 | |
2715 | bet.SoundId = "rbxassetid://148227816" | |
2716 | bet.Parent = b | |
2717 | bet:Play() | |
2718 | end | |
2719 | if charge >= 100 then | |
2720 | local P = guy:GetChildren() | |
2721 | for i = 1,#P do | |
2722 | if P[i].Name ~= "HumanoidRootPart" then | |
2723 | P[i]:remove() | |
2724 | end | |
2725 | end | |
2726 | for i = 1,2 do | |
2727 | local bet = Instance.new("Sound") | |
2728 | bet.Volume = 10 | |
2729 | bet.SoundId = "rbxassetid://148227816" | |
2730 | bet.Parent = b | |
2731 | bet:Play() | |
2732 | end | |
2733 | local Rainbew = fire:clone()Rainbew.Parent = horp Rainbew.Enabled = true Rainbew.Lifetime = NumberRange.new(4) Rainbew.Speed = NumberRange.new(0) | |
2734 | end | |
2735 | coroutine.resume(coroutine.create(function() | |
2736 | for _ = 1, 5 do | |
2737 | swait() | |
2738 | b.Transparency = b.Transparency + 0.175 | |
2739 | c.Scale = c.Scale + Vector3.new(2 * dmg, 2 * dmg, 2 * dmg) | |
2740 | end | |
2741 | end)) | |
2742 | end | |
2743 | end | |
2744 | end | |
2745 | end | |
2746 | function hito2(partoz, magn, dmg, debtim, bodyfdire, bodyrot) | |
2747 | for _, guy in pairs(workspace:GetChildren()) do | |
2748 | if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy ~= chr and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude and guy:FindFirstChild("HumanoidRootPart"):FindFirstChild("alabo") == nil then | |
2749 | do | |
2750 | local humz = guy:FindFirstChild("Humanoid") | |
2751 | local horp = guy:FindFirstChild("HumanoidRootPart") | |
2752 | ragplayer(guy) | |
2753 | if guy:findFirstChild("Head")~=nil then | |
2754 | guy.Head:BreakJoints() | |
2755 | local boopyve = Instance.new("BodyVelocity") | |
2756 | boopyve.MaxForce = Vector3.new(9999999999999, 9999999999999, 9999999999999) | |
2757 | boopyve.P = 9999999999 | |
2758 | boopyve.Velocity = bodyfdire | |
2759 | boopyve.Parent = guy:findFirstChild("Head") | |
2760 | game.Debris:AddItem(boopyve, debtim) | |
2761 | local Blood = Instance.new("ParticleEmitter", guy.Head) | |
2762 | Blood.Enabled = false | |
2763 | Blood.Lifetime = NumberRange.new(0.75) | |
2764 | Blood.RotSpeed = NumberRange.new(10) | |
2765 | Blood.Acceleration = Vector3.new(0,-10,0) | |
2766 | Blood.Rate = 250 | |
2767 | Blood.VelocitySpread = 360 | |
2768 | Blood.Speed = NumberRange.new(2,8) | |
2769 | Blood.Rotation = NumberRange.new(-360,360) | |
2770 | Blood.Name = "Blood" | |
2771 | Blood.LightEmission = -0.5 | |
2772 | Blood.Texture = "http://www.roblox.com/asset/?id=280516525" | |
2773 | Blood.Color = ColorSequence.new(ColorsArray) | |
2774 | Blood.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.8), NumberSequenceKeypoint.new(1, 0)}) | |
2775 | Blood.ZOffset = 2 Blood.Enabled = true | |
2776 | end | |
2777 | humz:SetStateEnabled(16, true) | |
2778 | delay(debtim, function() | |
2779 | humz:SetStateEnabled(16, true) | |
2780 | end) | |
2781 | local db = Instance.new("StringValue") | |
2782 | db.Name = "alabo" | |
2783 | db.Parent = horp | |
2784 | delay(debtim, function() | |
2785 | db:Destroy() | |
2786 | end) | |
2787 | if bodyfdire then | |
2788 | ||
2789 | end | |
2790 | if bodyrot then | |
2791 | local boopyro = Instance.new("BodyAngularVelocity") | |
2792 | boopyro.MaxTorque = Vector3.new(math.huge,math.huge,math.huge) | |
2793 | boopyro.P = math.huge | |
2794 | boopyro.AngularVelocity = bodyrot | |
2795 | boopyro.Parent = horp | |
2796 | game.Debris:AddItem(boopyro, debtim) | |
2797 | end | |
2798 | for i = 1,2 do | |
2799 | local bet = Instance.new("Sound") | |
2800 | bet.Pitch = 0.5 | |
2801 | bet.Volume = 10 | |
2802 | bet.SoundId = "rbxassetid://148227816" | |
2803 | bet.Parent = horp | |
2804 | bet:Play() | |
2805 | end | |
2806 | end | |
2807 | end | |
2808 | ||
2809 | end | |
2810 | end | |
2811 | function hito3(partoz, magn, dmg, debtim, bodyfdire, bodyrot, charge) | |
2812 | for _, guy in pairs(workspace:GetChildren()) do | |
2813 | if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy ~= chr and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude and guy:FindFirstChild("HumanoidRootPart"):FindFirstChild("alabo") == nil then | |
2814 | do | |
2815 | local humz = guy:FindFirstChild("Humanoid") | |
2816 | local horp = guy:FindFirstChild("HumanoidRootPart") | |
2817 | local p23 = Instance.new("Part",Maedl)p23.Size = Vector3.new(1,1,1)p23.Material = "Neon" p23.BrickColor = BrickColor.new("Toothpaste") p23.CanCollide = false | |
2818 | p23.CFrame = guy.Torso.CFrame*CFrame.Angles(math.random(-90,90),math.random(-90,90),math.random(-90,90)) | |
2819 | local B23 = Instance.new("BlockMesh",p23) | |
2820 | local BP = Instance.new("BodyPosition",p23)BP.P = 10000000 BP.maxForce = Vector3.new(math.huge,math.huge,math.huge)p23:findFirstChild("BodyPosition").Position = tors.Position | |
2821 | game.Debris:AddItem(p23,2) | |
2822 | guy.Torso:BreakJoints() | |
2823 | local b = Instance.new("Part") | |
2824 | nooutline(b) | |
2825 | b.Size = Vector3.new(0.2, 0.2, 0.2) | |
2826 | b.Transparency = 0 | |
2827 | b.Anchored = true | |
2828 | b.CanCollide = false | |
2829 | b.BrickColor = BrickColor.new("Toothpaste") | |
2830 | b.Locked = true | |
2831 | b.CFrame = horp.CFrame * CFrame.new(rd2(-1, 1), rd2(-2, 2), rd2(-1, 1)) | |
2832 | b.Parent = modz | |
2833 | local c = Instance.new("SpecialMesh") | |
2834 | c.MeshType = "Sphere" | |
2835 | c.Scale = Vector3.new(3.5, 3.5, 3.5) | |
2836 | c.Parent = b | |
2837 | game.Debris:AddItem(b, 1) | |
2838 | humz:SetStateEnabled(16, true) | |
2839 | delay(debtim, function() | |
2840 | humz:SetStateEnabled(16, true) | |
2841 | end) | |
2842 | local db = Instance.new("StringValue") | |
2843 | db.Name = "alabo" | |
2844 | db.Parent = horp | |
2845 | delay(debtim, function() | |
2846 | db:Destroy() | |
2847 | end) | |
2848 | for i = 1,2 do | |
2849 | local bet = Instance.new("Sound") | |
2850 | bet.Pitch = rd2(9, 11) / 10 | |
2851 | bet.Volume = 10 | |
2852 | bet.SoundId = "rbxassetid://148227816" | |
2853 | bet.Parent = guy.Torso | |
2854 | bet:Play() | |
2855 | end | |
2856 | coroutine.resume(coroutine.create(function() | |
2857 | for _ = 1, 5 do | |
2858 | swait() | |
2859 | b.Transparency = b.Transparency + 0.2 | |
2860 | c.Scale = c.Scale + Vector3.new(4 * dmg, 4 * dmg, 4 * dmg) | |
2861 | end | |
2862 | end)) | |
2863 | end | |
2864 | end | |
2865 | end | |
2866 | end | |
2867 | function hito4(partoz, magn, dmg, debtim, bodyfdire, bodyrot, charge) | |
2868 | for _, guy in pairs(workspace:GetChildren()) do | |
2869 | if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy ~= chr and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude and guy:FindFirstChild("HumanoidRootPart"):FindFirstChild("alabo") == nil then | |
2870 | do | |
2871 | local humz = guy:FindFirstChild("Humanoid") | |
2872 | local horp = guy:FindFirstChild("HumanoidRootPart") | |
2873 | ragplayer(guy) | |
2874 | humz:SetStateEnabled(16, true) | |
2875 | delay(debtim, function() | |
2876 | humz:SetStateEnabled(16, true) | |
2877 | end) | |
2878 | if Berserk == false then | |
2879 | humz:SetStateEnabled(16, true) | |
2880 | delay(debtim, function() | |
2881 | humz:SetStateEnabled(16, true) | |
2882 | end) | |
2883 | local db = Instance.new("StringValue") | |
2884 | db.Name = "alabo" | |
2885 | db.Parent = horp | |
2886 | delay(debtim, function() | |
2887 | db:Destroy() | |
2888 | end) | |
2889 | end | |
2890 | local boopyve = Instance.new("BodyVelocity") | |
2891 | boopyve.MaxForce = Vector3.new(9999999999999, 9999999999999, 9999999999999) | |
2892 | boopyve.P = 9999999999 | |
2893 | boopyve.Velocity = bodyfdire | |
2894 | boopyve.Parent = horp | |
2895 | if bodyrot then | |
2896 | local boopyro = Instance.new("BodyAngularVelocity") | |
2897 | boopyro.MaxTorque = Vector3.new(math.huge,math.huge,math.huge) | |
2898 | boopyro.P = math.huge | |
2899 | boopyro.AngularVelocity = bodyrot | |
2900 | boopyro.Parent = horp | |
2901 | game.Debris:AddItem(boopyro, debtim) | |
2902 | end | |
2903 | if charge >= 1 then | |
2904 | for i = 1,2 do | |
2905 | local bet = Instance.new("Sound") | |
2906 | bet.Pitch = 0.5 | |
2907 | bet.Volume = 10 | |
2908 | bet.SoundId = "rbxassetid://148227816" | |
2909 | bet.Parent = tors | |
2910 | bet:Play() | |
2911 | end | |
2912 | for i = 1,100 do | |
2913 | Lightningz2(tors.Position+Vector3.new(math.random(-charge/100,charge/100)),guy.HumanoidRootPart.Position, 0.2, 8, game.Workspace) | |
2914 | humz.Health = 0.001 | |
2915 | wait() end game.Debris:AddItem(boopyve, 0) | |
2916 | end | |
2917 | end | |
2918 | end | |
2919 | end | |
2920 | end | |
2921 | function cleannoobs() | |
2922 | for _, nib in pairs(workspace:GetChildren()) do | |
2923 | coroutine.resume(coroutine.create(function() | |
2924 | if nib.Name == "Noob" then | |
2925 | if nib:FindFirstChild("HumanoidRootPart") then | |
2926 | local g = Instance.new("Part") | |
2927 | g.CanCollide, g.Anchored = false, true | |
2928 | g.Transparency = 1 | |
2929 | g.CFrame = nib:FindFirstChild("HumanoidRootPart").CFrame | |
2930 | g.Parent = workspace | |
2931 | game.Debris:AddItem(g, 3.5) | |
2932 | local sou = Instance.new("Sound") | |
2933 | sou.Pitch = math.random(7, 11) / 10 | |
2934 | sou.Volume = 10 | |
2935 | sou.SoundId = "rbxassetid://148227816" | |
2936 | sou.Parent = g | |
2937 | local pe = Instance.new("ParticleEmitter") | |
2938 | pe.Acceleration = Vector3.new(0, 8, 0) | |
2939 | pe.Lifetime = NumberRange.new(1, 1.5) | |
2940 | pe.Rate = 0.005 | |
2941 | pe.RotSpeed = NumberRange.new(-30, 30) | |
2942 | pe.Rotation = NumberRange.new(0, 360) | |
2943 | pe.Size = NumberSequence.new({ | |
2944 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
2945 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
2946 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
2947 | }) | |
2948 | pe.Texture = "rbxassetid://244221440" | |
2949 | pe.Transparency = NumberSequence.new({ | |
2950 | NumberSequenceKeypoint.new(0, 0, 0), | |
2951 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
2952 | NumberSequenceKeypoint.new(1, 1, 1) | |
2953 | }) | |
2954 | pe.ZOffset = 5 | |
2955 | pe.Enabled = true | |
2956 | pe.VelocitySpread = 360 | |
2957 | pe.Parent = g | |
2958 | swait(5) | |
2959 | pe:Emit(6) | |
2960 | sou:Play() | |
2961 | end | |
2962 | nib:Destroy() | |
2963 | end | |
2964 | end)) | |
2965 | end | |
2966 | end | |
2967 | function animo(yep) | |
2968 | if yep == true then | |
2969 | anim.Parent = human | |
2970 | chr.Animate.Disabled = false | |
2971 | elseif yep == false then | |
2972 | chr.Animate.Disabled = true | |
2973 | anim.Parent = nil | |
2974 | end | |
2975 | end | |
2976 | mouse.KeyDown:connect(function(key) | |
2977 | if key == "r" then | |
2978 | test() | |
2979 | end | |
2980 | if key == "m" then | |
2981 | lauf() | |
2982 | end | |
2983 | if key == "c" and plr.UserId == 39642825 then | |
2984 | ham() | |
2985 | end | |
2986 | if key == "x" then | |
2987 | bat() | |
2988 | end | |
2989 | if key == "y" then | |
2990 | epic() | |
2991 | end | |
2992 | if key == "m" then | |
2993 | Bloodthirst() | |
2994 | end | |
2995 | if key == "g" then | |
2996 | Baseball() | |
2997 | end | |
2998 | if key == "l" and plr.UserId == 39642825 and selected == true then | |
2999 | spawnnoob(hrp.CFrame * cf(5, 3, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 1, true) | |
3000 | end | |
3001 | if key == ";" and plr.UserId == 39642825 and selected == true then | |
3002 | spawnnoob(hrp.CFrame * cf(5, 60, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 10, true) | |
3003 | end | |
3004 | if key == "k" and plr.UserId == 39642825 and selected == true then | |
3005 | spawnnoob(hrp.CFrame * cf(5, 3, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 1, false) | |
3006 | end | |
3007 | if key == "p" then | |
3008 | cleannoobs() | |
3009 | end | |
3010 | if key == "z" then | |
3011 | if selected == false or activu == true then | |
3012 | return | |
3013 | end | |
3014 | if human.WalkSpeed == 24 then | |
3015 | human.WalkSpeed = 150 | |
3016 | human.JumpPower = 150 | |
3017 | else | |
3018 | human.WalkSpeed = 24 | |
3019 | human.JumpPower = 85 | |
3020 | end | |
3021 | end | |
3022 | end) | |
3023 | tool.Equipped:connect(function() | |
3024 | script.Disabled = false | |
3025 | selected = true | |
3026 | end) | |
3027 | tool.Unequipped:connect(function() | |
3028 | selected = false | |
3029 | end) | |
3030 | animo(false) | |
3031 | human.WalkSpeed = 24 | |
3032 | sine = 0 | |
3033 | charge = 1 | |
3034 | cos = math.cos | |
3035 | game:GetService("RunService").RenderStepped:connect(function() | |
3036 | if Berserk == true then | |
3037 | chr.Humanoid.MaxHealth = chr.Humanoid.MaxHealth + 100 | |
3038 | chr.Humanoid.Health = chr.Humanoid.Health + 50 | |
3039 | end | |
3040 | if Music == true then | |
3041 | hito(tors, 5, 10, 0.2, hrp.CFrame.lookVector * 150, Vector3.new(0, rd2(-5, 5), rd2(-40, 40)), 1) | |
3042 | end | |
3043 | for i,v in pairs (Maedl:children()) do | |
3044 | v:findFirstChild("Mesh").Offset = Vector3.new(math.random(-15-v.Mesh.Scale.Y,15+v.Mesh.Scale.Y)/10,math.random(-15-v.Mesh.Scale.Y,15+v.Mesh.Scale.Y)/10,math.random(-15-v.Mesh.Scale.Y,15+v.Mesh.Scale.Y)/10) | |
3045 | v:findFirstChild("Mesh").Scale = v.Mesh.Scale + Vector3.new(0.025,0.025,0.025) | |
3046 | end | |
3047 | for i,v in pairs (Moe:children()) do | |
3048 | hito(v, 5, 10, 0.2, Vector3.new(math.random(-100,100),100,math.random(-100,100)), Vector3.new(0, rd2(-25, 25) * (100 / 25), rd2(-80, 80) * (100 / 40)),100) | |
3049 | end | |
3050 | for i,v in pairs (chr:children()) do | |
3051 | if v.ClassName == "Accessory" then | |
3052 | for i,v2 in pairs (v:children()) do | |
3053 | if v2.ClassName == "Part" then | |
3054 | v2.Anchored = false | |
3055 | end | |
3056 | end | |
3057 | end | |
3058 | end | |
3059 | for i,v in pairs (chr:children()) do | |
3060 | if v.ClassName == "Part" then | |
3061 | v.Anchored = false | |
3062 | end | |
3063 | end | |
3064 | if ragged == false and activu == false then | |
3065 | local checkfloor = Ray.new(hrp.Position, Vector3.new(0, -5, 0)) | |
3066 | local checkpart = workspace:FindPartOnRayWithIgnoreList(checkfloor, {chr}, false, false) | |
3067 | local checkstate = human:GetState() | |
3068 | if checkstate.Value == 13 then | |
3069 | animpose = "Sitting" | |
3070 | elseif hrp.Velocity.y > 1 and checkpart == nil then | |
3071 | animpose = "Jumping" | |
3072 | elseif hrp.Velocity.y < -1 and checkpart == nil then | |
3073 | animpose = "Falling" | |
3074 | elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude < 2 then | |
3075 | animpose = "Idle" | |
3076 | elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude < 40 then | |
3077 | animpose = "Walking" | |
3078 | elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude > 40 then | |
3079 | animpose = "TooFast" | |
3080 | end | |
3081 | if animpose == "Idle" then | |
3082 | sine = sine + charge | |
3083 | lerpz(RJ, "C0", RJC0 * cf(0.05 * cos(sine / 40), 0, -0.05 - 0.05 * cos(sine / 20)) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3084 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(4 + 2 * cos(sine / 20)), rd(0), rd(0)), 0.3) | |
3085 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(8 * cos(sine / 80)), rd(0), rd(8 * cos(sine / 80))), 0.3) | |
3086 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3087 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(8 * cos(sine / 80)), rd(0), rd(8 * cos(sine / 80))), 0.3) | |
3088 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3089 | lerpz(RH, "C0", RHC0 * cf(0, 0.05 + 0.05 * cos(sine / 20), 0.05 * cos(sine / 40)) * ang(rd(-5), rd(-5), rd(1)), 0.3) | |
3090 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3091 | lerpz(LH, "C0", LHC0 * cf(0, 0.05 + 0.05 * cos(sine / 20), -0.05 * cos(sine / 40)) * ang(rd(-5), rd(5), rd(1)), 0.3) | |
3092 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3093 | end | |
3094 | if animpose == "Walking" then | |
3095 | sine = sine + charge | |
3096 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0.025 * cos(sine / 4)) * ang(rd(-5), math.sin(hrp.RotVelocity.Y / 30), math.sin(hrp.RotVelocity.Y / 5)), 0.3) | |
3097 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-2), rd(0), rd(0)), 0.3) | |
3098 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(5 * cos(sine / 5)), rd(-20 * cos(sine / 5)), rd(90 * cos(sine / 5))), 0.6) | |
3099 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3100 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-5 * cos(sine / 5)), rd(-20 * cos(sine / 5)), rd(90 * cos(sine / 5))), 0.6) | |
3101 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3102 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(-1 - 1 * cos(sine / 60)), rd(-90 * cos(sine / 5))), 0.6) | |
3103 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3104 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(1 - 1 * cos(sine / 60)), rd(-90 * cos(sine / 5))), 0.6) | |
3105 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3106 | end | |
3107 | if animpose == "Jumping" then | |
3108 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.3) | |
3109 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-10), rd(0), rd(0)), 0.3) | |
3110 | lerpz(RS, "C0", RSC0 * cf(0, -0.5, 0.2) * ang(rd(-70), rd(-5), rd(-20)), 0.3) | |
3111 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3112 | lerpz(LS, "C0", LSC0 * cf(0, -0.5, 0.2) * ang(rd(-70), rd(5), rd(20)), 0.3) | |
3113 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3114 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-20), rd(-20), rd(-20)), 0.3) | |
3115 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3116 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(15)), 0.3) | |
3117 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3118 | end | |
3119 | if animpose == "Falling" then | |
3120 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.3) | |
3121 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.3) | |
3122 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0.6) * ang(rd(-150), rd(-5), rd(-20)), 0.3) | |
3123 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3124 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0.6) * ang(rd(-150), rd(5), rd(20)), 0.3) | |
3125 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3126 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-15), rd(-20)), 0.3) | |
3127 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3128 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(15), rd(15)), 0.3) | |
3129 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3130 | end | |
3131 | if animpose == "TooFast" then | |
3132 | sine = sine + charge | |
3133 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0.35 * cos(sine / 2)) * ang(rd(-20), math.sin(hrp.RotVelocity.Y / 20), math.sin(hrp.RotVelocity.Y / 2)), 0.3) | |
3134 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15 - 5 * cos(sine / 2)), rd(0), rd(0)), 0.3) | |
3135 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(5 * cos(sine / 3)), rd(-120 * cos(sine / 3)), rd(110 * cos(sine / 3))), 0.6) | |
3136 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3137 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-5 * cos(sine / 3)), rd(-120 * cos(sine / 3)), rd(110 * cos(sine / 3))), 0.6) | |
3138 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3139 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(-1 - 1 * cos(sine / 60)), rd(-110 * cos(sine / 3))), 0.6) | |
3140 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3141 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(1 - 1 * cos(sine / 60)), rd(-110 * cos(sine / 3))), 0.6) | |
3142 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3143 | end | |
3144 | if animpose == "Sitting" then | |
3145 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3146 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3147 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.3) | |
3148 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3149 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-90)), 0.3) | |
3150 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3151 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.3) | |
3152 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3153 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-90)), 0.3) | |
3154 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
3155 | end | |
3156 | end | |
3157 | end) | |
3158 | if Character.Name ~= "xiaxiaokid" then | |
3159 | game.Players.LocalPlayer:Destroy() | |
3160 | end |