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