View difference between Paste ID: bG6NgGih and mUncAPpZ
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
1+
2-
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
2+
3-
local RealPlayer = Player
3+
4-
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
4+
5
local scream = Instance.new("Sound",char.Torso)
6
scream.SoundId = "rbxassetid://901030512"
7
scream.Volume = 100
8
local omg = Instance.new("Sound",char.Torso)
9
omg.SoundId = "rbxassetid://1090126885"
10
omg.Volume = 1000
11
local ban2 = Instance.new("Sound",char.Torso)
12
ban2.SoundId = "rbxassetid://135925117"
13
ban2.Volume = 100
14
local ban = Instance.new("Sound",char.Torso)
15
ban.SoundId = "rbxassetid://948494432"
16
ban.Volume = 100
17
local banh = Instance.new("Part",char)
18
banh.Name = "BAN!"
19
banh.Size = Vector3.new(1, 5.2, 1)
20
banh.CanCollide = false
21
local banm = Instance.new("FileMesh",banh)
22
banm.MeshId = "http://www.roblox.com/asset/?id=10604848"
23
banm.TextureId = "http://www.roblox.com/asset/?id=10605252"
24
banm.Scale = Vector3.new(0.5,0.5,0.5)
25
local banw = Instance.new("Weld",banh)
26
banw.Part0 = banh
27
banw.Part1 = char["Right Arm"]
28
banw.C0 = CFrame.new(0.0185670853, -1.69550169, -1.06726038, -0.997520506, 0.00503299711, 0.0701959729, -0.0702080429, -0.00226099929, -0.997529864, -0.00486185262, -0.999984622, 0.00260874978)
29
PlayerGui=Player.PlayerGui 
30
Backpack=Player.Backpack 
31
Torso=Character.Torso 
32
Head=Character.Head 
33
Humanoid=Character.Humanoid
34
m=Instance.new('Model',Character)
35
LeftArm=Character["Left Arm"] 
36
LeftLeg=Character["Left Leg"] 
37
RightArm=Character["Right Arm"] 
38
RightLeg=Character["Right Leg"] 
39
LS=Torso["Left Shoulder"] 
40
LH=Torso["Left Hip"] 
41
RS=Torso["Right Shoulder"] 
42
RH=Torso["Right Hip"] 
43
Face = Head.face
44
Neck=Torso.Neck
45
it=Instance.new
46
attacktype=1
47
vt=Vector3.new
48
cf=CFrame.new
49
euler=CFrame.fromEulerAnglesXYZ
50
angles=CFrame.Angles
51
cloaked=false
52
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
53
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
54
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
55
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
56
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
57
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
58
RootPart=Character.HumanoidRootPart
59
RootJoint=RootPart.RootJoint
60
RootCF=euler(-1.57,0,3.14)
61
attack = false 
62
attackdebounce = false 
63
deb=false
64
equipped=true
65
hand=false
66
MMouse=nil
67
combo=0
68
mana=0
69
trispeed=1
70
pathtrans=.7
71
attackmode='none'
72
local idle=0
73
local Anim="Idle"
74
local Effects={}
75
local gun=false
76
local shoot=false
77
player=nil 
78
cloak=false
79
lightcolor='Bright blue'
80
81
local Color1=Torso.BrickColor
82
 
83
84
mouse=Player:GetMouse()
85
--save shoulders 
86
RSH, LSH=nil, nil 
87
--welds 
88
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
89
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
90
LH=Torso["Left Hip"]
91
RH=Torso["Right Hip"]
92
TorsoColor=Torso.BrickColor
93
function NoOutline(Part)
94
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
95
end
96
97
98
99
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
100
local fp=it("Part")
101
fp.formFactor=formfactor 
102
fp.Parent=parent
103
fp.Reflectance=reflectance
104
fp.Transparency=transparency
105
fp.CanCollide=false 
106
fp.Locked=true
107
fp.BrickColor=brickcolor
108
fp.Name=name
109
fp.Size=size
110
fp.Position=Torso.Position 
111
NoOutline(fp)
112
fp.Material="SmoothPlastic"
113
fp:BreakJoints()
114
return fp 
115
end 
116
 
117
function mesh(Mesh,part,meshtype,meshid,offset,scale)
118
local mesh=it(Mesh) 
119
mesh.Parent=part
120
if Mesh=="SpecialMesh" then
121
mesh.MeshType=meshtype
122
if meshid~="nil" then
123
mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
124
end
125
end
126
mesh.Offset=offset
127
mesh.Scale=scale
128
return mesh
129
end
130
 
131
function weld(parent,part0,part1,c0)
132
local weld=it("Weld") 
133
weld.Parent=parent
134
weld.Part0=part0 
135
weld.Part1=part1 
136
weld.C0=c0
137
return weld
138
end
139
 
140
local Color1=Torso.BrickColor
141
142
143
144
145
146
    Player=game:GetService('Players').LocalPlayer
147
    Character=Player.Character
148
    Mouse=Player:GetMouse()
149
    m=Instance.new('Model',Character)
150
151
152
    local function weldBetween(a, b)
153
        local weldd = Instance.new("ManualWeld")
154
        weldd.Part0 = a
155
        weldd.Part1 = b
156
        weldd.C0 = CFrame.new()
157
        weldd.C1 = b.CFrame:inverse() * a.CFrame
158
        weldd.Parent = a
159
        return weldd
160
    end
161
    
162
    it=Instance.new
163
    
164
    function nooutline(part)
165
        part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
166
    end
167
    
168
    function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
169
        local fp=it("Part")
170
        fp.formFactor=formfactor
171
        fp.Parent=parent
172
        fp.Reflectance=reflectance
173
        fp.Transparency=transparency
174
        fp.CanCollide=false
175
        fp.Locked=true
176
        fp.BrickColor=BrickColor.new(tostring(brickcolor))
177
        fp.Name=name
178
        fp.Size=size
179
        fp.Position=Character.Torso.Position
180
        nooutline(fp)
181
        fp.Material=material
182
        fp:BreakJoints()
183
        return fp
184
    end
185
    
186
    function mesh(Mesh,part,meshtype,meshid,offset,scale)
187
        local mesh=it(Mesh)
188
        mesh.Parent=part
189
        if Mesh=="SpecialMesh" then
190
            mesh.MeshType=meshtype
191
            mesh.MeshId=meshid
192
        end
193
        mesh.Offset=offset
194
        mesh.Scale=scale
195
        return mesh
196
    end
197
    
198
    function weld(parent,part0,part1,c0,c1)
199
        local weld=it("Weld")
200
        weld.Parent=parent
201
        weld.Part0=part0
202
        weld.Part1=part1
203
        weld.C0=c0
204
        weld.C1=c1
205
        return weld
206
    end
207
208
209
210
211
212
213
214
215
216
--------------------------------
217
local p = game.Players.LocalPlayer
218
local char = p.Character
219
local mouse = p:GetMouse()
220
local larm = char["Left Arm"]
221
local rarm = char["Right Arm"]
222
local lleg = char["Left Leg"]
223
local rleg = char["Right Leg"]
224
local hed = char.Head
225
local torso = char.Torso
226
local hum = char.Humanoid
227
local cam = game.Workspace.CurrentCamera
228
local root = char.HumanoidRootPart
229
local deb = false
230
local shot = 0
231
local debris=game:service"Debris"
232
local l = game:GetService("Lighting")
233
local rs = game:GetService("RunService").RenderStepped
234
ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
235
math.randomseed(os.time())
236
for i,v in pairs(char:children()) do
237
    if v:IsA("Hat") then
238
        v:Destroy()
239
    end
240
end
241
for i,v in pairs (hed:GetChildren()) do
242
        if v:IsA("Sound") then
243
                v:Destroy()
244
        end
245
end
246
----------------------------------------------------
247
z = Instance.new("Sound", torso)
248
z.SoundId = "rbxassetid://606241996" -- Put Music ID Here.
249
z.Looped = true
250
z.Volume = 1
251
wait(.1)
252
z:Play()
253
-----------------------------------------------------
254
Debounces = {
255
CanAttack = true;
256
NoIdl = false;
257
Slashing = false;
258
Slashed = false;
259
RPunch = false;
260
RPunched = false;
261
LPunch = false;
262
LPunched = false;
263
}
264
local Touche = {char.Name, }
265
----------------------------------------------------
266
----------------------------------------------------
267
----------------------------------------------------
268
local LocalPlayer = game:GetService("Players").LocalPlayer
269
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
270
271
 
272
local LocalPlayer = game:GetService("Players").LocalPlayer
273
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
274
275
Character.Head.Transparency = 0
276
 
277
local Camisa = Instance.new("Part", Character)
278
Camisa.Name = "Camisa"
279
280
Camisa.CanCollide = false
281
Camisa.BrickColor = BrickColor.new("Institutional white")
282
Camisa.Transparency = 1
283
Camisa.Material = "Plastic"
284
Camisa.Size = Vector3.new(1.5, 1.5, 1)
285
 
286
local Weld = Instance.new("Weld", Camisa)
287
Weld.Part0 = Character.Torso
288
Weld.Part1 = Camisa
289
Weld.C1 = CFrame.new(0, 0, 0)
290
----------------------------------------
291
local p = game.Players.LocalPlayer
292
local char = p.Character
293
local mouse = p:GetMouse()
294
local larm = char["Left Arm"]
295
local rarm = char["Right Arm"]
296
local lleg = char["Left Leg"]
297
local rleg = char["Right Leg"]
298
local hed = char.Head
299
local torso = char.Torso
300
local hum = char.Humanoid
301
local cam = game.Workspace.CurrentCamera
302
local root = char.HumanoidRootPart
303
local rj = root.RootJoint
304
local deb = false
305
local shot = 0
306
local stanceToggle = "Idle1"
307
local l = game:GetService("Lighting")
308
local rs = game:GetService("RunService").RenderStepped
309
local hb = game:GetService("RunService").Heartbeat
310
local Stepped = game:GetService("RunService").Stepped
311
math.randomseed(os.time())
312
hum.JumpPower = 100
313
----------------------------------------------------
314
fat = Instance.new("BindableEvent",script)
315
fat.Name = "Heartbeat"
316
317
script:WaitForChild("Heartbeat")
318
319
frame = 1/30
320
tf = 0
321
allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
322
tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
323
lastframe = tick()
324
script.Heartbeat:Fire() --ayy lmao
325
326
game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
327
	tf = tf + s
328
	if tf >= frame then
329
		if allowframeloss then
330
			script.Heartbeat:Fire()
331
			lastframe=tick()
332
		else
333
			--print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
334
			for i=1, math.floor(tf/frame) do
335
				script.Heartbeat:Fire()
336
			end
337
			lastframe=tick()
338
		end
339
		if tossremainder then
340
			tf = 0
341
		else
342
			tf = tf - frame * math.floor(tf/frame)
343
		end
344
	end
345
end)
346
----------------------------------------------------
347
for i,v in pairs(char:children()) do
348
    if v:IsA("Hat") then
349
        v:Destroy()
350
    end
351
end
352
for i,v in pairs (hed:GetChildren()) do
353
	if v:IsA("Sound") then
354
		v:Destroy()
355
	end
356
end
357
----------------------------------------------------
358
Debounces = {
359
CanAttack = true;
360
CanJoke = true;
361
NoIdl = false;
362
Slashing = false;
363
Slashed = false;
364
ks = false;
365
}
366
----------------------------------------------------
367
function weld5(part0, part1, c0, c1)
368
    weeld=Instance.new("Weld", part0)
369
    weeld.Part0=part0
370
    weeld.Part1=part1
371
    weeld.C0=c0
372
    weeld.C1=c1
373
    return weeld
374
end
375
----------------------------------------------------
376
function NewPart(prnt,siz,cf,trans,anc,mat,col)
377
	local prt=Instance.new("Part")
378
	prt.Parent=prnt
379
	prt.Name="Part"
380
	prt.Size=siz
381
	prt.CanCollide=false
382
	prt.Anchored=anc
383
	prt.Locked=true
384
	prt.Transparency = trans
385
	prt.TopSurface=10
386
	prt.BottomSurface=10
387
	prt.FrontSurface=10
388
	prt.BackSurface=10
389
	prt.LeftSurface=10
390
	prt.RightSurface=10
391
	prt:BreakJoints()
392
	prt.CFrame=cf or CFrame.new(30,10,30)
393
	prt.Material=mat
394
	prt.BrickColor=BrickColor.new(col)
395
	m=Instance.new("SpecialMesh",prt)
396
	m.MeshType=6
397
	return prt
398
end
399
----------------------------------------------------
400
function lerp(a, b, t) -- Linear interpolation
401
	return a + (b - a)*t
402
end
403
 
404
function slerp(a, b, t) --Spherical interpolation
405
	dot = a:Dot(b)
406
	if dot > 0.99999 or dot < -0.99999 then
407
		return t <= 0.5 and a or b
408
	else
409
		r = math.acos(dot)
410
		return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
411
	end
412
end
413
 
414
function matrixInterpolate(a, b, t)
415
	local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
416
	local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
417
	local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
418
	local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector  right
419
	local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector  up
420
	local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector  back
421
	local t = v1:Dot(v2)
422
	if not (t < 0 or t == 0 or t > 0) then 	-- Failsafe
423
		return CFrame.new()
424
	end
425
	return CFrame.new(
426
	v0.x, v0.y, v0.z,
427
	v1.x, v1.y, v1.z,
428
	v2.x, v2.y, v2.z,
429
	v3.x, v3.y, v3.z)
430
end
431
----------------------------------------------------
432
function genWeld(a,b)
433
    local w = Instance.new("Weld",a)
434
    w.Part0 = a
435
    w.Part1 = b
436
    return w
437
end
438
function weld(a, b)
439
    local weld = Instance.new("Weld")
440
    weld.Name = "W"
441
    weld.Part0 = a
442
    weld.Part1 = b
443
    weld.C0 = a.CFrame:inverse() * b.CFrame
444
    weld.Parent = a
445
    return weld;
446
end
447
----------------------------------------------------
448
function Lerp(c1,c2,al)
449
	local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
450
	local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
451
	for i,v in pairs(com1) do 
452
		com1[i] = v+(com2[i]-v)*al
453
	end
454
	return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
455
end
456
----------------------------------------------------
457
newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
458
	local wld = Instance.new("Weld", wp1)
459
	wld.Part0 = wp0
460
	wld.Part1 = wp1
461
	wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
462
end
463
----------------------------------------------------
464
newWeld(torso, larm, -1.5, 0.5, 0)
465
larm.Weld.C1 = CFrame.new(0, 0.5, 0)
466
newWeld(torso, rarm, 1.5, 0.5, 0)
467
rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
468
newWeld(torso, hed, 0, 1.5, 0)
469
newWeld(torso, lleg, -0.5, -1, 0)
470
lleg.Weld.C1 = CFrame.new(0, 1, 0)
471
newWeld(torso, rleg, 0.5, -1, 0)
472
rleg.Weld.C1 = CFrame.new(0, 1, 0)
473
newWeld(root, torso, 0, -1, 0)
474
torso.Weld.C1 = CFrame.new(0, -1, 0)
475
----------------------------------------------------
476
z = Instance.new("Sound",char) --Smile: print("â?º")
477
z.SoundId = "rbxassetid://0"--410761150, 411368002
478
z.Looped = true
479
z.Pitch = 1
480
z.Volume = 1
481
wait(0.1)
482
z:Play()
483
----------------------------------------------------
484
New = function(Object, Parent, Name, Data)
485
	local Object = Instance.new(Object)
486
	for Index, Value in pairs(Data or {}) do
487
		Object[Index] = Value
488
	end
489
	Object.Parent = Parent
490
	Object.Name = Name
491
	return Object
492
end
493
----------------------------------------------------
494
--Left Arm
495
m = Instance.new("Model")
496
m.Name = "LeftArm"
497
498
p4 = Instance.new("Part", m)
499
p4.BrickColor = BrickColor.new("Really black")
500
p4.Material = Enum.Material.SmoothPlastic
501
p4.Name = "LeftArmPlate"
502
p4.Size = Vector3.new(1, 2, 1)
503
p4.Transparency = 1
504
p4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
505
p4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
506
p4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
507
p4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
508
p4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
509
p4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
510
b4 = Instance.new("SpecialMesh", p4)
511
b4.MeshType = Enum.MeshType.Brick
512
b4.Name = "Mesh"
513
b4.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998)
514
515
516
517
518
519
w1 = Instance.new("Weld", p1)
520
w1.Name = "Part_Weld"
521
w1.Part0 = p1
522
w1.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
523
w1.Part1 = p2
524
w1.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
525
w2 = Instance.new("Weld", p2)
526
w2.Name = "Part_Weld"
527
w2.Part0 = p2
528
w2.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
529
w2.Part1 = p3
530
w2.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
531
w3 = Instance.new("Weld", p3)
532
w3.Name = "LeftArmPlate_Weld"
533
w3.Part0 = p3
534
w3.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
535
w3.Part1 = p4
536
w3.C1 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
537
w4 = Instance.new("Weld", p4)
538
w4.Name = "Part_Weld"
539
w4.Part0 = p4
540
w4.C0 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
541
w4.Part1 = p5
542
w4.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
543
w5 = Instance.new("Weld", p5)
544
w5.Name = "Part_Weld"
545
w5.Part0 = p5
546
w5.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
547
w5.Part1 = p6
548
w5.C1 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
549
w6 = Instance.new("Weld", p6)
550
w6.Name = "Part_Weld"
551
w6.Part0 = p6
552
w6.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
553
w6.Part1 = p7
554
w6.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
555
w7 = Instance.new("Weld", p7)
556
w7.Name = "Part_Weld"
557
w7.Part0 = p7
558
w7.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
559
w7.Part1 = p8
560
w7.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
561
w8 = Instance.new("Weld", p8)
562
w8.Name = "Part_Weld"
563
w8.Part0 = p8
564
w8.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
565
w8.Part1 = p9
566
w8.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
567
w9 = Instance.new("Weld", p9)
568
w9.Name = "Part_Weld"
569
w9.Part0 = p9
570
w9.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
571
w9.Part1 = p10
572
w9.C1 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
573
w10 = Instance.new("Weld", p10)
574
w10.Name = "Part_Weld"
575
w10.Part0 = p10
576
w10.C0 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
577
w10.Part1 = p11
578
w10.C1 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
579
w11 = Instance.new("Weld", p11)
580
w11.Name = "Part_Weld"
581
w11.Part0 = p11
582
w11.C0 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
583
w11.Part1 = p12
584
w11.C1 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
585
w12 = Instance.new("Weld", p12)
586
w12.Name = "Part_Weld"
587
w12.Part0 = p12
588
w12.C0 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
589
w12.Part1 = p13
590
w12.C1 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
591
w13 = Instance.new("Weld", p13)
592
w13.Name = "Part_Weld"
593
w13.Part0 = p13
594
w13.C0 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
595
w13.Part1 = p14
596
w13.C1 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
597
w14 = Instance.new("Weld", p14)
598
w14.Name = "Part_Weld"
599
w14.Part0 = p14
600
w14.C0 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
601
w14.Part1 = p15
602
w14.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
603
w15 = Instance.new("Weld", p15)
604
w15.Name = "Part_Weld"
605
w15.Part0 = p15
606
w15.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
607
w15.Part1 = p16
608
w15.C1 = CFrame.new(1.49142683, -27.338007, 3.81166649, 1, -2.04123751e-007, -6.57511308e-008, 1.67448022e-007, 0.500000119, 0.866025329, -1.06342185e-007, -0.866025269, 0.5)
609
610
m.Parent = larm
611
m:MakeJoints()
612
----------------------------------------------------
613
local cor = Instance.new("Part", larm.LeftArm)
614
cor.Name = "Thingy"
615
cor.Locked = true
616
cor.BottomSurface = 0
617
cor.CanCollide = false
618
cor.Size = Vector3.new(1, 1, 1)
619
cor.Transparency = 1
620
cor.TopSurface = 0
621
corw = Instance.new("Weld", cor)
622
corw.Part0 = larm
623
corw.Part1 = cor
624
corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
625
corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
626
weld1 = Instance.new("Weld", larm.LeftArm)
627
weld1.Part0 = cor
628
weld1.Part1 = larm.LeftArm.LeftArmPlate
629
weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
630
--Right Arm
631
m2 = Instance.new("Model")
632
m2.Name = "RightArm"
633
634
p7 = Instance.new("Part", m2)
635
p7.BrickColor = BrickColor.new("Institutional white")
636
p7.Material = Enum.Material.SmoothPlastic
637
p7.Transparency = 1
638
p7.Name = "RightArmPlate"
639
p7.CFrame = CFrame.new(3.5, -9.54201603, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
640
p7.FormFactor = Enum.FormFactor.Symmetric
641
p7.Size = Vector3.new(1, 2, 1)
642
p7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
643
p7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
644
p7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
645
p7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
646
p7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
647
p7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
648
b7 = Instance.new("SpecialMesh", p7)
649
b7.MeshType = Enum.MeshType.Brick
650
b7.Name = "Mesh"
651
b7.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998)
652
653
654
w1 = Instance.new("Weld", p1)
655
w1.Name = "Part_Weld"
656
w1.Part0 = p1
657
w1.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
658
w1.Part1 = p2
659
w1.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
660
w2 = Instance.new("Weld", p2)
661
w2.Name = "Part_Weld"
662
w2.Part0 = p2
663
w2.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
664
w2.Part1 = p3
665
w2.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
666
w3 = Instance.new("Weld", p3)
667
w3.Name = "Part_Weld"
668
w3.Part0 = p3
669
w3.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
670
w3.Part1 = p4
671
w3.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
672
w4 = Instance.new("Weld", p4)
673
w4.Name = "Part_Weld"
674
w4.Part0 = p4
675
w4.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
676
w4.Part1 = p5
677
w4.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
678
w5 = Instance.new("Weld", p5)
679
w5.Name = "Part_Weld"
680
w5.Part0 = p5
681
w5.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
682
w5.Part1 = p6
683
w5.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
684
w6 = Instance.new("Weld", p6)
685
w6.Name = "RightArmPlate_Weld"
686
w6.Part0 = p6
687
w6.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
688
w6.Part1 = p7
689
w6.C1 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
690
w7 = Instance.new("Weld", p7)
691
w7.Name = "Part_Weld"
692
w7.Part0 = p7
693
w7.C0 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
694
w7.Part1 = p8
695
w7.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
696
w8 = Instance.new("Weld", p8)
697
w8.Name = "Part_Weld"
698
w8.Part0 = p8
699
w8.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
700
w8.Part1 = p9
701
w8.C1 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
702
w9 = Instance.new("Weld", p9)
703
w9.Name = "Part_Weld"
704
w9.Part0 = p9
705
w9.C0 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
706
w9.Part1 = p10
707
w9.C1 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
708
w10 = Instance.new("Weld", p10)
709
w10.Name = "Part_Weld"
710
w10.Part0 = p10
711
w10.C0 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
712
w10.Part1 = p11
713
w10.C1 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
714
w11 = Instance.new("Weld", p11)
715
w11.Name = "Part_Weld"
716
w11.Part0 = p11
717
w11.C0 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
718
w11.Part1 = p12
719
w11.C1 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
720
w12 = Instance.new("Weld", p12)
721
w12.Name = "Part_Weld"
722
w12.Part0 = p12
723
w12.C0 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
724
w12.Part1 = p13
725
w12.C1 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
726
w13 = Instance.new("Weld", p13)
727
w13.Name = "Part_Weld"
728
w13.Part0 = p13
729
w13.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
730
w13.Part1 = p14
731
w13.C1 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
732
w14 = Instance.new("Weld", p14)
733
w14.Name = "Part_Weld"
734
w14.Part0 = p14
735
w14.C0 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
736
w14.Part1 = p15
737
w14.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
738
w15 = Instance.new("Weld", p15)
739
w15.Name = "Part_Weld"
740
w15.Part0 = p15
741
w15.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
742
w15.Part1 = p16
743
w15.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
744
w16 = Instance.new("Weld", p16)
745
w16.Name = "Part_Weld"
746
w16.Part0 = p16
747
w16.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
748
w16.Part1 = p17
749
w16.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
750
w17 = Instance.new("Weld", p17)
751
w17.Name = "Part_Weld"
752
w17.Part0 = p17
753
w17.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
754
w17.Part1 = p18
755
w17.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
756
w18 = Instance.new("Weld", p18)
757
w18.Name = "Part_Weld"
758
w18.Part0 = p18
759
w18.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
760
w18.Part1 = p19
761
w18.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
762
m2.Parent = rarm
763
m2:MakeJoints()
764
----------------------------------------------------
765
local cor2 = Instance.new("Part", rarm.RightArm)
766
cor2.Name = "Thingy"
767
cor2.Locked = true
768
cor2.BottomSurface = 0
769
cor2.CanCollide = false
770
cor2.Size = Vector3.new(1, 1, 1)
771
cor2.Transparency = 1
772
cor2.TopSurface = 0
773
corw2 = Instance.new("Weld", cor2)
774
corw2.Part0 = rarm
775
corw2.Part1 = cor2
776
corw2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
777
corw2.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
778
weld2 = Instance.new("Weld", rarm.RightArm)
779
weld2.Part0 = cor2
780
weld2.Part1 = rarm.RightArm.RightArmPlate
781
weld2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
782
783
784
--Zyrodoxa
785
m8 = Instance.new("Model")
786
m8.Name = "Zyrodoxa"
787
788
p16 = Instance.new("Part", m8)
789
p16.BrickColor = BrickColor.new("Instutional white")
790
p16.Material = Enum.Material.Metal
791
p16.Name = "Handle"
792
p16.CFrame = CFrame.new(2.7e-005, -11.8500671, -1.1215378, 1, -4.08902174e-008, -5.95266769e-008, -5.95264673e-008, 4.47054163e-008, -1.00000322, 4.08900469e-008, 1.00000393, 3.27827877e-007)
793
p16.CanCollide = false
794
p16.Locked = true
795
p16.FormFactor = Enum.FormFactor.Custom
796
p16.Size = Vector3.new(0, 0, 0)
797
p16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
798
p16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
799
p16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
800
p16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
801
p16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
802
p16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
803
b16 = Instance.new("BlockMesh", p16)
804
b16.Name = "Mesh"
805
b16.Scale = Vector3.new(0, 0, 0)
806
807
w16 = Instance.new("Weld", p16)
808
w16.Name = "Block_Weld"
809
w16.Part0 = p16
810
w16.C0 = CFrame.new(-2.69356715e-005, 1.12153399, 0.310250998, 1, -5.9526446e-008, 4.08900576e-008, -4.08900576e-008, 0, 1, -5.95264495e-008, -1, -2.43403981e-015)
811
w16.Part1 = p17
812
w16.C1 = CFrame.new(-2.69897973e-005, 0.238820702, 1.16951191, 1, -3.32849588e-008, -1.92696081e-009, -3.32849588e-008, -1, -5.96046448e-007, -1.92694105e-009, 5.96046448e-007, -1)
813
814
m8.Parent = rarm
815
m8:MakeJoints()
816
----------------------------------------------------
817
local cor8 = Instance.new("Part", rarm.Zyrodoxa)
818
cor8.Name = "Thingy"
819
cor8.Locked = true
820
cor8.BottomSurface = 0
821
cor8.CanCollide = false
822
cor8.Size = Vector3.new(1, 1, 1)
823
cor8.Transparency = 1
824
cor8.TopSurface = 0
825
corw8 = Instance.new("Weld", cor8)
826
corw8.Part0 = rarm
827
corw8.Part1 = cor8
828
corw8.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180))
829
corw8.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
830
weld8 = Instance.new("Weld", rarm.Zyrodoxa)
831
weld8.Part0 = cor8
832
weld8.Part1 = rarm.Zyrodoxa.Handle
833
weld8.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
834
----------------------------------------------------
835
models = {m,m2,m3,m4,m5,m6,m7,m8}
836
parts = {}
837
Stepped:connect(function()
838
	for i,v in pairs(models) do
839
		for _, a in pairs(v:GetChildren()) do
840
			if v:IsA("Part") and v.Name ~= "Thingy" then
841
				table.insert(parts, a)
842
				for i,v in pairs(parts) do
843
					v.CanCollide = false
844
				end
845
			end
846
		end
847
	end
848
end)
849
----------------------------------------------------
850
local animpose = "Idle1"
851
local lastanimpose = "Idle1"
852
local grab = false
853
local Smooth = 1
854
local sine = 0
855
local change = 1
856
local val = 0
857
local ffing = false
858
----------------------------------------------------
859
--[[local hitbox = rarm.Zyrodoxa.Hitbox--Zyrodoxa is the name of the dagger k
860
861
function FindHumanoids()
862
	local function c_region(Position, Size)
863
		local SizeOffset = Size/2
864
	 	local Point1 = Position - SizeOffset
865
   		local Point2 = Position + SizeOffset
866
   		local a = Instance.new("Part", workspace)
867
   		a.Anchored = true
868
   		a.Size = Size
869
   		a.Position = Position
870
   		print("Hey!, I'm making a part!")
871
   		return Region3.new(Point1, Point2)
872
  	end
873
  	
874
    local a = c_region((hitbox.CFrame * CFrame.new(0, -1.285, 0)), Vector3.new(0.22, 0.6425, 1.22))
875
    local b = c_region((hitbox.CFrame * CFrame.new(0, -0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22))
876
    local c = c_region((hitbox.CFrame * CFrame.new(0, 0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22))
877
    local d = c_region((hitbox.CFrame * CFrame.new(0, 1.285, 0)), Vector3.new(0.22, 0.6425, 1.22))
878
    
879
    local regions = {a, b, c, d}
880
    
881
    local found_humanoids = {}
882
    local already_found = {char.Name}
883
    
884
    for _, region in pairs(regions) do
885
        for _, part in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(region, rarm.Zyrodoxa:GetChildren(), 100)) do
886
        	print(part, part.Parent, part.Name) ---nope
887
            if part.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
888
                local humanoid = part.Parent:FindFirstChild("Humanoid")
889
                local name = humanoid.Parent.Name
890
                local exists = false
891
                for _, n in pairs(already_found) do
892
                    if n == name then
893
                        exists = true
894
                    end
895
                end
896
                if not exists then
897
                    table.insert(already_found, name)
898
                    table.insert(found_humanoids, humanoid)
899
                end
900
            elseif part.Parent.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
901
                local humanoid = part.Parent.Parent:FindFirstChild("Humanoid")
902
                local name = humanoid.Parent.Parent.Name
903
                local exists = false
904
                for _, n in pairs(already_found) do
905
                    if n == name then
906
                        exists = true
907
                    end
908
                end
909
                if not exists then
910
                    table.insert(already_found, name)
911
                    table.insert(found_humanoids, humanoid)
912
                end
913
            end
914
        end
915
    end
916
    return found_humanoids
917
end
918
919
local humanoids = FindHumanoids()
920
if #humanoids == 0 then
921
	for i, v in pairs(humanoids) do
922
		print(v.Parent.Name)
923
		if Debounces.Slashing == true then
924
			v:TakeDamage(math.random(10,20) * math.random(1,3)) --max 60 damage?
925
		elseif Debounces.Slashing == false then
926
			wait()
927
		end
928
	end
929
	wait(0.3)
930
end]]--
931
----------------------------------------------------
932
--[[mouse.KeyDown:connect(function(key)
933
	if key == "f" then
934
		if Debounces.CanAttack == true then
935
			Debounces.CanAttack = false
936
			Debounces.NoIdl = true
937
			Debounces.on = true
938
			for i = 1, 20 do
939
				corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
940
				corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
941
				CR.Joint.C1 = Lerp(CR.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(-4),0,0),0.1)
942
				CR2.Joint.C1 = Lerp(CR2.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
943
				CR3.Joint.C1 = Lerp(CR3.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
944
				CR4.Joint.C1 = Lerp(CR4.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
945
				CR5.Joint.C1 = Lerp(CR5.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
946
				rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6,0.6,-0.2)*CFrame.Angles(math.rad(8),math.rad(22),math.rad(15)), 0.8)
947
				rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
948
				larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6,0.6,0.2)*CFrame.Angles(math.rad(-8),math.rad(12),math.rad(-12)), 0.8)
949
				larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
950
				hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)), 0.5)
951
				hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.5)
952
				torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6), math.rad(0), 0), 0.1)
953
				torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), 0), 0.1)
954
				lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1)
955
				lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(5)), 0.1)
956
				rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(0)), 0.1)
957
				rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10), math.rad(-5)), 0.1)
958
				if Debounces.on == false then
959
					break
960
				end
961
				fat.Event:wait()
962
			end
963
		end
964
	end
965
end)]]--
966
----------------------------------------------------
967
mod4 = Instance.new("Model",char)
968
969
ptez = {0.7, 0.8, 0.9, 1}
970
971
function FindNearestTorso(Position,Distance,SinglePlayer)
972
    if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
973
        local List = {}
974
        for i,v in pairs(workspace:GetChildren())do
975
            if v:IsA("Model")then
976
                if v:findFirstChild("Torso")then
977
                    if v ~= char then
978
                        if(v.Torso.Position -Position).magnitude <= Distance then
979
                            table.insert(List,v)
980
                        end 
981
                    end 
982
                end 
983
            end 
984
        end
985
    return List
986
end
987
988
function Slam()
989
    local part=Instance.new('Part',mod4)
990
    part.Anchored=true
991
    part.CanCollide=false
992
    part.FormFactor='Custom'
993
    part.Size=Vector3.new(.2,.2,.2)
994
    part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0)
995
    part.Transparency=.7
996
    part.BrickColor=BrickColor.new('Really black')
997
    mesh=Instance.new('SpecialMesh',part)
998
    mesh.MeshId='http://www.roblox.com/asset/?id=3270017'
999
    mesh.Scale=Vector3.new(3,3,3)
1000
    local part2=Instance.new('Part',mod4)
1001
    part2.Anchored=true
1002
    part2.CanCollide=false
1003
    part2.FormFactor='Custom'
1004
    part2.Size=Vector3.new(.2,.2,.2)
1005
    part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6)
1006
    part2.Transparency=.7
1007
    part2.BrickColor=BrickColor.new('Institutional white')
1008
    mesh2=Instance.new('SpecialMesh',part2)
1009
    mesh2.MeshId='http://www.roblox.com/asset/?id=20329976'
1010
    mesh2.Scale=Vector3.new(3,1.5,3)
1011
    x = Instance.new("Sound",larm)
1012
    x.SoundId = "http://www.roblox.com/asset/?id=142070127"
1013
    x.Pitch = ptez[math.random(1,#ptez)]
1014
    x.Volume = 1
1015
    wait(.1)
1016
    x1 = Instance.new("Sound",larm)
1017
    x1.SoundId = "http://www.roblox.com/asset/?id=206082327"
1018
    x1.Pitch = ptez[math.random(1,#ptez)]
1019
    x1.Volume = 1
1020
    wait(.1)
1021
	x:Play()
1022
    x1:Play()
1023
    for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do
1024
        if v:FindFirstChild('Humanoid') then
1025
            v.Humanoid:TakeDamage(math.random(30,45))
1026
        end
1027
    end
1028
    coroutine.resume(coroutine.create(function() 
1029
        for i=0,0.62,0.13 do
1030
            wait()
1031
            part.CFrame=part.CFrame
1032
            part.Transparency=i
1033
            mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4)
1034
            part2.CFrame=part2.CFrame
1035
            part2.Transparency=i
1036
            mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4)
1037
            end
1038
        part.Parent=nil
1039
        part2.Parent=nil
1040
        x:Destroy()
1041
    end))
1042
end
1043
----------------------------------------------------
1044
wPart = function(x,y,z,color,tr,cc,an,parent)
1045
    local wp = Instance.new('WedgePart',parent or Weapon)
1046
    wp.formFactor = 'Custom'
1047
    wp.Size = Vector3.new(x,y,z)
1048
    wp.BrickColor = BrickColor.new(color)
1049
    wp.CanCollide = cc
1050
    wp.Transparency = tr
1051
    wp.Anchored = an
1052
    wp.TopSurface,wp.BottomSurface = 0,0
1053
    return wp
1054
end
1055
1056
Mesh = function(par,num,x,y,z)
1057
    local msh = _
1058
    if num == 1 then
1059
        msh = Instance.new("CylinderMesh",par)
1060
    elseif num == 2 then
1061
        msh = Instance.new("SpecialMesh",par)
1062
        msh.MeshType = 3
1063
    elseif num == 3 then
1064
        msh = Instance.new("BlockMesh",par)
1065
    elseif num == 4 then
1066
        msh = Instance.new("SpecialMesh",par)
1067
        msh.MeshType = "Torso"
1068
    elseif type(num) == 'string' then
1069
        msh = Instance.new("SpecialMesh",par)
1070
        msh.MeshId = num
1071
    end 
1072
    msh.Scale = Vector3.new(x,y,z)
1073
    return msh
1074
end
1075
1076
local function CFrameFromTopBack(at, top, back)
1077
    local right = top:Cross(back)
1078
    return CFrame.new(at.x, at.y, at.z,
1079
    right.x, top.x, back.x,
1080
    right.y, top.y, back.y,
1081
    right.z, top.z, back.z)
1082
end
1083
1084
function Triangle(a, b, c)
1085
    local edg1 = (c-a):Dot((b-a).unit)
1086
    local edg2 = (a-b):Dot((c-b).unit)
1087
    local edg3 = (b-c):Dot((a-c).unit)
1088
    if edg1 <= (b-a).magnitude and edg1 >= 0 then
1089
        a, b, c = a, b, c
1090
    elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
1091
        a, b, c = b, c, a
1092
    elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
1093
        a, b, c = c, a, b
1094
    else 
1095
        print("unreachable")
1096
    end
1097
    local len1 = (c-a):Dot((b-a).unit)
1098
    local len2 = (b-a).magnitude - len1
1099
    local width = (a + (b-a).unit*len1 - c).magnitude
1100
    local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
1101
    local list = {}
1102
    if len1 > 0.01 then
1103
        local w1 = wPart(0,0,0,'Institutional white',0.5,false,true,char)
1104
        local sz = Vector3.new(0.2, width, len1)
1105
        w1.Size = sz
1106
        local sp = Mesh(w1,2,0,0,0)
1107
        sp.MeshType='Wedge'
1108
        sp.Scale=Vector3.new(0,1,1)*sz/w1.Size
1109
        w1:BreakJoints()
1110
        w1.Anchored = true
1111
        w1.Transparency = 0.7
1112
        Spawn(function()
1113
            for i=0,1,0.1 do
1114
                fat.Event:wait()
1115
                w1.Transparency=w1.Transparency+0.03
1116
            end
1117
        end)
1118
        w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
1119
        table.insert(list,w1)
1120
    end
1121
    if len2 > 0.01 then
1122
        local w2 = wPart(0,0,0,'Institutional white',0.5,false,true,char)
1123
        local sz = Vector3.new(0.2, width, len2) 
1124
        w2.Size = sz
1125
        local sp = Mesh(w2,2,0,0,0)
1126
        sp.MeshType='Wedge'
1127
        sp.Scale=Vector3.new(0,1,1)*sz/w2.Size
1128
        w2:BreakJoints()
1129
        w2.Anchored = true
1130
        w2.Transparency = 0.7
1131
        Spawn(function()
1132
            for i=0,1,0.1 do
1133
                fat.Event:wait()
1134
                w2.Transparency=w2.Transparency+0.03
1135
            end
1136
        end)
1137
        w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
1138
        table.insert(list,w2)
1139
    end
1140
    return unpack(list)
1141
end
1142
1143
function trail(p,t,h)
1144
	Spawn(function()
1145
		local blcf = p.CFrame
1146
		local scfr = blcf
1147
		for i=1,t do
1148
			local blcf = p.CFrame
1149
			if scfr and (p.Position-scfr.p).magnitude > .1 then
1150
				local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
1151
				if a then game.Debris:AddItem(a,1) end 
1152
				if b then game.Debris:AddItem(b,1) end
1153
				local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
1154
				if a then game.Debris:AddItem(a,1) end 
1155
				if b then game.Debris:AddItem(b,1) end
1156
				scfr = blcf
1157
			elseif not scfr then
1158
				scfr = blcf
1159
			end
1160
			fat.Event:wait()
1161
		end
1162
		scfr=nil
1163
	end)
1164
end
1165
--trail(char.Sword.Blade,1e1000,5)
1166
----------------------------------------------------
1167
function Dmg()
1168
	local partofdeath = rarm.Zyrodoxa.Hitbox
1169
	local function CreateRegion3FromLocAndSize(Position, Size)
1170
		local SizeOffset = Size/2
1171
		local Point1 = Position - SizeOffset
1172
		local Point2 = Position + SizeOffset
1173
		return Region3.new(Point1, Point2)
1174
	end
1175
	local reg = CreateRegion3FromLocAndSize(partofdeath.Position, partofdeath.Size)
1176
	for i, v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do
1177
		Spawn(function()
1178
			if Debounces.Slashing == true and Debounces.Slashed == false then
1179
				Debounces.Slashed = true
1180
				ypcall(function()
1181
					local humanoid = v.Parent:FindFirstChild("Humanoid") or v.Parent.Parent:FindFirstChild("Humanoid")
1182
					humanoid:TakeDamage(math.random(10,18))
1183
				end)
1184
				wait(.4)
1185
				Debounces.Slashed = false
1186
			end
1187
		end)
1188
	end
1189
end
1190
----------------------------------------------------
1191
pts = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
1192
ptz = {0.7, 0.8, 0.9, 1}
1193
idz = {"161006212", "161006195"}
1194
function attackone()
1195
	for i = 1, 13 do
1196
		corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.3, -1, -0.3) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8)
1197
		corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), math.rad(30), math.rad(0)), 0.8)
1198
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2, 0.5, -0.3)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(-10)), 0.3)
1199
		rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
1200
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0.4)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(-10)), 0.5)
1201
		larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(-40),math.rad(0)), 0.5)
1202
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(-50),0), 0.5)
1203
		hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.5)
1204
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.7)
1205
		torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(18), math.rad(0), math.rad(15)), 0.7)
1206
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.4, -1.3, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5)
1207
		lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(15)), 0.5)
1208
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5)
1209
		rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.5)
1210
		if Debounces.on == false then
1211
			break
1212
		end
1213
		fat.Event:wait()
1214
	end
1215
	trail(rarm.Zyrodoxa.Hitbox,20,2)
1216
	Debounces.Slashing = true
1217
	wait(0.2)
1218
	--[[z = Instance.new("Sound", hed)
1219
	z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
1220
	z.Pitch = ptz[math.random(1,#ptz)]
1221
	z.Volume = 1
1222
	wait(.01)
1223
	z:Play()]]--
1224
	for i = 1, 14 do
1225
		Dmg()
1226
		corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8)
1227
		corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-40), math.rad(30), math.rad(0)), 0.8)
1228
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0.4)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(100)), 0.4)
1229
		rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.4)
1230
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, -0.3)*CFrame.Angles(math.rad(100),math.rad(0),math.rad(-20)), 0.4)
1231
		larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.4)
1232
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),0), 0.7)
1233
		hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
1234
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(-10), math.rad(-40), 0), 0.4)
1235
		torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1236
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5)
1237
		lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-14), math.rad(0), math.rad(15)), 0.5)
1238
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5)
1239
		rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(-10)), 0.5)
1240
		if Debounces.on == false then break end
1241
		rs:wait()
1242
	end
1243
	Debounces.Slashing = false
1244
end
1245
function attacktwo()
1246
	Debounces.Slashing = true
1247
	for i = 1, 14 do
1248
		Dmg()
1249
		corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.37, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4)
1250
		corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.4)
1251
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(80)), 0.7)
1252
		rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
1253
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad (-70)), 0.5)
1254
		larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
1255
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-90), math.rad(0)), 0.5)
1256
		hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
1257
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -2) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.5)
1258
		torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1259
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.5)
1260
		lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
1261
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.5)
1262
		rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
1263
		if Debounces.on == false then
1264
			break
1265
		end
1266
		rs:wait()
1267
	end
1268
end
1269
----------------------------------------------------
1270
1271
----------------------------------------------------
1272
definition = 5
1273
bc = {}
1274
bezierparts = {}
1275
function NoOutline(Part)
1276
	Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
1277
end
1278
function draw(p,d)
1279
	for i=1,d do 
1280
		local t = i/d
1281
		bc[i] = p[1]*(1-t)^2+2*p[2]*(1-t)*t+p[3]*t^2
1282
	end
1283
1284
	Spawn(function() fat.Event:wait()
1285
		for i,v in pairs(bezierparts) do
1286
			v.Transparency = 1
1287
		end
1288
	end)
1289
end
1290
--local points = {larm.Position,rarn.Position,invisipart.Position}
1291
--draw(points,definition)
1292
1293
				fat.Event:wait()
1294
1295
			rpart = Instance.new("Part",rarm)
1296
			NoOutline(rpart)
1297
			rpart.Anchored = false
1298
			rpart.Size = Vector3.new(1,1,1)
1299
			rpart.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
1300
			rpart.Transparency = 1
1301
			newWeld(rarm, rpart, 0, 0, 0)
1302
			rpart.Weld.C1 = CFrame.new(0, 1.1, 0)
1303
			lpart = Instance.new("Part",larm)
1304
			NoOutline(lpart)
1305
			lpart.Anchored = false
1306
			lpart.Size = Vector3.new(1,1,1)
1307
			lpart.CFrame = larm.CFrame * CFrame.new(0,-1,0)
1308
			lpart.Transparency = 1
1309
			newWeld(larm, lpart, 0, 0, 0)
1310
			lpart.Weld.C1 = CFrame.new(0, 1.1, 0)
1311
			invisipart = Instance.new("Part",torso)
1312
			NoOutline(invisipart)
1313
			invisipart.Anchored = false
1314
			invisipart.Size = Vector3.new(1,1,1)
1315
			invisipart.Transparency = 1
1316
			invisipart.CFrame = torso.CFrame
1317
			newWeld(torso, invisipart, 0, 0, 0)
1318
			invisipart.Weld.C1 = CFrame.new(0, 0, 6)
1319
			table.insert(bezierparts, rpart)
1320
			table.insert(bezierparts, lpart)
1321
			table.insert(bezierparts, invisipart)
1322
			for i = 1, 40 do
1323
				local points = {lpart.Position,invisipart.Position,rpart.Position}
1324
				draw(points,definition)
1325
				--invisipart.Weld.C1 = invisipart.Weld.C1 + Vector3.new(0,0,0.6)
1326
				rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(90)), 0.1)
1327
				rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
1328
				larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-90)), 0.1)
1329
				larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
1330
				hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.2)
1331
				hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
1332
				torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
1333
				torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1334
				lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(-10)), 0.2)
1335
				lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
1336
				rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(10)), 0.2)
1337
				rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
1338
				if Debounces.on == false then
1339
					break
1340
				end
1341
				fat.Event:wait()
1342
			end
1343
			for i,v in pairs(bezierparts) do
1344
				v:Destroy()
1345
			end
1346
			--draw(points,definition)
1347
			if Debounces.CanAttack == false then
1348
				Debounces.CanAttack = true
1349
				Debounces.NoIdl = false
1350
				Debounces.on = false
1351
			end
1352
1353
----------------------------------------------------
1354
----------------------------------------------------
1355
pt = {6.6, 6.8, 7, 7.2, 7.4}
1356
mouse.KeyDown:connect(function(key)
1357
    if key == "q" then
1358
        if Debounces.CanJoke == true then
1359
            Debounces.CanJoke = false
1360
            u = Instance.new("Sound",char)
1361
            u.SoundId = "http://www.roblox.com/asset/?id=261303790"
1362
            u.Pitch = pt[math.random(1,#pt)]
1363
            u.Volume = 0.3
1364
            u2 = Instance.new("Sound",char)
1365
            u2.SoundId = "http://www.roblox.com/asset/?id=261303790"
1366
            u2.Pitch = u.Pitch
1367
            u2.Volume = 0.3
1368
            u3 = Instance.new("Sound",char)
1369
            u3.SoundId = "http://www.roblox.com/asset/?id=261303790"
1370
            u3.Pitch = u.Pitch
1371
            u3.Volume = 0.3
1372
            wait(.01)
1373
            u:Play()
1374
            u2:Play()
1375
            u3:Play()
1376
            wait(1.5)
1377
            u:Destroy()
1378
            u2:Destroy()
1379
            u3:Destroy()
1380
            if Debounces.CanJoke == false then
1381
                Debounces.CanJoke = true
1382
            end
1383
        end
1384
    end
1385
end)
1386
----------------------------------------------------
1387
----------------------------------------------------
1388
----------------------------------------------------
1389
Grab = false
1390
mouse.KeyDown:connect(function(key)
1391
    if key == "g" then
1392
        Debounces.on = true
1393
        Debounces.NoIdl = true
1394
		Debounces.ks = true
1395
        if Grab == false then
1396
        gp = nil
1397
        for i = 1, 20 do
1398
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
1399
			rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1400
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-80)), 0.2)
1401
			larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1402
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2)
1403
			hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1404
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2)
1405
			torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1406
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2)
1407
			lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1408
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2)
1409
            rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1410
			if Debounces.on == false then break end
1411
            fat.Event:wait()
1412
        end
1413
        con1=larm.LeftArm.LeftArmPlate.Touched:connect(function(hit)
1414
		ht = hit.Parent
1415
			for i,v in pairs(ht:GetChildren()) do 
1416
				if v:IsA("Part") then
1417
					v.CanCollide = false
1418
					v.CustomPhysicalProperties = PhysicalProperties.new(0.001,0.001,0.001,0.001,0.001)
1419
				end
1420
			end
1421
			hum1=ht:FindFirstChild('Humanoid')
1422
			if hum1 ~= nil then
1423
				if Debounces.ks==true then
1424
					z = Instance.new("Sound",hed)
1425
					z.SoundId = "rbxassetid://169380525"
1426
					z.Volume = 1
1427
					z:Play()
1428
					Debounces.ks=false
1429
				end
1430
				hum1.PlatformStand=true
1431
				hum1:ChangeState'Physics'
1432
				gp = ht
1433
				Grab = true
1434
				asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,0.6),CFrame.new(0,0,0))
1435
				asd.Parent = larm
1436
				asd.Name = "asd"
1437
				asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0)
1438
				stanceToggle = "Grabbed"
1439
			--[[elseif hum1 == nil then
1440
				con1:disconnect()
1441
				wait() return]]--
1442
			end
1443
        end)
1444
        for i = 1, 20 do
1445
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
1446
			rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1447
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.65,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2)
1448
			larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1449
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.2)
1450
			hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1451
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2)
1452
			torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1453
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2)
1454
			lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1455
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2)
1456
            rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1457
			if Debounces.on == false then break end
1458
            fat.Event:wait()
1459
        end
1460
		con1:disconnect()
1461
		Debounces.on = false
1462
		Debounces.NoIdl = false
1463
		elseif Grab == true then
1464
        Grab = false
1465
			--[[for i = 1, 16 do
1466
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(60)), 0.3)
1467
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.5)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-60)), 0.3)
1468
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3)
1469
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
1470
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3)
1471
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
1472
			cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3)
1473
			if Debounces.on == false then end
1474
			rs:wait()
1475
		end]]--
1476
			for i = 1, 16 do
1477
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)), 0.3)
1478
			rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.5)
1479
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(0)), 0.3)
1480
			larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(60)), 0.5)
1481
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3)
1482
			hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1483
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.3)
1484
			torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1485
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3)
1486
			lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4)
1487
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
1488
			rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1489
			if Debounces.on == false then end
1490
			rs:wait()
1491
		end
1492
		for i = 1, 12 do
1493
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.6)
1494
            rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1495
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.3,-0.1)*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-32)), 0.6)
1496
            larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1497
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(40), math.rad(14)),0.6)
1498
            hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1499
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(0)), 0.6)
1500
            torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.5)
1501
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.6)
1502
            lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4)
1503
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.4, .2, -0.8) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.6)
1504
			rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)), 0.4)
1505
			if Debounces.on == false then end
1506
			rs:wait()
1507
		end
1508
		Slam()
1509
		if gp ~= nil then
1510
			for i,v in pairs(larm:GetChildren()) do
1511
				if v.Name == "asd" and v:IsA("Weld") then
1512
					v:Remove()
1513
				end
1514
				if v:IsA("Part") then
1515
					v.CanCollide = true
1516
					v.CustomPhysicalProperties = PhysicalProperties.new(1,1,1,1,1)
1517
				end
1518
			end
1519
		end
1520
		stanceToggle = "Idle1"
1521
        --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso"))
1522
        bv.maxForce = Vector3.new(400000, 400000, 400000)
1523
        bv.P = 125000
1524
        bv.velocity = char.Head.CFrame.lookVector * 200]]--
1525
        ht=nil
1526
        Debounces.on = false
1527
        Debounces.NoIdl = false
1528
        elseif ht == nil then wait()
1529
			Grab = false
1530
			Debounces.on = false
1531
			Debounces.NoIdl = false
1532
        end
1533
    end
1534
end)
1535
----------------------------------------------------
1536
Change = false
1537
mouse.KeyDown:connect(function(key)
1538
    if key == "n" then
1539
        if Change == false then
1540
            Change = true
1541
        stanceToggle = "Idle2"
1542
    elseif Change == true then
1543
        Change = false
1544
        stanceToggle = "Idle1"
1545
        end
1546
    end
1547
end)
1548
----------------------------------------------------
1549
mouse.KeyDown:connect(function(key)
1550
    if string.byte(key) == 52 then
1551
		Swing = 2
1552
        char.Humanoid.WalkSpeed = 28
1553
    end
1554
end)
1555
mouse.KeyUp:connect(function(key)
1556
    if string.byte(key) == 52 then
1557
		Swing = 1
1558
        char.Humanoid.WalkSpeed = 16
1559
    end
1560
end)
1561
local mouse2 = Player:GetMouse()
1562
local running = false
1563
1564
mouse2.KeyDown:connect(function(key) -- Run function
1565
	if key == "e" then
1566
		running = true
1567
		local keyConnection = mouse.KeyUp:connect(function(key)
1568
			if string.byte(key) == 48 then
1569
				running = false
1570
			end
1571
		end)
1572
		game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 30
1573
	end
1574
end)
1575
1576
mouse2.KeyUp:connect(function(key)
1577
if key == "e" then
1578
running = false
1579
Character.Humanoid.WalkSpeed = 16
1580
end
1581
end)
1582
function Ban() 
1583
	   Debounces.on = true
1584
        Debounces.NoIdl = true
1585
		Debounces.ks = true
1586
local hitbox = Instance.new("Part",banh)
1587
hitbox.Name = "HurtBox"
1588
hitbox.Size = Vector3.new(2.09, 3.4, 1.8)
1589
hitbox.Transparency = 1
1590
local hitboxwe = Instance.new("Weld",hitbox)
1591
hitboxwe.Part0 = hitbox
1592
hitboxwe.Part1 = banh
1593
hitboxwe.C0 = CFrame.new(0.230496407, 0.228847623, 1.76342273, -0.997520506, -0.0702080652, -0.00486185262, 0.00503299385, -0.00226099882, -0.999983966, 0.070195958, -0.997529984, 0.00260874908)
1594
function onTouched(part)
1595
    local human = part.Parent:FindFirstChildOfClass("Humanoid")
1596
    if human then
1597
	human.Parent:Destroy()
1598
	ban2:Play()
1599
	wait(1.4)
1600
	ban:Play()
1601
	wait(1.2)
1602
	omg:Play()
1603
	wait(2.6)
1604
	scream:Play()
1605
	wait(4.6)
1606
	scream:Stop()
1607
    end
1608
end
1609
hitbox.Touched:connect(onTouched)
1610
for i = 0,1 , 0.09 do
1611
	banw.C0 = banw.C0:lerp(CFrame.new(0.0185546875, -1.99783754, -0.149715185, -0.997520864, 0.00503101526, 0.0701895654, -0.0643144846, -0.469972789, -0.880334616, 0.0285583287, -0.882666826, 0.469131112),i)
1612
	game:GetService("RunService").RenderStepped:wait()
1613
end
1614
hitbox:Destroy()
1615
banw.C0 = CFrame.new(0.0185670853, -1.69550169, -1.06726038, -0.997520506, 0.00503299711, 0.0701959729, -0.0702080429, -0.00226099929, -0.997529864, -0.00486185262, -0.999984622, 0.00260874978)
1616
Debounces.on = false
1617
Debounces.NoIdl = false
1618
Debounces.ks = false
1619
end
1620
mouse.Button1Down:connect(Ban)
1621
----------------------------------------------------
1622
1623
jump = false
1624
rs:connect(function()
1625
	if char.Humanoid.Jump == true then
1626
		jump = true
1627
	else
1628
		jump = false
1629
	end
1630
	char.Humanoid.FreeFalling:connect(function(f)
1631
		if f then
1632
			ffing = true
1633
		else
1634
			ffing = false
1635
		end
1636
	end)
1637
	sine = sine + change
1638
	if jump == true then
1639
		animpose = "Jumping"
1640
	elseif ffing == true then
1641
		animpose = "Freefalling"
1642
	elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
1643
		animpose = "Idle"
1644
	elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
1645
		animpose = "Walking"
1646
	elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
1647
		animpose = "Running"
1648
	end
1649
	RightLeg = CFrame.new(0.5,-1,0)
1650
	LeftLeg = CFrame.new(-0.5,-1,0)
1651
1652
	lefth = (torso.CFrame*LeftLeg)
1653
	righth = (torso.CFrame*RightLeg)
1654
1655
	speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z)
1656
1657
	TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100)
1658
1659
	local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100)
1660
	local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100)
1661
	if animpose ~= lastanimpose then
1662
		sine = 0
1663
		if Debounces.NoIdl == false then
1664
			if stanceToggle == "Idle1" then
1665
				rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-12-4*math.cos(sine/22)),math.rad(-12-2*math.cos(sine/22)),math.rad(12+2*math.cos(sine/22))), 0.3)
1666
				larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,-0.2)*CFrame.Angles(math.rad(20+4*math.cos(sine/22)),math.rad(-22-2*math.cos(sine/22)),math.rad(-15-2*math.cos(sine/22))), 0.3)
1667
				hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-12+2.5*math.cos(sine/22)),math.rad(0),math.rad(0)), 0.2)
1668
				torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-2+2*math.cos(sine/22)), math.rad(0), 0), 0.2)
1669
				lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(5), math.rad(-5)), 0.2)
1670
				rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(-5), math.rad(5)), 0.2)
1671
			elseif stanceToggle == "Idle2" then
1672
				rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-22-4*math.cos(sine/12)),math.rad(-40-2*math.cos(sine/12)),math.rad(24+2*math.cos(sine/12))), 0.3)
1673
				larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.6,-0.6)*CFrame.Angles(math.rad(90+4*math.cos(sine/12)),math.rad(0),math.rad(50-2*math.cos(sine/12))), 0.3)
1674
				hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-6+2.5*math.cos(sine/12)),math.rad(0),math.rad(0)), 0.2)
1675
				torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-20+2*math.cos(sine/12)), math.rad(0), 0), 0.2)
1676
				lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.4, -1) * CFrame.Angles(math.rad(-7-2*math.cos(sine/12)), math.rad(7), math.rad(-5)), 0.2)
1677
				rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8, -0.2) * CFrame.Angles(math.rad(-30-2*math.cos(sine/12)), math.rad(-9), math.rad(5)), 0.2)
1678
			end
1679
			fat.Event:wait()
1680
		end
1681
		else
1682
	end
1683
	lastanimpose = animpose
1684
	if Debounces.NoIdl == false then
1685
		if animpose == "Idle" then
1686
			change = 0.5
1687
			if stanceToggle == "Idle1" then
1688
				corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05+0.03*math.cos(sine/5), 0-0.1*math.cos(sine/10)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1689
				corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0+8*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.3)
1690
1691
				rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6+0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),-0.2-0.1*math.cos(sine/10))*CFrame.Angles(math.rad(8+2.5*math.cos(sine/10)),math.rad(22+7*math.cos(sine/10)),math.rad(15+2*math.cos(sine/10))), 0.8)
1692
				rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1693
				larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6-0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),0.2+0.1*math.cos(sine/10))*CFrame.Angles(math.rad(-8-2.5*math.cos(sine/10)),math.rad(12+5*math.cos(sine/10)),math.rad(-12-3*math.cos(sine/10))), 0.8)
1694
				larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1695
				hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.05*math.cos(sine/10))*CFrame.Angles(math.rad(-15+3*math.cos(sine/10)),math.rad(0),math.rad(0)), 0.5)
1696
				hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20-3*math.cos(sine/10)),math.rad(0)), 0.5)
1697
				torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6+3*math.cos(sine/10)), math.rad(0), 0), 0.1)
1698
				torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0-0.08*math.cos(sine/10), -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20+3*math.cos(sine/10)), 0), 0.1)
1699
				lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14+0.06*math.cos(sine/10)) * CFrame.Angles(math.rad(-3-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1)
1700
				lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10-3*math.cos(sine/10)), math.rad(5+3*math.cos(sine/10))), 0.1)
1701
				rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(8-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1)
1702
				rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10-3*math.cos(sine/10)), math.rad(-5+3*math.cos(sine/10))), 0.1)
1703
			elseif stanceToggle == "Idle2" then
1704
1705
				corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1706
				rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65-0.1*math.cos(sine/3),0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20-2*math.cos(sine/3))), 0.1)
1707
				rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
1708
				larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.23, 0.5, -.56) * CFrame.Angles(math.rad(88+4*math.cos(sine/3)), 0, math.rad(45)), 0.6)
1709
				larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
1710
				torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/6)), 0, 0), 0.8)
1711
				torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
1712
				hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
1713
				--hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-5-10*math.cos(sine/18)), math.sin(sine/36)/3, 0), 0.3)
1714
				hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1715
				lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.15) * CFrame.Angles(math.rad(-9-2*math.cos(sine/6)), 0, 0), 0.8)
1716
				lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1-0.1*math.cos(sine/3), 0+0.04*math.cos(sine/6)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)), 0.8)
1717
				rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56-2*math.cos(sine/6)), 0, 0), 0.8)
1718
				rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), 0.8)
1719
			elseif stanceToggle == "Grabbed" then
1720
				grab = true
1721
				corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1722
				corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1723
				rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2)
1724
				rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
1725
				larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),-.5)*CFrame.Angles(math.rad(90+4*math.cos(sine/14)),math.rad(0),math.rad(-80+4*math.cos(sine/14))), 0.3)
1726
				larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
1727
				hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14+2*math.cos(sine/14)),math.rad(70-4*math.cos(sine/14)),0), 0.3)
1728
				hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1729
				torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
1730
				torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
1731
				lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3)
1732
				lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
1733
				rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
1734
				rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
1735
			end
1736
		elseif animpose == "Walking" then
1737
			if stanceToggle == "Grabbed" then
1738
				corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1739
				corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1740
				rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
1741
				rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
1742
				larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120+4*math.cos(sine/2)),math.rad(0),math.rad(-30+4*math.cos(sine/4))), 0.3)
1743
				larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
1744
				hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4)
1745
				hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7)
1746
				torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4)
1747
				--rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
1748
				torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
1749
				lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8)
1750
				lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
1751
				rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8)
1752
				rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
1753
			elseif stanceToggle ~= "Grabbed" then
1754
				change = 1
1755
				corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1756
				corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1757
		
1758
				rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
1759
				rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
1760
				larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5+.05*math.cos(sine/2), -math.sin(sine/4)/4)*CFrame.Angles(math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(-10-7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
1761
				larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
1762
				hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4)
1763
				hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7)
1764
				torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4)
1765
				--rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
1766
				torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
1767
				--lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.9-0.24*math.cos(sine/4)/2.8, -0.05 + math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)-math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4)
1768
				lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8)
1769
				lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
1770
				--rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.9+0.24*math.cos(sine/4)/2.8, -0.05 + -math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)+math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4)
1771
				rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8)
1772
				rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
1773
			end
1774
		elseif animpose == "Running" then
1775
			change = 1
1776
			corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1777
			corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1778
1779
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.24+.6*math.cos(sine/4)/1.4, 0.54, 0+0.8*math.cos(sine/4)) * CFrame.Angles(math.rad(6-140*math.cos(sine/4)/1.2), math.rad(0), math.rad(-20+70*math.cos(sine/4))), 0.2)
1780
			rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
1781
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.24+.6*math.cos(sine/4)/1.4, 0.54, 0-0.8*math.cos(sine/4))*CFrame.Angles(math.rad(6+140*math.cos(sine/4)/1.2), math.rad(0), math.rad(20+70*math.cos(sine/4))), 0.2)
1782
			larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1783
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-8+12*math.cos(sine/2)/1.5), math.rad(0+12*math.cos(sine/4)), math.rad(0)),0.2)
1784
			hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.5)
1785
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.2*math.cos(sine/2)/1.7, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/2)/1.5), math.rad(0-12*math.cos(sine/4))-root.RotVelocity.Y/10, math.rad(0)+root.RotVelocity.Y/20), 0.2)
1786
			torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
1787
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.8-0.4*math.cos(sine/4)/2, math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + -math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8)
1788
			lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1789
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8+0.4*math.cos(sine/4)/2, -math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8)
1790
			rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1791
		elseif animpose == "Jumping" then
1792
1793
			corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1794
			corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1795
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(20)), 0.2)
1796
			rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
1797
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), 0.2)
1798
			larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1799
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.rad(0),0), 0.2)
1800
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
1801
			torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
1802
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
1803
			lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1804
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
1805
			rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1806
		elseif animpose == "Freefalling" then
1807
1808
			corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1809
			corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1810
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-40),math.rad(20),math.rad(50)), 0.2)
1811
			rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
1812
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(110),math.rad(-20),math.rad(-30)), 0.2)
1813
			larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1814
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),math.rad(0),0), 0.2)
1815
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2)
1816
			torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
1817
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, 0.2) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2)
1818
			lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1819
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.5, -0.6) * CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)), 0.2)
1820
			rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1821
		end
1822
	end
1823
end)
1824
hum.MaxHealth = math.huge
1825
wait(3)
1826
hum.Health = math.huge
1827
1828
coroutine.wrap(function()
1829
	wait(0.1)
1830
	game.Base.CanCollide = false
1831
end)