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