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