BankHack

Untitled

Jul 13th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.08 KB | None | 0 0
  1. -- Project Name: "Zerioth"
  2. ----------------------------Declarations
  3. local p = game.Players.LocalPlayer
  4. local char = p.Character
  5. local mouse = p:GetMouse()
  6. local larm = char["Left Arm"]
  7. local rarm = char["Right Arm"]
  8. local lleg = char["Left Leg"]
  9. local rleg = char["Right Leg"]
  10. local hed = char.Head
  11. local torso = char.Torso
  12. local cam = game.Workspace.CurrentCamera
  13. local root = char.HumanoidRootPart
  14. local deb = false
  15. local shot = 0
  16. local l = game.Lighting
  17. local stanceToggle = "Assertive"
  18. local CanAttack = true
  19. local Daytime = true
  20. local animpose = "Idle"
  21. local lastanimpose = "Idle"
  22. ----------------------------Tables
  23. Debounces = {
  24. on = false;
  25. Ready = false;
  26. Here = false;
  27. NoIdl = false;
  28. Shewt = false;
  29. Slashing = false;
  30. Slashed = false;
  31. }
  32. local Touche = {char.Name, }
  33. ----------------------------Global Functions
  34. function Lerp(c1,c2,al)
  35. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  36. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  37. for i,v in pairs(com1) do
  38. com1[i] = v+(com2[i]-v)*al
  39. end
  40. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  41. end
  42. -----------
  43. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  44. wld = Instance.new("Weld", wp1)
  45. wld.Part0 = wp0
  46. wld.Part1 = wp1
  47. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  48. end
  49. -----------
  50. function HasntTouched(plrname)
  51. local ret = true
  52. for _, v in pairs(Touche) do
  53. if v == plrname then
  54. ret = false
  55. end
  56. end
  57. return ret
  58. end
  59. ----------------------------Welding
  60. newWeld(torso, larm, -1.5, 0.5, 0)
  61. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  62. newWeld(torso, rarm, 1.5, 0.5, 0)
  63. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  64. newWeld(torso, hed, 0, 1.5, 0)
  65. newWeld(torso, lleg, -0.5, -1, 0)
  66. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  67. newWeld(torso, rleg, 0.5, -1, 0)
  68. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  69. newWeld(root, torso, 0, -1, 0)
  70. torso.Weld.C1 = CFrame.new(0, -1, 0)
  71. ----------------------------Creation
  72. function stick(x,y)
  73. weld = Instance.new("Weld")
  74. weld.Part0 = x
  75. weld.Part1 = y
  76. local HitPos = x.Position
  77. local CJ = CFrame.new(HitPos)
  78. local C0 = x.CFrame:inverse() *CJ
  79. local C1 = y.CFrame:inverse() * CJ
  80. weld.C0 = C0
  81. weld.C1 = C1
  82. weld.Parent = x
  83. y.Anchored=false
  84. return weld
  85. end
  86. blocks = {}
  87. last_block = nil
  88. function ezBlock(type, name, cframe, size, rotation, material, parent, BrickColor, transparency,
  89.  
  90. weldToThis, formFactor)
  91. block = Instance.new(type, parent)
  92. block.Name = name
  93. block.FormFactor=formFactor
  94. block.Size = size
  95. block.CanCollide = false
  96. block.Anchored = false
  97. block.BrickColor = BrickColor
  98. block.Transparency=transparency
  99. block.TopSurface = 'SmoothNoOutlines'
  100. block.BottomSurface = 'SmoothNoOutlines'
  101. block.FrontSurface = 'SmoothNoOutlines'
  102. block.BackSurface = 'SmoothNoOutlines'
  103. block.LeftSurface = 'SmoothNoOutlines'
  104. block.RightSurface = 'SmoothNoOutlines'
  105. block.Material = material
  106. block.formFactor = 'Custom'
  107. block.CFrame = cframe
  108.  
  109. if weldToThis then
  110. stick(weldToThis, block)
  111. elseif last_block ~= nil then
  112. stick(block, last_block)
  113. last_block = block
  114. else
  115. last_block = block
  116. end
  117. table.insert(blocks, block)
  118.  
  119. return #blocks
  120. end
  121.  
  122. local model = Instance.new("Model", game.Players.LocalPlayer.Character)
  123. model.Name = 'KZ'
  124.  
  125. plr=game.Players.LocalPlayer
  126. chr=plr.Character
  127.  
  128. x_offset=chr["Right Arm"].Position.x-3
  129. y_offset=chr["Right Arm"].Position.y-6
  130. z_offset=chr["Right Arm"].Position.z-2
  131. handle=0
  132.  
  133. function makeModel()
  134. x=ezBlock('Part', 'Part', CFrame.new(2.9000239372253+x_offset,9.9575099945068+y_offset,2.4182820320129+z_offset) * CFrame.Angles(math.rad(-62.47554397583),math.rad(89.951538085938),math.rad(62.96166229248)), Vector3.new(1,4,1), nil,Enum.Material.Plastic, model, BrickColor.new("Really black"),0,nil,Enum.FormFactor.Symmetric)
  135. m=Instance.new('BlockMesh',blocks[x])
  136. m.Scale=Vector3.new(0.29999992251396,1,0.12000000476837)
  137. test=ezBlock('Part', 'Part', CFrame.new(2.9001767635345+x_offset,12.307532310486+y_offset,2.3282859325409+z_offset) * CFrame.Angles(math.rad(75.000564575195),math.rad(-0.0027364948764443),math.rad(-0.0040953187271953)), Vector3.new(1,1,1), nil,Enum.Material.Plastic, model, BrickColor.new("Really black"),0,nil,Enum.FormFactor.Symmetric)
  138. m=Instance.new('SpecialMesh',blocks[test])
  139. m.MeshType=Enum.MeshType.Wedge
  140. m.Scale=Vector3.new(0.11999999731779,0.29999992251396,0.79999995231628)
  141. x=ezBlock('Part', 'Part', CFrame.new(2.9000627994537+x_offset,11.292961120605+y_offset,2.8021762371063+z_offset) * CFrame.Angles(math.rad(-120.99560546875),math.rad(0.0018079035216942),math.rad(-179.99545288086)), Vector3.new(1,1,2), nil,Enum.Material.Plastic, model, BrickColor.new("Really black"),0,nil,Enum.FormFactor.Symmetric)
  142. m=Instance.new('SpecialMesh',blocks[x])
  143. m.MeshType=Enum.MeshType.Wedge
  144. m.Scale=Vector3.new(0.11999999731779,0.29999992251396,0.69999992847443)
  145. x=ezBlock('Part', 'Part', CFrame.new(2.8998336791992+x_offset,6.8374934196472+y_offset,2.4182815551758+z_offset) * CFrame.Angles(math.rad(-62.47554397583),math.rad(89.951538085938),math.rad(62.96166229248)), Vector3.new(1,1,1), nil,Enum.Material.Plastic, model, BrickColor.new("Really black"),0,nil,Enum.FormFactor.Symmetric)
  146. m=Instance.new('BlockMesh',blocks[x])
  147. m.Scale=Vector3.new(0.29999992251396,0.79999995231628,0.12000000476837)
  148. x=ezBlock('Part', 'Part', CFrame.new(2.8999021053314+x_offset,7.9074859619141+y_offset,2.5182840824127+z_offset) * CFrame.Angles(math.rad(132.43475341797),math.rad(89.868774414062),math.rad(-179.9655456543)), Vector3.new(1,1,1), nil,Enum.Material.Plastic, model, BrickColor.new("Really black"),0,nil,Enum.FormFactor.Symmetric)
  149. m=Instance.new('BlockMesh',blocks[x])
  150. m.Scale=Vector3.new(0.29999992251396,0.59999990463257,0.12000000476837)
  151. x=ezBlock('Part', 'Part', CFrame.new(2.8998639583588+x_offset,7.4174952507019+y_offset,2.658282995224+z_offset) * CFrame.Angles(math.rad(101.38736724854),math.rad(89.951538085938),math.rad(-56.383499145508)), Vector3.new(1,1,1), nil,Enum.Material.Plastic, model, BrickColor.new("Really black"),0,nil,Enum.FormFactor.Symmetric)
  152. m=Instance.new('BlockMesh',blocks[x])
  153. m.Scale=Vector3.new(0.29999992251396,0.79999995231628,0.12000000476837)
  154. x=ezBlock('Part', 'Part', CFrame.new(2.8998181819916+x_offset,6.4374675750732+y_offset,2.418304681778+z_offset) * CFrame.Angles(math.rad(179.99493408203),math.rad(-0.0017437987262383),math.rad(0.0042136842384934)), Vector3.new(1,0.40000000596046,1), nil,Enum.Material.Plastic, model, BrickColor.new("Really black"),0,nil,Enum.FormFactor.Plate)
  155. m=Instance.new('BlockMesh',blocks[x])
  156. m.Scale=Vector3.new(0.29999992251396,0.3999999165535,0.79999995231628)
  157. handle=ezBlock('Part', 'Handle', CFrame.new(2.8998110294342+x_offset,5.7374625205994+y_offset,2.4182667732239+z_offset) * CFrame.Angles(math.rad(-26.479055404663),math.rad(-89.965728759766),math.rad(153.52093505859)), Vector3.new(1,2,1), nil,Enum.Material.Plastic, model, BrickColor.new("Really black"),0,nil,Enum.FormFactor.Symmetric)
  158. m=Instance.new('BlockMesh',blocks[handle])
  159. m.Scale=Vector3.new(0.09999992698431,0.69999992847443,0.09999992698431) --lolfunnyjoke lolhilarlar
  160. wait()
  161. for i, v in pairs(blocks) do
  162. v.Parent = model
  163. end
  164. end
  165. makeModel()
  166. ----
  167. local cor = Instance.new("Part", model)
  168. cor.Name = "HitBox"
  169. cor.BottomSurface = 0
  170. cor.CanCollide = false
  171. cor.Size = Vector3.new(1, 6, 1)
  172. cor.Transparency = 1
  173. cor.TopSurface = 0
  174. corw = Instance.new("Weld", cor)
  175. corw.Part0 = larm
  176. corw.Part1 = cor
  177. corw.C0 = CFrame.new(0, -1, -2.75) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0))
  178. corw.C1 = CFrame.new(0, 0, 0)
  179. hndlw = Instance.new("Weld", model.Handle)
  180. hndlw.Part0 = cor
  181. hndlw.Part1 = model.Handle
  182. hndlw.C0 = CFrame.new(0, 2.75, 0)
  183. ----------------------------Extra Settings
  184. --[[f = Instance.new("Fire")
  185. f.Parent = larm
  186. f.Size = 5
  187. f.Heat = 5
  188. f.Color = Color3.new(0,0,0)
  189. f.SecondaryColor = Color3.new(44/255,31/255,90/255)
  190. f1 = Instance.new("Fire")
  191. f1.Parent = rarm
  192. f1.Size = 5
  193. f1.Heat = 5
  194. f1.Color = Color3.new(0,0,0)
  195. f1.SecondaryColor = Color3.new(44/255,31/255,90/255)]]
  196. z = Instance.new("Sound")
  197. z.SoundId = "http://www.roblox.com/asset/?id=146309999"--160453802
  198. z.Parent = char
  199. z.Looped = true
  200. z.Pitch = 1
  201. z.Volume = 1
  202. z.PlayOnRemove = false
  203. wait(.01)
  204. z:Play()
  205. char.Humanoid.WalkSpeed = 10
  206. -----------------------------Cero
  207. mouse.KeyDown:connect(function(key)
  208. if key == "f" then
  209. if CanAttack == true then
  210. CanAttack = false
  211. Debounces.NoIdl = true
  212. char.Humanoid.WalkSpeed = .01
  213. Debounces.on = true
  214. for i = 1, 20 do
  215. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-18), 0, math.rad(-20)), 0.3)
  216. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(65), 0, math.rad(-40)), 0.3)
  217. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-10)), 0.3)
  218. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(8), 0, math.rad(10)), 0.3)
  219. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-10), math.rad(-70), 0), 0.6)
  220. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(84), 0), 0.4)
  221. if Debounces.on == false then
  222. break
  223. end
  224. wait()
  225. end
  226. wait(1)
  227. x = Instance.new("Sound")
  228. x.SoundId = "http://www.roblox.com/asset/?id=142070127"
  229. x.Parent = char.Head
  230. x.Looped = false
  231. x.Pitch = .88
  232. x.Volume = 1
  233. wait(.1)
  234. x:Play()
  235. Debounces.on = false
  236. Debounces.Here = false
  237. shot = shot + 1
  238. for i = 1, 6 do
  239. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(-12)), 0.4)
  240. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(101)), 0.4)
  241. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-6)), 0.4)
  242. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(6)), 0.4)
  243. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-8), math.rad(-84), 0), 0.4)
  244. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.4)
  245. wait()
  246. end
  247. local rng = Instance.new("Part", char)
  248. rng.Anchored = true
  249. rng.BrickColor = BrickColor.new("Really black")
  250. rng.CanCollide = false
  251. rng.FormFactor = 3
  252. rng.Name = "Ring"
  253. rng.Size = Vector3.new(1, 1, 1)
  254. rng.Transparency = 0.35
  255. rng.TopSurface = 0
  256. rng.BottomSurface = 0
  257. local rngm = Instance.new("SpecialMesh", rng)
  258. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  259. rngm.Scale = Vector3.new(10, 10, 1)
  260. local bem = Instance.new("Part", char)
  261. bem.Anchored = true
  262. bem.BrickColor = BrickColor.new("Really black")
  263. bem.CanCollide = false
  264. bem.FormFactor = 3
  265. bem.Name = "Beam" .. shot
  266. bem.Size = Vector3.new(1, 1, 1)
  267. bem.Transparency = 0.35
  268. bem.TopSurface = 0
  269. bem.BottomSurface = 0
  270. local bemm = Instance.new("SpecialMesh", bem)
  271. bemm.MeshType = 4
  272. bemm.Scale = Vector3.new(1, 4, 4)
  273. local out = Instance.new("Part", char)
  274. out.Anchored = true
  275. out.BrickColor = BrickColor.new("Really black")
  276. out.CanCollide = false
  277. out.FormFactor = 3
  278. out.Name = "Out"
  279. out.Size = Vector3.new(1, 1, 1)
  280. out.Transparency = 0.35
  281. out.TopSurface = 0
  282. out.BottomSurface = 0
  283. local outm = Instance.new("SpecialMesh", out)
  284. outm.MeshId = "http://www.roblox.com/asset/?id=1033714"
  285. outm.Scale = Vector3.new(2, 2, 2)
  286. local bnd = Instance.new("Part", char)
  287. bnd.Anchored = true
  288. bnd.BrickColor = BrickColor.new("Really black")
  289. bnd.CanCollide = false
  290. bnd.FormFactor = 3
  291. bnd.Name = "BEnd"
  292. bnd.Size = Vector3.new(1, 1, 1)
  293. bnd.Transparency = 0.35
  294. bnd.TopSurface = 0
  295. bnd.BottomSurface = 0
  296. local bndm = Instance.new("SpecialMesh", bnd)
  297. bndm.MeshType = 3
  298. bndm.Scale = Vector3.new(4, 4, 4)
  299. out.CFrame = rarm.CFrame * CFrame.new(0, -1.75, 0)
  300. bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90))
  301. bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0)
  302. rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0)
  303. Debounces.Shewt = true
  304. coroutine.wrap(function()
  305. for i = 1, 20, 0.2 do
  306. rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1)
  307. rng.Transparency = i/20
  308. wait()
  309. end
  310. wait()
  311. rng:Destroy()
  312. end)()
  313. if Debounces.Shewt == true then
  314. char:WaitForChild("Beam" .. shot).Touched:connect(function(ht) --Here
  315. print("Hit")
  316. hit = ht.Parent
  317. if hit:IsA("Model") and hit:findFirstChild("Humanoid") then
  318. print("Yes")
  319. if HasntTouched(hit.Name) == true and deb == false then
  320. deb = true
  321. coroutine.wrap(function()
  322. hit:FindFirstChild("Humanoid").PlatformStand = true
  323. hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 140
  324. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(18,63))
  325. wait(1)
  326. hit:FindFirstChild("Humanoid").PlatformStand = false
  327. end)()
  328. table.insert(Touche, hit.Name)
  329. deb = false
  330. end
  331. elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then
  332. print("Yes")
  333. if HasntTouched(hit.Parent.Name) == true and deb == false then
  334. deb = true
  335. coroutine.wrap(function()
  336. hit.Parent:FindFirstChild("Humanoid").PlatformStand = true
  337. hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 140
  338. wait(1)
  339. hit.Parent:FindFirstChild("Humanoid").PlatformStand = false
  340. end)()
  341. table.insert(Touche, hit.Parent.Name)
  342. deb = false
  343. for i, v in pairs(Touche) do
  344. print(v)
  345. end
  346. end
  347. end
  348. end)
  349. end
  350. for i = 0, 200, 7 do
  351. bem.Size = Vector3.new(i, 1, 1)
  352. bem.CFrame = rarm.CFrame * CFrame.new(0, -2.5 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90))
  353. bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 0)
  354. wait()
  355. end
  356. wait()
  357. Debounces.Shewt = false
  358. bem:Destroy()
  359. out:Destroy()
  360. bnd:Destroy()
  361. char.Humanoid.WalkSpeed = 10
  362. Debounces.Ready = false
  363. for i, v in pairs(Touche) do
  364. table.remove(Touche, i)
  365. end
  366. wait()
  367. table.insert(Touche, char.Name)
  368. Debounces.NoIdl = false
  369. if CanAttack == false then
  370. CanAttack = true
  371. end
  372. end
  373. end
  374. end)
  375. -------------------------------Nightshift Blast
  376. mouse.KeyDown:connect(function(key)
  377. if key == "q" then
  378. if CanAttack == true then
  379. CanAttack = false
  380. Debounces.NoIdl = true
  381. Debounces.on = true
  382. for i = 1, 20 do
  383. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(75), 0, math.rad(30)), 0.2)
  384. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(75), 0, math.rad(-30)), 0.2)
  385. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, 0.5, -1) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  386. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, 0.5, -1) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  387. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-26), math.rad(0), 0), 0.2)
  388. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
  389. if Debounces.on == false then
  390. break
  391. end
  392. wait()
  393. end
  394. wait()
  395. if Daytime == true then
  396. Daytime = false
  397. l.TimeOfDay = 24
  398. else
  399. Daytime = true
  400. l.TimeOfDay = 12
  401. l.OutdoorAmbient = Color3.new(0.498039, 0.498039, 0.498039)
  402. end
  403. char.Humanoid.MaxHealth = math.huge
  404. c = Instance.new("Sound")
  405. c.SoundId = "http://www.roblox.com/asset/?id=152758283"
  406. c.Parent = m
  407. c.Looped = false
  408. if Daytime == true then
  409. c.Pitch = -1
  410. elseif Daytime == false then
  411. c.Pitch = 1.12
  412. end
  413. c.Volume = 1
  414. wait(.01)
  415. c:Play()
  416. local Shockwave = function()
  417. local Wave = Instance.new("Part", game.Workspace--[[?]])
  418. Wave.Name = "Shockwave"
  419. Wave.BrickColor = BrickColor.new("Really black")
  420. Wave.Size = Vector3.new(1, 1, 1)
  421. Wave.Shape = "Ball"
  422. Wave.CanCollide = false
  423. Wave.Anchored = true
  424. Wave.TopSurface = 0
  425. Wave.BottomSurface = 0
  426. Wave.Touched:connect(function(hit)
  427. print(hit.Name)
  428. if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then
  429. if hit.Parent.Name ~= char.Name then
  430. print("Damaged " .. hit.Parent.Name)
  431. hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 1
  432. hit.Parent:findFirstChild("Torso").Velocity = hit.Parent:findFirstChild("Torso").CFrame.lookVector * -120
  433. end
  434. end
  435. end)
  436.  
  437. Instance.new("SpecialMesh", Wave).MeshType = "Sphere"
  438.  
  439. Delay(0, function()
  440. --
  441. -- Okay.
  442. if Daytime == false then
  443. for i = 1, 38, 1 do
  444. Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i)
  445. Wave.CFrame = char.Torso.CFrame
  446. local t = i / 38
  447. Wave.Transparency = t
  448. wait()
  449. end
  450. else
  451. for i = 38, 1, -1 do
  452. Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i)
  453. Wave.CFrame = char.Torso.CFrame
  454. local t = i / 38
  455. Wave.Transparency = t
  456. wait()
  457. end
  458. end
  459. Wave:Destroy()
  460. end)
  461. Delay(0, function()
  462. while wait() do
  463. if Wave ~= nil then
  464. Wave.CFrame = char.Torso.CFrame
  465. else
  466. break
  467. end
  468. end
  469. end)
  470. end
  471.  
  472. Shockwave()
  473.  
  474. for i = 1, 20 do
  475. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, .5, 0) * CFrame.Angles(math.rad(120), 0, math.rad(-100)), 0.6)
  476. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, .5, 0) * CFrame.Angles(math.rad(120), 0, math.rad(100)), 0.6)
  477. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-20)), 0.6)
  478. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(20)), 0.6)
  479. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(35), math.rad(0), 0), 0.6)
  480. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.6)
  481. wait()
  482. if Debounces.on == false then
  483. break
  484. end
  485. wait()
  486. end
  487. wait(2)
  488. Debounces.NoIdl = false
  489. if CanAttack == false then
  490. CanAttack = true
  491. wait()
  492. end
  493. end -- for the canattack thing
  494. end
  495. end)
  496. -------------------------------Slash
  497. mouse.KeyDown:connect(function(key)
  498. if key == "e" then
  499. if CanAttack == true then
  500. CanAttack = false
  501. Debounces.NoIdl = true
  502. Debounces.on = true
  503. for i = 1, 20 do
  504. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(75), math.rad(-36), math.rad(30)), 0.3)
  505. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(32)), 0.6)
  506. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, 0, -1) * CFrame.Angles(math.rad(0), 0, math.rad(-10)), 0.6)
  507. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(10)), 0.6)
  508. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-10), math.rad(18), 0), 0.6)
  509. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-60), math.rad(-10)), 0.6)
  510. if Debounces.on == false then
  511. break
  512. end
  513. wait()
  514. end
  515. wait()
  516. z = Instance.new("Sound")
  517. z.SoundId = "http://www.roblox.com/asset/?id=160069154"
  518. z.Parent = char.Head
  519. z.Looped = false
  520. z.Pitch = 1
  521. z.Volume = 1
  522. wait(.01)
  523. z:Play()
  524. Debounces.Slashing = true
  525. for i = 1, 20 do
  526. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-21), math.rad(50), math.rad(-40)), 0.46)
  527. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(18)), 0.6)
  528. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-14), 0, math.rad(-10)), 0.6)
  529. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(6), 0, math.rad(10)), 0.6)
  530. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-14), math.rad(-36), 0), 0.6)
  531. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(36), 0), 0.6)
  532. wait()
  533. if Debounces.on == false then
  534. break
  535. end
  536. wait()
  537. end
  538. Debounces.Slashing = false
  539. Debounces.NoIdl = false
  540. wait()
  541. if CanAttack == false then
  542. CanAttack = true
  543. end -- dis betr
  544. end
  545. end
  546. end)
  547. cor.Touched:connect(function(ht)
  548. hit = ht.Parent
  549. if ht and hit:IsA("Model") then
  550. if hit:FindFirstChild("Humanoid") then
  551. if hit.Name ~= p.Name then
  552. if Debounces.Slashing == true and Debounces.Slashed == false then
  553. Debounces.Slashed = true
  554. if (lastanimpose == "Running" and animpose == "Idle") or animpose == "Running" then
  555. -- extra damage, 100 for testing.
  556. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(37, 56))
  557. else
  558. print(lastanimpose, animpose)
  559. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(18,37))
  560. end
  561. wait(1)
  562. Debounces.Slashed = false
  563. end
  564. end
  565. end
  566. elseif ht and hit:IsA("Hat") then
  567. if hit.Parent.Name ~= p.Name then
  568. if hit.Parent:FindFirstChild("Humanoid") then
  569. if Debounces.Slashing == true and Debounces.Slashed == false then
  570. Debounces.Slashed = true
  571. if (lastanimpose == "Running" and animpose == "Idle") or animpose == "Running" then
  572. -- extra damage, 100 for testing.
  573. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(37, 56))
  574. else
  575. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(18,37))
  576. end
  577. wait(1)
  578. Debounces.Slashed = false
  579. end
  580. end
  581. end
  582. end
  583. end)
  584. -------------------------------Stab
  585. mouse.KeyDown:connect(function(key)
  586. if key == "r" then
  587. if CanAttack == true then
  588. CanAttack = false
  589. Debounces.NoIdl = true
  590. Debounces.on = true
  591. z = Instance.new("Sound")
  592. z.SoundId = "http://www.roblox.com/asset/?id=159218913"
  593. z.Parent = char.Head
  594. z.Looped = false
  595. z.Pitch = .9
  596. z.Volume = 1
  597. wait(.01)
  598. z:Play()
  599. Debounces.Slashing = true
  600. for i = 1, 20 do
  601. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.2, -2.75) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(-10)), 0.6)
  602. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(60), math.rad(50), math.rad(-40)), 0.6)
  603. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-10), math.rad(34), math.rad(-20)), 0.6)
  604. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-14)), 0.6)
  605. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(14)), 0.6)
  606. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(48), 0), 0.6)
  607. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.7)
  608. wait()
  609. if Debounces.on == false then
  610. break
  611. end
  612. wait()
  613. end
  614. Debounces.Slashing = false
  615. Debounces.NoIdl = false
  616. if CanAttack == false then
  617. CanAttack = true
  618. end
  619. end
  620. end
  621. -------------------------------Getsuga Tenshou
  622. mouse.KeyDown:connect(function(key)
  623. if key == "t" then
  624. if CanAttack == true then
  625. CanAttack = false
  626. Debounces.NoIdl = true
  627. Debounces.on = true
  628. for i = 1, 20 do
  629. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.2, -2.75) * CFrame.Angles(math.rad(90), math.rad(40), math.rad(0)), 0.6)
  630. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1, 1, -.5) * CFrame.Angles(math.rad(130), math.rad(0), math.rad(40)), 0.3)
  631. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1, 1, -.5) * CFrame.Angles(math.rad(130), math.rad(0), math.rad(-40)), 0.3)
  632. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(-10)), 0.6)
  633. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(10)), 0.6)
  634. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.6)
  635. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.2)
  636. if Debounces.on == false then
  637. break
  638. end
  639. wait()
  640. end
  641. wait()
  642. z = Instance.new("Sound")
  643. z.SoundId = "http://www.roblox.com/asset/?id=159218913"
  644. z.Parent = char.Head
  645. z.Looped = false
  646. z.Pitch = 1
  647. z.Volume = 1
  648. wait(.01)
  649. z:Play()
  650. Debounces.Slashing = true
  651. for i = 1, 20 do
  652. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.2, -2.75) * CFrame.Angles(math.rad(90), math.rad(40), math.rad(0)), 0.6)
  653. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1, .5, -.5) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(40)), 0.6)
  654. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1, .5, -.5) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-40)), 0.6)
  655. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1.5, -.5) * CFrame.Angles(math.rad(-90), 0, math.rad(0)), 0.6)
  656. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -.5, -1) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.6)
  657. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-20), math.rad(0), 0), 0.6)
  658. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.6)
  659. wait()
  660. if Debounces.on == false then
  661. break
  662. end
  663. wait()
  664. end
  665. Debounces.Slashing = false
  666. Debounces.NoIdl = false
  667. wait()
  668. if CanAttack == false then
  669. CanAttack = true
  670. end
  671. end
  672. end
  673. end)
  674. end)
  675. --------------------------------------------------Insanity
  676. mouse.KeyDown:connect(function(key)
  677. if key == "g" then
  678. if CanAttack == true then
  679. CanAttack = false
  680. Debounces.NoIdl = true
  681. z = Instance.new("Sound")
  682. z.SoundId = "http://www.roblox.com/asset/?id=154564700"
  683. z.Parent = char
  684. z.Looped = true
  685. z.Pitch = .88
  686. z.Volume = 1
  687. wait(.01)
  688. z:Play()
  689. for i = 1, 20 do
  690. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.2, -2.75) * CFrame.Angles(math.rad(90), math.rad(40), math.rad(0)), 0.6)
  691. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(75), 0, math.rad(30)), 0.2)
  692. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(75), 0, math.rad(-30)), 0.2)
  693. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, 0.5, -1) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  694. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, 0.5, -1) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  695. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-26), math.rad(0), 0), 0.2)
  696. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
  697. if Debounces.on == false then
  698. break
  699. end
  700. wait()
  701. end
  702. mouse.KeyUp:connect(function(key)
  703. if key == "g" then
  704. z:Stop()
  705. Debounces.NoIdl = false
  706. wait()
  707. if CanAttack == true then
  708. CanAttack = false
  709. end
  710. end
  711. end)
  712. end
  713. end
  714. end)
  715. --------------------------------------------------Idle Changing
  716. mouse.KeyDown:connect(function(key)
  717. if key == "z" then
  718. stanceToggle = "Aggressive"
  719. elseif key == "x" then
  720. stanceToggle = "Assertive"
  721. elseif key == "c" then
  722. stanceToggle = "Floating"
  723. end
  724. end)
  725. -------------------------------Sprint
  726. mouse.KeyDown:connect(function(key)
  727. if string.byte(key) == 52 then
  728. char.Humanoid.WalkSpeed = 48
  729. end
  730. end)
  731. mouse.KeyUp:connect(function(key)
  732. if string.byte(key) == 52 then
  733. char.Humanoid.WalkSpeed = 10
  734. end
  735. end)
  736. -------------------------------
  737. local sine = 0
  738. local change = 1
  739. local val = 0
  740. local ffing = false
  741. --------------------------------Trail
  742. local LastCFr = nil
  743. local Trails = Instance.new("Model",char)
  744. local Trail = {}
  745. local Tip = blocks[test]
  746. local number = 0
  747. local num2 = 1
  748. game:GetService("RunService").RenderStepped:connect(function()
  749. local start = nil
  750. for i = num2,number do
  751. local v = Trail[i]
  752. if v ~= nil then
  753. local cfr = v.CFrame
  754. local Amount = v.Size.Y/4
  755. v.Size = v.Size-Vector3.new(0,Amount,0)
  756. v.Transparency = v.Transparency+0.05
  757. v.CFrame = cfr*CFrame.new(0,Amount/2,0)
  758. if v.Size.Y <= 0.205 or v.Transparency > 0.95 then
  759. v:Destroy()
  760. Trail[i] = nil
  761. num2=num2+1
  762. end
  763. break
  764. end
  765. end
  766. if Debounces.Slashing then
  767. if LastCFr ~= nil and (Tip.Position-LastCFr.p).Magnitude > 0.01 then
  768. local cfr = Tip.CFrame
  769. local T = Instance.new("Part",Trails)
  770. number = number+1
  771. Trail[number] = T
  772. T.FormFactor = "Custom"
  773. T.Name = "Trail"
  774. T.Anchored = true
  775. T.CanCollide = false
  776. T.Size = Vector3.new(0.5,(LastCFr.p-cfr.p).Magnitude,0.5)
  777. T.TopSurface = "SmoothNoOutlines"
  778. T.BottomSurface = "SmoothNoOutlines"
  779. T.FrontSurface = "SmoothNoOutlines"
  780. T.BackSurface = "SmoothNoOutlines"
  781. T.LeftSurface = "SmoothNoOutlines"
  782. T.RightSurface = "SmoothNoOutlines"
  783. --[[local m = Instance.new("SpecialMesh",T)
  784. m.MeshType = "Head"
  785. m.Name = "Mesh"]]
  786. T.BrickColor = BrickColor.new("Really black")
  787. T.Transparency = 0.4
  788. T.CFrame = CFrame.new(cfr.p, LastCFr.p)* CFrame.Angles(math.rad(90),0,0) * CFrame.new(0, -(LastCFr.p-cfr.p).Magnitude/2, 0)
  789. LastCFr = cfr
  790. else
  791. LastCFr = Tip.CFrame
  792. end
  793. else
  794. if LastCFr ~= nil then LastCFr = nil Trails:ClearAllChildren() Trail = {} end
  795. end
  796. -----------------------------------
  797. --[[if stanceToggle ~= "Floating" then
  798. bodypos.Parent = nil
  799. end]]
  800. -----------------------------------Animations
  801. char.Humanoid.FreeFalling:connect(function(f)
  802. if f then
  803. ffing = true
  804. else
  805. ffing = false
  806. end
  807. end)
  808. sine = sine + change
  809. if jump == true then
  810. animpose = "Jumping"
  811. elseif ffing == true then
  812. animpose = "Freefalling"
  813. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  814. animpose = "Idle"
  815. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  816. animpose = "Walking"
  817. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  818. animpose = "Running"
  819. end
  820. if animpose ~= lastanimpose then
  821. sine = 0
  822. if Debounces.NoIdl == false then
  823. for i = 1, 2 do
  824. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.6)
  825. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.6)
  826. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -2.75) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 0.6)
  827. wait()
  828. end
  829. else
  830. end
  831. end
  832. lastanimpose = animpose
  833. if Debounces.NoIdl == false then
  834. if ffing then
  835. change = 0.5
  836. if stanceToggle == "Assertive" then
  837. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(15), 0, math.rad(30)), 0.1)
  838. elseif stanceToggle == "Aggressive" then
  839.  
  840.  
  841. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(50),math.rad(20+2*math.cos(sine/14)),math.rad(95)), 0.1)
  842.  
  843. elseif stanceToggle == "Floating" then
  844.  
  845. end
  846. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-20)), 0.1)
  847. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(20)), 0.1)
  848.  
  849. elseif animpose == "Idle" then
  850. if stanceToggle == "Aggressive" then
  851. change = 0.5
  852. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(50),math.rad(20+2*math.cos(sine/14)),math.rad(70)), 0.2)
  853. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(10),math.rad(-70),math.rad(-30-2*math.cos(sine/14))), 0.2)
  854. hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5+2*math.cos(sine/14)),math.rad(-60),math.rad(10))
  855. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(70), math.rad(0)), 0.2)
  856. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(6), math.rad(0), math.rad(-20-3*math.cos(sine/14))), 0.2)
  857. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), math.rad(0), math.rad(20+3*math.cos(sine/14))), 0.2)
  858. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -2.75) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 0.2)
  859. elseif stanceToggle == "Assertive" then
  860. change = 0.5
  861. 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(10+2*math.cos(sine/14))), 0.2)
  862. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10+2*math.cos(sine/14))), 0.2)
  863. hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-10+2*math.cos(sine/14)),math.rad(-32),0)
  864. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(36), math.rad(0)), 0.2)
  865. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2)
  866. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2)
  867. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -2.75) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 0.2)
  868.  
  869. elseif stanceToggle == "Floating" then
  870.  
  871. 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(10+2*math.cos(sine/14))), 0.4)
  872. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16-4*math.cos(sine/14)),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4)
  873. hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-16+2*math.cos(sine/14)),math.rad(0),0)
  874. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, (2-0.4*math.cos(sine/14)), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05)
  875. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4)
  876. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4)
  877. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -2.75) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 0.4)
  878. --[[bodypos.Parent = root
  879. local hit,pos = workspace:FindPartOnRayWithIgnoreList(Ray.new(root.CFrame,CFrame.new(0,-20,0)),char:children())
  880. if hit then
  881. bodypos.position = Vector3.new(0,hit.CFrame.2 + hit.Size.2/2 + 2,0)
  882. else
  883. bodypos.position = Vector3.new(0,root.CFrame.2,0)
  884. end]]
  885. end
  886. elseif animpose == "Walking" then
  887. change = 1
  888. if stanceToggle == "Assertive" then
  889. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.4)
  890. elseif stanceToggle == "Passive" then
  891.  
  892. end
  893. if stanceToggle == "Assertive" then
  894. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(14),math.rad(-10-2*math.cos(sine/14))), 0.2)
  895. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.sin(sine/10)/6, math.rad(10), math.rad(10)), 0.4)
  896. hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-10-4*math.cos(sine/14)),0,0)
  897. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(-math.sin(sine/14)/2, 0, 0), .4)
  898. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.sin(sine/14)/2, 0, 0), .4)
  899. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, --[[math.rad(36)]]0, math.rad(0)), 0.2)
  900. elseif stanceToggle == "Aggressive" then
  901. change = 1.5
  902. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(10),math.rad(-70),math.rad(-30-2*math.cos(sine/14))), 0.2)
  903. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(50),math.rad(20+2*math.cos(sine/14)),math.rad(30)), 0.2)
  904. hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0+2*math.cos(sine/10)),math.rad(-60),math.rad(10))
  905. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(4), math.rad(0), math.rad(-10-8*math.cos(sine/14))), 0.2)
  906. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(10+6*math.cos(sine/14))), 0.2)
  907. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), math.rad(0)), 0.2)
  908. elseif stanceToggle == "Floating" then
  909. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(14),math.rad(-10-2*math.cos(sine/14))), 0.4)
  910. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.sin(sine/10)/6, math.rad(10), math.rad(10)), 0.4)
  911. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0), 0.4)
  912. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0-8*math.cos(sine/14)), 0, 0), 0.4)
  913. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(1-9*math.cos(sine/13)), 0, 0), 0.4)
  914. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, (2-0.2*math.cos(sine/14)), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05)
  915. end
  916.  
  917. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -2.75) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 0.4)
  918. elseif animpose == "Running" then
  919. change = 1
  920. if stanceToggle == "Assertive" then
  921. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.04)
  922. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-12.5-6*math.cos(sine/14)), math.rad(50), math.rad(-40)), 0.4)
  923. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-50), math.rad(-30), math.rad(26)), 0.4)
  924. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.75 + -math.sin(sine / 20)/12, -0.5 + -math.sin(sine / 16) / 2.5) * CFrame.Angles(math.rad(8) + -math.sin(sine/6)/1.5, 0, 0), .4)
  925. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.75 + math.sin(sine / 20)/12, -0.5 + math.sin(sine / 16) / 2.5) * CFrame.Angles(math.rad(8) + math.sin(sine/6)/1.5, 0, 0), .4)
  926. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(-1.1, -3.2, 0) * CFrame.Angles(0, 0, math.rad(-28)), 0.4)
  927. if sine <= 7 then
  928. for i = 1, 1.5 do
  929. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-17-2*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.2)
  930. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(-30+4*math.cos(sine/14)), math.rad(0), 0), 0.05)
  931. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, -0.5) * CFrame.Angles(math.rad(0), 0, math.rad(-5)), 0.2)
  932. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, 0, -1) * CFrame.Angles(math.rad(0), 0, math.rad(5)), 0.2)
  933. if sine > 7 or Debounces.on == true then
  934. break
  935. end
  936. wait()
  937. end
  938. elseif sine <= 10 then
  939. for i = 1, 1.5 do
  940. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, -0.5) * CFrame.Angles(math.rad(0), 0, math.rad(-5)), 0.2)
  941. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, -0.5) * CFrame.Angles(math.rad(0), 0, math.rad(5)), 0.2)
  942. if sine > 10 or Debounces.on == true then
  943. break
  944. end
  945. wait()
  946. end
  947. elseif sine <= 17 then
  948. for i = 1, 1.5 do
  949. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, 0, -1) * CFrame.Angles(math.rad(0), 0, math.rad(5)), 0.2)
  950. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0.5) * CFrame.Angles(math.rad(0), 0, math.rad(5)), 0.2)
  951. if sine > 17 or Debounces.on == true then
  952. break
  953. end
  954. wait()
  955. end
  956. elseif sine <= 20 then
  957. for i = 1, 1.5 do
  958. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, -0.5) * CFrame.Angles(math.rad(0), 0, math.rad(-5)), 0.2)
  959. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, -0.5) * CFrame.Angles(math.rad(0), 0, math.rad(5)), 0.2)
  960. if sine > 20 or Debounces.on == true then
  961. break
  962. end
  963. wait()
  964. end
  965. elseif sine > 20 then
  966. sine = 0
  967. end
  968. elseif stanceToggle == "Aggressive" then
  969. elseif stanceToggle == "Floating" then
  970. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-20*math.cos(sine/14)),math.rad(14),math.rad(-10-2*math.cos(sine/14))), 0.4)
  971. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-20*math.cos(sine/14)), math.rad(10), math.rad(10)), 0.4)
  972. hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0)
  973. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-4-10*math.cos(sine/16)), 0, 0), 0.4)
  974. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-3-12*math.cos(sine/17)), 0, 0), 0.4)
  975. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, (2-0.4*math.cos(sine/14)), 0) * CFrame.Angles(math.rad(-15),0, math.rad(0)), 0.05)
  976. end
  977. end
  978. end
  979. end)
Add Comment
Please, Sign In to add comment