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