Advertisement
bURETSZ

All my friends are stupid take it fast

Feb 26th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 84.06 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,18051314,68241677,18051314
  230. ra.MeshId,ra.OverlayTextureId,la.MeshId,la.OverlayTextureId = 68241658,18051314,68241543,18051314
  231. t.MeshId,t.OverlayTextureId=68241695,18051314
  232. ----------------------------------------------------
  233. z = Instance.new("Sound", torso)
  234. z.SoundId = "rbxassetid://169318011" -- Put Music ID Here.
  235. z.Looped = true
  236. z.Volume = 10
  237. wait(.1)
  238. z:Play()
  239.  
  240. ----------------------------------------------------
  241. Sit = true
  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(56,21,23)
  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 = "Yosakoi"
  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("Blue")
  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("Blue")
  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(.2,.2,.2)
  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(3,3,3)
  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 = 1
  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 = 1
  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(99999999,999999999999999999))
  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.  
  1629. con1:disconnect()
  1630. Debounces.on = false
  1631. Debounces.NoIdl = false
  1632. if Grab == true then
  1633. Grab = true
  1634. --[[for i = 1, 16 do
  1635. 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)
  1636. 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)
  1637. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3)
  1638. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
  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.3)
  1640. 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)
  1641. cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3)
  1642. if Debounces.on == false then end
  1643. rs:wait()
  1644. end]]--
  1645. for i = 1, 16 do
  1646. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)), 0.3)
  1647. 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)
  1648. 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)
  1649. 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)
  1650. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3)
  1651. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1652. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.3)
  1653. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1654. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3)
  1655. 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)
  1656. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
  1657. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1658. if Debounces.on == false then end
  1659. rs:wait()
  1660. end
  1661. for i = 1, 12 do
  1662. 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)
  1663. 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)
  1664. 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)
  1665. 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)
  1666. 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)
  1667. 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)
  1668. 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)
  1669. 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)
  1670. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.6)
  1671. 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)
  1672. 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)
  1673. 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)
  1674. if Debounces.on == false then end
  1675. rs:wait()
  1676. end
  1677. Slam()
  1678. if gp ~= nil then
  1679. for i,v in pairs(larm:GetChildren()) do
  1680. if v.Name == "asd" and v:IsA("Weld") then
  1681. v:Remove()
  1682. end
  1683. if v:IsA("Part") then
  1684. v.CanCollide = true
  1685. v.CustomPhysicalProperties = PhysicalProperties.new(1,1,1,1,1)
  1686. end
  1687. end
  1688. end
  1689. stanceToggle = "Idle1"
  1690. --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso"))
  1691. bv.maxForce = Vector3.new(400000, 400000, 400000)
  1692. bv.P = 125000
  1693. bv.velocity = char.Head.CFrame.lookVector * 200]]--
  1694. ht=nil
  1695. Debounces.on = false
  1696. Debounces.NoIdl = false
  1697. elseif ht == nil then wait()
  1698. Grab = false
  1699. Debounces.on = false
  1700. Debounces.NoIdl = false
  1701. end
  1702. end
  1703. end)
  1704. ----------------------------------------------------
  1705. Change = true
  1706. mouse.KeyDown:connect(function(key)
  1707. if key == "n" then
  1708. if Change == false then
  1709. Change = true
  1710. stanceToggle = "Idle2"
  1711. elseif Change == true then
  1712. Change = false
  1713. stanceToggle = "Idle1"
  1714. end
  1715. end
  1716. end)
  1717. ----------------------------------------------------
  1718. mouse.KeyDown:connect(function(key)
  1719. if string.byte(key) == 52 then
  1720. Swing = 2
  1721. char.Humanoid.WalkSpeed = 99
  1722. end
  1723. end)
  1724. mouse.KeyUp:connect(function(key)
  1725. if string.byte(key) == 52 then
  1726. Swing = 1
  1727. char.Humanoid.WalkSpeed = 99
  1728. end
  1729. end)
  1730. ----------------------------------------------------
  1731.  
  1732. jump = false
  1733. rs:connect(function()
  1734. if char.Humanoid.Jump == true then
  1735. jump = true
  1736. else
  1737. jump = false
  1738. end
  1739. char.Humanoid.FreeFalling:connect(function(f)
  1740. if f then
  1741. ffing = true
  1742. else
  1743. ffing = ftrue
  1744. end
  1745. end)
  1746. sine = sine + change
  1747. if jump == true then
  1748. animpose = "Jumping"
  1749. elseif ffing == true then
  1750. animpose = "Freefalling"
  1751. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  1752. animpose = "Idle"
  1753. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  1754. animpose = "Walking"
  1755. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  1756. animpose = "Running"
  1757. end
  1758. RightLeg = CFrame.new(0.5,-1,0)
  1759. LeftLeg = CFrame.new(-0.5,-1,0)
  1760.  
  1761. lefth = (torso.CFrame*LeftLeg)
  1762. righth = (torso.CFrame*RightLeg)
  1763.  
  1764. speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z)
  1765.  
  1766. TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100)
  1767.  
  1768. local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100)
  1769. local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100)
  1770. if animpose ~= lastanimpose then
  1771. sine = 0
  1772. if Debounces.NoIdl == false then
  1773. if stanceToggle == "Idle1" then
  1774. 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)
  1775. 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)
  1776. 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)
  1777. 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)
  1778. 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)
  1779. 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)
  1780. elseif stanceToggle == "Idle2" then
  1781. 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)
  1782. 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)
  1783. 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)
  1784. 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)
  1785. 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)
  1786. 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)
  1787. end
  1788. fat.Event:wait()
  1789. end
  1790. else
  1791. end
  1792. lastanimpose = animpose
  1793. if Debounces.NoIdl == false then
  1794. if animpose == "Idle" then
  1795. change = 0.5
  1796. if stanceToggle == "Idle1" then
  1797. 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)
  1798. 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)
  1799.  
  1800. 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)
  1801. 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)
  1802. 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)
  1803. 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)
  1804. 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)
  1805. 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)
  1806. 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)
  1807. 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)
  1808. 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)
  1809. 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)
  1810. 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)
  1811. 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)
  1812. elseif stanceToggle == "Idle2" then
  1813.  
  1814. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1815. 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)
  1816. 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)
  1817. 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)
  1818. 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)
  1819. 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)
  1820. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
  1821. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
  1822. --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)
  1823. 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)
  1824. 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)
  1825. 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)
  1826. 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)
  1827. 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)
  1828. elseif stanceToggle == "Grabbed" then
  1829. grab = true
  1830. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1831. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1832. 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)
  1833. 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)
  1834. 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)
  1835. 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)
  1836. 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)
  1837. 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)
  1838. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
  1839. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
  1840. 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)
  1841. 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)
  1842. 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)
  1843. 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)
  1844. end
  1845. elseif animpose == "Walking" then
  1846. if stanceToggle == "Grabbed" then
  1847. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1848. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1849. 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)
  1850. 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)
  1851. 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)
  1852. 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)
  1853. 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)
  1854. 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)
  1855. 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)
  1856. --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
  1857. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  1858. 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)
  1859. 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)
  1860. 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)
  1861. 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)
  1862. elseif stanceToggle ~= "Grabbed" then
  1863. change = 1
  1864. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1865. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1866.  
  1867. 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)
  1868. 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)
  1869. 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)
  1870. 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)
  1871. 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)
  1872. 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)
  1873. 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)
  1874. --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
  1875. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  1876. --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)
  1877. 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)
  1878. 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)
  1879. --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)
  1880. 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)
  1881. 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)
  1882. end
  1883. elseif animpose == "Running" then
  1884. change = 1
  1885. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1886. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1887.  
  1888. 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)
  1889. 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)
  1890. 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)
  1891. 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)
  1892. 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)
  1893. 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)
  1894. 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)
  1895. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1896. 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)
  1897. 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)
  1898. 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)
  1899. 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)
  1900. elseif animpose == "Jumping" then
  1901.  
  1902. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1903. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1904. 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)
  1905. 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)
  1906. 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)
  1907. 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)
  1908. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.rad(0),0), 0.2)
  1909. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
  1910. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1911. 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)
  1912. 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)
  1913. 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)
  1914. 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)
  1915. elseif animpose == "Freefalling" then
  1916.  
  1917. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1918. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1919. 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)
  1920. 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)
  1921. 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)
  1922. 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)
  1923. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),math.rad(0),0), 0.2)
  1924. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2)
  1925. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1926. 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)
  1927. 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)
  1928. 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)
  1929. 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)
  1930. end
  1931. end
  1932. end)
  1933. hum.MaxHealth = math.huge
  1934. wait(3)
  1935. hum.Health = math.huge
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement