MatisMach

Untitled

Jun 7th, 2017
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.50 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=154564700"--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=154564700"
  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=154564700"
  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=154564700"
  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=154564700"
  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, 60 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=154564700"
  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)
  980. local plr=game.Players.LocalPlayer
  981. local char=plr.Character
  982. wait(0.5)
  983. repeat
  984. char.Humanoid.MaxHealth=10000
  985. char.Humanoid.Health=5000
  986. until char.Humanoid.Health==5000
  987. char.Humanoid.MaxHealth=10000
  988. char.Humanoid.Health=5000
  989. char.Archivable=true
  990. local m=plr:GetMouse()
  991. Attacking=false
  992. local sp=function(s,cf,tt)
  993.  
  994. if math.random(1,5)==math.random(1,5) then
  995. game.Lighting.TimeOfDay=tostring(math.random(10,120)/10)..":00:00"
  996. game.Lighting.Ambient=Color3.new(math.random(1,250)/250,math.random(1,250)/250,math.random(1,250)/250)
  997. game.Lighting.OutdoorAmbient=Color3.new(math.random(1,250)/250,math.random(1,250)/250,math.random(1,250)/250)
  998. game.Lighting.Brightness=math.random(0,100)/10
  999. end
  1000.  
  1001.  
  1002. local part=Instance.new("Part",workspace)
  1003. part.BrickColor=BrickColor.Red()
  1004. part.Size=s
  1005. part.Transparency=0.5
  1006. part.CFrame=cf
  1007. part.Anchored=false
  1008. part.CanCollide=false
  1009. part:breakJoints()
  1010. part.CFrame=cf
  1011. part:breakJoints()
  1012. part.Anchored=false
  1013.  
  1014.  
  1015. coroutine.wrap(function()
  1016. repeat wait()
  1017. x=math.random(0,1)
  1018. y=math.random(0,1)
  1019. z=math.random(0,1)
  1020. part.Transparency=part.Transparency+0.05
  1021. r=function() return math.random(-10,10) end
  1022. --part.CFrame=part.CFrame*CFrame.Angles(z*r(),y*r(),z*r())
  1023. until part.Parent~=workspace
  1024. end)()
  1025.  
  1026. game.Debris:AddItem(part,tt)
  1027. end
  1028.  
  1029.  
  1030.  
  1031.  
  1032. p=game.Players.LocalPlayer
  1033. c=p.Character
  1034.  
  1035.  
  1036. local block=Instance.new("Part",workspace)
  1037. block.BrickColor=BrickColor.new'Toothpaste'
  1038. block.FormFactor='Custom'
  1039. block.Size=Vector3.new(2,1,2)
  1040. block.Anchored=true
  1041.  
  1042.  
  1043. cf=c.Torso.CFrame
  1044. cf=CFrame.new(cf.X,workspace.Base.CFrame.Y+0.3,cf.Z)
  1045.  
  1046.  
  1047. coroutine.wrap(function()
  1048. for asd=0,50,10 do
  1049. wait(0)
  1050. for i=0,360,64 do
  1051.  
  1052.  
  1053.  
  1054.  
  1055. sp(Vector3.new(10,10,10),c.Torso.CFrame*CFrame.Angles(0,math.rad(i),0)*CFrame.Angles(math.rad(asd),0,math.rad(45))*CFrame.new(0,asd,-(asd*1.5))*CFrame.new(0,0,-5),5)
  1056. end
  1057. end
  1058. end)()
  1059.  
  1060.  
  1061. for i=1,50,5 do wait(0)
  1062. block.CFrame=cf*CFrame.Angles(0,math.rad(i*(7.2)),0)
  1063. cff=block.CFrame block.Size=block.Size+Vector3.new(5,0,5) block.CFrame=cff
  1064. block.Transparency=i/50
  1065. end
  1066.  
  1067.  
  1068. block:Destroy()
  1069.  
  1070.  
  1071.  
  1072.  
  1073. local CLerp=function(p,cf2,v)
  1074.  
  1075. local st,cf1=tick'',p.CFrame;local c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12=cf1:components'';
  1076.  
  1077. local s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12=cf2:components'';
  1078.  
  1079. local glv=function(v1,v2)return v1+(v2-v1)*v*(1+tick''-st);end;
  1080.  
  1081. p.CFrame=CFrame.new(glv(c1,s1),glv(c2,s2),glv(c3,s3),glv(c4,s4),glv(c5,s5)
  1082.  
  1083. ,glv(c6,s6),glv(c7,s7),glv(c8,s8),glv(c9,s9),glv(c10,s10),glv(c11,s11),glv(c12,s12));wait'';
  1084.  
  1085. end
  1086.  
  1087.  
  1088.  
  1089.  
  1090. wait(1)
  1091.  
  1092. local eye=Instance.new("Part",char)
  1093. eye.Shape='Block'
  1094. eye.FormFactor='Custom'
  1095. eye.Size=Vector3.new(0.15,0.01,0.15)
  1096. eye.BrickColor=BrickColor.New'White'
  1097. eye.Material='Neon'
  1098. eye.CanCollide=false
  1099. eye.Anchored=true
  1100. eye.Transparency=0.2
  1101. --Instance.new("SpecialMesh",eye)
  1102. local emit=Instance.new("ParticleEmitter",eye)
  1103. emit.Color=ColorSequence.new(Color3.new(1,0,0),Color3.new(1,0,0))
  1104. emit.Size=NumberSequence.new(0.1,0.1)
  1105. emit.Acceleration=Vector3.new(0,10,0)
  1106. emit.Lifetime=NumberRange.new(0,1)
  1107. emit.LightEmission=0.5
  1108. emit.Texture='rbxasset://textures/particles/fire_main.dds'
  1109. emit.Rate=100
  1110. emit.Speed=NumberRange.new(1,1)
  1111. local eye2=eye:clone()
  1112. eye2.Parent=char
  1113.  
  1114. game:service'RunService'.Stepped:connect(function()
  1115. eye.CFrame=char.Head.CFrame*CFrame.new(-0.15,0.2,-0.525)
  1116. eye2.CFrame=char.Head.CFrame*CFrame.new(0.15,0.2,-0.525)
  1117.  
  1118. end)
  1119. CFX=char.Head.CFrame
  1120. CFe1=eye.CFrame
  1121. CFe2=eye2.CFrame
  1122. game:service'RunService'.Stepped:connect(function()
  1123. local C11=eye:clone()
  1124. local now=(CFe1.p-eye.CFrame.p).magnitude
  1125. local now2=(CFe2.p-eye2.CFrame.p).magnitude
  1126.  
  1127. C11.Parent=workspace
  1128. C11.CanCollide=false
  1129. C11.Anchored=true
  1130.  
  1131. coroutine.wrap(function()
  1132. for i=20,100,15 do wait(0) C11.Transparency=i/100 end
  1133. C11:Destroy()
  1134. end)()
  1135.  
  1136. local C12=eye2:clone()
  1137.  
  1138. C12.Parent=workspace
  1139. C12.CanCollide=false
  1140. C12.Anchored=true
  1141. XD=CFX
  1142. cframenow=CFe1
  1143. cframenow2=CFe2
  1144. CFX=char.Head.CFrame
  1145. CFe1=eye.CFrame
  1146. CFe2=eye2.CFrame
  1147. C11.Size=Vector3.new(eye.Size.X,eye.Size.Y,now)
  1148. C11.CFrame=CFrame.new(cframenow.p,eye.CFrame.p)*CFrame.new(0,0,now/2)*CFrame.new(0,0,-0.25)
  1149. C12.Size=Vector3.new(eye.Size.X,eye.Size.Y,now2)
  1150. C12.CFrame=CFrame.new(cframenow2.p,eye2.CFrame.p)*CFrame.new(0,0,now2/2)*CFrame.new(0,0,-0.25)
  1151.  
  1152.  
  1153. coroutine.wrap(function()
  1154. for i=20,100,15 do wait(0) C12.Transparency=i/100 end
  1155. C12:Destroy()
  1156.  
  1157. end)()
  1158.  
  1159. end)
Add Comment
Please, Sign In to add comment