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