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