Advertisement
Sergeant_SethZP

LOlbase

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