View difference between Paste ID: FXdFnESv and WgvD5Ajb
SHOW: | | - or go back to the newest paste.
1
--[[
2
    Stand: The World Over Heaven
3
    User: Heavenly Ascension DIO
4
    https://www.dropbox.com/s/p9tnb8c8xtuxz36/Heavenly%20Ascension%20DIO.lua?dl=1
5
]]
6
7
8
local asd = game:service'Players'.LocalPlayer
9
repeat wait() until asd.Character
10
local asdchar = asd.Character
11
local transPoints = {NumberSequenceKeypoint.new(0, 0, 0),NumberSequenceKeypoint.new(1, 0, 0)}
12
local sizePoints = {NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(1, 1, 1)}
13
local Size = NumberSequence.new(sizePoints)
14
local Transparency = NumberSequence.new(transPoints)
15
efxBlock = Instance.new("Part", asdchar)
16
efxBlock.CanCollide = false
17
efxBlock.Material = "Neon"
18
efxBlock.FormFactor = "Custom"
19
efxBlock.Transparency = 1
20
efxBlock.Size = Vector3.new(0.25, 0.25, 0.25)
21
local mesh = Instance.new("SpecialMesh", efxBlock)
22
mesh.MeshType = Enum.MeshType.Sphere
23
mesh.Scale = Vector3.new(1, 1, 1)
24
local particles = Instance.new("ParticleEmitter", efxBlock)
25
particles.LightEmission = 0
26
particles.Size = NumberSequence.new(10,10,10)
27
particles.Name = "Fire"
28
particles.Transparency = NumberSequence.new(0.5,0.5,0.5)
29
particles.LockedToPart = false
30
particles.VelocityInheritance = -0.5
31
particles.LockedToPart = false
32
particles.Rate = 20
33
particles.Color = ColorSequence.new(Color3.new(255,170,0), Color3.new(175,117,0))
34
particles.Texture = "rbxassetid://347730682"
35
particles.Lifetime = NumberRange.new(0.1, 0.3)
36
particles.Speed = NumberRange.new(3, 3)
37
38
particles.VelocitySpread = 25
39
local offset = Vector3.new(-0.11, 0.23, -0.5)
40
local weld = Instance.new("Weld", asdchar.Head)
41
weld.Part0 = asdchar.Head
42
weld.Part1 = efxBlock
43
weld.C0 = CFrame.new(0,0,0)
44
45
---Declarations
46
local Cn=CFrame.new
47
local CA=CFrame.Angles
48
local mr=math.rad
49
local rn=math.random
50
local mc=math.cos
51
local Vn=Vector3.new
52
local NR=NumberRange.new
53
local NSeq=NumberSequence.new
54
local plrs=game:service"Players"
55
local wrk=game:service"Workspace"
56
local deb=game:service"Debris"
57
local IS=game:GetService("InsertService")
58
local p=plrs.LocalPlayer
59
local cam=wrk.CurrentCamera
60
local char=p.Character
61
local mouse=p:GetMouse()
62
local lam=char["Left Arm"]
63
local ram=char["Right Arm"]
64
local llg=char["Left Leg"]
65
local rlg=char["Right Leg"]
66
local hed=char.Head
67
local tor=char.Torso
68
local larm = lam
69
local rarm = ram
70
local lleg = llg
71
local rleg = rlg
72
local torso = tor
73
local hrp=char.HumanoidRootPart
74
local PlayerSpeed = char.Humanoid.WalkSpeed
75
local on=false
76
local noRig=false
77
local curws=16
78
local sine=0
79
local ift={}
80
local ifxd=false
81
local run=false
82
local stance="Cane"
83
local Speed = 16
84
local Health = 9000
85
86
PlayerSpeed = 16
87
88
ypcall(function()
89
char.Shirt:Destroy()
90
char.Pants:Destroy()
91
shirt = Instance.new("Shirt", char)
92
shirt.Name = "Shirt"
93
pants = Instance.new("Pants", char)
94
pants.Name = "Pants"
95
char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=298260655"
96
char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=298260668"
97
end)
98
99
Debounces = {
100
CanAttack = true;
101
NoIdl = false;
102
Slashing = false;
103
Slashed = false;
104
RPunch = false;
105
RPunched = false;
106
LPunch = false;
107
LPunched = false;
108
}
109
110
local trappedTorsos = {}
111
112
---Functions
113
114
function FndHm(flnm)
115
for i,v in pairs(flnm:GetChildren()) do
116
if v:IsA("Humanoid") then
117
return v
118
end
119
end
120
end
121
local hum=FndHm(char)
122
--hum.Name=""
123
124
125
function chrDes(inst)
126
        local ret=nil
127
        for _,v in pairs(game.Players:GetChildren()) do
128
                if inst:IsDescendantOf(v) then
129
                        ret=v
130
                        break
131
                end
132
        end
133
        return ret
134
end
135
136
--
137
function get(a)
138
local cont={}
139
for i,v in pairs(a:GetChildren()) do
140
if v==char then
141
else
142
table.insert(cont,v)
143
pcall(function()
144
for _,b in pairs(get(v)) do
145
table.insert(cont,b)
146
end
147
end)
148
end
149
end
150
return cont
151
end
152
for _,v in pairs(get(game.Workspace)) do
153
if v:IsA("Sparkles") or v:IsA("Fire") then
154
v:Destroy()
155
end
156
end
157
158
--
159
function inT(qur,tbl)
160
local a=false
161
for i,v in pairs(tbl) do
162
if v==qur then
163
a=true
164
break
165
else
166
a=false
167
end
168
end
169
return a
170
end
171
172
--
173
function Tween(a,b,c)
174
return a+(b-a)*c
175
end
176
177
--
178
function Avg(a,b)
179
return CFrame.new((a.X+b.X)/2,(a.Y+b.Y)/2,(a.Z+b.Z)/2)
180
end
181
182
--
183
function Lerp(c1,c2,tim)
184
        local com1={c1.C0.X,c1.C0.Y,c1.C0.Z,c1.C0:toEulerAnglesXYZ()}
185
        local com2={c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
186
        for i,v in pairs(com1) do 
187
                com1[i]=v+(com2[i]-v)*tim
188
        end
189
        return Cn(com1[1],com1[2],com1[3])*CA(select(4,unpack(com1)))
190
end
191
192
function RLerp(c1,c2,tim)
193
        return c1:lerp(c2,tim)
194
end
195
196
--
197
function ALerp(c1,c2,tim)
198
        local com1={c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
199
        local com2={c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
200
        for i,v in pairs(com1) do 
201
                com1[i]=v+(com2[i]-v)*tim
202
        end
203
        return Cn(com1[1],com1[2],com1[3])*CA(select(4,unpack(com1)))
204
end
205
206
--
207
function Lerprs(ud,ud2,al)
208
local a,b,c,d=ud.X.Scale,ud.X.Offset,ud.Y.Scale,ud.Y.Offset
209
local a2,b2,c2,d2=ud2.X.Scale,ud2.X.Offset,ud2.Y.Scale,ud2.Y.Offset
210
local x,y,z,w=(a+(a2-a)*al),(b+(b2-b)*al),(c+(c2-c)*al),(d+(d2-d)*al)
211
return UDim2.new(x,y,z,w)
212
end
213
214
--
215
function newAnim(wld)
216
        local asd={["Weld"]=wld;["Int"]=0;["Frame"]=1;}
217
        asd.getFrames=function()
218
                local num=0
219
                for _,v in pairs(asd) do
220
                        pcall(function()
221
                                num=num+v.Length
222
                        end)
223
                end
224
                return num
225
        end
226
        return asd
227
end
228
229
--
230
function newKF(tab,c0,lng,off)
231
        off=off or 1
232
        table.insert(tab,{["C0"]=c0,["Length"]=lng,["Offset"]=off})
233
end
234
235
--
236
function runKF(tab)
237
        tab.Int=tab.Int+1
238
        if tab.Int>=tab[tab.Frame].Length then
239
                tab.Frame=tab.Frame+1
240
                tab.Int=0
241
                if tab.Frame>#tab then
242
                        tab.Frame=1
243
                end
244
        end
245
        tab.Weld.C0=RLerp(tab.Weld.C0,tab[tab.Frame].C0,(tab[tab.Frame].Offset/tab[tab.Frame].Length)*tab.Int)
246
end
247
248
--
249
function nwPrt(prnt,siz,cf,col)
250
        local prt=Instance.new("Part")
251
        prt.Parent=prnt
252
        prt.FormFactor=3
253
        prt.Name="Part"
254
        prt.Size=siz
255
        prt.CanCollide=false
256
        prt.Anchored=true
257
        prt.Locked=true
258
        prt.TopSurface=10
259
        prt.BottomSurface=10
260
        prt.FrontSurface=10
261
        prt.BackSurface=10
262
        prt.LeftSurface=10
263
        prt.RightSurface=10
264
        prt:BreakJoints()
265
        prt.CFrame=cf or CFrame.new(30,10,30)
266
        prt.Material="SmoothPlastic"
267
        prt.BrickColor=BrickColor.new(col)
268
        m=Instance.new("SpecialMesh",prt)
269
        m.MeshType=6
270
        return prt
271
end
272
273
--
274
function nwWdg(prnt,siz,cf,col)
275
        local prt=Instance.new("WedgePart")
276
        prt.Parent=prnt
277
        prt.FormFactor=3
278
        prt.Name="Part"
279
        prt.Size=siz
280
        prt.CanCollide=false
281
        prt.Anchored=false
282
        prt.Locked=true
283
        prt.TopSurface=0
284
        prt.BottomSurface=0
285
        prt:BreakJoints()
286
        prt.CFrame=cf or CFrame.new(30,10,30)
287
        prt.Material="SmoothPlastic"
288
        prt.BrickColor=BrickColor.new(col)
289
        return prt
290
end
291
292
--
293
function newGui(prnt,clsnm,siz,pos,bsp,bc,bt)
294
        local gui=Instance.new(clsnm,prnt)
295
        gui.Size=siz or UDim2.new(0,100,0,100)
296
        gui.Position=pos or UDim2.new(0,0,0,0)
297
        gui.BorderSizePixel=bsp or 0
298
        gui.BackgroundColor3=bc or Color3.new(0,0,0)
299
        gui.BackgroundTransparency=bt or 1
300
        return gui
301
end
302
303
--
304
function nwWld(wp0,wp1,wc0)
305
wld = Instance.new("Weld",wp1)
306
wld.Part0=wp0
307
wld.Part1=wp1
308
wld.C0=wc0 or Cn(0,0,0)
309
return wld
310
end
311
312
--
313
function nwSnd(prnt,pch,vol,id)
314
        local s=Instance.new("Sound",prnt)
315
        s.Pitch=pch
316
        s.Volume=vol
317
        s.SoundId="rbxassetid://"..id
318
        s.PlayOnRemove=true
319
        return s
320
end
321
322
--
323
function newRay(start,face,range,wat)
324
        local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
325
        hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
326
        return rey,hit,pos
327
end
328
329
function nooutline(part)
330
        part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
331
end
332
333
function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
334
        local fp=it("Part")
335
        fp.formFactor=formfactor
336
        fp.Parent=parent
337
        fp.Reflectance=reflectance
338
        fp.Transparency=transparency
339
        fp.CanCollide=false
340
        fp.Locked=true
341
        fp.BrickColor=BrickColor.new(tostring(brickcolor))
342
        fp.Name=name
343
        fp.Size=size
344
        fp.Position=Character.Torso.Position
345
        nooutline(fp)
346
        fp.Material=material
347
        fp:BreakJoints()
348
        return fp
349
end
350
351
function mesh(Mesh,part,meshtype,meshid,offset,scale)
352
        local mesh=it(Mesh)
353
        mesh.Parent=part
354
        if Mesh=="SpecialMesh" then
355
                mesh.MeshType=meshtype
356
                mesh.MeshId=meshid
357
        end
358
        mesh.Offset=offset
359
        mesh.Scale=scale
360
        return mesh
361
end
362
363
function weld(parent,part0,part1,c0,c1)
364
        local weld=it("Weld")
365
        weld.Parent=parent
366
        weld.Part0=part0
367
        weld.Part1=part1
368
        weld.C0=c0
369
        weld.C1=c1
370
        return weld
371
end
372
TfwTimeStopped = false
373
function Damagefunc(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
374
        if hit.Parent==nil then
375
                return
376
        end
377
        h=hit.Parent:FindFirstChild("Humanoid")
378
        for _,v in pairs(hit.Parent:children()) do
379
                if v:IsA("Humanoid") then
380
                        h=v
381
                end
382
        end
383
        if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
384
                h=hit.Parent.Parent:FindFirstChild("Humanoid")
385
        end
386
        if hit.Parent.className=="Hat" then
387
                hit=hit.Parent.Parent:findFirstChild("Head")
388
        end
389
        if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
390
                if hit.Parent:findFirstChild("DebounceHit")~=nil then
391
                        if hit.Parent.DebounceHit.Value==true then
392
                                return
393
                        end
394
                end
395
                --[[if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
396
                        return
397
                end]]
398
                --hs(hit,1.2)
399
                c=Instance.new("ObjectValue")
400
                c.Name="creator"
401
                c.Value=game:service("Players").LocalPlayer
402
                c.Parent=h
403
                game:GetService("Debris"):AddItem(c,.5)
404
                Damage=math.random(minim,maxim)
405
                --h:TakeDamage(Damage)
406
                blocked=false
407
                block=hit.Parent:findFirstChild("Block")
408
                if block~=nil then
409
                        print(block.className)
410
                        if block.className=="NumberValue" then
411
                                if block.Value>0 then
412
                                        blocked=true
413
                                        if decreaseblock==nil then
414
                                                block.Value=block.Value-1
415
                                        end
416
                                end
417
                        end
418
                        if block.className=="IntValue" then
419
                                if block.Value>0 then
420
                                        blocked=true
421
                                        if decreaseblock~=nil then
422
                                                block.Value=block.Value-1
423
                                        end
424
                                end
425
                        end
426
                end
427
                if blocked==false then
428
                        --h:TakeDamage(Damage)
429
                        if TfwTimeStopped == false then
430
                            h.Health=h.Health-Damage
431
                            ShowDamage((hit.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "MUDA", 1.5, Part.BrickColor.Color)
432
                        elseif TfwTimeStopped == true then
433
                            repeat wait() until TfwTimeStopped == false
434
                            h.Health=h.Health-Damage
435
                            ShowDamage((hit.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
436
                        end
437
                else
438
                        h.Health=h.Health-(Damage/2)
439
                        ShowDamage((hit.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
440
                end
441
                if Type=="Knockdown" then
442
                        hum=hit.Parent.Humanoid
443
                        hum.PlatformStand=true
444
                        coroutine.resume(coroutine.create(function(HHumanoid)
445
                                swait(1)
446
                                HHumanoid.PlatformStand=false
447
                        end),hum)
448
                        local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
449
                        --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
450
                        local bodvol=Instance.new("BodyVelocity")
451
                        bodvol.velocity=angle*knockback
452
                        bodvol.P=500
453
                        bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
454
                        bodvol.Parent=hit
455
                        rl = Instance.new("BodyAngularVelocity")
456
                        rl.P = 3000
457
                        rl.maxTorque = Vector3.new(500000, 500000, 500000)
458
                        rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
459
                        rl.Parent = hit
460
                        game:GetService("Debris"):AddItem(bodvol,.5)
461
                        game:GetService("Debris"):AddItem(rl,.5)
462
                elseif Type=="MUDA" then
463
                        hum=hit.Parent.Humanoid
464
                        hum.PlatformStand=true
465
                        coroutine.resume(coroutine.create(function(HHumanoid)
466
                                swait(1)
467
                                HHumanoid.PlatformStand=false
468
                        end),hum)
469
                        local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
470
                        --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
471
                        local bodvol=Instance.new("BodyVelocity")
472
                        bodvol.velocity=angle*knockback
473
                        bodvol.P=500
474
                        bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
475
                        bodvol.Parent=hit
476
                        rl = Instance.new("BodyAngularVelocity")
477
                        rl.P = 3000
478
                        rl.maxTorque = Vector3.new(500000, 500000, 500000)
479
                        rl.angularvelocity = Vector3.new(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
480
                        rl.Parent = hit
481
                        game:GetService("Debris"):AddItem(bodvol,.5)
482
                        game:GetService("Debris"):AddItem(rl,.5)
483
                elseif Type == "Killer Queen" then
484
                        hum=hit.Parent.Humanoid
485
                        hum.PlatformStand=true
486
                        coroutine.resume(coroutine.create(function(HHumanoid)
487
                                swait(1)
488
                                HHumanoid.PlatformStand=false
489
                        end),hum)
490
                        local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
491
                        --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
492
                        local bodvol=Instance.new("BodyVelocity")
493
                        bodvol.velocity=angle*knockback
494
                        bodvol.P=500
495
                        bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
496
                        bodvol.Parent=hit
497
                        rl = Instance.new("BodyAngularVelocity")
498
                        rl.P = 3000
499
                        rl.maxTorque = Vector3.new(500000, 500000, 500000)
500
                        rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
501
                        rl.Parent = hit
502
                        game:GetService("Debris"):AddItem(bodvol,.5)
503
                        game:GetService("Debris"):AddItem(rl,.5)
504
                        wait(3)
505
                        KillerQueen = Instance.new("Explosion",hit)
506
                        KillerQueen.Position = hit.Position
507
                elseif Type=="Normal" then
508
                        vp=Instance.new("BodyVelocity")
509
                        vp.P=500
510
                        vp.maxForce=Vector3.new(math.huge,0,math.huge)
511
                        --vp.velocity=Character.Torso.CFrame.lookVector*Knockback
512
                        if KnockbackType==1 then
513
                                vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
514
                        elseif KnockbackType==2 then
515
                                vp.velocity=Property.CFrame.lookVector*knockback
516
                        end
517
                        if knockback>0 then
518
                                vp.Parent=hit.Parent.Torso
519
                        end
520
                        game:GetService("Debris"):AddItem(vp,.5)
521
                elseif Type=="Up" then
522
                        local bodyVelocity=Instance.new("BodyVelocity")
523
                        bodyVelocity.velocity=vt(0,60,0)
524
                        bodyVelocity.P=5000
525
                        bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
526
                        bodyVelocity.Parent=hit
527
                        game:GetService("Debris"):AddItem(bodyVelocity,1)
528
                        rl=Instance.new("BodyAngularVelocity")
529
                        rl.P=3000
530
                        rl.maxTorque=Vector3.new(500000,500000,500000)
531
                        rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
532
                        rl.Parent=hit
533
                        game:GetService("Debris"):AddItem(rl,.5)
534
                elseif Type=="Snare" then
535
                        bp=Instance.new("BodyPosition")
536
                        bp.P=2000
537
                        bp.D=100
538
                        bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
539
                        bp.position=hit.Parent.Torso.Position
540
                        bp.Parent=hit.Parent.Torso
541
                        game:GetService("Debris"):AddItem(bp,1)
542
                elseif Type=="Target" then
543
                        local Targetting = false
544
                        if Targetting==false then
545
                                ZTarget=hit.Parent.Torso
546
                                coroutine.resume(coroutine.create(function(Part)
547
                                        so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
548
                                        swait(5)
549
                                        so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
550
                                end),ZTarget)
551
                                local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
552
                                local  targetgui=Instance.new("BillboardGui")
553
                                targetgui.Parent=ZTarget
554
                                targetgui.Size=UDim2.new(10,100,10,100)
555
                                local targ=Instance.new("ImageLabel")
556
                                targ.Parent=targetgui
557
                                targ.BackgroundTransparency=1
558
                                targ.Image="rbxassetid://4834067"
559
                                targ.Size=UDim2.new(1,0,1,0)
560
                                cam.CameraType="Scriptable"
561
                                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
562
                                local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
563
                                workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
564
                                Targetting=true
565
                                RocketTarget=ZTarget
566
                                for i=1,Property do
567
                                        --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
568
                                        if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
569
                                                swait()
570
                                        end
571
                                        --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
572
                                        cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
573
                                        dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
574
                                        cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
575
                                end
576
                                Targetting=false
577
                                RocketTarget=nil
578
                                targetgui.Parent=nil
579
                                cam.CameraType="Custom"
580
                        end
581
                end
582
                local debounce=Instance.new("BoolValue")
583
                debounce.Name="DebounceHit"
584
                debounce.Parent=hit.Parent
585
                debounce.Value=true
586
                game:GetService("Debris"):AddItem(debounce,Delay)
587
                c=Instance.new("ObjectValue")
588
                c.Name="creator"
589
                c.Value=Player
590
                c.Parent=h
591
                game:GetService("Debris"):AddItem(c,.5)
592
        end
593
end
594
595
function ShowDamage(Pos, Text, Time, Color)
596
        local Rate = (1 / 30)
597
        local Pos = (Pos or Vector3.new(0, 0, 0))
598
        local Text = (Text or "")
599
        local Time = (Time or 2)
600
        local Color = (Color or Color3.new(1, 0, 0))
601
        local EffectPart = part("Custom",workspace,"Neon",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
602
        EffectPart.Anchored = true
603
        local BillboardGui = Instance.new("BillboardGui")
604
        BillboardGui.Size = UDim2.new(3, 3, 3, 3)
605
        BillboardGui.Adornee = EffectPart
606
        local TextLabel = Instance.new("TextLabel")
607
        TextLabel.BackgroundTransparency = 1
608
        TextLabel.Size = UDim2.new(3, 3, 3, 3)
609
        TextLabel.Text = Text
610
        TextLabel.TextColor3 = Color
611
        TextLabel.TextStrokeColor3 = BrickColor.new("Really black").Color
612
        TextLabel.TextScaled = true
613
        TextLabel.TextStrokeTransparency = 0
614
        TextLabel.Font = Enum.Font.SourceSansBold
615
        TextLabel.Parent = BillboardGui
616
        BillboardGui.Parent = EffectPart
617
        game.Debris:AddItem(EffectPart, (Time + 0.1))
618
        EffectPart.Parent = game:GetService("Workspace")
619
        Delay(0, function()
620
                local Frames = (Time / Rate)
621
                for Frame = 1, Frames do
622
                        wait(Rate)
623
                        local Percent = (Frame / Frames)
624
                        EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
625
                        TextLabel.TextTransparency = Percent
626
                        TextLabel.TextStrokeTransparency = Percent
627
                end
628
                if EffectPart and EffectPart.Parent then
629
                        EffectPart:Destroy()
630
                end
631
        end)
632
end
633
634
--[[local Player = game:service("Players").LocalPlayer
635
repeat wait() until Player.Character ~= nil
636
637
local Char = Player.Character
638
local mouse = Player:GetMouse()
639
local Backpack = Player.Backpack
640
local PlayerGui = Player.PlayerGui
641
local Camera = workspace.CurrentCamera
642
local Humanoid = Char:findFirstChild("Humanoid")
643
local Torso = Char:findFirstChild("Torso")
644
local Head = Char:findFirstChild("Head")
645
local ra = Char:findFirstChild("Right Arm")
646
local la = Char:findFirstChild("Left Arm")
647
local rl = Char:findFirstChild("Right Leg")
648
local ll = Char:findFirstChild("Left Leg")
649
local rs = Torso:findFirstChild("Right Shoulder")
650
local ls = Torso:findFirstChild("Left Shoulder")
651
local rh = Torso:findFirstChild("Right Hip")
652
local lh = Torso:findFirstChild("Left Hip")
653
local neck = Torso:findFirstChild("Neck")
654
local rootpart = Char:findFirstChild("HumanoidRootPart")
655
local rj = rootpart:findFirstChild("RootJoint")
656
local anim = Char:findFirstChild("Animate")
657
local RunService = game:GetService("RunService")
658
local UIA = game:GetService("UserInputService")
659
local CF = CFrame.new
660
local CA = CFrame.Angles
661
local FEA = CFrame.fromEulerAnglesXYZ
662
local FAA = CFrame.fromAxisAngle
663
local V3 = Vector3.new
664
local CN = Color3.new
665
local Ice = Instance.new
666
local BC = BrickColor.new
667
local UD2 = UDim2.new
668
local C3 = Color3.new
669
local MR = math.rad
670
local MP = math.pi
671
local MD = math.deg
672
local MH = math.huge
673
local MS = math.sin
674
local MC = math.cos
675
local MT = math.tan
676
local MAS = math.asin
677
local MAC = math.acos
678
local MAT = math.atan
679
local components = CF().components
680
681
local State = {}
682
State["Calm"] = "Active"
683
684
function Tweenz(a,b,i)
685
return a:lerp(b,i)
686
end
687
688
function Create(Instanc,prop)
689
local p=Instance.new(Instanc)
690
for i,v in pairs(prop) do
691
p[i]=v
692
end
693
return p
694
end
695
696
local c0 = {
697
RightArm = CF(1.5,0.5,0),
698
LeftArm = CF(-1.5,0.5,0),
699
RightLeg = CF(0.5,-1,0),
700
LeftLeg = CF(-0.5,-1,0),
701
RootJoint = CF(0,0,0),
702
Neck = CF(0,1,0)
703
}
704
local c1 = {
705
RightArm = CF(0,0.5,0),
706
LeftArm = CF(0,0.5,0),
707
RightLeg = CF(0,1,0),
708
LeftLeg = CF(0,1,0),
709
RootJoint = CF(0,0,0),
710
Neck = CF(0,-0.5,0)
711
}
712
713
714
--RightArm = Create("Snap",{Parent=Torso,C0=c0.RightArm,C1=c1.RightArm,Part0=Torso,Part1=ra})
715
--LeftArm = Create("Snap",{Parent=Torso,C0=c0.LeftArm,C1=c1.LeftArm,Part0=Torso,Part1=la})
716
RightLeg = Create("Snap",{Parent=Torso,C0=c0.RightLeg,C1=c1.RightLeg,Part0=Torso,Part1=rl})
717
LeftLeg = Create("Snap",{Parent=Torso,C0=c0.LeftLeg,C1=c1.LeftLeg,Part0=Torso,Part1=ll})
718
719
neck.C0 = c0.Neck
720
neck.C1 = c1.Neck
721
722
local Spread = 12
723
local Smooth = 1
724
725
local angle = tick()
726
game:GetService("RunService").Stepped:connect(function()
727
local lefth = (Torso.CFrame*c0.LeftLeg)
728
local righth = (Torso.CFrame*c0.RightLeg)
729
angle = angle+0.2*Smooth
730
local speed = V3(Torso.Velocity.X,0,Torso.Velocity.Z)
731
local TiltOnAxis = (rootpart.CFrame-rootpart.CFrame.p):inverse()*speed/100
732
rj.C0 = Tweenz(rj.C0,CFrame.Angles(MR(-90)+TiltOnAxis.Z,TiltOnAxis.X,MR(180)+-TiltOnAxis.X),.1)
733
--[[local offset = CFrame.new(0,5,0)
734
rj.C0 = CF(V3(),(mouse.hit.p-rootpart.CFrame.p).unit*100)*CFrame.Angles(MR(-90),0,MR(180))
735
local h = (rootpart.CFrame*offset).p
736
local d = CFrame.new(h,mouse.Hit.p)
737
local e = rootpart.CFrame*CFrame.new(h)
738
neck.C0 = ((d-d.p):inverse()*(e-e.p)):inverse()*CFrame.new(0,1,0)]]
739
--[[local AnglePR = (righth-righth.p):inverse()*speed/100
740
local AnglePL = (lefth-lefth.p):inverse()*speed/100
741
if speed.magnitude < 2 then
742
--RightArm.C0 = Tweenz(RightArm.C0,c0.RightArm*CFrame.Angles(0,0,0),.1)
743
--LeftArm.C0 = Tweenz(LeftArm.C0,c0.LeftArm*CFrame.Angles(0,0,0),.1)
744
elseif speed.magnitude > 2 then
745
RightLeg.C0 = Tweenz(RightLeg.C0,CF(0.5,-1+math.cos(angle)*.5,-0.2+-math.sin(angle)*.1)*CFrame.Angles(math.sin(angle)*Spread*-AnglePR.Z,AnglePR.X,math.sin(angle)*Spread*AnglePR.X),.1)
746
LeftLeg.C0 = Tweenz(LeftLeg.C0,CF(-0.5,-1+-math.cos(angle)*.5,-0.2+math.sin(angle)*.1)*CFrame.Angles(math.sin(angle)*Spread*AnglePL.Z,AnglePL.X,math.sin(angle)*Spread*-AnglePL.X),.1)
747
--RightArm.C0 = Tweenz(RightArm.C0,c0.RightArm*CFrame.Angles(math.sin(angle)*Spread*AnglePL.Z,0,0),.1)
748
--LeftArm.C0 = Tweenz(LeftArm.C0,c0.LeftArm*CFrame.Angles(-math.sin(angle)*Spread*AnglePL.Z,0,0),.1)
749
end
750
end)
751
]]--
752
Player = p
753
workspace[Player.Name].Archivable=true
754
pchar = workspace[Player.Name]:Clone() --Create("Model",{Parent=workspace})
755
pchar.Parent=char
756
torso=pchar.Torso
757
humane=pchar.Humanoid
758
pchar.Name= "Za Warudo"
759
pl=pchar
760
humane.MaxHealth=Health
761
wait()
762
humane.Health=Health
763
humane.WalkSpeed=Speed
764
765
---Weld
766
767
local law=nwWld(tor,lam,Cn(-1.5,0.5,0))
768
law.C1=CFrame.new(0,0.5,0)
769
local raw=nwWld(tor,ram,Cn(1.5,0.5,0))
770
raw.C1=CFrame.new(0,0.5,0)
771
local hew=nwWld(tor,hed,Cn(0,1.5,0))
772
local llw=nwWld(tor,llg,Cn(-0.5,-1,0))
773
llw.C1=CFrame.new(0,1,0)
774
local rlw=nwWld(tor,rlg,Cn(0.5,-1,0))
775
rlw.C1=CFrame.new(0,1,0)
776
local tow=nwWld(hrp,tor,Cn(0,-1,0))
777
tow.C1=CFrame.new(0,-1,0)
778
779
local hrp2 = pchar.HumanoidRootPart
780
local tor2 = pchar.Torso
781
local hed2 = pchar.Head
782
local lam2=pchar["Left Arm"]
783
local ram2=pchar["Right Arm"]
784
local llg2=pchar["Left Leg"]
785
local rlg2=pchar["Right Leg"]
786
787
local law2=nwWld(tor2,lam2,Cn(-1.5,0.5,0))
788
law2.C1=CFrame.new(0,0.5,0)
789
local raw2=nwWld(tor2,ram2,Cn(1.5,0.5,0))
790
raw2.C1=CFrame.new(0,0.5,0)
791
local hew2=nwWld(tor2,hed2,Cn(0,1.5,0))
792
local llw2=nwWld(tor2,llg2,Cn(-0.5,-1,0))
793
llw2.C1=CFrame.new(0,1,0)
794
local rlw2=nwWld(tor2,rlg2,Cn(0.5,-1,0))
795
rlw2.C1=CFrame.new(0,1,0)
796
local tow2=nwWld(hrp2,tor2,Cn(0,-1,0))
797
tow2.C1=CFrame.new(0,-1,0)
798
799
800
local laD=CFrame.new(-1.5,0.5,0)
801
local raD=CFrame.new(1.5,0.5,0)
802
local hD=CFrame.new(0,1.5,0)
803
local tD=CFrame.new(0,-1,0)
804
local llD=CFrame.new(-0.5,-1,0)
805
local rlD=CFrame.new(0.5,-1,0)
806
807
---Build
808
809
---Animations
810
811
--Idle
812
local heid=newAnim(hew)
813
newKF(heid,hD*CA(mr(-15.5),0,0),50,0.3)
814
newKF(heid,hD*CA(mr(-14),0,0),40,0.3)
815
local toid=newAnim(tow)
816
newKF(toid,tD*Cn(0,-0.0125,0)*CA(mr(16),0,0),50,0.3)
817
newKF(toid,tD*Cn(0,0.0125,0)*CA(mr(15),0,0),40,0.3)
818
local laid=newAnim(law)
819
newKF(laid,laD*Cn(1,0.0125,-0.764)*CA(mr(80),0,mr(85)),50,0.3)
820
newKF(laid,laD*Cn(1,-0.0125,-0.764)*CA(mr(70),0,mr(85)),40,0.3)
821
local raid=newAnim(raw)
822
newKF(raid,raD*Cn(-1,-0.0125,-0.764)*CA(mr(80),0,mr(-85)),50,0.3)
823
newKF(raid,raD*Cn(-1,0.0125,-0.764)*CA(mr(70),0,mr(-85)),40,0.3)
824
local llid=newAnim(llw)
825
newKF(llid,llD*Cn(0,0.0125,0)*CA(mr(-16),0,0),50,0.3)
826
newKF(llid,llD*Cn(0,-0.0125,0)*CA(mr(-15),0,mr(0)),40,0.3)
827
local rlid=newAnim(rlw)
828
newKF(rlid,rlD*Cn(0,0.0125,0)*CA(mr(-16),0,0),50,0.3)
829
newKF(rlid,rlD*Cn(0,-0.0125,0)*CA(mr(-15),0,mr(0)),40,0.3)
830
831
local heid2=newAnim(hew2)
832
newKF(heid2,hD*CA(mr(16),0,0),40,0.3)
833
newKF(heid2,hD*CA(mr(14),0,0),40,0.3)
834
local toid2=newAnim(tow2)
835
newKF(toid2,tD*Cn(0,0.5,3)*CA(mr(0),0,0),50,1)
836
newKF(toid2,tD*Cn(0,1,3)*CA(mr(0),0,0),40,1)
837
local laid2=newAnim(law2)
838
newKF(laid2,laD*Cn(0.5,0.0125,-1)*CA(mr(20),mr(50),mr(20)),50,0.3)
839
newKF(laid2,laD*Cn(0.5,-0.0125,-1)*CA(mr(20),mr(50),mr(20)),40,0.3)
840
local raid2=newAnim(raw2)
841
newKF(raid2,raD*Cn(-0.5,-0.0125,-1)*CA(mr(20),mr(-50),mr(-20)),50,0.3)
842
newKF(raid2,raD*Cn(-0.5,0.0125,-1)*CA(mr(20),mr(-50),mr(-20)),40,0.3)
843
local llid2=newAnim(llw2)
844
newKF(llid2,llD*Cn(0,0.0125,0)*CA(mr(0),0,0),50,0.3)
845
newKF(llid2,llD*Cn(0,-0.0125,0)*CA(mr(0),0,mr(0)),40,0.3)
846
local rlid2=newAnim(rlw2)
847
newKF(rlid2,rlD*Cn(0,0.0125,0)*CA(mr(0),0,0),50,0.3)
848
newKF(rlid2,rlD*Cn(0,-0.0125,0)*CA(mr(0),0,mr(0)),40,0.3)
849
850
--Walk
851
local hewk=newAnim(hew)
852
newKF(hewk,hD*CA(mr(-15.5),0,0),12,0.4)
853
newKF(hewk,hD*CA(mr(-15),mr(-3),0),13,0.4)
854
newKF(hewk,hD*CA(mr(-15.5),0,0),12,0.4)
855
newKF(hewk,hD*CA(mr(-15),mr(3),0),13,0.4)
856
local towk=newAnim(tow)
857
newKF(towk,tD*Cn(0,0.1,0)*CA(mr(15),0,0),12,0.2)
858
newKF(towk,tD*CA(mr(15),mr(5),0),13,0.4)
859
newKF(towk,tD*Cn(0,0.1,0)*CA(mr(15),0,0),12,0.2)
860
newKF(towk,tD*CA(mr(15),mr(-5),0),13,0.4)
861
local lawk=newAnim(law)
862
newKF(lawk,laD*CA(mr(30),0,0),25,0.4)
863
newKF(lawk,laD*CA(mr(-30),0,0),25,0.4)
864
local rawk=newAnim(raw)
865
newKF(rawk,raD*CA(mr(-30),0,0),25,0.4)
866
newKF(rawk,raD*CA(mr(30),0,0),25,0.4)
867
local llwk=newAnim(llw)
868
newKF(llwk,llD*CA(mr(-40),mr(-10),mr(-2)),25,0.4)
869
newKF(llwk,llD*Cn(0,0.3,0)*CA(mr(-5),0,mr(-3)),12,0.4)
870
newKF(llwk,llD*Cn(0,-0.2,-0.25)*CA(mr(40),mr(10),mr(-3)),13,0.4)
871
local rlwk=newAnim(rlw)
872
newKF(rlwk,rlD*Cn(0,0.3,0)*CA(mr(-5),0,mr(3)),12,0.4)
873
newKF(rlwk,rlD*Cn(0,-0.2,-0.25)*CA(mr(40),mr(-10),mr(3)),13,0.4)
874
newKF(rlwk,rlD*CA(mr(-40),mr(10),mr(2)),25,0.4)
875
876
--Sprint
877
local hesp=newAnim(hew)
878
newKF(hesp,hD*CA(mr(5),mr(-10),0),10,0.2)
879
newKF(hesp,hD*CA(mr(10),0,0),10,0.2)
880
newKF(hesp,hD*CA(mr(5),mr(10),0),10,0.2)
881
newKF(hesp,hD*CA(mr(10),0,0),10,0.2)
882
local tosp=newAnim(tow)
883
newKF(tosp,tD*Cn(0,0.1,0)*CA(mr(-5),mr(10),0),10,0.4)
884
newKF(tosp,tD*CA(mr(-10),0,0),10,0.4)
885
newKF(tosp,tD*Cn(0,0.1,0)*CA(mr(-5),mr(-10),0),10,0.4)
886
newKF(tosp,tD*CA(mr(-10),0,0),10,0.4)
887
local lasp=newAnim(law)
888
newKF(lasp,laD*Cn(0,-0.1,-0.2)*CA(mr(60),0,0),20,0.4)
889
newKF(lasp,laD*CA(mr(-40),0,0),20,0.4)
890
local rasp=newAnim(raw)
891
newKF(rasp,raD*CA(mr(-40),0,0),20,0.4)
892
newKF(rasp,raD*Cn(0,-0.1,-0.2)*CA(mr(60),0,0),20,0.4)
893
local llsp=newAnim(llw)
894
newKF(llsp,llD*CA(mr(-50),mr(-10),mr(-2)),20,0.4)
895
newKF(llsp,llD*Cn(0,0.5,0)*CA(mr(15),0,mr(-3)),10,0.4)
896
newKF(llsp,llD*Cn(0,-0.4,-0.25)*CA(mr(70),mr(10),mr(-3)),10,0.4)
897
local rlsp=newAnim(rlw)
898
newKF(rlsp,rlD*Cn(0,0.3,0)*CA(mr(15),0,mr(3)),10,0.4)
899
newKF(rlsp,rlD*Cn(0,-0.4,-0.25)*CA(mr(70),mr(-10),mr(3)),10,0.4)
900
newKF(rlsp,rlD*CA(mr(-50),mr(10),mr(2)),20,0.4)
901
902
--Freefall
903
local heff=newAnim(hew)
904
newKF(heff,hD*CA(mr(-5),0,0),8,0.6)
905
newKF(heff,hD*CA(mr(-5),0,0),8,0.6)
906
local toff=newAnim(tow)
907
newKF(toff,tD*CA(mr(10),0,0),8,0.6)
908
newKF(toff,tD*CA(mr(10),0,0),8,0.6)
909
local laff=newAnim(law)
910
newKF(laff,laD*CA(mr(140),0,0),16,0.4)
911
newKF(laff,laD*CA(mr(140),0,0),16,0.4)
912
local raff=newAnim(raw)
913
newKF(raff,raD*CA(mr(140),0,0),16,0.4)
914
newKF(raff,raD*CA(mr(140),0,0),16,0.4)
915
local llff=newAnim(llw)
916
newKF(llff,llD*CA(0,0,mr(-5)),16,0.4)
917
newKF(llff,llD*CA(0,0,mr(-5)),16,0.4)
918
local rlff=newAnim(rlw)
919
newKF(rlff,rlD*CA(0,0,mr(5)),16,0.4)
920
newKF(rlff,rlD*CA(0,0,mr(5)),16,0.4)
921
922
--Jump
923
local hejp=newAnim(hew)
924
newKF(hejp,hD*CA(mr(5),0,0),8,0.6)
925
newKF(hejp,hD*CA(mr(5),0,0),8,0.6)
926
local tojp=newAnim(tow)
927
newKF(tojp,tD*CA(mr(-10),0,0),8,0.6)
928
newKF(tojp,tD*CA(mr(-10),0,0),8,0.6)
929
local lajp=newAnim(law)
930
newKF(lajp,laD*CA(mr(-20),0,0),16,0.4)
931
newKF(lajp,laD*CA(mr(-20),0,0),16,0.4)
932
local rajp=newAnim(raw)
933
newKF(rajp,raD*CA(mr(-20),0,0),16,0.4)
934
newKF(rajp,raD*CA(mr(-20),0,0),16,0.4)
935
local lljp=newAnim(llw)
936
newKF(lljp,llD*CA(0,0,mr(-5)),16,0.4)
937
newKF(lljp,llD*CA(0,0,mr(-5)),16,0.4)
938
local rljp=newAnim(rlw)
939
newKF(rljp,rlD*CA(0,0,mr(5)),16,0.4)
940
newKF(rljp,rlD*CA(0,0,mr(5)),16,0.4)
941
942
--Time Has Stopped
943
local hesp2=newAnim(hew)
944
newKF(hesp2,hD*CA(mr(-30),mr(0),mr(0)),10,0.5)
945
local tosp2=newAnim(tow)
946
newKF(tosp2,tD*Cn(0,0,0)*CA(mr(30),mr(0),mr(0)),10,0.5)
947
local lasp2=newAnim(law)
948
newKF(lasp2,laD*CA(mr(90),mr(0),mr(-60)),20,1.5)
949
local rasp2=newAnim(raw)
950
newKF(rasp2,raD*CA(mr(90),mr(0),mr(60)),20,1.5)
951
local llsp2=newAnim(llw)
952
newKF(llsp2,llD*Cn(0,0,0)*CA(mr(-30),mr(0),mr(0)),20,0.5)
953
local rlsp2=newAnim(rlw)
954
newKF(rlsp2,rlD*Cn(0,0,0)*CA(mr(-30),0,mr(0)),10,0.5)
955
956
local hesp3=newAnim(hew2)
957
newKF(hesp3,hD*CA(mr(-15),mr(0),mr(0)),50,0.2)
958
local tosp3=newAnim(tow2)
959
newKF(tosp3,tD*Cn(0,1,3)*CA(mr(0),mr(0),mr(0)),50,0.4)
960
local lasp3=newAnim(law2)
961
newKF(lasp3,laD*CA(mr(80),mr(0),mr(65)),30,0.4)
962
newKF(lasp3,laD*CA(mr(120),mr(0),mr(-60)),50,0.4)
963
local rasp3=newAnim(raw2)
964
newKF(rasp3,raD*CA(mr(80),mr(0),mr(-65)),30,0.4)
965
newKF(rasp3,raD*CA(mr(120),mr(0),mr(60)),50,0.4)
966
local llsp3=newAnim(llw2)
967
newKF(llsp3,llD*CA(mr(0),mr(0),mr(1.5)),50,0.4)
968
local rlsp3=newAnim(rlw2)
969
newKF(rlsp3,rlD*CA(mr(0),mr(0),mr(-1.5)),50,0.4)
970
971
local hesp4=newAnim(hew2)
972
newKF(hesp4,hD*CA(mr(-10),mr(0),mr(0)),10,0.2)
973
local tosp4=newAnim(tow2)
974
newKF(tosp4,tD*Cn(0,1,3)*CA(mr(0),mr(0),mr(0)),10,0.4)
975
local lasp4=newAnim(law2)
976
newKF(lasp4,laD*CA(mr(120),mr(0),mr(-60)),20,0.4)
977
local rasp4=newAnim(raw2)
978
newKF(rasp4,raD*CA(mr(120),mr(0),mr(60)),20,0.4)
979
local llsp4=newAnim(llw2)
980
newKF(llsp4,llD*CA(mr(0),mr(0),mr(1.5)),20,0.4)
981
local rlsp4=newAnim(rlw2)
982
newKF(rlsp4,rlD*CA(mr(0),mr(0),mr(-1.5)),10,0.4)
983
984
--Let time flow again
985
local hetoki=newAnim(hew)
986
newKF(hetoki,hD*CA(mr(0),mr(0),mr(0)),10,0.2)
987
local totoki=newAnim(tow)
988
newKF(totoki,tD*Cn(0,0,0)*CA(mr(0),mr(0),mr(0)),10,0.4)
989
local latoki=newAnim(law)
990
newKF(latoki,laD*Cn(0,-0.1,-0.2)*CA(mr(0),mr(0),mr(0)),20,0.4)
991
local ratoki=newAnim(raw)
992
newKF(ratoki,raD*CA(mr(0),mr(0),mr(0)),20,0.4)
993
local lltoki=newAnim(llw)
994
newKF(lltoki,llD*CA(mr(0),mr(0),mr(0)),20,0.4)
995
local rltoki=newAnim(rlw)
996
newKF(rltoki,rlD*Cn(0,0,0)*CA(mr(0),mr(0),mr(0)),10,0.4)
997
--//Example of Keyframe
998
--[[
999
local hesp2=newAnim(hew)
1000
newKF(hesp2,hD*CA(mr(0),mr(0),mr(0)),10,0.2)
1001
local tosp2=newAnim(tow)
1002
newKF(tosp2,tD*CA(mr(0),mr(0),mr(0)),10,0.4)
1003
local lasp2=newAnim(law)
1004
newKF(lasp2,laD*CA(mr(0),mr(0),mr(0)),20,0.4)
1005
local rasp2=newAnim(raw)
1006
newKF(rasp2,raD*CA(mr(0),mr(0),mr(0)),20,0.4)
1007
local llsp2=newAnim(llw)
1008
newKF(llsp2,llD*CA(mr(0),mr(0),mr(0)),20,0.4)
1009
local rlsp2=newAnim(rlw)
1010
newKF(rlsp2,rlD*CA(mr(0),mr(0),mr(0)),10,0.4)
1011
]]
1012
function onDamage(Part)
1013
    if Part:findFirstChild("Humanoid") == nil and Part:findFirstChild("BodyVelocity") ~= nil or Part:findFirstChild("Humanoid") == nil and Part:findFirstChild("RocketPropulsion") ~= nil then
1014
        Part.Anchored = true
1015
        if Part:findFirstChild("Mesh") ~= nil then
1016
            z = Part:findFirstChild("Mesh")
1017
            for i = 1,5 do
1018
                z.Scale = z.Scale + Vector3.new(1,1,1)
1019
                wait(0.05)
1020
            end
1021
        end
1022
    end
1023
end
1024
1025
function trappedTorsos:isTrapped(t)
1026
    for nildata, index in next,self do
1027
        if index==t then
1028
            return true
1029
        end
1030
    end
1031
    return false
1032
end
1033
1034
function trappedTorsos:Capture(hit)
1035
   if hit.Name ~= "Base" then
1036
    if not trappedTorsos:isTrapped(hit) and not hit:IsDescendantOf(char) then
1037
        table.insert(trappedTorsos, hit)
1038
        hit.Anchored = true --trapped!
1039
        --print'trapped!'
1040
    end
1041
   end
1042
end
1043
1044
function trappedTorsos:Release()
1045
    for i,v in next, self do
1046
        if type(v)=='userdata' then
1047
            if v:isA('BasePart') then
1048
                v.Anchored = false
1049
                self[i] = nil
1050
            end
1051
        end
1052
    end
1053
end
1054
1055
local stoppedParts = {}
1056
1057
1058
function getAllParts()
1059
    local rtn = {}
1060
    
1061
    local function recurse(object)
1062
        for q,e in next, object:children() do
1063
            if e:isA'BasePart' and e.Name ~= "HumanoidRootPart" then
1064
                table.insert(rtn, e)
1065
            end
1066
            recurse(e)
1067
        end
1068
    end
1069
1070
    recurse(workspace)
1071
    return rtn
1072
end
1073
1074
function stopParts(distance)
1075
    stoppedParts = {}
1076
    for nada, part in next, getAllParts() do
1077
        local dist = (tor.Position-part.Position).magnitude 
1078
        if dist <= distance and part.Name ~='Base' and part.Name ~= 'Baseplate' and not part:isDescendantOf(tor.Parent) and part.Anchored ~= true then
1079
            table.insert(stoppedParts, part)
1080
            if part.Parent:FindFirstChild("Humanoid") then
1081
                part.Parent:FindFirstChild("Humanoid").PlatformStand = false
1082
            end
1083
            if part.Anchored ~= true then
1084
                part.Anchored = true
1085
            end
1086
        end
1087
    end
1088
end
1089
1090
1091
function freeParts()
1092
    for q,e in next, stoppedParts do
1093
        stoppedParts[q] = nil
1094
        e.Anchored = false
1095
    end
1096
end
1097
1098
function newPart(prnt, pn, sx, sy, sz, px, py, pz, col)
1099
local prt = Instance.new("Part", prnt)
1100
prt.Anchored = false
1101
prt:BreakJoints()
1102
prt.BottomSurface = 0
1103
if col == "Negative" then
1104
    prt.Color = Color3.new(-255,-255,-255)
1105
else
1106
    prt.BrickColor = BrickColor.new(col)
1107
end
1108
prt.CanCollide = false
1109
prt.FormFactor = 3
1110
prt.Material = "Neon"
1111
prt.Name = pn
1112
prt.Position = Vector3.new(px, py, pz)
1113
prt.Size = Vector3.new(sx, sy, sz)
1114
prt.TopSurface = 0
1115
m = Instance.new("SpecialMesh", prt)
1116
m.MeshType = 6
1117
return prt
1118
end
1119
1120
function scaleTween(strt, fnsh, tim)
1121
local com1 = {strt.X, strt.Y, strt.Z}
1122
local com2 = {fnsh.X, fnsh.Y, fnsh.Z}
1123
for i, v in pairs(com1) do
1124
com1[i] = v + (com2[i] - v) * tim
1125
end
1126
return Vector3.new(com1[1], com1[2], com1[3])
1127
end
1128
1129
newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
1130
wld = Instance.new("Weld", wp1)
1131
wld.Part0 = wp0
1132
wld.Part1 = wp1
1133
wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
1134
return wld
1135
end
1136
1137
local newSound = function(par, id, pitch, volume, lifetime)
1138
    local s = Instance.new('Sound')
1139
    s.Parent = par
1140
    s.SoundId = id
1141
    s.Pitch = pitch
1142
    s.Volume = volume
1143
    s.Looped = false
1144
    s.PlayOnRemove = false
1145
    game.Debris:AddItem(s, lifetime or 6)
1146
    wait()
1147
    s:play()
1148
    return s
1149
end
1150
local knives = {}
1151
local throwKnife = function()
1152
    if p.Character and p.Character.Torso then
1153
        local p = Instance.new('Part')
1154
        p.Parent = workspace
1155
        p.Anchored = false
1156
        p.CanCollide = false
1157
        p.CFrame = CFrame.new(tor.CFrame.p, mouse.Hit.p) * CFrame.new(0, 0, -3)
1158
        p.Size = Vector3.new(0.5, 0.4, 2.8)
1159
        local m = Instance.new('SpecialMesh')
1160
        m.Parent = p
1161
        m.Scale = Vector3.new(1, 1, 1)
1162
        m.MeshId = 'rbxassetid://202083123'
1163
        m.TextureId = 'rbxassetid://202083162'
1164
        local bv = Instance.new('BodyVelocity')
1165
        bv.Parent = p
1166
        bv.Velocity = p.CFrame.lookVector * 120
1167
        bv.maxForce = Vector3.new(math.huge, math.huge, math.huge)
1168
        hitcon = p.Touched:connect(function(hit)
1169
            pcall(function()
1170
                local hitsounds = {153092292, 153092296, 153092274}
1171
                newSound(hit, 'rbxassetid://'..tostring(hitsounds[math.random(#hitsounds)]), 1, 1)
1172
                p:destroy()
1173
                hitcon:disconnect()
1174
                Damagefunc(torso,hit,10,13,math.random(0,0),"Normal",RootPart,.2,1)
1175
            end)
1176
        end)
1177
        table.insert(knives, p)
1178
        if TimeStopped == true then
1179
            p.Anchored = true
1180
        end
1181
    end
1182
end
1183
anchored = {}
1184
recurses2 = function(n)
1185
    for i, v in pairs(n:GetChildren()) do
1186
        if v:isA'BasePart' and v:IsDescendantOf(char) and v.Name ~= 'HumanoidRootPart' then
1187
            v.Anchored = false
1188
        end
1189
        recurses2(v)
1190
    end
1191
end
1192
1193
--Za Warudo
1194
Attacking = false
1195
WasOn = true
1196-
local effect = Instance.new('ColorCorrectionEffect')
1196+
1197
    if Mode == "Time Stop" then
1198
        noRig = true
1199
        Attacking = true
1200
        if WasOn == true and StandOn == false then
1201
            StandOn = true
1202
            WasOn = false
1203
        end
1204
        hum.WalkSpeed = 0
1205
        for i = 1,30 do
1206
            runKF(hesp2)
1207
            runKF(tosp2)
1208
            runKF(lasp2)
1209
            runKF(rasp2)
1210
            runKF(llsp2)
1211
            runKF(rlsp2)
1212
            runKF(hesp3)
1213
            runKF(tosp3)
1214
            runKF(lasp3)
1215
            runKF(rasp3)
1216
            runKF(llsp3)
1217
            runKF(rlsp3)
1218
            wait()
1219
        end
1220
        wait()
1221
        local ZAWARUDO = Instance.new("Sound",tor)
1222
        ZAWARUDO.SoundId = "rbxassetid://290807377"
1223
        ZAWARUDO.Volume = 0.5
1224
        ZAWARUDO.Looped = false
1225
        ZAWARUDO:Play()
1226
        local TimeStop = Instance.new("Sound",tor)
1227
        TimeStop.SoundId = "rbxassetid://520743795"
1228
        TimeStop.Looped = false
1229
        TimeStop.Volume = 1
1230
        local chrg = newPart(char, "Charge", 1, 1, 1, 30, 10, 30, "Negative")
1231
        chrg.Mesh.MeshType = 3
1232
        chrg.Mesh.Scale = Vector3.new(0.1, 0.1, 0.1)
1233
        chrg.Transparency = 0.2
1234
        local chrw = newWeld(tor, chrg, 0, 0, 0)   
1235
        
1236
        for i = 1,10 do
1237
            chrg.Mesh.Scale = scaleTween(chrg.Mesh.Scale, Vector3.new(99, 99, 99), 0.02)
1238
            runKF(hesp4)
1239
            runKF(tosp4)
1240
            runKF(lasp4)
1241
            runKF(rasp4)
1242
            runKF(llsp4)
1243
            runKF(rlsp4)
1244
            wait()
1245
        end
1246
        wait(1.3)
1247
        TimeStop:Play()
1248
        effect.Parent = game.Lighting
1249
1250
        for i = 1,50 do
1251
            effect.Saturation = -(i/20)
1252
            if i <= 20 then
1253
                --effect.Contrast = -(i/10)
1254
            end
1255
            chrg.Mesh.Scale = scaleTween(chrg.Mesh.Scale, Vector3.new(99, 99, 99), 0.2)
1256
            wait(1/30)
1257
        end
1258
        stopParts(5555)
1259
        for i = 1,10 do
1260
            chrg.Mesh.Scale = scaleTween(chrg.Mesh.Scale, Vector3.new(40, 40, 40), 0.2)
1261
            chrg.Mesh.Scale = scaleTween(chrg.Mesh.Scale, Vector3.new(10, 10, 10), 0.2)
1262
            wait()
1263
        end
1264
        chrg:Destroy()
1265
        local TimeHasStopped = Instance.new("Sound",tor)
1266
        TimeHasStopped.SoundId = "rbxassetid://290807397"
1267
        TimeHasStopped.Looped = false
1268
        TimeHasStopped.Volume = 0.5
1269
        wait(1.3)
1270
        TimeHasStopped:Play()
1271
        workspace.Gravity = 70
1272
        for i,v in pairs(char:children()) do
1273
            if v:IsA("Part") then
1274
                v.Anchored = false
1275
            end
1276
            if v:IsA("Hat") then
1277
                v.Handle.Anchored = false
1278
            end
1279
        end
1280
        for i,v in pairs(pchar:children()) do
1281
            if v:IsA("Part") then
1282
                v.Anchored = false
1283
            end
1284
            if v:IsA("Hat") then
1285
                v.Handle.Anchored = false
1286
            end
1287
        end
1288
        if WasOn == false then
1289
            StandOn = false
1290
            WasOn = true
1291
        end
1292
        hum.WalkSpeed = 16
1293
        noRig = false
1294
        Attacking = false
1295
     end
1296
     if Mode == "World Time Stop" then
1297
        noRig = true
1298
        Attacking = true
1299
        if WasOn == true and StandOn == false then
1300
            StandOn = true
1301
            WasOn = false
1302
        end
1303
        hum.WalkSpeed = 0
1304
        for i = 1,30 do
1305
            runKF(hesp2)
1306
            runKF(tosp2)
1307
            runKF(lasp2)
1308
            runKF(rasp2)
1309
            runKF(llsp2)
1310
            runKF(rlsp2)
1311
            runKF(hesp3)
1312
            runKF(tosp3)
1313
            runKF(lasp3)
1314
            runKF(rasp3)
1315
            runKF(llsp3)
1316
            runKF(rlsp3)
1317
            wait()
1318
        end
1319
        wait()
1320
        local ZAWARUDO = Instance.new("Sound",char)
1321
        ZAWARUDO.SoundId = "rbxassetid://304787933"
1322
        ZAWARUDO.Volume = 1
1323
        ZAWARUDO.Looped = false
1324
        ZAWARUDO:Play()
1325
        local TimeStop = Instance.new("Sound",char)
1326
        TimeStop.SoundId = "rbxassetid://520743795"
1327
        TimeStop.Looped = false
1328
        TimeStop.Volume = 1
1329
        local chrg = newPart(char, "Charge", 1, 1, 1, 30, 10, 30, "Negative")
1330
        chrg.Mesh.MeshType = 3
1331
        chrg.Mesh.Scale = Vector3.new(0.1, 0.1, 0.1)
1332
        chrg.Transparency = 0.5
1333
        local chrw = newWeld(tor, chrg, 0, 0, 0)
1334
        effect.Parent = game.Lighting
1335
1336
        for i = 1,10 do
1337
            chrg.Mesh.Scale = scaleTween(chrg.Mesh.Scale, Vector3.new(99, 99, 99), 0.02)
1338
            runKF(hesp4)
1339
            runKF(tosp4)
1340
            runKF(lasp4)
1341
            runKF(rasp4)
1342
            runKF(llsp4)
1343
            runKF(rlsp4)
1344
            wait()
1345
        end
1346
        --TimeStop:Play()
1347
        wait(1.5)
1348
        for i = 1,50 do
1349
            effect.Saturation = -(i/10)
1350
            if i <= 20 then
1351
                --effect.Contrast = -(i/10)
1352
            end
1353
            chrg.Mesh.Scale = scaleTween(chrg.Mesh.Scale, Vector3.new(99, 99, 99), 0.2)
1354
            chrg.Transparency = chrg.Transparency + 0.114
1355
            wait(1/50)
1356
        end
1357
        stopParts(5555)
1358
        chrg:Destroy()
1359
        workspace.Gravity = 70
1360
        for i,v in pairs(char:children()) do
1361
            if v:IsA("Part") then
1362
                v.Anchored = false
1363
            end
1364
            if v:IsA("Hat") then
1365
                v.Handle.Anchored = false
1366
            end
1367
        end
1368
        for i,v in pairs(pchar:children()) do
1369
            if v:IsA("Part") then
1370
                v.Anchored = false
1371
            end
1372
            if v:IsA("Hat") then
1373
                v.Handle.Anchored = false
1374
            end
1375
        end
1376
        if WasOn == false then
1377
            StandOn = false
1378
            WasOn = true
1379
        end
1380
        hum.WalkSpeed = 16
1381
        noRig = false
1382
        Attacking = false
1383
     end
1384
     if Mode == "Time Start" then
1385
        local Toki = Instance.new("Sound",tor)
1386
        Toki.SoundId = "rbxassetid://290810519"
1387
        Toki.Volume = 0.5
1388
        Toki.Looped = false
1389
        Toki:Play()
1390
        local chrg = newPart(char, "Charge", 1, 1, 1, 30, 10, 30, "Negative")
1391
        chrg.Mesh.MeshType = 3
1392
        chrg.Mesh.Scale = Vector3.new(0.1, 0.1, 0.1)
1393
        chrg.Transparency = 0
1394
        local chrw = newWeld(tor, chrg, 0, 0, 0)
1395
        for i = 1,50 do
1396
            if effect.Saturation <= 0 then
1397
                effect.Saturation = effect.Saturation + i/50
1398
            end
1399
            chrg.Mesh.Scale = scaleTween(chrg.Mesh.Scale, Vector3.new(99, 99, 99), 0.2)
1400
            chrg.Transparency = chrg.Transparency + 0.114
1401
            wait(1/30)
1402
        end
1403
        freeParts()
1404
        chrg:Destroy()
1405
        effect.Saturation = 0
1406
        effect.Contrast = 0
1407
        effect.Parent = nil
1408
        TfwTimeStopped = false
1409
        TimeStopped = false
1410
        workspace.Gravity = 196.2
1411
    end
1412
    if Mode == "Wry" then
1413
        local WWRRRYYYYY = Instance.new("Sound",tor)
1414
        WWRRRYYYYY.SoundId = "rbxassetid://499932933"
1415
        WWRRRYYYYY.Volume = 1
1416
        WWRRRYYYYY.Looped = false
1417
        WWRRRYYYYY:Play()
1418
    end
1419
    if Mode == "Quick Stop" then
1420
        local TimeStop = Instance.new("Sound",char)
1421
        TimeStop.SoundId = "rbxassetid://520743795"
1422
        TimeStop.Looped = false
1423
        TimeStop.Volume = 1
1424
        TimeStop:Play()
1425
        effect.Parent = game.Lighting
1426
        for i = 1,50 do
1427
            effect.Saturation = -(i/10)
1428
            if i <= 20 then
1429
                --effect.Contrast = -(i/10)
1430
            end
1431
            wait()
1432
        end
1433
        stopParts(5555)
1434
    end
1435
end
1436
1437
Rapid = false
1438
TimeStopped = false
1439
OneSecond = false
1440
Cha = char
1441
Character = char
1442
it=Instance.new
1443
vt=Vector3.new
1444
cn=CFrame.new
1445
euler=CFrame.fromEulerAnglesXYZ
1446
angles=CFrame.Angles
1447
RootPart = hrp
1448
JoJo = Instance.new("ColorCorrectionEffect")
1449
mouse.KeyDown:connect(function(key)
1450
    if key == "[" and JoJoEffect == false then
1451
        JoJoEffect = true
1452
        JoJo.Parent = game.Lighting
1453
        for i = 1,50 do
1454
            JoJo.Saturation = -(i/20)
1455
        end
1456
    end
1457
    if key == "]" and JoJoEffect == true then
1458
        JoJoEffect = false
1459
        JoJo.Saturation = 0
1460
        JoJo.Parent = nil
1461
    end
1462
    if key == "y" and TimeStopped == false then
1463
        TimeStopped = true
1464
        TfwTimeStopped = true
1465
        TheWorld("Quick Stop")
1466
    end
1467
    if key == "q" then
1468
        if TimeStopped == false and Attacking == false then
1469
            TimeStopped = true
1470
            TfwTimeStopped = true
1471
            TheWorld("Time Stop")
1472
        elseif TimeStopped == true and Attacking == false then
1473
            TheWorld("Time Start")
1474
        end
1475
    end
1476
    if key == "p" and TimeStopped == false and Attacking == false then
1477
        TimeStopped = true
1478
        TfwTimeStopped = true
1479
        TheWorld("World Time Stop")
1480
    end
1481
    if key == "g" then
1482
        throwKnife()
1483
    end
1484
    if key == "f" then
1485
        if StandOn == true then
1486
            StandOn = false
1487
            for i,v in pairs(pchar:children()) do
1488
                if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
1489
                    v.Transparency = 1
1490
                end
1491
            end
1492
        elseif StandOn == false then
1493
            StandOn = true
1494
            TheWorld("Wry")
1495
            for i,v in pairs(pchar:children()) do
1496
                if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
1497
                    v.Transparency = 0
1498
                end
1499
            end
1500
        end
1501
    end
1502
    if key == "t" and OneSecond == false and TimeStopped == false then
1503
        OneSecond = true
1504
        local TimeStop = Instance.new("Sound",char)
1505
        TimeStop.SoundId = "rbxassetid://520743795"
1506
        TimeStop.Looped = false
1507
        TimeStop.Volume = 1
1508
        TimeStop:Play()
1509
        stopParts(5555)
1510
        for i, v in pairs(Cha:GetChildren()) do
1511
            if v:IsA('Hat') then
1512
                v.Handle.Transparency=1
1513
            end
1514
        end
1515
        Cha.Head.Transparency = 0.2
1516
        Cha.Torso.Transparency = 0.2
1517
        Cha["Right Arm"].Transparency = 0.2
1518
        Cha["Left Arm"].Transparency = 0.2
1519
        Cha["Right Leg"].Transparency = 0.2
1520
        Cha["Left Leg"].Transparency = 0.2
1521
        wait()
1522
        Cha.Head.Transparency = 0.4
1523
        Cha.Torso.Transparency = 0.4
1524
        Cha["Right Arm"].Transparency = 0.4
1525
        Cha["Left Arm"].Transparency = 0.4
1526
        Cha["Right Leg"].Transparency = 0.4
1527
        Cha["Left Leg"].Transparency = 0.4
1528
        wait()
1529
        Cha.Head.Transparency = 0.6
1530
        Cha.Torso.Transparency = 0.6
1531
        Cha["Right Arm"].Transparency = 0.6
1532
        Cha["Left Arm"].Transparency = 0.6
1533
        Cha["Right Leg"].Transparency = 0.6
1534
        Cha["Left Leg"].Transparency = 0.6
1535
        wait()
1536
        Cha.Head.Transparency = 0.8
1537
        Cha.Torso.Transparency = 0.8
1538
        Cha["Right Arm"].Transparency = 0.8
1539
        Cha["Left Arm"].Transparency = 0.8
1540
        Cha["Right Leg"].Transparency = 0.8
1541
        Cha["Left Leg"].Transparency = 0.8
1542
        wait()
1543
        Cha.Head.Transparency = 1
1544
        Cha.Torso.Transparency = 1
1545
        Cha["Right Arm"].Transparency = 1
1546
        Cha["Left Arm"].Transparency = 1
1547
        Cha["Right Leg"].Transparency = 1
1548
        Cha["Left Leg"].Transparency = 1
1549
        
1550
        Targ = CFrame.new(Vector3.new(mouse.Hit.x, mouse.Hit.y + 5, mouse.Hit.z))
1551
        print("ZA WARUDO!")
1552
1553
        Player.Character.Torso.CFrame = Targ
1554
1555
        wait()
1556
        for i, v in pairs(Cha:GetChildren()) do
1557
            if v:IsA('Hat') then
1558
                v.Handle.Transparency=0
1559
            end
1560
        end
1561
        Cha.Head.Transparency = 0.8
1562
        Cha.Torso.Transparency = 0.8
1563
        Cha["Right Arm"].Transparency = 0.8
1564
        Cha["Left Arm"].Transparency = 0.8
1565
        Cha["Right Leg"].Transparency = 0.8
1566
        Cha["Left Leg"].Transparency = 0.8
1567
        wait()
1568
        Cha.Head.Transparency = 0.6
1569
        Cha.Torso.Transparency = 0.6
1570
        Cha["Right Arm"].Transparency = 0.6
1571
        Cha["Left Arm"].Transparency = 0.6
1572
        Cha["Right Leg"].Transparency = 0.6
1573
        Cha["Left Leg"].Transparency = 0.6
1574
        wait()
1575
        Cha.Head.Transparency = 0.4
1576
        Cha.Torso.Transparency = 0.4
1577
        Cha["Right Arm"].Transparency = 0.4
1578
        Cha["Left Arm"].Transparency = 0.4
1579
        Cha["Right Leg"].Transparency = 0.4
1580
        Cha["Left Leg"].Transparency = 0.4
1581
        wait()
1582
        Cha.Head.Transparency = 0.2
1583
        Cha.Torso.Transparency = 0.2
1584
        Cha["Right Arm"].Transparency = 0.2
1585
        Cha["Left Arm"].Transparency = 0.2
1586
        Cha["Right Leg"].Transparency = 0.2
1587
        Cha["Left Leg"].Transparency = 0.2
1588
        wait()
1589
        Cha.Head.Transparency = 0
1590
        Cha.Torso.Transparency = 0
1591
        Cha["Right Arm"].Transparency = 0
1592
        Cha["Left Arm"].Transparency = 0
1593
        Cha["Right Leg"].Transparency = 0
1594
        Cha["Left Leg"].Transparency = 0
1595
        wait()
1596
        TimeStop:Stop()
1597
        freeParts()
1598
        OneSecond = false
1599
    end
1600
    if key == "v" then
1601
        Rapid = true
1602
        local ORA = Instance.new("Sound",char)
1603
        ORA.SoundId = "rbxassetid://601465752"
1604
        ORA.Volume = 1
1605
        ORA.Looped = true
1606
        ORA:Play()
1607
        Attacking = true
1608
        con1 = ram2.Touched:connect(function(hit) Damagefunc(torso,hit,1,2,math.random(0,0),"Killer Queen",RootPart,.2,1) end)
1609
        con2 = lam2.Touched:connect(function(hit) Damagefunc(torso,hit,1,2,math.random(0,0),"Killer Queen",RootPart,.2,1) end)
1610
        while Rapid == true do
1611
            for i = 1, 3 do
1612
                raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7)
1613
                law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 1.7)
1614
                hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
1615
                tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
1616
                llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
1617
                rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
1618
                wait()
1619
            end
1620
            for i = 1, 3 do
1621
                raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(0),math.rad(-50)), 1.7)
1622
                law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(math.random(-20,20)),math.rad(-20)), 1.7)
1623
                hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3)
1624
                tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3)
1625
                llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3)
1626
                rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3)
1627
                wait()
1628
            end
1629
            for i = 1, 3 do
1630
                raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7)
1631
                law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 1.7)
1632
                hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
1633
                tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
1634
                llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
1635
                rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
1636
                wait()
1637
            end
1638
            for i = 1, 3 do
1639
                raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(0),math.rad(-50)), 1.7)
1640
                law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(math.random(-20,20)),math.rad(-20)), 1.7)
1641
                hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3)
1642
                tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3)
1643
                llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3)
1644
                rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3)
1645
                wait()
1646
            end
1647
        end
1648
        con1:disconnect()
1649
        con2:disconnect()
1650
        local MIDORA = Instance.new("Sound",char)
1651
        MIDORA.SoundId = "rbxassetid://291088797"
1652
        MIDORA.Looped = false
1653
        MIDORA:Play()
1654
        ORA:Stop()
1655
        Attacking = false
1656
    end
1657
    if key == "e" then
1658
        Rapid = true
1659
        local ORA = Instance.new("Sound",char)
1660
        ORA.SoundId = "rbxassetid://601465752"
1661
        ORA.Volume = 1
1662
        ORA.Looped = true
1663
        ORA:Play()
1664
        Attacking = true
1665
        con1 = ram2.Touched:connect(function(hit) Damagefunc(torso,hit,1,2,math.random(0,0),"MUDA",RootPart,.2,1) end)
1666
        con2 = lam2.Touched:connect(function(hit) Damagefunc(torso,hit,1,2,math.random(0,0),"MUDA",RootPart,.2,1) end)
1667
        while Rapid == true do
1668
            for i = 1, 3 do
1669
                raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7)
1670
                law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 1.7)
1671
                hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
1672
                tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
1673
                llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
1674
                rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
1675
                wait()
1676
            end
1677
            for i = 1, 3 do
1678
                raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(0),math.rad(-50)), 1.7)
1679
                law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(math.random(-20,20)),math.rad(-20)), 1.7)
1680
                hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3)
1681
                tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3)
1682
                llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3)
1683
                rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3)
1684
                wait()
1685
            end
1686
            for i = 1, 3 do
1687
                raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7)
1688
                law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 1.7)
1689
                hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
1690
                tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
1691
                llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
1692
                rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
1693
                wait()
1694
            end
1695
            for i = 1, 3 do
1696
                raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(0),math.rad(-50)), 1.7)
1697
                law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(math.random(-20,20)),math.rad(-20)), 1.7)
1698
                hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3)
1699
                tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3)
1700
                llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3)
1701
                rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3)
1702
                wait()
1703
            end
1704
        end
1705
        con1:disconnect()
1706
        con2:disconnect()
1707
        ORA:Stop()
1708
        local MIDORA = Instance.new("Sound",char)
1709
        MIDORA.SoundId = "rbxassetid://291088797"
1710
        MIDORA.Looped = false
1711
        MIDORA:Play()
1712
        con1 = ram2.Touched:connect(function(hit) Damagefunc(torso,hit,20,25,math.random(100,100),"Knockdown",RootPart,.2,1) end)
1713
        for i = 1, 3 do
1714
            raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7)
1715
            law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 1.7)
1716
            hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
1717
            tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
1718
            llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
1719
            rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
1720
            wait()
1721
        end
1722
        wait(1)
1723
        con1:disconnect()
1724
        Attacking = false
1725
    end
1726
    if key == "r" and Attacking == false then
1727
        con1 = ram2.Touched:connect(function(hit) Damagefunc(torso,hit,20,25,math.random(100,100),"Knockdown",RootPart,.2,1) end)
1728
        Attacking = true
1729
        if StandOn == false then
1730
            ram2.Transparency = 0.5
1731
            lam2.Transparency = 0.5
1732
            tor2.Transparency = 0.5
1733
            hed2.Transparency = 0.5
1734
        end
1735
        for i = 1, 3 do
1736
            raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7)
1737
            law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 1.7)
1738
            hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
1739
            tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
1740
            llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
1741
            rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
1742
            wait()
1743
        end
1744
        local MIDORA = Instance.new("Sound",char)
1745
        MIDORA.SoundId = "rbxassetid://291088797"
1746
        MIDORA.Looped = false
1747
        MIDORA:Play()
1748
        wait(1)
1749
        if StandOn == false then
1750
            ram2.Transparency = 1
1751
            lam2.Transparency = 1
1752
            tor2.Transparency = 1
1753
            hed2.Transparency = 1
1754
        end
1755
        con1:disconnect()
1756
        Attacking = false
1757
    end
1758
end)
1759
1760
mouse.KeyUp:connect(function(key)
1761
    if key == "e" and Rapid == true or key == "v" and Rapid == true then
1762
        Rapid = false
1763
    end
1764
end)
1765
1766
for i, v in pairs(pchar:GetChildren()) do
1767
    if v:IsA('Hat') then
1768
        v.Handle.Transparency=1
1769
    end
1770
    if v:IsA("Part") then
1771
        v.BrickColor = BrickColor.new("Gold")
1772
    end
1773
end
1774
1775
-------------------------------Sprint
1776
mouse.KeyDown:connect(function(key)
1777
    if string.byte(key) == 48 then
1778
        hum.WalkSpeed = 48
1779
    end
1780
end)
1781
mouse.KeyUp:connect(function(key)
1782
    if string.byte(key) == 48 then
1783
        hum.WalkSpeed=16
1784
    end
1785
end)
1786
-------------------------------------
1787
hum.FreeFalling:connect(function(f)
1788
    if f then
1789
        ffing=true
1790
    else
1791
        ffing=false
1792
    end
1793
end)
1794
StandOn = true
1795
local hrprv=0
1796
angle = 0
1797
angle2 = 0
1798
angle3 = 0
1799
anglespeed = 2
1800
anglespeed2 = 1
1801
anglespeed3 = .4
1802
MyHealth = hum.Health
1803
hum.MaxHealth = 1000
1804
hum.MaxHealth = 1000
1805
hum.MaxHealth = 1000
1806
wait()
1807
hum.Health = 1000
1808
hum.Health = 1000
1809
hum.Health = 1000
1810
print(hum.MaxHealth.."/"..hum.Health)
1811
MyMaxHealth = hum.MaxHealth
1812
MyMaxHealth = humane.Health
1813
MyHealth = humane.Health
1814
1815
game:GetService("RunService").Stepped:connect(function()
1816
    for i,v in pairs(char:children()) do
1817
        if v:IsA("Part") then
1818
            v.Anchored = false
1819
        end
1820
    end
1821
    recurses2(workspace)
1822
    for i,v in pairs(pchar:children()) do
1823
        if v:IsA("Part") then
1824
            v.Anchored = false
1825
        end
1826
    end
1827
    for i, v in pairs(pchar:GetChildren()) do
1828
        if v:IsA('Hat') then
1829
            v.Handle.Transparency=1
1830
        end
1831
        if v:IsA("Part") then
1832
            v.BrickColor = BrickColor.new("Gold")
1833
        end
1834
    end
1835
    angle = ((angle % 100) + anglespeed/10)
1836
    angle2 = ((angle2 % 100) + anglespeed2/10)
1837
    angle3 = ((angle3 % 100) + anglespeed3/10)
1838
        hrprv=Tween(hrprv,hrp.RotVelocity.Y,0.4)
1839
        sine=sine+1
1840
        MyHealth = humane.Health
1841
        humane.Health = MyHealth
1842
        if hum.Sit==true then
1843
                animpose="Sitting"
1844
        elseif ffing==true then
1845
                animpose="Freefalling"
1846
        elseif (hrp.Velocity*Vn(1,0,1)).magnitude<2 then
1847
                animpose="Idle"
1848
        elseif (hrp.Velocity*Vn(1,0,1)).magnitude<20 then
1849
                animpose="Walking"
1850
        elseif (hrp.Velocity*Vn(1,0,1)).magnitude>20 then
1851
                animpose="Sprinting"
1852
        end
1853
        if Attacking == false then
1854
            tor2.CFrame = hrp.CFrame*CFrame.new(0,0,2)
1855
            runKF(heid2)
1856
            runKF(toid2)
1857
            runKF(laid2)
1858
            runKF(raid2)
1859
            runKF(llid2)
1860
            runKF(rlid2)
1861
        end
1862
        if noRig==false then
1863
                if animpose=="Idle" then
1864
                    runKF(heid)
1865
                    runKF(toid)
1866
                    runKF(laid)
1867
                    runKF(raid)
1868
                    runKF(llid)
1869
                    runKF(rlid)
1870
                elseif animpose=="Walking" then
1871
                                runKF(hewk)
1872
                                runKF(towk)
1873
                                runKF(lawk)
1874
                                runKF(rawk)
1875
                                runKF(llwk)
1876
                                runKF(rlwk)
1877
                                --tow.C0=tow.C0:lerp(tow.C0*CA(0,0,hrprv/25),0.4)
1878
                                --rlw.C0=rlw.C0:lerp(rlw.C0*CA(0,0,-hrprv/25),0.4)
1879
                                ---llw.C0=llw.C0:lerp(llw.C0*CA(0,0,-hrprv/25),0.4)
1880
                elseif animpose=="Sprinting" then
1881
                                runKF(hesp)
1882
                                runKF(tosp)
1883
                                runKF(lasp)
1884
                                runKF(rasp)
1885
                                runKF(llsp)
1886
                                runKF(rlsp)
1887
                                --tow.C0=tow.C0:lerp(tow.C0*CA(0,0,hrprv/10),0.4)
1888
                                --rlw.C0=rlw.C0:lerp(rlw.C0*CA(0,0,-hrprv/10),0.4)
1889
                                --llw.C0=llw.C0:lerp(llw.C0*CA(0,0,-hrprv/10),0.4)
1890
                elseif animpose=="Freefalling" then
1891
                        runKF(heff)
1892
                        runKF(toff)
1893
                        runKF(laff)
1894
                        runKF(raff)
1895
                        runKF(llff)
1896
                        runKF(rlff)
1897
                        --tow.C0=tow.C0:lerp(tow.C0*CA(0,0,hrprv/10),0.4)
1898
                end
1899
        end
1900
end)
1901
1902
while wait() do
1903
    if TimeStopped == true then
1904
        for i, v in pairs(knives) do
1905
            if v ~= nil then
1906
                v.Anchored = true
1907
            end
1908
        end
1909
    else
1910
        for i, v in pairs(knives) do
1911
            if v ~= nil then
1912
                v.Anchored = false
1913
            end
1914
        end
1915
    end
1916
end