Advertisement
Yscripter

Untitled

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