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