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