Advertisement
RandomNewbieScripter

Untitled

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