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