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