· 6 years ago · Mar 25, 2019, 01:38 AM
1-- This script has convert to FE by who i don't know?
2
3-----------------------------------------------------
4if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5local Player,game,owner = owner,game
6local RealPlayer = Player
7do
8 print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
9 local rp = RealPlayer
10 script.Parent = rp.Character
11
12 --RemoteEvent for communicating
13 local Event = Instance.new("RemoteEvent")
14 Event.Name = "UserInput_Event"
15
16 --Fake event to make stuff like Mouse.KeyDown work
17 local function fakeEvent()
18 local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
19 t.connect = t.Connect
20 return t
21 end
22
23 --Creating fake input objects with fake variables
24 local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
25 local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
26 local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
27 CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
28 end}
29 --Merged 2 functions into one by checking amount of arguments
30 CAS.UnbindAction = CAS.BindAction
31
32 --This function will trigger the events that have been :Connect()'ed
33 local function te(self,ev,...)
34 local t = m[ev]
35 if t and t._fakeEvent then
36 for _,f in pairs(t.Functions) do
37 f(...)
38 end
39 end
40 end
41 m.TrigEvent = te
42 UIS.TrigEvent = te
43
44 Event.OnServerEvent:Connect(function(plr,io)
45 if plr~=rp then return end
46 m.Target = io.Target
47 m.Hit = io.Hit
48 if not io.isMouse then
49 local b = io.UserInputState == Enum.UserInputState.Begin
50 if io.UserInputType == Enum.UserInputType.MouseButton1 then
51 return m:TrigEvent(b and "Button1Down" or "Button1Up")
52 end
53 for _,t in pairs(CAS.Actions) do
54 for _,k in pairs(t.Keys) do
55 if k==io.KeyCode then
56 t.Function(t.Name,io.UserInputState,io)
57 end
58 end
59 end
60 m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
61 UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
62 end
63 end)
64 Event.Parent = NLS([==[
65 local Player = game:GetService("Players").LocalPlayer
66 local Event = script:WaitForChild("UserInput_Event")
67
68 local Mouse = Player:GetMouse()
69 local UIS = game:GetService("UserInputService")
70 local input = function(io,a)
71 if a then return end
72 --Since InputObject is a client-side instance, we create and pass table instead
73 Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
74 end
75 UIS.InputBegan:Connect(input)
76 UIS.InputEnded:Connect(input)
77
78 local h,t
79 --Give the server mouse data 30 times every second, but only if the values changed
80 --If player is not moving their mouse, client won't fire events
81 while wait(1/30) do
82 if h~=Mouse.Hit or t~=Mouse.Target then
83 h,t=Mouse.Hit,Mouse.Target
84 Event:FireServer({isMouse=true,Target=t,Hit=h})
85 end
86 end]==],Player.Character)
87
88 ----Sandboxed game object that allows the usage of client-side methods and services
89 --Real game object
90 local _rg = game
91
92 --Metatable for fake service
93 local fsmt = {
94 __index = function(self,k)
95 local s = rawget(self,"_RealService")
96 if s then return s[k] end
97 end,
98 __newindex = function(self,k,v)
99 local s = rawget(self,"_RealService")
100 if s then s[k]=v end
101 end,
102 __call = function(self,...)
103 local s = rawget(self,"_RealService")
104 if s then return s(...) 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 self[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 }
123 rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
124 g.service = g.GetService
125
126 g.RunService = FakeService({
127 RenderStepped = _rg:GetService("RunService").Heartbeat,
128 BindToRenderStep = function(self,name,_,fun)
129
130 end,
131 UnbindFromRenderStep = function(self,name)
132 self._btrs[name]:Disconnect()
133 end,
134 },"RunService")
135
136 setmetatable(g,{
137 __index=function(self,s)
138 return _rg:GetService(s) or typeof(_rg[s])=="function"
139 and function(_,...)return _rg[s](_rg,...)end or _rg[s]
140 end,
141 __newindex = fsmt.__newindex,
142 __call = fsmt.__call
143 })
144 --Changing owner to fake player object to support owner:GetMouse()
145 game,owner = g,g.Players.LocalPlayer
146--By quuisiYT(quu#9149)
147Player=game:GetService("Players").LocalPlayer
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
211MMouse=nil
212combo=0
213mana=0
214trispeed=1
215pathtrans=.7
216attackmode='none'
217local idle=0
218local Anim="Idle"
219local Effects={}
220local gun=false
221local shoot=false
222player=nil
223cloak=false
224lightcolor='Bright blue'
225
226local Color1=Torso.BrickColor
227
228
229mouse=Player:GetMouse()
230--save shoulders
231RSH, LSH=nil, nil
232--welds
233RW, LW=Instance.new("Weld"), Instance.new("Weld")
234RW.Name="Right Shoulder" LW.Name="Left Shoulder"
235LH=Torso["Left Hip"]
236RH=Torso["Right Hip"]
237TorsoColor=Torso.BrickColor
238function NoOutline(Part)
239Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
240end
241
242
243
244function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
245local fp=it("Part")
246fp.formFactor=formfactor
247fp.Parent=parent
248fp.Reflectance=reflectance
249fp.Transparency=transparency
250fp.CanCollide=false
251fp.Locked=true
252fp.BrickColor=brickcolor
253fp.Name=name
254fp.Size=size
255fp.Position=Torso.Position
256NoOutline(fp)
257fp.Material="SmoothPlastic"
258fp:BreakJoints()
259return fp
260end
261
262function mesh(Mesh,part,meshtype,meshid,offset,scale)
263local mesh=it(Mesh)
264mesh.Parent=part
265if Mesh=="SpecialMesh" then
266mesh.MeshType=meshtype
267if meshid~="nil" then
268mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
269end
270end
271mesh.Offset=offset
272mesh.Scale=scale
273return mesh
274end
275
276function weld(parent,part0,part1,c0)
277local weld=it("Weld")
278weld.Parent=parent
279weld.Part0=part0
280weld.Part1=part1
281weld.C0=c0
282return weld
283end
284
285local Color1=Torso.BrickColor
286
287
288
289
290
291 Player=game:GetService('Players').LocalPlayer
292 Character=Player.Character
293 Mouse=Player:GetMouse()
294 m=Instance.new('Model',Character)
295
296
297 local function weldBetween(a, b)
298 local weldd = Instance.new("ManualWeld")
299 weldd.Part0 = a
300 weldd.Part1 = b
301 weldd.C0 = CFrame.new()
302 weldd.C1 = b.CFrame:inverse() * a.CFrame
303 weldd.Parent = a
304 return weldd
305 end
306
307 it=Instance.new
308
309 function nooutline(part)
310 part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
311 end
312
313 function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
314 local fp=it("Part")
315 fp.formFactor=formfactor
316 fp.Parent=parent
317 fp.Reflectance=reflectance
318 fp.Transparency=transparency
319 fp.CanCollide=false
320 fp.Locked=true
321 fp.BrickColor=BrickColor.new(tostring(brickcolor))
322 fp.Name=name
323 fp.Size=size
324 fp.Position=Character.Torso.Position
325 nooutline(fp)
326 fp.Material=material
327 fp:BreakJoints()
328 return fp
329 end
330
331 function mesh(Mesh,part,meshtype,meshid,offset,scale)
332 local mesh=it(Mesh)
333 mesh.Parent=part
334 if Mesh=="SpecialMesh" then
335 mesh.MeshType=meshtype
336 mesh.MeshId=meshid
337 end
338 mesh.Offset=offset
339 mesh.Scale=scale
340 return mesh
341 end
342
343 function weld(parent,part0,part1,c0,c1)
344 local weld=it("Weld")
345 weld.Parent=parent
346 weld.Part0=part0
347 weld.Part1=part1
348 weld.C0=c0
349 weld.C1=c1
350 return weld
351 end
352
353
354
355
356
357
358
359
360
361--------------------------------
362local p = game.Players.LocalPlayer
363local char = p.Character
364local mouse = p:GetMouse()
365local larm = char["Left Arm"]
366local rarm = char["Right Arm"]
367local lleg = char["Left Leg"]
368local rleg = char["Right Leg"]
369local hed = char.Head
370local torso = char.Torso
371local hum = char.Humanoid
372local cam = game.Workspace.CurrentCamera
373local root = char.HumanoidRootPart
374local deb = false
375local shot = 0
376local debris=game:service"Debris"
377local l = game:GetService("Lighting")
378local rs = game:GetService("RunService").RenderStepped
379ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
380math.randomseed(os.time())
381for i,v in pairs(char:children()) do
382 if v:IsA("Hat") then
383 v:Destroy()
384 end
385end
386for i,v in pairs (hed:GetChildren()) do
387 if v:IsA("Sound") then
388 v:Destroy()
389 end
390end
391----------------------------------------------------
392z = Instance.new("Sound", torso)
393z.SoundId = "rbxassetid://606241996" -- Put Music ID Here.
394z.Looped = true
395z.Volume = 1
396wait(.1)
397z:Play()
398-----------------------------------------------------
399Debounces = {
400CanAttack = true;
401NoIdl = false;
402Slashing = false;
403Slashed = false;
404RPunch = false;
405RPunched = false;
406LPunch = false;
407LPunched = false;
408}
409local Touche = {char.Name, }
410----------------------------------------------------
411----------------------------------------------------
412----------------------------------------------------
413local LocalPlayer = game:GetService("Players").LocalPlayer
414local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
415
416
417local LocalPlayer = game:GetService("Players").LocalPlayer
418local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
419
420Character.Head.Transparency = 0
421
422local Camisa = Instance.new("Part", Character)
423Camisa.Name = "Camisa"
424
425Camisa.CanCollide = false
426Camisa.BrickColor = BrickColor.new("Institutional white")
427Camisa.Transparency = 1
428Camisa.Material = "Plastic"
429Camisa.Size = Vector3.new(1.5, 1.5, 1)
430
431local Weld = Instance.new("Weld", Camisa)
432Weld.Part0 = Character.Torso
433Weld.Part1 = Camisa
434Weld.C1 = CFrame.new(0, 0, 0)
435----------------------------------------
436local p = game.Players.LocalPlayer
437local char = p.Character
438local mouse = p:GetMouse()
439local larm = char["Left Arm"]
440local rarm = char["Right Arm"]
441local lleg = char["Left Leg"]
442local rleg = char["Right Leg"]
443local hed = char.Head
444local torso = char.Torso
445local hum = char.Humanoid
446local cam = game.Workspace.CurrentCamera
447local root = char.HumanoidRootPart
448local rj = root.RootJoint
449local deb = false
450local shot = 0
451local stanceToggle = "Idle1"
452local l = game:GetService("Lighting")
453local rs = game:GetService("RunService").RenderStepped
454local hb = game:GetService("RunService").Heartbeat
455local Stepped = game:GetService("RunService").Stepped
456math.randomseed(os.time())
457hum.JumpPower = 100
458----------------------------------------------------
459fat = Instance.new("BindableEvent",script)
460fat.Name = "Heartbeat"
461
462script:WaitForChild("Heartbeat")
463
464frame = 1/30
465tf = 0
466allowframeloss = 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.
467tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
468lastframe = tick()
469script.Heartbeat:Fire() --ayy lmao
470
471game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
472 tf = tf + s
473 if tf >= frame then
474 if allowframeloss then
475 script.Heartbeat:Fire()
476 lastframe=tick()
477 else
478 --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
479 for i=1, math.floor(tf/frame) do
480 script.Heartbeat:Fire()
481 end
482 lastframe=tick()
483 end
484 if tossremainder then
485 tf = 0
486 else
487 tf = tf - frame * math.floor(tf/frame)
488 end
489 end
490end)
491----------------------------------------------------
492for i,v in pairs(char:children()) do
493 if v:IsA("Hat") then
494 v:Destroy()
495 end
496end
497for i,v in pairs (hed:GetChildren()) do
498 if v:IsA("Sound") then
499 v:Destroy()
500 end
501end
502----------------------------------------------------
503Debounces = {
504CanAttack = true;
505CanJoke = true;
506NoIdl = false;
507Slashing = false;
508Slashed = false;
509ks = false;
510}
511----------------------------------------------------
512function weld5(part0, part1, c0, c1)
513 weeld=Instance.new("Weld", part0)
514 weeld.Part0=part0
515 weeld.Part1=part1
516 weeld.C0=c0
517 weeld.C1=c1
518 return weeld
519end
520----------------------------------------------------
521function NewPart(prnt,siz,cf,trans,anc,mat,col)
522 local prt=Instance.new("Part")
523 prt.Parent=prnt
524 prt.Name="Part"
525 prt.Size=siz
526 prt.CanCollide=false
527 prt.Anchored=anc
528 prt.Locked=true
529 prt.Transparency = trans
530 prt.TopSurface=10
531 prt.BottomSurface=10
532 prt.FrontSurface=10
533 prt.BackSurface=10
534 prt.LeftSurface=10
535 prt.RightSurface=10
536 prt:BreakJoints()
537 prt.CFrame=cf or CFrame.new(30,10,30)
538 prt.Material=mat
539 prt.BrickColor=BrickColor.new(col)
540 m=Instance.new("SpecialMesh",prt)
541 m.MeshType=6
542 return prt
543end
544----------------------------------------------------
545function lerp(a, b, t) -- Linear interpolation
546 return a + (b - a)*t
547end
548
549function slerp(a, b, t) --Spherical interpolation
550 dot = a:Dot(b)
551 if dot > 0.99999 or dot < -0.99999 then
552 return t <= 0.5 and a or b
553 else
554 r = math.acos(dot)
555 return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
556 end
557end
558
559function matrixInterpolate(a, b, t)
560 local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
561 local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
562 local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
563 local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
564 local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
565 local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
566 local t = v1:Dot(v2)
567 if not (t < 0 or t == 0 or t > 0) then -- Failsafe
568 return CFrame.new()
569 end
570 return CFrame.new(
571 v0.x, v0.y, v0.z,
572 v1.x, v1.y, v1.z,
573 v2.x, v2.y, v2.z,
574 v3.x, v3.y, v3.z)
575end
576----------------------------------------------------
577function genWeld(a,b)
578 local w = Instance.new("Weld",a)
579 w.Part0 = a
580 w.Part1 = b
581 return w
582end
583function weld(a, b)
584 local weld = Instance.new("Weld")
585 weld.Name = "W"
586 weld.Part0 = a
587 weld.Part1 = b
588 weld.C0 = a.CFrame:inverse() * b.CFrame
589 weld.Parent = a
590 return weld;
591end
592----------------------------------------------------
593function Lerp(c1,c2,al)
594 local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
595 local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
596 for i,v in pairs(com1) do
597 com1[i] = v+(com2[i]-v)*al
598 end
599 return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
600end
601----------------------------------------------------
602newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
603 local wld = Instance.new("Weld", wp1)
604 wld.Part0 = wp0
605 wld.Part1 = wp1
606 wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
607end
608----------------------------------------------------
609newWeld(torso, larm, -1.5, 0.5, 0)
610larm.Weld.C1 = CFrame.new(0, 0.5, 0)
611newWeld(torso, rarm, 1.5, 0.5, 0)
612rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
613newWeld(torso, hed, 0, 1.5, 0)
614newWeld(torso, lleg, -0.5, -1, 0)
615lleg.Weld.C1 = CFrame.new(0, 1, 0)
616newWeld(torso, rleg, 0.5, -1, 0)
617rleg.Weld.C1 = CFrame.new(0, 1, 0)
618newWeld(root, torso, 0, -1, 0)
619torso.Weld.C1 = CFrame.new(0, -1, 0)
620----------------------------------------------------
621z = Instance.new("Sound",char) --Smile: print("â?º")
622z.SoundId = "rbxassetid://0"--410761150, 411368002
623z.Looped = true
624z.Pitch = 1
625z.Volume = 1
626wait(0.1)
627z:Play()
628----------------------------------------------------
629New = function(Object, Parent, Name, Data)
630 local Object = Instance.new(Object)
631 for Index, Value in pairs(Data or {}) do
632 Object[Index] = Value
633 end
634 Object.Parent = Parent
635 Object.Name = Name
636 return Object
637end
638----------------------------------------------------
639--Left Arm
640m = Instance.new("Model")
641m.Name = "LeftArm"
642
643p4 = Instance.new("Part", m)
644p4.BrickColor = BrickColor.new("Really black")
645p4.Material = Enum.Material.SmoothPlastic
646p4.Name = "LeftArmPlate"
647p4.Size = Vector3.new(1, 2, 1)
648p4.Transparency = 1
649p4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
650p4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
651p4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
652p4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
653p4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
654p4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
655b4 = Instance.new("SpecialMesh", p4)
656b4.MeshType = Enum.MeshType.Brick
657b4.Name = "Mesh"
658b4.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998)
659
660
661
662
663
664w1 = Instance.new("Weld", p1)
665w1.Name = "Part_Weld"
666w1.Part0 = p1
667w1.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
668w1.Part1 = p2
669w1.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
670w2 = Instance.new("Weld", p2)
671w2.Name = "Part_Weld"
672w2.Part0 = p2
673w2.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
674w2.Part1 = p3
675w2.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
676w3 = Instance.new("Weld", p3)
677w3.Name = "LeftArmPlate_Weld"
678w3.Part0 = p3
679w3.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
680w3.Part1 = p4
681w3.C1 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
682w4 = Instance.new("Weld", p4)
683w4.Name = "Part_Weld"
684w4.Part0 = p4
685w4.C0 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
686w4.Part1 = p5
687w4.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
688w5 = Instance.new("Weld", p5)
689w5.Name = "Part_Weld"
690w5.Part0 = p5
691w5.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
692w5.Part1 = p6
693w5.C1 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
694w6 = Instance.new("Weld", p6)
695w6.Name = "Part_Weld"
696w6.Part0 = p6
697w6.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
698w6.Part1 = p7
699w6.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
700w7 = Instance.new("Weld", p7)
701w7.Name = "Part_Weld"
702w7.Part0 = p7
703w7.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
704w7.Part1 = p8
705w7.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
706w8 = Instance.new("Weld", p8)
707w8.Name = "Part_Weld"
708w8.Part0 = p8
709w8.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
710w8.Part1 = p9
711w8.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
712w9 = Instance.new("Weld", p9)
713w9.Name = "Part_Weld"
714w9.Part0 = p9
715w9.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
716w9.Part1 = p10
717w9.C1 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
718w10 = Instance.new("Weld", p10)
719w10.Name = "Part_Weld"
720w10.Part0 = p10
721w10.C0 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
722w10.Part1 = p11
723w10.C1 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
724w11 = Instance.new("Weld", p11)
725w11.Name = "Part_Weld"
726w11.Part0 = p11
727w11.C0 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
728w11.Part1 = p12
729w11.C1 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
730w12 = Instance.new("Weld", p12)
731w12.Name = "Part_Weld"
732w12.Part0 = p12
733w12.C0 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
734w12.Part1 = p13
735w12.C1 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
736w13 = Instance.new("Weld", p13)
737w13.Name = "Part_Weld"
738w13.Part0 = p13
739w13.C0 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
740w13.Part1 = p14
741w13.C1 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
742w14 = Instance.new("Weld", p14)
743w14.Name = "Part_Weld"
744w14.Part0 = p14
745w14.C0 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
746w14.Part1 = p15
747w14.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
748w15 = Instance.new("Weld", p15)
749w15.Name = "Part_Weld"
750w15.Part0 = p15
751w15.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
752w15.Part1 = p16
753w15.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)
754
755m.Parent = larm
756m:MakeJoints()
757----------------------------------------------------
758local cor = Instance.new("Part", larm.LeftArm)
759cor.Name = "Thingy"
760cor.Locked = true
761cor.BottomSurface = 0
762cor.CanCollide = false
763cor.Size = Vector3.new(1, 1, 1)
764cor.Transparency = 1
765cor.TopSurface = 0
766corw = Instance.new("Weld", cor)
767corw.Part0 = larm
768corw.Part1 = cor
769corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
770corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
771weld1 = Instance.new("Weld", larm.LeftArm)
772weld1.Part0 = cor
773weld1.Part1 = larm.LeftArm.LeftArmPlate
774weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
775--Right Arm
776m2 = Instance.new("Model")
777m2.Name = "RightArm"
778
779p7 = Instance.new("Part", m2)
780p7.BrickColor = BrickColor.new("Institutional white")
781p7.Material = Enum.Material.SmoothPlastic
782p7.Transparency = 1
783p7.Name = "RightArmPlate"
784p7.CFrame = CFrame.new(3.5, -9.54201603, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
785p7.FormFactor = Enum.FormFactor.Symmetric
786p7.Size = Vector3.new(1, 2, 1)
787p7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
788p7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
789p7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
790p7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
791p7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
792p7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
793b7 = Instance.new("SpecialMesh", p7)
794b7.MeshType = Enum.MeshType.Brick
795b7.Name = "Mesh"
796b7.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998)
797
798
799w1 = Instance.new("Weld", p1)
800w1.Name = "Part_Weld"
801w1.Part0 = p1
802w1.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
803w1.Part1 = p2
804w1.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
805w2 = Instance.new("Weld", p2)
806w2.Name = "Part_Weld"
807w2.Part0 = p2
808w2.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
809w2.Part1 = p3
810w2.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
811w3 = Instance.new("Weld", p3)
812w3.Name = "Part_Weld"
813w3.Part0 = p3
814w3.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
815w3.Part1 = p4
816w3.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
817w4 = Instance.new("Weld", p4)
818w4.Name = "Part_Weld"
819w4.Part0 = p4
820w4.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
821w4.Part1 = p5
822w4.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
823w5 = Instance.new("Weld", p5)
824w5.Name = "Part_Weld"
825w5.Part0 = p5
826w5.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
827w5.Part1 = p6
828w5.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
829w6 = Instance.new("Weld", p6)
830w6.Name = "RightArmPlate_Weld"
831w6.Part0 = p6
832w6.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
833w6.Part1 = p7
834w6.C1 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
835w7 = Instance.new("Weld", p7)
836w7.Name = "Part_Weld"
837w7.Part0 = p7
838w7.C0 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
839w7.Part1 = p8
840w7.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
841w8 = Instance.new("Weld", p8)
842w8.Name = "Part_Weld"
843w8.Part0 = p8
844w8.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
845w8.Part1 = p9
846w8.C1 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
847w9 = Instance.new("Weld", p9)
848w9.Name = "Part_Weld"
849w9.Part0 = p9
850w9.C0 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
851w9.Part1 = p10
852w9.C1 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
853w10 = Instance.new("Weld", p10)
854w10.Name = "Part_Weld"
855w10.Part0 = p10
856w10.C0 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
857w10.Part1 = p11
858w10.C1 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
859w11 = Instance.new("Weld", p11)
860w11.Name = "Part_Weld"
861w11.Part0 = p11
862w11.C0 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
863w11.Part1 = p12
864w11.C1 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
865w12 = Instance.new("Weld", p12)
866w12.Name = "Part_Weld"
867w12.Part0 = p12
868w12.C0 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
869w12.Part1 = p13
870w12.C1 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
871w13 = Instance.new("Weld", p13)
872w13.Name = "Part_Weld"
873w13.Part0 = p13
874w13.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
875w13.Part1 = p14
876w13.C1 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
877w14 = Instance.new("Weld", p14)
878w14.Name = "Part_Weld"
879w14.Part0 = p14
880w14.C0 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
881w14.Part1 = p15
882w14.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
883w15 = Instance.new("Weld", p15)
884w15.Name = "Part_Weld"
885w15.Part0 = p15
886w15.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
887w15.Part1 = p16
888w15.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
889w16 = Instance.new("Weld", p16)
890w16.Name = "Part_Weld"
891w16.Part0 = p16
892w16.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
893w16.Part1 = p17
894w16.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
895w17 = Instance.new("Weld", p17)
896w17.Name = "Part_Weld"
897w17.Part0 = p17
898w17.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
899w17.Part1 = p18
900w17.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
901w18 = Instance.new("Weld", p18)
902w18.Name = "Part_Weld"
903w18.Part0 = p18
904w18.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
905w18.Part1 = p19
906w18.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
907m2.Parent = rarm
908m2:MakeJoints()
909----------------------------------------------------
910local cor2 = Instance.new("Part", rarm.RightArm)
911cor2.Name = "Thingy"
912cor2.Locked = true
913cor2.BottomSurface = 0
914cor2.CanCollide = false
915cor2.Size = Vector3.new(1, 1, 1)
916cor2.Transparency = 1
917cor2.TopSurface = 0
918corw2 = Instance.new("Weld", cor2)
919corw2.Part0 = rarm
920corw2.Part1 = cor2
921corw2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
922corw2.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
923weld2 = Instance.new("Weld", rarm.RightArm)
924weld2.Part0 = cor2
925weld2.Part1 = rarm.RightArm.RightArmPlate
926weld2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
927
928
929--Zyrodoxa
930m8 = Instance.new("Model")
931m8.Name = "Zyrodoxa"
932
933p16 = Instance.new("Part", m8)
934p16.BrickColor = BrickColor.new("Instutional white")
935p16.Material = Enum.Material.Metal
936p16.Name = "Handle"
937p16.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)
938p16.CanCollide = false
939p16.Locked = true
940p16.FormFactor = Enum.FormFactor.Custom
941p16.Size = Vector3.new(0, 0, 0)
942p16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
943p16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
944p16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
945p16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
946p16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
947p16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
948b16 = Instance.new("BlockMesh", p16)
949b16.Name = "Mesh"
950b16.Scale = Vector3.new(0, 0, 0)
951
952w16 = Instance.new("Weld", p16)
953w16.Name = "Block_Weld"
954w16.Part0 = p16
955w16.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)
956w16.Part1 = p17
957w16.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)
958
959m8.Parent = rarm
960m8:MakeJoints()
961----------------------------------------------------
962local cor8 = Instance.new("Part", rarm.Zyrodoxa)
963cor8.Name = "Thingy"
964cor8.Locked = true
965cor8.BottomSurface = 0
966cor8.CanCollide = false
967cor8.Size = Vector3.new(1, 1, 1)
968cor8.Transparency = 1
969cor8.TopSurface = 0
970corw8 = Instance.new("Weld", cor8)
971corw8.Part0 = rarm
972corw8.Part1 = cor8
973corw8.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180))
974corw8.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
975weld8 = Instance.new("Weld", rarm.Zyrodoxa)
976weld8.Part0 = cor8
977weld8.Part1 = rarm.Zyrodoxa.Handle
978weld8.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
979----------------------------------------------------
980models = {m,m2,m3,m4,m5,m6,m7,m8}
981parts = {}
982Stepped:connect(function()
983 for i,v in pairs(models) do
984 for _, a in pairs(v:GetChildren()) do
985 if v:IsA("Part") and v.Name ~= "Thingy" then
986 table.insert(parts, a)
987 for i,v in pairs(parts) do
988 v.CanCollide = false
989 end
990 end
991 end
992 end
993end)
994----------------------------------------------------
995local animpose = "Idle1"
996local lastanimpose = "Idle1"
997local grab = false
998local Smooth = 1
999local sine = 0
1000local change = 1
1001local val = 0
1002local ffing = false
1003----------------------------------------------------
1004--[[local hitbox = rarm.Zyrodoxa.Hitbox--Zyrodoxa is the name of the dagger k
1005
1006function FindHumanoids()
1007 local function c_region(Position, Size)
1008 local SizeOffset = Size/2
1009 local Point1 = Position - SizeOffset
1010 local Point2 = Position + SizeOffset
1011 local a = Instance.new("Part", workspace)
1012 a.Anchored = true
1013 a.Size = Size
1014 a.Position = Position
1015 print("Hey!, I'm making a part!")
1016 return Region3.new(Point1, Point2)
1017 end
1018
1019 local a = c_region((hitbox.CFrame * CFrame.new(0, -1.285, 0)), Vector3.new(0.22, 0.6425, 1.22))
1020 local b = c_region((hitbox.CFrame * CFrame.new(0, -0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22))
1021 local c = c_region((hitbox.CFrame * CFrame.new(0, 0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22))
1022 local d = c_region((hitbox.CFrame * CFrame.new(0, 1.285, 0)), Vector3.new(0.22, 0.6425, 1.22))
1023
1024 local regions = {a, b, c, d}
1025
1026 local found_humanoids = {}
1027 local already_found = {char.Name}
1028
1029 for _, region in pairs(regions) do
1030 for _, part in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(region, rarm.Zyrodoxa:GetChildren(), 100)) do
1031 print(part, part.Parent, part.Name) ---nope
1032 if part.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
1033 local humanoid = part.Parent:FindFirstChild("Humanoid")
1034 local name = humanoid.Parent.Name
1035 local exists = false
1036 for _, n in pairs(already_found) do
1037 if n == name then
1038 exists = true
1039 end
1040 end
1041 if not exists then
1042 table.insert(already_found, name)
1043 table.insert(found_humanoids, humanoid)
1044 end
1045 elseif part.Parent.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
1046 local humanoid = part.Parent.Parent:FindFirstChild("Humanoid")
1047 local name = humanoid.Parent.Parent.Name
1048 local exists = false
1049 for _, n in pairs(already_found) do
1050 if n == name then
1051 exists = true
1052 end
1053 end
1054 if not exists then
1055 table.insert(already_found, name)
1056 table.insert(found_humanoids, humanoid)
1057 end
1058 end
1059 end
1060 end
1061 return found_humanoids
1062end
1063
1064local humanoids = FindHumanoids()
1065if #humanoids == 0 then
1066 for i, v in pairs(humanoids) do
1067 print(v.Parent.Name)
1068 if Debounces.Slashing == true then
1069 v:TakeDamage(math.random(10,20) * math.random(1,3)) --max 60 damage?
1070 elseif Debounces.Slashing == false then
1071 wait()
1072 end
1073 end
1074 wait(0.3)
1075end]]--
1076----------------------------------------------------
1077--[[mouse.KeyDown:connect(function(key)
1078 if key == "f" then
1079 if Debounces.CanAttack == true then
1080 Debounces.CanAttack = false
1081 Debounces.NoIdl = true
1082 Debounces.on = true
1083 for i = 1, 20 do
1084 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1085 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1086 CR.Joint.C1 = Lerp(CR.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(-4),0,0),0.1)
1087 CR2.Joint.C1 = Lerp(CR2.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
1088 CR3.Joint.C1 = Lerp(CR3.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
1089 CR4.Joint.C1 = Lerp(CR4.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
1090 CR5.Joint.C1 = Lerp(CR5.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
1091 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)
1092 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)
1093 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)
1094 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)
1095 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)
1096 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)
1097 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6), math.rad(0), 0), 0.1)
1098 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), 0), 0.1)
1099 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)
1100 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)
1101 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)
1102 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)
1103 if Debounces.on == false then
1104 break
1105 end
1106 fat.Event:wait()
1107 end
1108 end
1109 end
1110end)]]--
1111----------------------------------------------------
1112mod4 = Instance.new("Model",char)
1113
1114ptez = {0.7, 0.8, 0.9, 1}
1115
1116function FindNearestTorso(Position,Distance,SinglePlayer)
1117 if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
1118 local List = {}
1119 for i,v in pairs(workspace:GetChildren())do
1120 if v:IsA("Model")then
1121 if v:findFirstChild("Torso")then
1122 if v ~= char then
1123 if(v.Torso.Position -Position).magnitude <= Distance then
1124 table.insert(List,v)
1125 end
1126 end
1127 end
1128 end
1129 end
1130 return List
1131end
1132
1133function Slam()
1134 local part=Instance.new('Part',mod4)
1135 part.Anchored=true
1136 part.CanCollide=false
1137 part.FormFactor='Custom'
1138 part.Size=Vector3.new(.2,.2,.2)
1139 part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0)
1140 part.Transparency=.7
1141 part.BrickColor=BrickColor.new('Really black')
1142 mesh=Instance.new('SpecialMesh',part)
1143 mesh.MeshId='http://www.roblox.com/asset/?id=3270017'
1144 mesh.Scale=Vector3.new(3,3,3)
1145 local part2=Instance.new('Part',mod4)
1146 part2.Anchored=true
1147 part2.CanCollide=false
1148 part2.FormFactor='Custom'
1149 part2.Size=Vector3.new(.2,.2,.2)
1150 part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6)
1151 part2.Transparency=.7
1152 part2.BrickColor=BrickColor.new('Institutional white')
1153 mesh2=Instance.new('SpecialMesh',part2)
1154 mesh2.MeshId='http://www.roblox.com/asset/?id=20329976'
1155 mesh2.Scale=Vector3.new(3,1.5,3)
1156 x = Instance.new("Sound",larm)
1157 x.SoundId = "http://www.roblox.com/asset/?id=142070127"
1158 x.Pitch = ptez[math.random(1,#ptez)]
1159 x.Volume = 1
1160 wait(.1)
1161 x1 = Instance.new("Sound",larm)
1162 x1.SoundId = "http://www.roblox.com/asset/?id=206082327"
1163 x1.Pitch = ptez[math.random(1,#ptez)]
1164 x1.Volume = 1
1165 wait(.1)
1166 x:Play()
1167 x1:Play()
1168 for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do
1169 if v:FindFirstChild('Humanoid') then
1170 v.Humanoid:TakeDamage(math.random(30,45))
1171 end
1172 end
1173 coroutine.resume(coroutine.create(function()
1174 for i=0,0.62,0.13 do
1175 wait()
1176 part.CFrame=part.CFrame
1177 part.Transparency=i
1178 mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4)
1179 part2.CFrame=part2.CFrame
1180 part2.Transparency=i
1181 mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4)
1182 end
1183 part.Parent=nil
1184 part2.Parent=nil
1185 x:Destroy()
1186 end))
1187end
1188----------------------------------------------------
1189wPart = function(x,y,z,color,tr,cc,an,parent)
1190 local wp = Instance.new('WedgePart',parent or Weapon)
1191 wp.formFactor = 'Custom'
1192 wp.Size = Vector3.new(x,y,z)
1193 wp.BrickColor = BrickColor.new(color)
1194 wp.CanCollide = cc
1195 wp.Transparency = tr
1196 wp.Anchored = an
1197 wp.TopSurface,wp.BottomSurface = 0,0
1198 return wp
1199end
1200
1201Mesh = function(par,num,x,y,z)
1202 local msh = _
1203 if num == 1 then
1204 msh = Instance.new("CylinderMesh",par)
1205 elseif num == 2 then
1206 msh = Instance.new("SpecialMesh",par)
1207 msh.MeshType = 3
1208 elseif num == 3 then
1209 msh = Instance.new("BlockMesh",par)
1210 elseif num == 4 then
1211 msh = Instance.new("SpecialMesh",par)
1212 msh.MeshType = "Torso"
1213 elseif type(num) == 'string' then
1214 msh = Instance.new("SpecialMesh",par)
1215 msh.MeshId = num
1216 end
1217 msh.Scale = Vector3.new(x,y,z)
1218 return msh
1219end
1220
1221local function CFrameFromTopBack(at, top, back)
1222 local right = top:Cross(back)
1223 return CFrame.new(at.x, at.y, at.z,
1224 right.x, top.x, back.x,
1225 right.y, top.y, back.y,
1226 right.z, top.z, back.z)
1227end
1228
1229function Triangle(a, b, c)
1230 local edg1 = (c-a):Dot((b-a).unit)
1231 local edg2 = (a-b):Dot((c-b).unit)
1232 local edg3 = (b-c):Dot((a-c).unit)
1233 if edg1 <= (b-a).magnitude and edg1 >= 0 then
1234 a, b, c = a, b, c
1235 elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
1236 a, b, c = b, c, a
1237 elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
1238 a, b, c = c, a, b
1239 else
1240 print("unreachable")
1241 end
1242 local len1 = (c-a):Dot((b-a).unit)
1243 local len2 = (b-a).magnitude - len1
1244 local width = (a + (b-a).unit*len1 - c).magnitude
1245 local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
1246 local list = {}
1247 if len1 > 0.01 then
1248 local w1 = wPart(0,0,0,'Institutional white',0.5,false,true,char)
1249 local sz = Vector3.new(0.2, width, len1)
1250 w1.Size = sz
1251 local sp = Mesh(w1,2,0,0,0)
1252 sp.MeshType='Wedge'
1253 sp.Scale=Vector3.new(0,1,1)*sz/w1.Size
1254 w1:BreakJoints()
1255 w1.Anchored = true
1256 w1.Transparency = 0.7
1257 Spawn(function()
1258 for i=0,1,0.1 do
1259 fat.Event:wait()
1260 w1.Transparency=w1.Transparency+0.03
1261 end
1262 end)
1263 w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
1264 table.insert(list,w1)
1265 end
1266 if len2 > 0.01 then
1267 local w2 = wPart(0,0,0,'Institutional white',0.5,false,true,char)
1268 local sz = Vector3.new(0.2, width, len2)
1269 w2.Size = sz
1270 local sp = Mesh(w2,2,0,0,0)
1271 sp.MeshType='Wedge'
1272 sp.Scale=Vector3.new(0,1,1)*sz/w2.Size
1273 w2:BreakJoints()
1274 w2.Anchored = true
1275 w2.Transparency = 0.7
1276 Spawn(function()
1277 for i=0,1,0.1 do
1278 fat.Event:wait()
1279 w2.Transparency=w2.Transparency+0.03
1280 end
1281 end)
1282 w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
1283 table.insert(list,w2)
1284 end
1285 return unpack(list)
1286end
1287
1288function trail(p,t,h)
1289 Spawn(function()
1290 local blcf = p.CFrame
1291 local scfr = blcf
1292 for i=1,t do
1293 local blcf = p.CFrame
1294 if scfr and (p.Position-scfr.p).magnitude > .1 then
1295 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)
1296 if a then game.Debris:AddItem(a,1) end
1297 if b then game.Debris:AddItem(b,1) end
1298 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)
1299 if a then game.Debris:AddItem(a,1) end
1300 if b then game.Debris:AddItem(b,1) end
1301 scfr = blcf
1302 elseif not scfr then
1303 scfr = blcf
1304 end
1305 fat.Event:wait()
1306 end
1307 scfr=nil
1308 end)
1309end
1310--trail(char.Sword.Blade,1e1000,5)
1311----------------------------------------------------
1312function Dmg()
1313 local partofdeath = rarm.Zyrodoxa.Hitbox
1314 local function CreateRegion3FromLocAndSize(Position, Size)
1315 local SizeOffset = Size/2
1316 local Point1 = Position - SizeOffset
1317 local Point2 = Position + SizeOffset
1318 return Region3.new(Point1, Point2)
1319 end
1320 local reg = CreateRegion3FromLocAndSize(partofdeath.Position, partofdeath.Size)
1321 for i, v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do
1322 Spawn(function()
1323 if Debounces.Slashing == true and Debounces.Slashed == false then
1324 Debounces.Slashed = true
1325 ypcall(function()
1326 local humanoid = v.Parent:FindFirstChild("Humanoid") or v.Parent.Parent:FindFirstChild("Humanoid")
1327 humanoid:TakeDamage(math.random(10,18))
1328 end)
1329 wait(.4)
1330 Debounces.Slashed = false
1331 end
1332 end)
1333 end
1334end
1335----------------------------------------------------
1336pts = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
1337ptz = {0.7, 0.8, 0.9, 1}
1338idz = {"161006212", "161006195"}
1339function attackone()
1340 for i = 1, 13 do
1341 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)
1342 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), math.rad(30), math.rad(0)), 0.8)
1343 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)
1344 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)
1345 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)
1346 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)
1347 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(-50),0), 0.5)
1348 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.5)
1349 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.7)
1350 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)
1351 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)
1352 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)
1353 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)
1354 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)
1355 if Debounces.on == false then
1356 break
1357 end
1358 fat.Event:wait()
1359 end
1360 trail(rarm.Zyrodoxa.Hitbox,20,2)
1361 Debounces.Slashing = true
1362 wait(0.2)
1363 --[[z = Instance.new("Sound", hed)
1364 z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
1365 z.Pitch = ptz[math.random(1,#ptz)]
1366 z.Volume = 1
1367 wait(.01)
1368 z:Play()]]--
1369 for i = 1, 14 do
1370 Dmg()
1371 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8)
1372 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-40), math.rad(30), math.rad(0)), 0.8)
1373 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)
1374 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)
1375 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)
1376 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)
1377 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),0), 0.7)
1378 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
1379 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(-10), math.rad(-40), 0), 0.4)
1380 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)
1381 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)
1382 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)
1383 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)
1384 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)
1385 if Debounces.on == false then break end
1386 rs:wait()
1387 end
1388 Debounces.Slashing = false
1389end
1390function attacktwo()
1391 Debounces.Slashing = true
1392 for i = 1, 14 do
1393 Dmg()
1394 corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.37, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4)
1395 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.4)
1396 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)
1397 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)
1398 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)
1399 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)
1400 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)
1401 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
1402 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)
1403 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)
1404 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.5)
1405 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)
1406 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.5)
1407 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)
1408 if Debounces.on == false then
1409 break
1410 end
1411 rs:wait()
1412 end
1413end
1414----------------------------------------------------
1415
1416----------------------------------------------------
1417definition = 5
1418bc = {}
1419bezierparts = {}
1420function NoOutline(Part)
1421 Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
1422end
1423function draw(p,d)
1424 for i=1,d do
1425 local t = i/d
1426 bc[i] = p[1]*(1-t)^2+2*p[2]*(1-t)*t+p[3]*t^2
1427 end
1428
1429 Spawn(function() fat.Event:wait()
1430 for i,v in pairs(bezierparts) do
1431 v.Transparency = 1
1432 end
1433 end)
1434end
1435--local points = {larm.Position,rarn.Position,invisipart.Position}
1436--draw(points,definition)
1437
1438 fat.Event:wait()
1439
1440 rpart = Instance.new("Part",rarm)
1441 NoOutline(rpart)
1442 rpart.Anchored = false
1443 rpart.Size = Vector3.new(1,1,1)
1444 rpart.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
1445 rpart.Transparency = 1
1446 newWeld(rarm, rpart, 0, 0, 0)
1447 rpart.Weld.C1 = CFrame.new(0, 1.1, 0)
1448 lpart = Instance.new("Part",larm)
1449 NoOutline(lpart)
1450 lpart.Anchored = false
1451 lpart.Size = Vector3.new(1,1,1)
1452 lpart.CFrame = larm.CFrame * CFrame.new(0,-1,0)
1453 lpart.Transparency = 1
1454 newWeld(larm, lpart, 0, 0, 0)
1455 lpart.Weld.C1 = CFrame.new(0, 1.1, 0)
1456 invisipart = Instance.new("Part",torso)
1457 NoOutline(invisipart)
1458 invisipart.Anchored = false
1459 invisipart.Size = Vector3.new(1,1,1)
1460 invisipart.Transparency = 1
1461 invisipart.CFrame = torso.CFrame
1462 newWeld(torso, invisipart, 0, 0, 0)
1463 invisipart.Weld.C1 = CFrame.new(0, 0, 6)
1464 table.insert(bezierparts, rpart)
1465 table.insert(bezierparts, lpart)
1466 table.insert(bezierparts, invisipart)
1467 for i = 1, 40 do
1468 local points = {lpart.Position,invisipart.Position,rpart.Position}
1469 draw(points,definition)
1470 --invisipart.Weld.C1 = invisipart.Weld.C1 + Vector3.new(0,0,0.6)
1471 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)
1472 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)
1473 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)
1474 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)
1475 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)
1476 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
1477 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)
1478 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)
1479 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(-10)), 0.2)
1480 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)
1481 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(10)), 0.2)
1482 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)
1483 if Debounces.on == false then
1484 break
1485 end
1486 fat.Event:wait()
1487 end
1488 for i,v in pairs(bezierparts) do
1489 v:Destroy()
1490 end
1491 --draw(points,definition)
1492 if Debounces.CanAttack == false then
1493 Debounces.CanAttack = true
1494 Debounces.NoIdl = false
1495 Debounces.on = false
1496 end
1497
1498----------------------------------------------------
1499----------------------------------------------------
1500pt = {6.6, 6.8, 7, 7.2, 7.4}
1501mouse.KeyDown:connect(function(key)
1502 if key == "q" then
1503 if Debounces.CanJoke == true then
1504 Debounces.CanJoke = false
1505 u = Instance.new("Sound",char)
1506 u.SoundId = "http://www.roblox.com/asset/?id=261303790"
1507 u.Pitch = pt[math.random(1,#pt)]
1508 u.Volume = 0.3
1509 u2 = Instance.new("Sound",char)
1510 u2.SoundId = "http://www.roblox.com/asset/?id=261303790"
1511 u2.Pitch = u.Pitch
1512 u2.Volume = 0.3
1513 u3 = Instance.new("Sound",char)
1514 u3.SoundId = "http://www.roblox.com/asset/?id=261303790"
1515 u3.Pitch = u.Pitch
1516 u3.Volume = 0.3
1517 wait(.01)
1518 u:Play()
1519 u2:Play()
1520 u3:Play()
1521 wait(1.5)
1522 u:Destroy()
1523 u2:Destroy()
1524 u3:Destroy()
1525 if Debounces.CanJoke == false then
1526 Debounces.CanJoke = true
1527 end
1528 end
1529 end
1530end)
1531----------------------------------------------------
1532----------------------------------------------------
1533----------------------------------------------------
1534Grab = false
1535mouse.KeyDown:connect(function(key)
1536 if key == "g" then
1537 Debounces.on = true
1538 Debounces.NoIdl = true
1539 Debounces.ks = true
1540 if Grab == false then
1541 gp = nil
1542 for i = 1, 20 do
1543 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)
1544 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)
1545 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)
1546 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)
1547 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2)
1548 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)
1549 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2)
1550 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)
1551 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)
1552 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)
1553 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)
1554 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)
1555 if Debounces.on == false then break end
1556 fat.Event:wait()
1557 end
1558 con1=larm.LeftArm.LeftArmPlate.Touched:connect(function(hit)
1559 ht = hit.Parent
1560 for i,v in pairs(ht:GetChildren()) do
1561 if v:IsA("Part") then
1562 v.CanCollide = false
1563 v.CustomPhysicalProperties = PhysicalProperties.new(0.001,0.001,0.001,0.001,0.001)
1564 end
1565 end
1566 hum1=ht:FindFirstChild('Humanoid')
1567 if hum1 ~= nil then
1568 if Debounces.ks==true then
1569 z = Instance.new("Sound",hed)
1570 z.SoundId = "rbxassetid://169380525"
1571 z.Volume = 1
1572 z:Play()
1573 Debounces.ks=false
1574 end
1575 hum1.PlatformStand=true
1576 hum1:ChangeState'Physics'
1577 gp = ht
1578 Grab = true
1579 asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,0.6),CFrame.new(0,0,0))
1580 asd.Parent = larm
1581 asd.Name = "asd"
1582 asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0)
1583 stanceToggle = "Grabbed"
1584 --[[elseif hum1 == nil then
1585 con1:disconnect()
1586 wait() return]]--
1587 end
1588 end)
1589 for i = 1, 20 do
1590 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)
1591 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)
1592 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)
1593 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)
1594 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.2)
1595 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)
1596 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2)
1597 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)
1598 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)
1599 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)
1600 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)
1601 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)
1602 if Debounces.on == false then break end
1603 fat.Event:wait()
1604 end
1605 con1:disconnect()
1606 Debounces.on = false
1607 Debounces.NoIdl = false
1608 elseif Grab == true then
1609 Grab = false
1610 --[[for i = 1, 16 do
1611 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)
1612 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)
1613 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3)
1614 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
1615 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)
1616 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)
1617 cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3)
1618 if Debounces.on == false then end
1619 rs:wait()
1620 end]]--
1621 for i = 1, 16 do
1622 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)
1623 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)
1624 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)
1625 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)
1626 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3)
1627 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)
1628 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.3)
1629 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)
1630 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)
1631 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)
1632 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)
1633 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)
1634 if Debounces.on == false then end
1635 rs:wait()
1636 end
1637 for i = 1, 12 do
1638 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)
1639 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)
1640 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)
1641 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)
1642 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)
1643 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)
1644 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)
1645 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)
1646 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.6)
1647 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)
1648 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)
1649 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)
1650 if Debounces.on == false then end
1651 rs:wait()
1652 end
1653 Slam()
1654 if gp ~= nil then
1655 for i,v in pairs(larm:GetChildren()) do
1656 if v.Name == "asd" and v:IsA("Weld") then
1657 v:Remove()
1658 end
1659 if v:IsA("Part") then
1660 v.CanCollide = true
1661 v.CustomPhysicalProperties = PhysicalProperties.new(1,1,1,1,1)
1662 end
1663 end
1664 end
1665 stanceToggle = "Idle1"
1666 --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso"))
1667 bv.maxForce = Vector3.new(400000, 400000, 400000)
1668 bv.P = 125000
1669 bv.velocity = char.Head.CFrame.lookVector * 200]]--
1670 ht=nil
1671 Debounces.on = false
1672 Debounces.NoIdl = false
1673 elseif ht == nil then wait()
1674 Grab = false
1675 Debounces.on = false
1676 Debounces.NoIdl = false
1677 end
1678 end
1679end)
1680----------------------------------------------------
1681Change = false
1682mouse.KeyDown:connect(function(key)
1683 if key == "n" then
1684 if Change == false then
1685 Change = true
1686 stanceToggle = "Idle2"
1687 elseif Change == true then
1688 Change = false
1689 stanceToggle = "Idle1"
1690 end
1691 end
1692end)
1693----------------------------------------------------
1694mouse.KeyDown:connect(function(key)
1695 if string.byte(key) == 52 then
1696 Swing = 2
1697 char.Humanoid.WalkSpeed = 28
1698 end
1699end)
1700mouse.KeyUp:connect(function(key)
1701 if string.byte(key) == 52 then
1702 Swing = 1
1703 char.Humanoid.WalkSpeed = 16
1704 end
1705end)
1706local mouse2 = Player:GetMouse()
1707local running = false
1708
1709mouse2.KeyDown:connect(function(key) -- Run function
1710 if key == "e" then
1711 running = true
1712 local keyConnection = mouse.KeyUp:connect(function(key)
1713 if string.byte(key) == 48 then
1714 running = false
1715 end
1716 end)
1717 game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 30
1718 end
1719end)
1720
1721mouse2.KeyUp:connect(function(key)
1722if key == "e" then
1723running = false
1724Character.Humanoid.WalkSpeed = 16
1725end
1726end)
1727function Ban()
1728 Debounces.on = true
1729 Debounces.NoIdl = true
1730 Debounces.ks = true
1731local hitbox = Instance.new("Part",banh)
1732hitbox.Name = "HurtBox"
1733hitbox.Size = Vector3.new(2.09, 3.4, 1.8)
1734hitbox.Transparency = 1
1735local hitboxwe = Instance.new("Weld",hitbox)
1736hitboxwe.Part0 = hitbox
1737hitboxwe.Part1 = banh
1738hitboxwe.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)
1739function onTouched(part)
1740 local human = part.Parent:FindFirstChildOfClass("Humanoid")
1741 if human then
1742 human.Parent:Destroy()
1743 ban2:Play()
1744 wait(1.4)
1745 ban:Play()
1746 wait(1.2)
1747 omg:Play()
1748 wait(2.6)
1749 scream:Play()
1750 wait(4.6)
1751 scream:Stop()
1752 end
1753end
1754hitbox.Touched:connect(onTouched)
1755for i = 0,1 , 0.09 do
1756 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)
1757 game:GetService("RunService").RenderStepped:wait()
1758end
1759hitbox:Destroy()
1760banw.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)
1761Debounces.on = false
1762Debounces.NoIdl = false
1763Debounces.ks = false
1764end
1765mouse.Button1Down:connect(Ban)
1766----------------------------------------------------
1767
1768jump = false
1769rs:connect(function()
1770 if char.Humanoid.Jump == true then
1771 jump = true
1772 else
1773 jump = false
1774 end
1775 char.Humanoid.FreeFalling:connect(function(f)
1776 if f then
1777 ffing = true
1778 else
1779 ffing = false
1780 end
1781 end)
1782 sine = sine + change
1783 if jump == true then
1784 animpose = "Jumping"
1785 elseif ffing == true then
1786 animpose = "Freefalling"
1787 elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
1788 animpose = "Idle"
1789 elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
1790 animpose = "Walking"
1791 elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
1792 animpose = "Running"
1793 end
1794 RightLeg = CFrame.new(0.5,-1,0)
1795 LeftLeg = CFrame.new(-0.5,-1,0)
1796
1797 lefth = (torso.CFrame*LeftLeg)
1798 righth = (torso.CFrame*RightLeg)
1799
1800 speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z)
1801
1802 TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100)
1803
1804 local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100)
1805 local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100)
1806 if animpose ~= lastanimpose then
1807 sine = 0
1808 if Debounces.NoIdl == false then
1809 if stanceToggle == "Idle1" then
1810 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)
1811 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)
1812 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)
1813 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)
1814 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)
1815 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)
1816 elseif stanceToggle == "Idle2" then
1817 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)
1818 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)
1819 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)
1820 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)
1821 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)
1822 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)
1823 end
1824 fat.Event:wait()
1825 end
1826 else
1827 end
1828 lastanimpose = animpose
1829 if Debounces.NoIdl == false then
1830 if animpose == "Idle" then
1831 change = 0.5
1832 if stanceToggle == "Idle1" then
1833 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)
1834 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)
1835
1836 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)
1837 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)
1838 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)
1839 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)
1840 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)
1841 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)
1842 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)
1843 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)
1844 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)
1845 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)
1846 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)
1847 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)
1848 elseif stanceToggle == "Idle2" then
1849
1850 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1851 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)
1852 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)
1853 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)
1854 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)
1855 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)
1856 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
1857 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
1858 --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)
1859 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)
1860 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)
1861 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)
1862 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)
1863 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)
1864 elseif stanceToggle == "Grabbed" then
1865 grab = true
1866 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1867 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1868 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)
1869 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)
1870 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)
1871 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)
1872 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)
1873 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)
1874 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
1875 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
1876 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)
1877 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)
1878 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)
1879 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)
1880 end
1881 elseif animpose == "Walking" then
1882 if stanceToggle == "Grabbed" then
1883 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1884 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1885 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)
1886 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)
1887 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)
1888 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)
1889 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)
1890 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)
1891 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)
1892 --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
1893 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
1894 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)
1895 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)
1896 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)
1897 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)
1898 elseif stanceToggle ~= "Grabbed" then
1899 change = 1
1900 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1901 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1902
1903 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)
1904 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)
1905 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)
1906 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)
1907 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)
1908 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)
1909 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)
1910 --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
1911 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
1912 --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)
1913 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)
1914 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)
1915 --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)
1916 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)
1917 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)
1918 end
1919 elseif animpose == "Running" then
1920 change = 1
1921 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1922 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1923
1924 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)
1925 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)
1926 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)
1927 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)
1928 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)
1929 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)
1930 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)
1931 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
1932 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)
1933 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)
1934 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)
1935 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)
1936 elseif animpose == "Jumping" then
1937
1938 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1939 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1940 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)
1941 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)
1942 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)
1943 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)
1944 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.rad(0),0), 0.2)
1945 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
1946 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
1947 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)
1948 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)
1949 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)
1950 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)
1951 elseif animpose == "Freefalling" then
1952
1953 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1954 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1955 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)
1956 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)
1957 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)
1958 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)
1959 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),math.rad(0),0), 0.2)
1960 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2)
1961 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
1962 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)
1963 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)
1964 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)
1965 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)
1966 end
1967 end
1968end)
1969hum.MaxHealth = math.huge
1970wait(3)
1971hum.Health = math.huge
1972
1973coroutine.wrap(function()
1974 wait(0.1)
1975 game.Base.CanCollide = false
1976end)
1977--By quuisiYT(quu#9149)
1978Player=game:GetService("Players").LocalPlayer
1979Character=Player.Character
1980char = Character
1981local scream = Instance.new("Sound",char.Torso)
1982scream.SoundId = "rbxassetid://901030512"
1983scream.Volume = 100
1984local omg = Instance.new("Sound",char.Torso)
1985omg.SoundId = "rbxassetid://1090126885"
1986omg.Volume = 1000
1987local ban2 = Instance.new("Sound",char.Torso)
1988ban2.SoundId = "rbxassetid://135925117"
1989ban2.Volume = 100
1990local ban = Instance.new("Sound",char.Torso)
1991ban.SoundId = "rbxassetid://948494432"
1992ban.Volume = 100
1993local banh = Instance.new("Part",char)
1994banh.Name = "BAN!"
1995banh.Size = Vector3.new(1, 5.2, 1)
1996banh.CanCollide = false
1997local banm = Instance.new("FileMesh",banh)
1998banm.MeshId = "http://www.roblox.com/asset/?id=10604848"
1999banm.TextureId = "http://www.roblox.com/asset/?id=10605252"
2000banm.Scale = Vector3.new(0.5,0.5,0.5)
2001local banw = Instance.new("Weld",banh)
2002banw.Part0 = banh
2003banw.Part1 = char["Right Arm"]
2004banw.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)
2005PlayerGui=Player.PlayerGui
2006Backpack=Player.Backpack
2007Torso=Character.Torso
2008Head=Character.Head
2009Humanoid=Character.Humanoid
2010m=Instance.new('Model',Character)
2011LeftArm=Character["Left Arm"]
2012LeftLeg=Character["Left Leg"]
2013RightArm=Character["Right Arm"]
2014RightLeg=Character["Right Leg"]
2015LS=Torso["Left Shoulder"]
2016LH=Torso["Left Hip"]
2017RS=Torso["Right Shoulder"]
2018RH=Torso["Right Hip"]
2019Face = Head.face
2020Neck=Torso.Neck
2021it=Instance.new
2022attacktype=1
2023vt=Vector3.new
2024cf=CFrame.new
2025euler=CFrame.fromEulerAnglesXYZ
2026angles=CFrame.Angles
2027cloaked=false
2028necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
2029necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
2030LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
2031LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
2032RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
2033RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
2034RootPart=Character.HumanoidRootPart
2035RootJoint=RootPart.RootJoint
2036RootCF=euler(-1.57,0,3.14)
2037attack = false
2038attackdebounce = false
2039deb=false
2040equipped=true
2041hand=false
2042MMouse=nil
2043combo=0
2044mana=0
2045trispeed=1
2046pathtrans=.7
2047attackmode='none'
2048local idle=0
2049local Anim="Idle"
2050local Effects={}
2051local gun=false
2052local shoot=false
2053player=nil
2054cloak=false
2055lightcolor='Bright blue'
2056
2057local Color1=Torso.BrickColor
2058
2059
2060mouse=Player:GetMouse()
2061--save shoulders
2062RSH, LSH=nil, nil
2063--welds
2064RW, LW=Instance.new("Weld"), Instance.new("Weld")
2065RW.Name="Right Shoulder" LW.Name="Left Shoulder"
2066LH=Torso["Left Hip"]
2067RH=Torso["Right Hip"]
2068TorsoColor=Torso.BrickColor
2069function NoOutline(Part)
2070Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
2071end
2072
2073
2074
2075function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
2076local fp=it("Part")
2077fp.formFactor=formfactor
2078fp.Parent=parent
2079fp.Reflectance=reflectance
2080fp.Transparency=transparency
2081fp.CanCollide=false
2082fp.Locked=true
2083fp.BrickColor=brickcolor
2084fp.Name=name
2085fp.Size=size
2086fp.Position=Torso.Position
2087NoOutline(fp)
2088fp.Material="SmoothPlastic"
2089fp:BreakJoints()
2090return fp
2091end
2092
2093function mesh(Mesh,part,meshtype,meshid,offset,scale)
2094local mesh=it(Mesh)
2095mesh.Parent=part
2096if Mesh=="SpecialMesh" then
2097mesh.MeshType=meshtype
2098if meshid~="nil" then
2099mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
2100end
2101end
2102mesh.Offset=offset
2103mesh.Scale=scale
2104return mesh
2105end
2106
2107function weld(parent,part0,part1,c0)
2108local weld=it("Weld")
2109weld.Parent=parent
2110weld.Part0=part0
2111weld.Part1=part1
2112weld.C0=c0
2113return weld
2114end
2115
2116local Color1=Torso.BrickColor
2117
2118
2119
2120
2121
2122 Player=game:GetService('Players').LocalPlayer
2123 Character=Player.Character
2124 Mouse=Player:GetMouse()
2125 m=Instance.new('Model',Character)
2126
2127
2128 local function weldBetween(a, b)
2129 local weldd = Instance.new("ManualWeld")
2130 weldd.Part0 = a
2131 weldd.Part1 = b
2132 weldd.C0 = CFrame.new()
2133 weldd.C1 = b.CFrame:inverse() * a.CFrame
2134 weldd.Parent = a
2135 return weldd
2136 end
2137
2138 it=Instance.new
2139
2140 function nooutline(part)
2141 part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
2142 end
2143
2144 function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
2145 local fp=it("Part")
2146 fp.formFactor=formfactor
2147 fp.Parent=parent
2148 fp.Reflectance=reflectance
2149 fp.Transparency=transparency
2150 fp.CanCollide=false
2151 fp.Locked=true
2152 fp.BrickColor=BrickColor.new(tostring(brickcolor))
2153 fp.Name=name
2154 fp.Size=size
2155 fp.Position=Character.Torso.Position
2156 nooutline(fp)
2157 fp.Material=material
2158 fp:BreakJoints()
2159 return fp
2160 end
2161
2162 function mesh(Mesh,part,meshtype,meshid,offset,scale)
2163 local mesh=it(Mesh)
2164 mesh.Parent=part
2165 if Mesh=="SpecialMesh" then
2166 mesh.MeshType=meshtype
2167 mesh.MeshId=meshid
2168 end
2169 mesh.Offset=offset
2170 mesh.Scale=scale
2171 return mesh
2172 end
2173
2174 function weld(parent,part0,part1,c0,c1)
2175 local weld=it("Weld")
2176 weld.Parent=parent
2177 weld.Part0=part0
2178 weld.Part1=part1
2179 weld.C0=c0
2180 weld.C1=c1
2181 return weld
2182 end
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192--------------------------------
2193local p = game.Players.LocalPlayer
2194local char = p.Character
2195local mouse = p:GetMouse()
2196local larm = char["Left Arm"]
2197local rarm = char["Right Arm"]
2198local lleg = char["Left Leg"]
2199local rleg = char["Right Leg"]
2200local hed = char.Head
2201local torso = char.Torso
2202local hum = char.Humanoid
2203local cam = game.Workspace.CurrentCamera
2204local root = char.HumanoidRootPart
2205local deb = false
2206local shot = 0
2207local debris=game:service"Debris"
2208local l = game:GetService("Lighting")
2209local rs = game:GetService("RunService").RenderStepped
2210ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
2211math.randomseed(os.time())
2212for i,v in pairs(char:children()) do
2213 if v:IsA("Hat") then
2214 v:Destroy()
2215 end
2216end
2217for i,v in pairs (hed:GetChildren()) do
2218 if v:IsA("Sound") then
2219 v:Destroy()
2220 end
2221end
2222----------------------------------------------------
2223z = Instance.new("Sound", torso)
2224z.SoundId = "rbxassetid://606241996" -- Put Music ID Here.
2225z.Looped = true
2226z.Volume = 1
2227wait(.1)
2228z:Play()
2229-----------------------------------------------------
2230Debounces = {
2231CanAttack = true;
2232NoIdl = false;
2233Slashing = false;
2234Slashed = false;
2235RPunch = false;
2236RPunched = false;
2237LPunch = false;
2238LPunched = false;
2239}
2240local Touche = {char.Name, }
2241----------------------------------------------------
2242----------------------------------------------------
2243----------------------------------------------------
2244local LocalPlayer = game:GetService("Players").LocalPlayer
2245local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
2246
2247
2248local LocalPlayer = game:GetService("Players").LocalPlayer
2249local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
2250
2251Character.Head.Transparency = 0
2252
2253local Camisa = Instance.new("Part", Character)
2254Camisa.Name = "Camisa"
2255
2256Camisa.CanCollide = false
2257Camisa.BrickColor = BrickColor.new("Institutional white")
2258Camisa.Transparency = 1
2259Camisa.Material = "Plastic"
2260Camisa.Size = Vector3.new(1.5, 1.5, 1)
2261
2262local Weld = Instance.new("Weld", Camisa)
2263Weld.Part0 = Character.Torso
2264Weld.Part1 = Camisa
2265Weld.C1 = CFrame.new(0, 0, 0)
2266----------------------------------------
2267local p = game.Players.LocalPlayer
2268local char = p.Character
2269local mouse = p:GetMouse()
2270local larm = char["Left Arm"]
2271local rarm = char["Right Arm"]
2272local lleg = char["Left Leg"]
2273local rleg = char["Right Leg"]
2274local hed = char.Head
2275local torso = char.Torso
2276local hum = char.Humanoid
2277local cam = game.Workspace.CurrentCamera
2278local root = char.HumanoidRootPart
2279local rj = root.RootJoint
2280local deb = false
2281local shot = 0
2282local stanceToggle = "Idle1"
2283local l = game:GetService("Lighting")
2284local rs = game:GetService("RunService").RenderStepped
2285local hb = game:GetService("RunService").Heartbeat
2286local Stepped = game:GetService("RunService").Stepped
2287math.randomseed(os.time())
2288hum.JumpPower = 100
2289----------------------------------------------------
2290fat = Instance.new("BindableEvent",script)
2291fat.Name = "Heartbeat"
2292
2293script:WaitForChild("Heartbeat")
2294
2295frame = 1/30
2296tf = 0
2297allowframeloss = 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.
2298tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
2299lastframe = tick()
2300script.Heartbeat:Fire() --ayy lmao
2301
2302game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
2303 tf = tf + s
2304 if tf >= frame then
2305 if allowframeloss then
2306 script.Heartbeat:Fire()
2307 lastframe=tick()
2308 else
2309 --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
2310 for i=1, math.floor(tf/frame) do
2311 script.Heartbeat:Fire()
2312 end
2313 lastframe=tick()
2314 end
2315 if tossremainder then
2316 tf = 0
2317 else
2318 tf = tf - frame * math.floor(tf/frame)
2319 end
2320 end
2321end)
2322----------------------------------------------------
2323for i,v in pairs(char:children()) do
2324 if v:IsA("Hat") then
2325 v:Destroy()
2326 end
2327end
2328for i,v in pairs (hed:GetChildren()) do
2329 if v:IsA("Sound") then
2330 v:Destroy()
2331 end
2332end
2333----------------------------------------------------
2334Debounces = {
2335CanAttack = true;
2336CanJoke = true;
2337NoIdl = false;
2338Slashing = false;
2339Slashed = false;
2340ks = false;
2341}
2342----------------------------------------------------
2343function weld5(part0, part1, c0, c1)
2344 weeld=Instance.new("Weld", part0)
2345 weeld.Part0=part0
2346 weeld.Part1=part1
2347 weeld.C0=c0
2348 weeld.C1=c1
2349 return weeld
2350end
2351----------------------------------------------------
2352function NewPart(prnt,siz,cf,trans,anc,mat,col)
2353 local prt=Instance.new("Part")
2354 prt.Parent=prnt
2355 prt.Name="Part"
2356 prt.Size=siz
2357 prt.CanCollide=false
2358 prt.Anchored=anc
2359 prt.Locked=true
2360 prt.Transparency = trans
2361 prt.TopSurface=10
2362 prt.BottomSurface=10
2363 prt.FrontSurface=10
2364 prt.BackSurface=10
2365 prt.LeftSurface=10
2366 prt.RightSurface=10
2367 prt:BreakJoints()
2368 prt.CFrame=cf or CFrame.new(30,10,30)
2369 prt.Material=mat
2370 prt.BrickColor=BrickColor.new(col)
2371 m=Instance.new("SpecialMesh",prt)
2372 m.MeshType=6
2373 return prt
2374end
2375----------------------------------------------------
2376function lerp(a, b, t) -- Linear interpolation
2377 return a + (b - a)*t
2378end
2379
2380function slerp(a, b, t) --Spherical interpolation
2381 dot = a:Dot(b)
2382 if dot > 0.99999 or dot < -0.99999 then
2383 return t <= 0.5 and a or b
2384 else
2385 r = math.acos(dot)
2386 return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
2387 end
2388end
2389
2390function matrixInterpolate(a, b, t)
2391 local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
2392 local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
2393 local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
2394 local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
2395 local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
2396 local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
2397 local t = v1:Dot(v2)
2398 if not (t < 0 or t == 0 or t > 0) then -- Failsafe
2399 return CFrame.new()
2400 end
2401 return CFrame.new(
2402 v0.x, v0.y, v0.z,
2403 v1.x, v1.y, v1.z,
2404 v2.x, v2.y, v2.z,
2405 v3.x, v3.y, v3.z)
2406end
2407----------------------------------------------------
2408function genWeld(a,b)
2409 local w = Instance.new("Weld",a)
2410 w.Part0 = a
2411 w.Part1 = b
2412 return w
2413end
2414function weld(a, b)
2415 local weld = Instance.new("Weld")
2416 weld.Name = "W"
2417 weld.Part0 = a
2418 weld.Part1 = b
2419 weld.C0 = a.CFrame:inverse() * b.CFrame
2420 weld.Parent = a
2421 return weld;
2422end
2423----------------------------------------------------
2424function Lerp(c1,c2,al)
2425 local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
2426 local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
2427 for i,v in pairs(com1) do
2428 com1[i] = v+(com2[i]-v)*al
2429 end
2430 return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
2431end
2432----------------------------------------------------
2433newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
2434 local wld = Instance.new("Weld", wp1)
2435 wld.Part0 = wp0
2436 wld.Part1 = wp1
2437 wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
2438end
2439----------------------------------------------------
2440newWeld(torso, larm, -1.5, 0.5, 0)
2441larm.Weld.C1 = CFrame.new(0, 0.5, 0)
2442newWeld(torso, rarm, 1.5, 0.5, 0)
2443rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
2444newWeld(torso, hed, 0, 1.5, 0)
2445newWeld(torso, lleg, -0.5, -1, 0)
2446lleg.Weld.C1 = CFrame.new(0, 1, 0)
2447newWeld(torso, rleg, 0.5, -1, 0)
2448rleg.Weld.C1 = CFrame.new(0, 1, 0)
2449newWeld(root, torso, 0, -1, 0)
2450torso.Weld.C1 = CFrame.new(0, -1, 0)
2451----------------------------------------------------
2452z = Instance.new("Sound",char) --Smile: print("â?º")
2453z.SoundId = "rbxassetid://0"--410761150, 411368002
2454z.Looped = true
2455z.Pitch = 1
2456z.Volume = 1
2457wait(0.1)
2458z:Play()
2459----------------------------------------------------
2460New = function(Object, Parent, Name, Data)
2461 local Object = Instance.new(Object)
2462 for Index, Value in pairs(Data or {}) do
2463 Object[Index] = Value
2464 end
2465 Object.Parent = Parent
2466 Object.Name = Name
2467 return Object
2468end
2469----------------------------------------------------
2470--Left Arm
2471m = Instance.new("Model")
2472m.Name = "LeftArm"
2473
2474p4 = Instance.new("Part", m)
2475p4.BrickColor = BrickColor.new("Really black")
2476p4.Material = Enum.Material.SmoothPlastic
2477p4.Name = "LeftArmPlate"
2478p4.Size = Vector3.new(1, 2, 1)
2479p4.Transparency = 1
2480p4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
2481p4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
2482p4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
2483p4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
2484p4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
2485p4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
2486b4 = Instance.new("SpecialMesh", p4)
2487b4.MeshType = Enum.MeshType.Brick
2488b4.Name = "Mesh"
2489b4.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998)
2490
2491
2492
2493
2494
2495w1 = Instance.new("Weld", p1)
2496w1.Name = "Part_Weld"
2497w1.Part0 = p1
2498w1.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2499w1.Part1 = p2
2500w1.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2501w2 = Instance.new("Weld", p2)
2502w2.Name = "Part_Weld"
2503w2.Part0 = p2
2504w2.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2505w2.Part1 = p3
2506w2.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2507w3 = Instance.new("Weld", p3)
2508w3.Name = "LeftArmPlate_Weld"
2509w3.Part0 = p3
2510w3.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2511w3.Part1 = p4
2512w3.C1 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2513w4 = Instance.new("Weld", p4)
2514w4.Name = "Part_Weld"
2515w4.Part0 = p4
2516w4.C0 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2517w4.Part1 = p5
2518w4.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2519w5 = Instance.new("Weld", p5)
2520w5.Name = "Part_Weld"
2521w5.Part0 = p5
2522w5.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2523w5.Part1 = p6
2524w5.C1 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2525w6 = Instance.new("Weld", p6)
2526w6.Name = "Part_Weld"
2527w6.Part0 = p6
2528w6.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2529w6.Part1 = p7
2530w6.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2531w7 = Instance.new("Weld", p7)
2532w7.Name = "Part_Weld"
2533w7.Part0 = p7
2534w7.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2535w7.Part1 = p8
2536w7.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2537w8 = Instance.new("Weld", p8)
2538w8.Name = "Part_Weld"
2539w8.Part0 = p8
2540w8.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2541w8.Part1 = p9
2542w8.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2543w9 = Instance.new("Weld", p9)
2544w9.Name = "Part_Weld"
2545w9.Part0 = p9
2546w9.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2547w9.Part1 = p10
2548w9.C1 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2549w10 = Instance.new("Weld", p10)
2550w10.Name = "Part_Weld"
2551w10.Part0 = p10
2552w10.C0 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2553w10.Part1 = p11
2554w10.C1 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2555w11 = Instance.new("Weld", p11)
2556w11.Name = "Part_Weld"
2557w11.Part0 = p11
2558w11.C0 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2559w11.Part1 = p12
2560w11.C1 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2561w12 = Instance.new("Weld", p12)
2562w12.Name = "Part_Weld"
2563w12.Part0 = p12
2564w12.C0 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2565w12.Part1 = p13
2566w12.C1 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2567w13 = Instance.new("Weld", p13)
2568w13.Name = "Part_Weld"
2569w13.Part0 = p13
2570w13.C0 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2571w13.Part1 = p14
2572w13.C1 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2573w14 = Instance.new("Weld", p14)
2574w14.Name = "Part_Weld"
2575w14.Part0 = p14
2576w14.C0 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2577w14.Part1 = p15
2578w14.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2579w15 = Instance.new("Weld", p15)
2580w15.Name = "Part_Weld"
2581w15.Part0 = p15
2582w15.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2583w15.Part1 = p16
2584w15.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)
2585
2586m.Parent = larm
2587m:MakeJoints()
2588----------------------------------------------------
2589local cor = Instance.new("Part", larm.LeftArm)
2590cor.Name = "Thingy"
2591cor.Locked = true
2592cor.BottomSurface = 0
2593cor.CanCollide = false
2594cor.Size = Vector3.new(1, 1, 1)
2595cor.Transparency = 1
2596cor.TopSurface = 0
2597corw = Instance.new("Weld", cor)
2598corw.Part0 = larm
2599corw.Part1 = cor
2600corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
2601corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
2602weld1 = Instance.new("Weld", larm.LeftArm)
2603weld1.Part0 = cor
2604weld1.Part1 = larm.LeftArm.LeftArmPlate
2605weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
2606--Right Arm
2607m2 = Instance.new("Model")
2608m2.Name = "RightArm"
2609
2610p7 = Instance.new("Part", m2)
2611p7.BrickColor = BrickColor.new("Institutional white")
2612p7.Material = Enum.Material.SmoothPlastic
2613p7.Transparency = 1
2614p7.Name = "RightArmPlate"
2615p7.CFrame = CFrame.new(3.5, -9.54201603, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2616p7.FormFactor = Enum.FormFactor.Symmetric
2617p7.Size = Vector3.new(1, 2, 1)
2618p7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
2619p7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
2620p7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
2621p7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
2622p7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
2623p7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
2624b7 = Instance.new("SpecialMesh", p7)
2625b7.MeshType = Enum.MeshType.Brick
2626b7.Name = "Mesh"
2627b7.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998)
2628
2629
2630w1 = Instance.new("Weld", p1)
2631w1.Name = "Part_Weld"
2632w1.Part0 = p1
2633w1.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2634w1.Part1 = p2
2635w1.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2636w2 = Instance.new("Weld", p2)
2637w2.Name = "Part_Weld"
2638w2.Part0 = p2
2639w2.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2640w2.Part1 = p3
2641w2.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2642w3 = Instance.new("Weld", p3)
2643w3.Name = "Part_Weld"
2644w3.Part0 = p3
2645w3.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2646w3.Part1 = p4
2647w3.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2648w4 = Instance.new("Weld", p4)
2649w4.Name = "Part_Weld"
2650w4.Part0 = p4
2651w4.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2652w4.Part1 = p5
2653w4.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2654w5 = Instance.new("Weld", p5)
2655w5.Name = "Part_Weld"
2656w5.Part0 = p5
2657w5.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2658w5.Part1 = p6
2659w5.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2660w6 = Instance.new("Weld", p6)
2661w6.Name = "RightArmPlate_Weld"
2662w6.Part0 = p6
2663w6.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2664w6.Part1 = p7
2665w6.C1 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2666w7 = Instance.new("Weld", p7)
2667w7.Name = "Part_Weld"
2668w7.Part0 = p7
2669w7.C0 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2670w7.Part1 = p8
2671w7.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2672w8 = Instance.new("Weld", p8)
2673w8.Name = "Part_Weld"
2674w8.Part0 = p8
2675w8.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2676w8.Part1 = p9
2677w8.C1 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2678w9 = Instance.new("Weld", p9)
2679w9.Name = "Part_Weld"
2680w9.Part0 = p9
2681w9.C0 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2682w9.Part1 = p10
2683w9.C1 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2684w10 = Instance.new("Weld", p10)
2685w10.Name = "Part_Weld"
2686w10.Part0 = p10
2687w10.C0 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2688w10.Part1 = p11
2689w10.C1 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2690w11 = Instance.new("Weld", p11)
2691w11.Name = "Part_Weld"
2692w11.Part0 = p11
2693w11.C0 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2694w11.Part1 = p12
2695w11.C1 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2696w12 = Instance.new("Weld", p12)
2697w12.Name = "Part_Weld"
2698w12.Part0 = p12
2699w12.C0 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2700w12.Part1 = p13
2701w12.C1 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2702w13 = Instance.new("Weld", p13)
2703w13.Name = "Part_Weld"
2704w13.Part0 = p13
2705w13.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2706w13.Part1 = p14
2707w13.C1 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2708w14 = Instance.new("Weld", p14)
2709w14.Name = "Part_Weld"
2710w14.Part0 = p14
2711w14.C0 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2712w14.Part1 = p15
2713w14.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2714w15 = Instance.new("Weld", p15)
2715w15.Name = "Part_Weld"
2716w15.Part0 = p15
2717w15.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2718w15.Part1 = p16
2719w15.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2720w16 = Instance.new("Weld", p16)
2721w16.Name = "Part_Weld"
2722w16.Part0 = p16
2723w16.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2724w16.Part1 = p17
2725w16.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2726w17 = Instance.new("Weld", p17)
2727w17.Name = "Part_Weld"
2728w17.Part0 = p17
2729w17.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2730w17.Part1 = p18
2731w17.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2732w18 = Instance.new("Weld", p18)
2733w18.Name = "Part_Weld"
2734w18.Part0 = p18
2735w18.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2736w18.Part1 = p19
2737w18.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2738m2.Parent = rarm
2739m2:MakeJoints()
2740----------------------------------------------------
2741local cor2 = Instance.new("Part", rarm.RightArm)
2742cor2.Name = "Thingy"
2743cor2.Locked = true
2744cor2.BottomSurface = 0
2745cor2.CanCollide = false
2746cor2.Size = Vector3.new(1, 1, 1)
2747cor2.Transparency = 1
2748cor2.TopSurface = 0
2749corw2 = Instance.new("Weld", cor2)
2750corw2.Part0 = rarm
2751corw2.Part1 = cor2
2752corw2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
2753corw2.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
2754weld2 = Instance.new("Weld", rarm.RightArm)
2755weld2.Part0 = cor2
2756weld2.Part1 = rarm.RightArm.RightArmPlate
2757weld2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
2758
2759
2760--Zyrodoxa
2761m8 = Instance.new("Model")
2762m8.Name = "Zyrodoxa"
2763
2764p16 = Instance.new("Part", m8)
2765p16.BrickColor = BrickColor.new("Instutional white")
2766p16.Material = Enum.Material.Metal
2767p16.Name = "Handle"
2768p16.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)
2769p16.CanCollide = false
2770p16.Locked = true
2771p16.FormFactor = Enum.FormFactor.Custom
2772p16.Size = Vector3.new(0, 0, 0)
2773p16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
2774p16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
2775p16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
2776p16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
2777p16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
2778p16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
2779b16 = Instance.new("BlockMesh", p16)
2780b16.Name = "Mesh"
2781b16.Scale = Vector3.new(0, 0, 0)
2782
2783w16 = Instance.new("Weld", p16)
2784w16.Name = "Block_Weld"
2785w16.Part0 = p16
2786w16.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)
2787w16.Part1 = p17
2788w16.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)
2789
2790m8.Parent = rarm
2791m8:MakeJoints()
2792----------------------------------------------------
2793local cor8 = Instance.new("Part", rarm.Zyrodoxa)
2794cor8.Name = "Thingy"
2795cor8.Locked = true
2796cor8.BottomSurface = 0
2797cor8.CanCollide = false
2798cor8.Size = Vector3.new(1, 1, 1)
2799cor8.Transparency = 1
2800cor8.TopSurface = 0
2801corw8 = Instance.new("Weld", cor8)
2802corw8.Part0 = rarm
2803corw8.Part1 = cor8
2804corw8.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180))
2805corw8.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
2806weld8 = Instance.new("Weld", rarm.Zyrodoxa)
2807weld8.Part0 = cor8
2808weld8.Part1 = rarm.Zyrodoxa.Handle
2809weld8.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
2810----------------------------------------------------
2811models = {m,m2,m3,m4,m5,m6,m7,m8}
2812parts = {}
2813Stepped:connect(function()
2814 for i,v in pairs(models) do
2815 for _, a in pairs(v:GetChildren()) do
2816 if v:IsA("Part") and v.Name ~= "Thingy" then
2817 table.insert(parts, a)
2818 for i,v in pairs(parts) do
2819 v.CanCollide = false
2820 end
2821 end
2822 end
2823 end
2824end)
2825----------------------------------------------------
2826local animpose = "Idle1"
2827local lastanimpose = "Idle1"
2828local grab = false
2829local Smooth = 1
2830local sine = 0
2831local change = 1
2832local val = 0
2833local ffing = false
2834----------------------------------------------------
2835--[[local hitbox = rarm.Zyrodoxa.Hitbox--Zyrodoxa is the name of the dagger k
2836
2837function FindHumanoids()
2838 local function c_region(Position, Size)
2839 local SizeOffset = Size/2
2840 local Point1 = Position - SizeOffset
2841 local Point2 = Position + SizeOffset
2842 local a = Instance.new("Part", workspace)
2843 a.Anchored = true
2844 a.Size = Size
2845 a.Position = Position
2846 print("Hey!, I'm making a part!")
2847 return Region3.new(Point1, Point2)
2848 end
2849
2850 local a = c_region((hitbox.CFrame * CFrame.new(0, -1.285, 0)), Vector3.new(0.22, 0.6425, 1.22))
2851 local b = c_region((hitbox.CFrame * CFrame.new(0, -0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22))
2852 local c = c_region((hitbox.CFrame * CFrame.new(0, 0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22))
2853 local d = c_region((hitbox.CFrame * CFrame.new(0, 1.285, 0)), Vector3.new(0.22, 0.6425, 1.22))
2854
2855 local regions = {a, b, c, d}
2856
2857 local found_humanoids = {}
2858 local already_found = {char.Name}
2859
2860 for _, region in pairs(regions) do
2861 for _, part in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(region, rarm.Zyrodoxa:GetChildren(), 100)) do
2862 print(part, part.Parent, part.Name) ---nope
2863 if part.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
2864 local humanoid = part.Parent:FindFirstChild("Humanoid")
2865 local name = humanoid.Parent.Name
2866 local exists = false
2867 for _, n in pairs(already_found) do
2868 if n == name then
2869 exists = true
2870 end
2871 end
2872 if not exists then
2873 table.insert(already_found, name)
2874 table.insert(found_humanoids, humanoid)
2875 end
2876 elseif part.Parent.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
2877 local humanoid = part.Parent.Parent:FindFirstChild("Humanoid")
2878 local name = humanoid.Parent.Parent.Name
2879 local exists = false
2880 for _, n in pairs(already_found) do
2881 if n == name then
2882 exists = true
2883 end
2884 end
2885 if not exists then
2886 table.insert(already_found, name)
2887 table.insert(found_humanoids, humanoid)
2888 end
2889 end
2890 end
2891 end
2892 return found_humanoids
2893end
2894
2895local humanoids = FindHumanoids()
2896if #humanoids == 0 then
2897 for i, v in pairs(humanoids) do
2898 print(v.Parent.Name)
2899 if Debounces.Slashing == true then
2900 v:TakeDamage(math.random(10,20) * math.random(1,3)) --max 60 damage?
2901 elseif Debounces.Slashing == false then
2902 wait()
2903 end
2904 end
2905 wait(0.3)
2906end]]--
2907----------------------------------------------------
2908--[[mouse.KeyDown:connect(function(key)
2909 if key == "f" then
2910 if Debounces.CanAttack == true then
2911 Debounces.CanAttack = false
2912 Debounces.NoIdl = true
2913 Debounces.on = true
2914 for i = 1, 20 do
2915 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
2916 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
2917 CR.Joint.C1 = Lerp(CR.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(-4),0,0),0.1)
2918 CR2.Joint.C1 = Lerp(CR2.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
2919 CR3.Joint.C1 = Lerp(CR3.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
2920 CR4.Joint.C1 = Lerp(CR4.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
2921 CR5.Joint.C1 = Lerp(CR5.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
2922 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)
2923 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)
2924 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)
2925 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)
2926 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)
2927 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)
2928 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6), math.rad(0), 0), 0.1)
2929 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), 0), 0.1)
2930 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)
2931 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)
2932 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)
2933 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)
2934 if Debounces.on == false then
2935 break
2936 end
2937 fat.Event:wait()
2938 end
2939 end
2940 end
2941end)]]--
2942----------------------------------------------------
2943mod4 = Instance.new("Model",char)
2944
2945ptez = {0.7, 0.8, 0.9, 1}
2946
2947function FindNearestTorso(Position,Distance,SinglePlayer)
2948 if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
2949 local List = {}
2950 for i,v in pairs(workspace:GetChildren())do
2951 if v:IsA("Model")then
2952 if v:findFirstChild("Torso")then
2953 if v ~= char then
2954 if(v.Torso.Position -Position).magnitude <= Distance then
2955 table.insert(List,v)
2956 end
2957 end
2958 end
2959 end
2960 end
2961 return List
2962end
2963
2964function Slam()
2965 local part=Instance.new('Part',mod4)
2966 part.Anchored=true
2967 part.CanCollide=false
2968 part.FormFactor='Custom'
2969 part.Size=Vector3.new(.2,.2,.2)
2970 part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0)
2971 part.Transparency=.7
2972 part.BrickColor=BrickColor.new('Really black')
2973 mesh=Instance.new('SpecialMesh',part)
2974 mesh.MeshId='http://www.roblox.com/asset/?id=3270017'
2975 mesh.Scale=Vector3.new(3,3,3)
2976 local part2=Instance.new('Part',mod4)
2977 part2.Anchored=true
2978 part2.CanCollide=false
2979 part2.FormFactor='Custom'
2980 part2.Size=Vector3.new(.2,.2,.2)
2981 part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6)
2982 part2.Transparency=.7
2983 part2.BrickColor=BrickColor.new('Institutional white')
2984 mesh2=Instance.new('SpecialMesh',part2)
2985 mesh2.MeshId='http://www.roblox.com/asset/?id=20329976'
2986 mesh2.Scale=Vector3.new(3,1.5,3)
2987 x = Instance.new("Sound",larm)
2988 x.SoundId = "http://www.roblox.com/asset/?id=142070127"
2989 x.Pitch = ptez[math.random(1,#ptez)]
2990 x.Volume = 1
2991 wait(.1)
2992 x1 = Instance.new("Sound",larm)
2993 x1.SoundId = "http://www.roblox.com/asset/?id=206082327"
2994 x1.Pitch = ptez[math.random(1,#ptez)]
2995 x1.Volume = 1
2996 wait(.1)
2997 x:Play()
2998 x1:Play()
2999 for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do
3000 if v:FindFirstChild('Humanoid') then
3001 v.Humanoid:TakeDamage(math.random(30,45))
3002 end
3003 end
3004 coroutine.resume(coroutine.create(function()
3005 for i=0,0.62,0.13 do
3006 wait()
3007 part.CFrame=part.CFrame
3008 part.Transparency=i
3009 mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4)
3010 part2.CFrame=part2.CFrame
3011 part2.Transparency=i
3012 mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4)
3013 end
3014 part.Parent=nil
3015 part2.Parent=nil
3016 x:Destroy()
3017 end))
3018end
3019----------------------------------------------------
3020wPart = function(x,y,z,color,tr,cc,an,parent)
3021 local wp = Instance.new('WedgePart',parent or Weapon)
3022 wp.formFactor = 'Custom'
3023 wp.Size = Vector3.new(x,y,z)
3024 wp.BrickColor = BrickColor.new(color)
3025 wp.CanCollide = cc
3026 wp.Transparency = tr
3027 wp.Anchored = an
3028 wp.TopSurface,wp.BottomSurface = 0,0
3029 return wp
3030end
3031
3032Mesh = function(par,num,x,y,z)
3033 local msh = _
3034 if num == 1 then
3035 msh = Instance.new("CylinderMesh",par)
3036 elseif num == 2 then
3037 msh = Instance.new("SpecialMesh",par)
3038 msh.MeshType = 3
3039 elseif num == 3 then
3040 msh = Instance.new("BlockMesh",par)
3041 elseif num == 4 then
3042 msh = Instance.new("SpecialMesh",par)
3043 msh.MeshType = "Torso"
3044 elseif type(num) == 'string' then
3045 msh = Instance.new("SpecialMesh",par)
3046 msh.MeshId = num
3047 end
3048 msh.Scale = Vector3.new(x,y,z)
3049 return msh
3050end
3051
3052local function CFrameFromTopBack(at, top, back)
3053 local right = top:Cross(back)
3054 return CFrame.new(at.x, at.y, at.z,
3055 right.x, top.x, back.x,
3056 right.y, top.y, back.y,
3057 right.z, top.z, back.z)
3058end
3059
3060function Triangle(a, b, c)
3061 local edg1 = (c-a):Dot((b-a).unit)
3062 local edg2 = (a-b):Dot((c-b).unit)
3063 local edg3 = (b-c):Dot((a-c).unit)
3064 if edg1 <= (b-a).magnitude and edg1 >= 0 then
3065 a, b, c = a, b, c
3066 elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
3067 a, b, c = b, c, a
3068 elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
3069 a, b, c = c, a, b
3070 else
3071 print("unreachable")
3072 end
3073 local len1 = (c-a):Dot((b-a).unit)
3074 local len2 = (b-a).magnitude - len1
3075 local width = (a + (b-a).unit*len1 - c).magnitude
3076 local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
3077 local list = {}
3078 if len1 > 0.01 then
3079 local w1 = wPart(0,0,0,'Institutional white',0.5,false,true,char)
3080 local sz = Vector3.new(0.2, width, len1)
3081 w1.Size = sz
3082 local sp = Mesh(w1,2,0,0,0)
3083 sp.MeshType='Wedge'
3084 sp.Scale=Vector3.new(0,1,1)*sz/w1.Size
3085 w1:BreakJoints()
3086 w1.Anchored = true
3087 w1.Transparency = 0.7
3088 Spawn(function()
3089 for i=0,1,0.1 do
3090 fat.Event:wait()
3091 w1.Transparency=w1.Transparency+0.03
3092 end
3093 end)
3094 w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
3095 table.insert(list,w1)
3096 end
3097 if len2 > 0.01 then
3098 local w2 = wPart(0,0,0,'Institutional white',0.5,false,true,char)
3099 local sz = Vector3.new(0.2, width, len2)
3100 w2.Size = sz
3101 local sp = Mesh(w2,2,0,0,0)
3102 sp.MeshType='Wedge'
3103 sp.Scale=Vector3.new(0,1,1)*sz/w2.Size
3104 w2:BreakJoints()
3105 w2.Anchored = true
3106 w2.Transparency = 0.7
3107 Spawn(function()
3108 for i=0,1,0.1 do
3109 fat.Event:wait()
3110 w2.Transparency=w2.Transparency+0.03
3111 end
3112 end)
3113 w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
3114 table.insert(list,w2)
3115 end
3116 return unpack(list)
3117end
3118
3119function trail(p,t,h)
3120 Spawn(function()
3121 local blcf = p.CFrame
3122 local scfr = blcf
3123 for i=1,t do
3124 local blcf = p.CFrame
3125 if scfr and (p.Position-scfr.p).magnitude > .1 then
3126 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)
3127 if a then game.Debris:AddItem(a,1) end
3128 if b then game.Debris:AddItem(b,1) end
3129 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)
3130 if a then game.Debris:AddItem(a,1) end
3131 if b then game.Debris:AddItem(b,1) end
3132 scfr = blcf
3133 elseif not scfr then
3134 scfr = blcf
3135 end
3136 fat.Event:wait()
3137 end
3138 scfr=nil
3139 end)
3140end
3141--trail(char.Sword.Blade,1e1000,5)
3142----------------------------------------------------
3143function Dmg()
3144 local partofdeath = rarm.Zyrodoxa.Hitbox
3145 local function CreateRegion3FromLocAndSize(Position, Size)
3146 local SizeOffset = Size/2
3147 local Point1 = Position - SizeOffset
3148 local Point2 = Position + SizeOffset
3149 return Region3.new(Point1, Point2)
3150 end
3151 local reg = CreateRegion3FromLocAndSize(partofdeath.Position, partofdeath.Size)
3152 for i, v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do
3153 Spawn(function()
3154 if Debounces.Slashing == true and Debounces.Slashed == false then
3155 Debounces.Slashed = true
3156 ypcall(function()
3157 local humanoid = v.Parent:FindFirstChild("Humanoid") or v.Parent.Parent:FindFirstChild("Humanoid")
3158 humanoid:TakeDamage(math.random(10,18))
3159 end)
3160 wait(.4)
3161 Debounces.Slashed = false
3162 end
3163 end)
3164 end
3165end
3166----------------------------------------------------
3167pts = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
3168ptz = {0.7, 0.8, 0.9, 1}
3169idz = {"161006212", "161006195"}
3170function attackone()
3171 for i = 1, 13 do
3172 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)
3173 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), math.rad(30), math.rad(0)), 0.8)
3174 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)
3175 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)
3176 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)
3177 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)
3178 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(-50),0), 0.5)
3179 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.5)
3180 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.7)
3181 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)
3182 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)
3183 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)
3184 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)
3185 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)
3186 if Debounces.on == false then
3187 break
3188 end
3189 fat.Event:wait()
3190 end
3191 trail(rarm.Zyrodoxa.Hitbox,20,2)
3192 Debounces.Slashing = true
3193 wait(0.2)
3194 --[[z = Instance.new("Sound", hed)
3195 z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
3196 z.Pitch = ptz[math.random(1,#ptz)]
3197 z.Volume = 1
3198 wait(.01)
3199 z:Play()]]--
3200 for i = 1, 14 do
3201 Dmg()
3202 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8)
3203 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-40), math.rad(30), math.rad(0)), 0.8)
3204 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)
3205 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)
3206 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)
3207 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)
3208 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),0), 0.7)
3209 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
3210 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(-10), math.rad(-40), 0), 0.4)
3211 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)
3212 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)
3213 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)
3214 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)
3215 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)
3216 if Debounces.on == false then break end
3217 rs:wait()
3218 end
3219 Debounces.Slashing = false
3220end
3221function attacktwo()
3222 Debounces.Slashing = true
3223 for i = 1, 14 do
3224 Dmg()
3225 corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.37, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4)
3226 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.4)
3227 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)
3228 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)
3229 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)
3230 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)
3231 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)
3232 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
3233 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)
3234 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)
3235 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.5)
3236 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)
3237 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.5)
3238 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)
3239 if Debounces.on == false then
3240 break
3241 end
3242 rs:wait()
3243 end
3244end
3245----------------------------------------------------
3246
3247----------------------------------------------------
3248definition = 5
3249bc = {}
3250bezierparts = {}
3251function NoOutline(Part)
3252 Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
3253end
3254function draw(p,d)
3255 for i=1,d do
3256 local t = i/d
3257 bc[i] = p[1]*(1-t)^2+2*p[2]*(1-t)*t+p[3]*t^2
3258 end
3259
3260 Spawn(function() fat.Event:wait()
3261 for i,v in pairs(bezierparts) do
3262 v.Transparency = 1
3263 end
3264 end)
3265end
3266--local points = {larm.Position,rarn.Position,invisipart.Position}
3267--draw(points,definition)
3268
3269 fat.Event:wait()
3270
3271 rpart = Instance.new("Part",rarm)
3272 NoOutline(rpart)
3273 rpart.Anchored = false
3274 rpart.Size = Vector3.new(1,1,1)
3275 rpart.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
3276 rpart.Transparency = 1
3277 newWeld(rarm, rpart, 0, 0, 0)
3278 rpart.Weld.C1 = CFrame.new(0, 1.1, 0)
3279 lpart = Instance.new("Part",larm)
3280 NoOutline(lpart)
3281 lpart.Anchored = false
3282 lpart.Size = Vector3.new(1,1,1)
3283 lpart.CFrame = larm.CFrame * CFrame.new(0,-1,0)
3284 lpart.Transparency = 1
3285 newWeld(larm, lpart, 0, 0, 0)
3286 lpart.Weld.C1 = CFrame.new(0, 1.1, 0)
3287 invisipart = Instance.new("Part",torso)
3288 NoOutline(invisipart)
3289 invisipart.Anchored = false
3290 invisipart.Size = Vector3.new(1,1,1)
3291 invisipart.Transparency = 1
3292 invisipart.CFrame = torso.CFrame
3293 newWeld(torso, invisipart, 0, 0, 0)
3294 invisipart.Weld.C1 = CFrame.new(0, 0, 6)
3295 table.insert(bezierparts, rpart)
3296 table.insert(bezierparts, lpart)
3297 table.insert(bezierparts, invisipart)
3298 for i = 1, 40 do
3299 local points = {lpart.Position,invisipart.Position,rpart.Position}
3300 draw(points,definition)
3301 --invisipart.Weld.C1 = invisipart.Weld.C1 + Vector3.new(0,0,0.6)
3302 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)
3303 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)
3304 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)
3305 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)
3306 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)
3307 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
3308 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)
3309 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)
3310 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(-10)), 0.2)
3311 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)
3312 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(10)), 0.2)
3313 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)
3314 if Debounces.on == false then
3315 break
3316 end
3317 fat.Event:wait()
3318 end
3319 for i,v in pairs(bezierparts) do
3320 v:Destroy()
3321 end
3322 --draw(points,definition)
3323 if Debounces.CanAttack == false then
3324 Debounces.CanAttack = true
3325 Debounces.NoIdl = false
3326 Debounces.on = false
3327 end
3328
3329----------------------------------------------------
3330----------------------------------------------------
3331pt = {6.6, 6.8, 7, 7.2, 7.4}
3332mouse.KeyDown:connect(function(key)
3333 if key == "q" then
3334 if Debounces.CanJoke == true then
3335 Debounces.CanJoke = false
3336 u = Instance.new("Sound",char)
3337 u.SoundId = "http://www.roblox.com/asset/?id=261303790"
3338 u.Pitch = pt[math.random(1,#pt)]
3339 u.Volume = 0.3
3340 u2 = Instance.new("Sound",char)
3341 u2.SoundId = "http://www.roblox.com/asset/?id=261303790"
3342 u2.Pitch = u.Pitch
3343 u2.Volume = 0.3
3344 u3 = Instance.new("Sound",char)
3345 u3.SoundId = "http://www.roblox.com/asset/?id=261303790"
3346 u3.Pitch = u.Pitch
3347 u3.Volume = 0.3
3348 wait(.01)
3349 u:Play()
3350 u2:Play()
3351 u3:Play()
3352 wait(1.5)
3353 u:Destroy()
3354 u2:Destroy()
3355 u3:Destroy()
3356 if Debounces.CanJoke == false then
3357 Debounces.CanJoke = true
3358 end
3359 end
3360 end
3361end)
3362----------------------------------------------------
3363----------------------------------------------------
3364----------------------------------------------------
3365Grab = false
3366mouse.KeyDown:connect(function(key)
3367 if key == "g" then
3368 Debounces.on = true
3369 Debounces.NoIdl = true
3370 Debounces.ks = true
3371 if Grab == false then
3372 gp = nil
3373 for i = 1, 20 do
3374 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)
3375 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)
3376 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)
3377 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)
3378 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2)
3379 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)
3380 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2)
3381 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)
3382 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)
3383 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)
3384 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)
3385 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)
3386 if Debounces.on == false then break end
3387 fat.Event:wait()
3388 end
3389 con1=larm.LeftArm.LeftArmPlate.Touched:connect(function(hit)
3390 ht = hit.Parent
3391 for i,v in pairs(ht:GetChildren()) do
3392 if v:IsA("Part") then
3393 v.CanCollide = false
3394 v.CustomPhysicalProperties = PhysicalProperties.new(0.001,0.001,0.001,0.001,0.001)
3395 end
3396 end
3397 hum1=ht:FindFirstChild('Humanoid')
3398 if hum1 ~= nil then
3399 if Debounces.ks==true then
3400 z = Instance.new("Sound",hed)
3401 z.SoundId = "rbxassetid://169380525"
3402 z.Volume = 1
3403 z:Play()
3404 Debounces.ks=false
3405 end
3406 hum1.PlatformStand=true
3407 hum1:ChangeState'Physics'
3408 gp = ht
3409 Grab = true
3410 asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,0.6),CFrame.new(0,0,0))
3411 asd.Parent = larm
3412 asd.Name = "asd"
3413 asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0)
3414 stanceToggle = "Grabbed"
3415 --[[elseif hum1 == nil then
3416 con1:disconnect()
3417 wait() return]]--
3418 end
3419 end)
3420 for i = 1, 20 do
3421 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)
3422 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)
3423 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)
3424 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)
3425 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.2)
3426 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)
3427 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2)
3428 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)
3429 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)
3430 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)
3431 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)
3432 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)
3433 if Debounces.on == false then break end
3434 fat.Event:wait()
3435 end
3436 con1:disconnect()
3437 Debounces.on = false
3438 Debounces.NoIdl = false
3439 elseif Grab == true then
3440 Grab = false
3441 --[[for i = 1, 16 do
3442 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)
3443 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)
3444 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3)
3445 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
3446 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)
3447 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)
3448 cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3)
3449 if Debounces.on == false then end
3450 rs:wait()
3451 end]]--
3452 for i = 1, 16 do
3453 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)
3454 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)
3455 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)
3456 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)
3457 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3)
3458 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)
3459 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.3)
3460 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)
3461 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)
3462 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)
3463 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)
3464 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)
3465 if Debounces.on == false then end
3466 rs:wait()
3467 end
3468 for i = 1, 12 do
3469 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)
3470 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)
3471 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)
3472 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)
3473 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)
3474 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)
3475 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)
3476 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)
3477 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.6)
3478 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)
3479 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)
3480 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)
3481 if Debounces.on == false then end
3482 rs:wait()
3483 end
3484 Slam()
3485 if gp ~= nil then
3486 for i,v in pairs(larm:GetChildren()) do
3487 if v.Name == "asd" and v:IsA("Weld") then
3488 v:Remove()
3489 end
3490 if v:IsA("Part") then
3491 v.CanCollide = true
3492 v.CustomPhysicalProperties = PhysicalProperties.new(1,1,1,1,1)
3493 end
3494 end
3495 end
3496 stanceToggle = "Idle1"
3497 --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso"))
3498 bv.maxForce = Vector3.new(400000, 400000, 400000)
3499 bv.P = 125000
3500 bv.velocity = char.Head.CFrame.lookVector * 200]]--
3501 ht=nil
3502 Debounces.on = false
3503 Debounces.NoIdl = false
3504 elseif ht == nil then wait()
3505 Grab = false
3506 Debounces.on = false
3507 Debounces.NoIdl = false
3508 end
3509 end
3510end)
3511----------------------------------------------------
3512Change = false
3513mouse.KeyDown:connect(function(key)
3514 if key == "n" then
3515 if Change == false then
3516 Change = true
3517 stanceToggle = "Idle2"
3518 elseif Change == true then
3519 Change = false
3520 stanceToggle = "Idle1"
3521 end
3522 end
3523end)
3524----------------------------------------------------
3525mouse.KeyDown:connect(function(key)
3526 if string.byte(key) == 52 then
3527 Swing = 2
3528 char.Humanoid.WalkSpeed = 28
3529 end
3530end)
3531mouse.KeyUp:connect(function(key)
3532 if string.byte(key) == 52 then
3533 Swing = 1
3534 char.Humanoid.WalkSpeed = 16
3535 end
3536end)
3537local mouse2 = Player:GetMouse()
3538local running = false
3539
3540mouse2.KeyDown:connect(function(key) -- Run function
3541 if key == "e" then
3542 running = true
3543 local keyConnection = mouse.KeyUp:connect(function(key)
3544 if string.byte(key) == 48 then
3545 running = false
3546 end
3547 end)
3548 game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 30
3549 end
3550end)
3551
3552mouse2.KeyUp:connect(function(key)
3553if key == "e" then
3554running = false
3555Character.Humanoid.WalkSpeed = 16
3556end
3557end)
3558function Ban()
3559 Debounces.on = true
3560 Debounces.NoIdl = true
3561 Debounces.ks = true
3562local hitbox = Instance.new("Part",banh)
3563hitbox.Name = "HurtBox"
3564hitbox.Size = Vector3.new(2.09, 3.4, 1.8)
3565hitbox.Transparency = 1
3566local hitboxwe = Instance.new("Weld",hitbox)
3567hitboxwe.Part0 = hitbox
3568hitboxwe.Part1 = banh
3569hitboxwe.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)
3570function onTouched(part)
3571 local human = part.Parent:FindFirstChildOfClass("Humanoid")
3572 if human then
3573 human.Parent:Destroy()
3574 ban2:Play()
3575 wait(1.4)
3576 ban:Play()
3577 wait(1.2)
3578 omg:Play()
3579 wait(2.6)
3580 scream:Play()
3581 wait(4.6)
3582 scream:Stop()
3583 end
3584end
3585hitbox.Touched:connect(onTouched)
3586for i = 0,1 , 0.09 do
3587 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)
3588 game:GetService("RunService").RenderStepped:wait()
3589end
3590hitbox:Destroy()
3591banw.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)
3592Debounces.on = false
3593Debounces.NoIdl = false
3594Debounces.ks = false
3595end
3596mouse.Button1Down:connect(Ban)
3597----------------------------------------------------
3598
3599jump = false
3600rs:connect(function()
3601 if char.Humanoid.Jump == true then
3602 jump = true
3603 else
3604 jump = false
3605 end
3606 char.Humanoid.FreeFalling:connect(function(f)
3607 if f then
3608 ffing = true
3609 else
3610 ffing = false
3611 end
3612 end)
3613 sine = sine + change
3614 if jump == true then
3615 animpose = "Jumping"
3616 elseif ffing == true then
3617 animpose = "Freefalling"
3618 elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
3619 animpose = "Idle"
3620 elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
3621 animpose = "Walking"
3622 elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
3623 animpose = "Running"
3624 end
3625 RightLeg = CFrame.new(0.5,-1,0)
3626 LeftLeg = CFrame.new(-0.5,-1,0)
3627
3628 lefth = (torso.CFrame*LeftLeg)
3629 righth = (torso.CFrame*RightLeg)
3630
3631 speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z)
3632
3633 TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100)
3634
3635 local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100)
3636 local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100)
3637 if animpose ~= lastanimpose then
3638 sine = 0
3639 if Debounces.NoIdl == false then
3640 if stanceToggle == "Idle1" then
3641 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)
3642 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)
3643 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)
3644 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)
3645 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)
3646 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)
3647 elseif stanceToggle == "Idle2" then
3648 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)
3649 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)
3650 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)
3651 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)
3652 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)
3653 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)
3654 end
3655 fat.Event:wait()
3656 end
3657 else
3658 end
3659 lastanimpose = animpose
3660 if Debounces.NoIdl == false then
3661 if animpose == "Idle" then
3662 change = 0.5
3663 if stanceToggle == "Idle1" then
3664 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)
3665 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)
3666
3667 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)
3668 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)
3669 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)
3670 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)
3671 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)
3672 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)
3673 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)
3674 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)
3675 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)
3676 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)
3677 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)
3678 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)
3679 elseif stanceToggle == "Idle2" then
3680
3681 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
3682 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)
3683 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)
3684 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)
3685 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)
3686 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)
3687 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
3688 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
3689 --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)
3690 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)
3691 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)
3692 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)
3693 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)
3694 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)
3695 elseif stanceToggle == "Grabbed" then
3696 grab = true
3697 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
3698 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
3699 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)
3700 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)
3701 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)
3702 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)
3703 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)
3704 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)
3705 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
3706 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
3707 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)
3708 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)
3709 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)
3710 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)
3711 end
3712 elseif animpose == "Walking" then
3713 if stanceToggle == "Grabbed" then
3714 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
3715 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
3716 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)
3717 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)
3718 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)
3719 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)
3720 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)
3721 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)
3722 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)
3723 --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
3724 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
3725 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)
3726 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)
3727 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)
3728 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)
3729 elseif stanceToggle ~= "Grabbed" then
3730 change = 1
3731 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
3732 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
3733
3734 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)
3735 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)
3736 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)
3737 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)
3738 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)
3739 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)
3740 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)
3741 --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
3742 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
3743 --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)
3744 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)
3745 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)
3746 --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)
3747 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)
3748 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)
3749 end
3750 elseif animpose == "Running" then
3751 change = 1
3752 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
3753 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
3754
3755 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)
3756 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)
3757 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)
3758 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)
3759 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)
3760 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)
3761 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)
3762 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
3763 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)
3764 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)
3765 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)
3766 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)
3767 elseif animpose == "Jumping" then
3768
3769 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
3770 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
3771 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)
3772 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)
3773 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)
3774 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)
3775 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.rad(0),0), 0.2)
3776 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
3777 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
3778 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)
3779 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)
3780 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)
3781 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)
3782 elseif animpose == "Freefalling" then
3783
3784 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
3785 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
3786 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)
3787 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)
3788 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)
3789 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)
3790 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),math.rad(0),0), 0.2)
3791 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2)
3792 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
3793 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)
3794 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)
3795 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)
3796 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)
3797 end
3798 end
3799end)
3800hum.MaxHealth = math.huge
3801wait(3)
3802hum.Health = math.huge
3803
3804coroutine.wrap(function()
3805 wait(0.1)
3806 game.Base.CanCollide = false
3807end)