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