Advertisement
Guest User

Untitled

a guest
Mar 19th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 73.10 KB | None | 0 0
  1. -- Project Name: "Zerioth Recreated"
  2. ----------------------------Declarations
  3. local p = game.Players.LocalPlayer
  4. local player = p
  5. local char = p.Character
  6. local mouse = p:GetMouse()
  7. local larm = char["Left Arm"]
  8. local rarm = char["Right Arm"]
  9. local lleg = char["Left Leg"]
  10. local rleg = char["Right Leg"]
  11. local hed = char.Head
  12. local torso = char.Torso
  13. local cam = game.Workspace.CurrentCamera
  14. local root = char.HumanoidRootPart
  15. local deb = false
  16. local shot = 0
  17. local l = game.Lighting
  18. local stanceToggle = "Assertive"
  19. local CanAttack = true
  20. local Daytime = true
  21. local animpose = "Idle"
  22. local lastanimpose = "Idle"
  23. ----------------------------Eye / Trail
  24. eye = Instance.new("Part",player.Character)
  25. eye.BrickColor = BrickColor.new("Lime green") --("Dark indigo")
  26. eye.Material = "Neon"
  27. eye.FormFactor = 3
  28. eye.Shape = "Ball"
  29. eye.Size = Vector3.new(0.37,0.37,0.1)
  30. weld = Instance.new("Weld",eye)
  31. weld.Part0 = eye
  32. weld.Part1 = player.Character.Head
  33. weld.C0 = CFrame.new(0.15,-0.2,0.45)
  34. eye.Transparency = 1
  35. -------- 2
  36. eye2 = Instance.new("Part",player.Character)
  37. eye2.BrickColor = BrickColor.new("Lime green")
  38. eye2.Material = "Neon"
  39. eye2.FormFactor = 3
  40. eye2.Shape = "Ball"
  41. eye2.Size = Vector3.new(0.37,0.37,0.1)
  42. weld = Instance.new("Weld",eye2)
  43. weld.Part0 = eye2
  44. weld.Part1 = player.Character.Head
  45. weld.C0 = CFrame.new(-0.15,-0.2,0.45)
  46. eye2.Transparency = 1
  47. ----------------------------Particles
  48. --[[local particleemitter = Instance.new("ParticleEmitter", torso)
  49. particleemitter.VelocitySpread = 180
  50. particleemitter.LockedToPart = true
  51. particleemitter.Lifetime = NumberRange.new(0.1)
  52. particleemitter.Speed = NumberRange.new(2)
  53. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, --5.563)})
  54. particleemitter.RotSpeed = NumberRange.new(-45, 45)
  55. particleemitter.Rate = 100
  56. particleemitter.Rotation = NumberRange.new(-45, 45)
  57. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  58. particleemitter.LightEmission = 0
  59. particleemitter.Color = Color3.new(0, 255, 0) --ColorSequence.new(Color3.new(255, 0, 0), Color3.new(0, 0, 255)) ]]
  60. ----------------------------Tables
  61. Debounces = {
  62. on = false;
  63. Ready = false;
  64. Here = false;
  65. NoIdl = false;
  66. Shewt = false;
  67. Slashing = false;
  68. Slashed = false;
  69. --EyeTrail = true;
  70. }
  71. local Touche = {char.Name, }
  72. ----------------------------Global Functions
  73. function Lerp(c1,c2,al)
  74. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  75. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  76. for i,v in pairs(com1) do
  77. com1[i] = v+(com2[i]-v)*al
  78. end
  79. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  80. end
  81. -----------
  82. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  83. wld = Instance.new("Weld", wp1)
  84. wld.Part0 = wp0
  85. wld.Part1 = wp1
  86. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  87. end
  88. -----------
  89. function HasntTouched(plrname)
  90. local ret = true
  91. for _, v in pairs(Touche) do
  92. if v == plrname then
  93. ret = false
  94. end
  95. end
  96. return ret
  97. end
  98. ----------------------------Welding
  99. newWeld(torso, larm, -1.5, 0.5, 0)
  100. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  101. newWeld(torso, rarm, 1.5, 0.5, 0)
  102. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  103. newWeld(torso, hed, 0, 1.5, 0)
  104. newWeld(torso, lleg, -0.5, -1, 0)
  105. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  106. newWeld(torso, rleg, 0.5, -1, 0)
  107. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  108. newWeld(root, torso, 0, -1, 0)
  109. torso.Weld.C1 = CFrame.new(0, -1, 0)
  110. ----------------------------------------------------------------- Left Arm -----------------------------------------------------------------
  111. larm1 = Instance.new("Part", char)
  112. larm1.Name = "Middle"
  113. larm1.BrickColor = BrickColor.new("Lime green")
  114. larm1.Size = Vector3.new(1, 2, 1)
  115. larm1.CanCollide = false
  116. larm1.BottomSurface = "Smooth"
  117. larm1.TopSurface = "Smooth"
  118. larm1.Material = "Neon"
  119. Weld = Instance.new("Weld",larm)
  120. Weld.Part0 = larm
  121. Weld.C0 = CFrame.new(1.50225258, 0.0474791527, -0.0102558136, -0.999930143, -0.0050761546, -0.0106693096, -0.00506608794, 0.999986708, -0.000970000518, 0.0106740929, -0.00091586099, -0.999942601)
  122. Weld.Part1 = larm1
  123. Weld.C1 = CFrame.new(1.50225258, 0.0474791527, -0.0102558136, -0.999930143, -0.0050761546, -0.0106693096, -0.00506608794, 0.999986708, -0.000970000518, 0.0106740929, -0.00091586099, -0.999942601)
  124.  
  125. larm2 = Instance.new("Part", char)
  126. larm2.BrickColor = BrickColor.new("Really black")
  127. larm2.Size = Vector3.new(1, 0.4, 1)
  128. larm2.CanCollide = false
  129. larm2.BottomSurface = "Smooth"
  130. larm2.TopSurface = "Smooth"
  131. Weld = Instance.new("Weld",larm)
  132. Weld.Part0 = larm
  133. Weld.C0 = CFrame.new(1.50225258, 0.0474791527, -0.0102558136, -0.999930143, -0.0050761546, -0.0106693096, -0.00506608794, 0.999986708, -0.000970000518, 0.0106740929, -0.00091586099, -0.999942601)
  134. Weld.Part1 = larm2
  135. Weld.C1 = CFrame.new(-0.452633858, -0.349740982, -1.50225353, -0.00506608887, 0.999986708, -0.00096991309, -0.0106740929, 0.000915773562, 0.999942601, 0.999930143, 0.0050761546, 0.0106693096)
  136.  
  137. larm3 = Instance.new("Part", char)
  138. larm3.BrickColor = BrickColor.new("White")
  139. larm3.Size = Vector3.new(1, 0.4, 1)
  140. larm3.CanCollide = false
  141. larm3.BottomSurface = "Smooth"
  142. larm3.TopSurface = "Smooth"
  143. Weld = Instance.new("Weld",larm)
  144. Weld.Part0 = larm
  145. Weld.C0 = CFrame.new(1.50225258, 0.0474791527, -0.0102558136, -0.999930143, -0.0050761546, -0.0106693096, -0.00506608794, 0.999986708, -0.000970000518, 0.0106740929, -0.00091586099, -0.999942601)
  146. Weld.Part1 = larm3
  147. Weld.C1 = CFrame.new(-0.452513218, -1.90224648, -0.0102577209, -0.00506604509, 0.999986708, -0.000969912624, 0.999930143, 0.00507611083, 0.0106693096, 0.0106740929, -0.000915773562, -0.999942601)
  148.  
  149. larm4 = Instance.new("Part", char)
  150. larm4.BrickColor = BrickColor.new("White")
  151. larm4.Size = Vector3.new(1, 0.4, 1)
  152. larm4.CanCollide = false
  153. larm4.BottomSurface = "Smooth"
  154. larm4.TopSurface = "Smooth"
  155. Weld = Instance.new("Weld",larm)
  156. Weld.Part0 = larm
  157. Weld.C0 = CFrame.new(1.50225258, 0.0474791527, -0.0102558136, -0.999930143, -0.0050761546, -0.0106693096, -0.00506608794, 0.999986708, -0.000970000518, 0.0106740929, -0.00091586099, -0.999942601)
  158. Weld.Part1 = larm4
  159. Weld.C1 = CFrame.new(-0.452511787, -0.41024971, 1.50225258, -0.00506623974, 0.999986708, -0.000969914719, 0.0106740929, -0.000915773562, -0.999942601, -0.999930143, -0.00507630548, -0.0106693096)
  160.  
  161. larm5 = Instance.new("Part", char)
  162. larm5.BrickColor = BrickColor.new("White")
  163. larm5.Size = Vector3.new(1, 0.4, 1)
  164. larm5.CanCollide = false
  165. larm5.BottomSurface = "Smooth"
  166. larm5.TopSurface = "Smooth"
  167. Weld = Instance.new("Weld",larm)
  168. Weld.Part0 = larm
  169. Weld.C0 = CFrame.new(1.50225258, 0.0474791527, -0.0102558136, -0.999930143, -0.0050761546, -0.0106693096, -0.00506608794, 0.999986708, -0.000970000518, 0.0106740929, -0.00091586099, -0.999942601)
  170. Weld.Part1 = larm5
  171. Weld.C1 = CFrame.new(-1.50225163, -0.762512684, 0.0102577209, 0.999930143, 0.0050761546, 0.0106693534, -0.00506608794, 0.999986708, -0.000970000518, -0.0106741367, 0.000915860757, 0.999942601)
  172.  
  173. larm6 = Instance.new("Part", char)
  174. larm6.BrickColor = BrickColor.new("White")
  175. larm6.Size = Vector3.new(1, 0.4, 1)
  176. larm6.CanCollide = false
  177. larm6.BottomSurface = "Smooth"
  178. larm6.TopSurface = "Smooth"
  179. Mesh = Instance.new("SpecialMesh", larm6)
  180. Mesh.MeshType = "Brick"
  181. Mesh.Scale = Vector3.new(1.1, 1.1, 1.1)
  182. Weld = Instance.new("Weld",larm)
  183. Weld.Part0 = larm
  184. Weld.C0 = CFrame.new(1.50225258, 0.0474791527, -0.0102558136, -0.999930143, -0.0050761546, -0.0106693096, -0.00506608794, 0.999986708, -0.000970000518, 0.0106740929, -0.00091586099, -0.999942601)
  185. Weld.Part1 = larm6
  186. Weld.C1 = CFrame.new(0.0102558136, 0.847481251, 1.50225353, -0.0106740929, 0.00091586099, 0.999942601, -0.00506608794, 0.999986708, -0.000970000518, -0.999930143, -0.0050761546, -0.0106693096)
  187.  
  188. larm7 = Instance.new("Part", char)
  189. larm7.BrickColor = BrickColor.new("White")
  190. larm7.Size = Vector3.new(0.5, 0.3, 2)
  191. larm7.CanCollide = false
  192. larm7.BottomSurface = "Smooth"
  193. larm7.TopSurface = "Smooth"
  194. larm7.Material = "Granite"
  195. Weld = Instance.new("Weld",larm)
  196. Weld.Part0 = larm
  197. Weld.C0 = CFrame.new(1.50225258, 0.0474791527, -0.0102558136, -0.999930143, -0.0050761546, -0.0106693096, -0.00506608794, 0.999986708, -0.000970000518, 0.0106740929, -0.00091586099, -0.999942601)
  198. Weld.Part1 = larm7
  199. Weld.C1 = CFrame.new(-0.339956284, 1.83238316, 1.50933075, 0.11770986, 0.484406531, 0.866887927, -0.967169523, 0.253912479, -0.0105566857, -0.225227386, -0.837184966, 0.498391271)
  200.  
  201. larm8 = Instance.new("Part", char)
  202. larm8.BrickColor = BrickColor.new("White")
  203. larm8.Size = Vector3.new(1, 0.4, 1)
  204. larm8.CanCollide = false
  205. larm8.BottomSurface = "Smooth"
  206. larm8.TopSurface = "Smooth"
  207. Weld = Instance.new("Weld",larm)
  208. Weld.Part0 = larm
  209. Weld.C0 = CFrame.new(1.50225258, 0.0474791527, -0.0102558136, -0.999930143, -0.0050761546, -0.0106693096, -0.00506608794, 0.999986708, -0.000970000518, 0.0106740929, -0.00091586099, -0.999942601)
  210. Weld.Part1 = larm8
  211. Weld.C1 = CFrame.new(0.247514963, -0.0102424622, 1.58225441, -0.00506623974, 0.999986708, -0.000969914719, 0.0106740929, -0.000915773562, -0.999942601, -0.999930143, -0.00507630548, -0.0106693096)
  212. ----------------------------------------------------------------- Right Arm -----------------------------------------------------------------
  213. rarm1 = Instance.new("Part", char)
  214. rarm1.Name = "Middle"
  215. rarm1.BrickColor = BrickColor.new("Lime green")
  216. rarm1.Size = Vector3.new(1, 2, 1)
  217. rarm1.CanCollide = false
  218. rarm1.BottomSurface = "Smooth"
  219. rarm1.TopSurface = "Smooth"
  220. rarm1.Material = "Neon"
  221. Weld = Instance.new("Weld",rarm)
  222. Weld.Part0 = rarm
  223. Weld.C0 = CFrame.new(-1.50168228, 0.0418539047, -0.00368309021, -0.999974012, 0.00369570963, 0.00619300362, 0.00366159948, 0.999978125, -0.00550886011, -0.00621323194, -0.00548603525, -0.999965668)
  224. Weld.Part1 = rarm1
  225. Weld.C1 = CFrame.new(-1.50168228, 0.0418539047, -0.00368309021, -0.999974012, 0.00369570963, 0.00619300362, 0.00366159948, 0.999978125, -0.00550886011, -0.00621323194, -0.00548603525, -0.999965668)
  226.  
  227. rarm2 = Instance.new("Part", char)
  228. rarm2.BrickColor = BrickColor.new("White")
  229. rarm2.Size = Vector3.new(1, 0.4, 1)
  230. rarm2.CanCollide = false
  231. rarm2.BottomSurface = "Smooth"
  232. rarm2.TopSurface = "Smooth"
  233. Weld = Instance.new("Weld",rarm)
  234. Weld.Part0 = rarm
  235. Weld.C0 = CFrame.new(-1.50168228, 0.0418539047, -0.00368309021, -0.999974012, 0.00369570963, 0.00619300362, 0.00366159948, 0.999978125, -0.00550886011, -0.00621323194, -0.00548603525, -0.999965668)
  236. Weld.Part1 = rarm2
  237. Weld.C1 = CFrame.new(-0.458259583, -0.356315613, 1.50168037, 0.00366159994, 0.999978125, -0.00550877256, 0.00621323148, 0.00548594771, 0.999965668, 0.999974012, -0.00369570963, -0.00619300362)
  238.  
  239. rarm3 = Instance.new("Part", char)
  240. rarm3.BrickColor = BrickColor.new("White")
  241. rarm3.Size = Vector3.new(1, 0.4, 1)
  242. rarm3.CanCollide = false
  243. rarm3.BottomSurface = "Smooth"
  244. rarm3.TopSurface = "Smooth"
  245. Weld = Instance.new("Weld",rarm)
  246. Weld.Part0 = rarm
  247. Weld.C0 = CFrame.new(-1.50168228, 0.0418539047, -0.00368309021, -0.999974012, 0.00369570963, 0.00619300362, 0.00366159948, 0.999978125, -0.00550886011, -0.00621323194, -0.00548603525, -0.999965668)
  248. Weld.Part1 = rarm3
  249. Weld.C1 = CFrame.new(-1.50168133, -0.768137932, -0.00367927551, -0.999974012, 0.00369570986, 0.00619304739, 0.00366159948, 0.999978125, -0.00550886011, -0.00621327572, -0.00548603525, -0.999965668)
  250.  
  251. rarm4 = Instance.new("Part", char)
  252. rarm4.BrickColor = BrickColor.new("Really black")
  253. rarm4.Size = Vector3.new(1, 0.4, 1)
  254. rarm4.CanCollide = false
  255. rarm4.BottomSurface = "Smooth"
  256. rarm4.TopSurface = "Smooth"
  257. Weld = Instance.new("Weld",rarm)
  258. Weld.Part0 = rarm
  259. Weld.C0 = CFrame.new(-1.50168228, 0.0418539047, -0.00368309021, -0.999974012, 0.00369570963, 0.00619300362, 0.00366159948, 0.999978125, -0.00550886011, -0.00621323194, -0.00548603525, -0.999965668)
  260. Weld.Part1 = rarm4
  261. Weld.C1 = CFrame.new(-0.00368309021, 1.8716774, 0.458146095, -0.00621323194, -0.00548603525, -0.999965668, 0.999974012, -0.0036957534, -0.00619300315, -0.00366164325, -0.999978125, 0.00550886057)
  262.  
  263. rarm5 = Instance.new("Part", char)
  264. rarm5.BrickColor = BrickColor.new("White")
  265. rarm5.Size = Vector3.new(1, 0.4, 1)
  266. rarm5.CanCollide = false
  267. rarm5.BottomSurface = "Smooth"
  268. rarm5.TopSurface = "Smooth"
  269. Mesh = Instance.new("SpecialMesh", rarm5)
  270. Mesh.MeshType = "Brick"
  271. Mesh.Scale = Vector3.new(1.1, 1.1, 1.1)
  272. Weld = Instance.new("Weld",rarm)
  273. Weld.Part0 = rarm
  274. Weld.C0 = CFrame.new(-1.50168228, 0.0418539047, -0.00368309021, -0.999974012, 0.00369570963, 0.00619300362, 0.00366159948, 0.999978125, -0.00550886011, -0.00621323194, -0.00548603525, -0.999965668)
  275. Weld.Part1 = rarm5
  276. Weld.C1 = CFrame.new(0.00368118286, 0.841855764, -1.50168228, 0.00621323194, 0.00548603525, 0.999965668, 0.00366159948, 0.999978125, -0.00550886011, -0.999974012, 0.00369570963, 0.00619300362)
  277.  
  278. rarm6 = Instance.new("Part", char)
  279. rarm6.BrickColor = BrickColor.new("White")
  280. rarm6.Size = Vector3.new(1, 0.4, 1)
  281. rarm6.CanCollide = false
  282. rarm6.BottomSurface = "Smooth"
  283. rarm6.TopSurface = "Smooth"
  284. Weld = Instance.new("Weld",rarm)
  285. Weld.Part0 = rarm
  286. Weld.C0 = CFrame.new(-1.50168228, 0.0418539047, -0.00368309021, -0.999974012, 0.00369570963, 0.00619300362, 0.00366159948, 0.999978125, -0.00550886011, -0.00621323194, -0.00548603525, -0.999965668)
  287. Weld.Part1 = rarm6
  288. Weld.C1 = CFrame.new(-1.50168133, -0.403675079, 0.458138466, -0.999974012, 0.00369575364, 0.00619304692, -0.00621327572, -0.00548603525, -0.999965668, -0.00366164325, -0.999978125, 0.00550886057)
  289.  
  290. rarm7 = Instance.new("Part", char)
  291. rarm7.BrickColor = BrickColor.new("White")
  292. rarm7.Size = Vector3.new(0.5, 0.3, 2)
  293. rarm7.CanCollide = false
  294. rarm7.BottomSurface = "Smooth"
  295. rarm7.TopSurface = "Smooth"
  296. rarm7.Material = "Granite"
  297. Weld = Instance.new("Weld",rarm)
  298. Weld.Part0 = rarm
  299. Weld.C0 = CFrame.new(-1.50168228, 0.0418539047, -0.00368309021, -0.999974012, 0.00369570963, 0.00619300362, 0.00366159948, 0.999978125, -0.00550886011, -0.00621323194, -0.00548603525, -0.999965668)
  300. Weld.Part1 = rarm7
  301. Weld.C1 = CFrame.new(0.344418526, -1.80139351, -1.50391006, 0.122256897, -0.48818168, -0.864136577, -0.966848493, -0.25524351, 0.00740774209, -0.224181563, 0.834583461, -0.503202915)
  302.  
  303. rarm8 = Instance.new("Part", char)
  304. rarm8.BrickColor = BrickColor.new("White")
  305. rarm8.Size = Vector3.new(1, 0.4, 1)
  306. rarm8.CanCollide = false
  307. rarm8.BottomSurface = "Smooth"
  308. rarm8.TopSurface = "Smooth"
  309. Weld = Instance.new("Weld",rarm)
  310. Weld.Part0 = rarm
  311. Weld.C0 = CFrame.new(-1.50168228, 0.0418539047, -0.00368309021, -0.999974012, 0.00369570963, 0.00619300362, 0.00366159948, 0.999978125, -0.00550886011, -0.00621323194, -0.00548603525, -0.999965668)
  312. Weld.Part1 = rarm8
  313. Weld.C1 = CFrame.new(0.241888285, -0.00366973877, -1.56167889, 0.00366144883, 0.999978125, -0.00550877163, -0.00621323148, -0.00548594771, -0.999965668, -0.999974012, 0.00369555852, 0.00619300455)
  314. ----------------------------Creation
  315. function stick(x,y)
  316. weld = Instance.new("Weld")
  317. weld.Part0 = x
  318. weld.Part1 = y
  319. local HitPos = x.Position
  320. local CJ = CFrame.new(HitPos)
  321. local C0 = x.CFrame:inverse() *CJ
  322. local C1 = y.CFrame:inverse() * CJ
  323. weld.C0 = C0
  324. weld.C1 = C1
  325. weld.Parent = x
  326. y.Anchored=false
  327. return weld
  328. end
  329. blocks = {}
  330. last_block = nil
  331. function ezBlock(type, name, cframe, size, rotation, material, parent, BrickColor, transparency,
  332.  
  333. weldToThis, formFactor)
  334. block = Instance.new(type, parent)
  335. block.Name = name
  336. block.FormFactor=formFactor
  337. block.Size = size
  338. block.CanCollide = false
  339. block.Anchored = false
  340. block.BrickColor = BrickColor
  341. block.Transparency=transparency
  342. block.TopSurface = 'SmoothNoOutlines'
  343. block.BottomSurface = 'SmoothNoOutlines'
  344. block.FrontSurface = 'SmoothNoOutlines'
  345. block.BackSurface = 'SmoothNoOutlines'
  346. block.LeftSurface = 'SmoothNoOutlines'
  347. block.RightSurface = 'SmoothNoOutlines'
  348. block.Material = material
  349. block.formFactor = 'Custom'
  350. block.CFrame = cframe
  351.  
  352. if weldToThis then
  353. stick(weldToThis, block)
  354. elseif last_block ~= nil then
  355. stick(block, last_block)
  356. last_block = block
  357. else
  358. last_block = block
  359. end
  360. table.insert(blocks, block)
  361.  
  362. return #blocks
  363. end
  364.  
  365. local model = Instance.new("Model", game.Players.LocalPlayer.Character)
  366. model.Name = 'KZ'
  367.  
  368. plr=game.Players.LocalPlayer
  369. chr=plr.Character
  370.  
  371. x_offset=chr["Right Arm"].Position.x-3
  372. y_offset=chr["Right Arm"].Position.y-6
  373. z_offset=chr["Right Arm"].Position.z-2
  374. handle=0
  375.  
  376. function makeModel()
  377. 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)
  378. m=Instance.new('BlockMesh',blocks[x])
  379. m.Scale=Vector3.new(0.29999992251396,1,0.12000000476837)
  380. 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)
  381. m=Instance.new('SpecialMesh',blocks[test])
  382. m.MeshType=Enum.MeshType.Wedge
  383. m.Scale=Vector3.new(0.11999999731779,0.29999992251396,0.79999995231628)
  384. 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)
  385. m=Instance.new('SpecialMesh',blocks[x])
  386. m.MeshType=Enum.MeshType.Wedge
  387. m.Scale=Vector3.new(0.11999999731779,0.29999992251396,0.69999992847443)
  388. 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)
  389. m=Instance.new('BlockMesh',blocks[x])
  390. m.Scale=Vector3.new(0.29999992251396,0.79999995231628,0.12000000476837)
  391. 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)
  392. m=Instance.new('BlockMesh',blocks[x])
  393. m.Scale=Vector3.new(0.29999992251396,0.59999990463257,0.12000000476837)
  394. 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)
  395. m=Instance.new('BlockMesh',blocks[x])
  396. m.Scale=Vector3.new(0.29999992251396,0.79999995231628,0.12000000476837)
  397. 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)
  398. m=Instance.new('BlockMesh',blocks[x])
  399. m.Scale=Vector3.new(0.29999992251396,0.3999999165535,0.79999995231628)
  400. 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)
  401. m=Instance.new('BlockMesh',blocks[handle])
  402. m.Scale=Vector3.new(0.09999992698431,0.69999992847443,0.09999992698431) --lolfunnyjoke lolhilarlar
  403. wait()
  404. for i, v in pairs(blocks) do
  405. v.Parent = model
  406. end
  407. end
  408. makeModel()
  409. ----
  410. local cor = Instance.new("Part", model)
  411. cor.Name = "HitBox"
  412. cor.BottomSurface = 0
  413. cor.CanCollide = false
  414. cor.Size = Vector3.new(1, 6, 1)
  415. cor.Transparency = 1
  416. cor.TopSurface = 0
  417. corw = Instance.new("Weld", cor)
  418. corw.Part0 = larm
  419. corw.Part1 = cor
  420. corw.C0 = CFrame.new(0, -1, -2.75) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0))
  421. corw.C1 = CFrame.new(0, 0, 0)
  422. hndlw = Instance.new("Weld", model.Handle)
  423. hndlw.Part0 = cor
  424. hndlw.Part1 = model.Handle
  425. hndlw.C0 = CFrame.new(0, 2.75, 0)
  426. ----------------------------Extra Settings
  427. --[[f = Instance.new("Fire")
  428. f.Parent = larm
  429. f.Size = 5
  430. f.Heat = 5
  431. f.Color = Color3.new(0,0,0)
  432. f.SecondaryColor = Color3.new(44/255,31/255,90/255)
  433. f1 = Instance.new("Fire")
  434. f1.Parent = rarm
  435. f1.Size = 5
  436. f1.Heat = 5
  437. f1.Color = Color3.new(0,0,0)
  438. f1.SecondaryColor = Color3.new(44/255,31/255,90/255)]]
  439. z = Instance.new("Sound")
  440. z.SoundId = "http://www.roblox.com/asset/?id=614032233"
  441. z.Parent = char
  442. z.Looped = true
  443. z.Pitch = 1
  444. z.Volume = 5
  445. z.PlayOnRemove = false
  446. wait(.01)
  447. z:Play()
  448. char.Humanoid.WalkSpeed = 50
  449. eye.Transparency=0
  450. eye2.Transparency=0
  451. -----------------------------Cero
  452. mouse.KeyDown:connect(function(key)
  453. if key == "f" then
  454. if CanAttack == true then
  455. CanAttack = false
  456. Debounces.NoIdl = true
  457. char.Humanoid.WalkSpeed = .01
  458. Debounces.on = true
  459. for i = 1, 20 do
  460. 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)
  461. 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)
  462. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-10)), 0.3)
  463. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(8), 0, math.rad(10)), 0.3)
  464. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-10), math.rad(-70), 0), 0.6)
  465. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(84), 0), 0.4)
  466. if Debounces.on == false then
  467. break
  468. end
  469. wait()
  470. end
  471. x = Instance.new("Sound",char)
  472. x.SoundId = "rbxassetid://382366855"
  473. x.Pitch = 1
  474. x.Volume = 30
  475. wait(.1)
  476. x:Play()
  477. rarm1.BrickColor = BrickColor.new("Lapis")
  478. larm1.BrickColor = BrickColor.new("Lapis")
  479. wait(1)
  480. x = Instance.new("Sound",char)
  481. x.SoundId = "rbxassetid://340722848"
  482. x.Pitch = 1
  483. x.Volume = 1
  484. wait(.1)
  485. x:Play()
  486. rarm1.BrickColor = BrickColor.new("Mulberry")
  487. larm1.BrickColor = BrickColor.new("Mulberry")
  488. Debounces.on = false
  489. Debounces.Here = false
  490. shot = shot + 1
  491. for i = 1, 6 do
  492. 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)
  493. 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)
  494. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-6)), 0.4)
  495. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(6)), 0.4)
  496. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-8), math.rad(-84), 0), 0.4)
  497. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.4)
  498. wait()
  499. end
  500. local rng = Instance.new("Part", char)
  501. rng.Anchored = true
  502. rng.BrickColor = BrickColor.new("Lime green")
  503. rng.CanCollide = false
  504. rng.FormFactor = 3
  505. rng.Name = "Ring"
  506. rng.Size = Vector3.new(1, 1, 1)
  507. rng.Transparency = 0.35
  508. rng.TopSurface = 0
  509. rng.BottomSurface = 0
  510. local rngm = Instance.new("SpecialMesh", rng)
  511. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  512. rngm.Scale = Vector3.new(10, 10, 1)
  513. local bem = Instance.new("Part", char)
  514. bem.Anchored = true
  515. bem.BrickColor = BrickColor.new("White")
  516. bem.CanCollide = false
  517. bem.FormFactor = 3
  518. bem.Name = "Beam" .. shot
  519. bem.Size = Vector3.new(1, 1, 1)
  520. bem.Transparency = 0.35
  521. bem.TopSurface = 0
  522. bem.BottomSurface = 0
  523. local bemm = Instance.new("SpecialMesh", bem)
  524. bemm.MeshType = 4
  525. bemm.Scale = Vector3.new(1, 4, 4)
  526. local out = Instance.new("Part", char)
  527. out.Anchored = true
  528. out.BrickColor = BrickColor.new("White")
  529. out.CanCollide = false
  530. out.FormFactor = 3
  531. out.Name = "Out"
  532. out.Size = Vector3.new(1, 1, 1)
  533. out.Transparency = 0.35
  534. out.TopSurface = 0
  535. out.BottomSurface = 0
  536. local outm = Instance.new("SpecialMesh", out)
  537. outm.MeshId = "http://www.roblox.com/asset/?id=1033714"
  538. outm.Scale = Vector3.new(2, 2, 2)
  539. local bnd = Instance.new("Part", char)
  540. bnd.Anchored = true
  541. bnd.BrickColor = BrickColor.new("White")
  542. bnd.CanCollide = false
  543. bnd.FormFactor = 3
  544. bnd.Name = "BEnd"
  545. bnd.Size = Vector3.new(1, 1, 1)
  546. bnd.Transparency = 0.35
  547. bnd.TopSurface = 0
  548. bnd.BottomSurface = 0
  549. local bndm = Instance.new("SpecialMesh", bnd)
  550. bndm.MeshType = 3
  551. bndm.Scale = Vector3.new(4, 4, 4)
  552. out.CFrame = rarm.CFrame * CFrame.new(0, -1.75, 0)
  553. bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90))
  554. bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0)
  555. rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0)
  556. Debounces.Shewt = true
  557. coroutine.wrap(function()
  558. for i = 1, 20, 0.2 do
  559. rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1)
  560. rng.Transparency = i/20
  561. wait()
  562. end
  563. wait()
  564. rng:Destroy()
  565. end)()
  566. if Debounces.Shewt == true then
  567. char:WaitForChild("Beam" .. shot).Touched:connect(function(ht) --Here
  568. print("Hit")
  569. hit = ht.Parent
  570. if hit:IsA("Model") and hit:findFirstChild("Humanoid") then
  571. print("Yes")
  572. if HasntTouched(hit.Name) == true and deb == false then
  573. deb = true
  574. coroutine.wrap(function()
  575. hit:FindFirstChild("Humanoid").PlatformStand = true
  576. hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 140
  577. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(18,63))
  578. wait(1)
  579. hit:FindFirstChild("Humanoid").PlatformStand = false
  580. end)()
  581. table.insert(Touche, hit.Name)
  582. deb = false
  583. end
  584. elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then
  585. print("Yes")
  586. if HasntTouched(hit.Parent.Name) == true and deb == false then
  587. deb = true
  588. coroutine.wrap(function()
  589. hit.Parent:FindFirstChild("Humanoid").PlatformStand = true
  590. hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 140
  591. wait(1)
  592. hit.Parent:FindFirstChild("Humanoid").PlatformStand = false
  593. end)()
  594. table.insert(Touche, hit.Parent.Name)
  595. deb = false
  596. for i, v in pairs(Touche) do
  597. print(v)
  598. end
  599. end
  600. end
  601. end)
  602. end
  603. for i = 0, 200, 7 do
  604. bem.Size = Vector3.new(i, 1, 1)
  605. bem.CFrame = rarm.CFrame * CFrame.new(0, -2.5 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90))
  606. bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 0)
  607. wait()
  608. end
  609. wait()
  610. Debounces.Shewt = false
  611. bem:Destroy()
  612. out:Destroy()
  613. bnd:Destroy()
  614. char.Humanoid.WalkSpeed = 10
  615. Debounces.Ready = false
  616. for i, v in pairs(Touche) do
  617. table.remove(Touche, i)
  618. end
  619. wait()
  620. table.insert(Touche, char.Name)
  621. Debounces.NoIdl = false
  622. if CanAttack == false then
  623. CanAttack = true
  624. wait(.1)
  625. rarm1.BrickColor = BrickColor.new("Lime green")
  626. larm1.BrickColor = BrickColor.new("Lime green")
  627. end
  628. end
  629. end
  630. end)
  631. -------------------------------Nightshift Blast
  632. mouse.KeyDown:connect(function(key)
  633. if key == "q" then
  634. if CanAttack == true then
  635. CanAttack = false
  636. Debounces.NoIdl = true
  637. Debounces.on = true
  638. for i = 1, 20 do
  639. 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)
  640. 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)
  641. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, 0.5, -1) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  642. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, 0.5, -1) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  643. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-26), math.rad(0), 0), 0.2)
  644. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
  645. if Debounces.on == false then
  646. break
  647. end
  648. wait()
  649. end
  650. wait()
  651. if Daytime == true then
  652. Daytime = false
  653. l.TimeOfDay = 24
  654. else
  655. Daytime = true
  656. l.TimeOfDay = 12
  657. l.OutdoorAmbient = Color3.new(0.498039, 0.498039, 0.498039)
  658. end
  659. char.Humanoid.MaxHealth = math.huge
  660. c = Instance.new("Sound")
  661. c.SoundId = "http://www.roblox.com/asset/?id=181384451"
  662. c.Parent = m
  663. c.Looped = false
  664. if Daytime == true then
  665. c.Pitch = 1.04
  666. elseif Daytime == false then
  667. c.Pitch = 1.04
  668. end
  669. c.Volume = 1
  670. wait(.01)
  671. c:Play()
  672. local Shockwave = function()
  673. local Wave = Instance.new("Part", game.Workspace--[[?]])
  674. Wave.Name = "Shockwave"
  675. Wave.BrickColor = BrickColor.new("Bright green")
  676. Wave.Size = Vector3.new(1, 1, 1)
  677. Wave.Shape = "Ball"
  678. Wave.CanCollide = false
  679. Wave.Anchored = true
  680. Wave.TopSurface = 0
  681. Wave.BottomSurface = 0
  682. Wave.Touched:connect(function(hit)
  683. print(hit.Name)
  684. if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then
  685. if hit.Parent.Name ~= char.Name then
  686. print("Damaged " .. hit.Parent.Name)
  687. hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 1
  688. hit.Parent:findFirstChild("Torso").Velocity = hit.Parent:findFirstChild("Torso").CFrame.lookVector * -120
  689. end
  690. end
  691. end)
  692.  
  693. Instance.new("SpecialMesh", Wave).MeshType = "Sphere"
  694.  
  695. Delay(0, function()
  696. --
  697. -- Okay.
  698. if Daytime == false then
  699. for i = 1, 38, 1 do
  700. Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i)
  701. Wave.CFrame = char.Torso.CFrame
  702. local t = i / 38
  703. Wave.Transparency = t
  704. wait()
  705. end
  706. else
  707. for i = 38, 1, -1 do
  708. Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i)
  709. Wave.CFrame = char.Torso.CFrame
  710. local t = i / 38
  711. Wave.Transparency = t
  712. wait()
  713. end
  714. end
  715. Wave:Destroy()
  716. end)
  717. Delay(0, function()
  718. while wait() do
  719. if Wave ~= nil then
  720. Wave.CFrame = char.Torso.CFrame
  721. else
  722. break
  723. end
  724. end
  725. end)
  726. end
  727.  
  728. Shockwave()
  729.  
  730. for i = 1, 20 do
  731. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, .5, 0) * CFrame.Angles(math.rad(120), 0, math.rad(-100)), 0.6)
  732. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, .5, 0) * CFrame.Angles(math.rad(120), 0, math.rad(100)), 0.6)
  733. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-20)), 0.6)
  734. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(20)), 0.6)
  735. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(35), math.rad(0), 0), 0.6)
  736. 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)
  737. wait()
  738. if Debounces.on == false then
  739. break
  740. end
  741. wait()
  742. end
  743. wait(2)
  744. Debounces.NoIdl = false
  745. if CanAttack == false then
  746. CanAttack = true
  747. wait()
  748. end
  749. end -- for the canattack thing
  750. local X = Instance.new("Part",char)
  751. local O = Instance.new("ObjectValue",X)
  752. O.Name = "creator"
  753. X.Locked = true
  754. X.Name = "Shell"
  755. X.Anchored = false
  756. X.CanCollide = false
  757. X.Transparency = 1
  758. X.Reflectance = 0
  759. X.BottomSurface = 0
  760. X.TopSurface = 0
  761. X.Shape = 0
  762. local V = Instance.new("ObjectValue",X)
  763. V.Value = char
  764. V.Name = "creator"
  765. X.BrickColor = BrickColor.new("Really blue")
  766. X.Size = Vector3.new(2,2,2)
  767. X.Material = "Neon"
  768. local Z = Instance.new("SpecialMesh",X)
  769. Z.MeshType = "Sphere"
  770. Z.Scale = Vector3.new(0.5,0.5,1)
  771. X.CFrame = rarm.CFrame*CFrame.new(-3,0,0)
  772. local bv = Instance.new("BodyVelocity",X)
  773. bv.maxForce = Vector3.new(99999,99999,99999)
  774. X.CFrame = CFrame.new(X.Position,mouse.Hit.p)
  775. bv.velocity = X.CFrame.lookVector*65
  776.  
  777. Explode = X.Touched:connect(function(hit)
  778. if hit ~= char and hit.Name ~= "Shell" then
  779. local cf = X.CFrame
  780. bv:Destroy()
  781. X.Anchored = true
  782. Z:Remove()
  783. Explode:disconnect()
  784. X.Size = Vector3.new(3,3,3)
  785. X.Touched:connect(function(hit) end)
  786. X.CanCollide = false
  787. local part3 = Instance.new("Part", rarm)
  788. part3.Anchored=true
  789. part3.CanCollide=false
  790. part3.Locked = true
  791. part3.TopSurface = "SmoothNoOutlines"
  792. part3.BottomSurface = "SmoothNoOutlines"
  793. part3.FormFactor='Custom'
  794. part3.Size=Vector3.new(1,1, 1)
  795. part3.CFrame=X.CFrame
  796. part3.Transparency=1
  797. part3.BrickColor=BrickColor.new("Really blue")
  798. local mesh3 = Instance.new("SpecialMesh",part3)
  799. mesh3.MeshType = "Sphere"
  800. mesh3.Scale = Vector3.new(1,1,1)
  801. --debris:AddItem(X,8)
  802. local part4 = Instance.new("Part", rarm)
  803. part4.Material = "Neon"
  804. part4.Anchored=true
  805. part4.CanCollide=false
  806. part4.Locked = true
  807. part4.TopSurface = "SmoothNoOutlines"
  808. part4.BottomSurface = "SmoothNoOutlines"
  809. part4.FormFactor='Custom'
  810. part4.Size=Vector3.new(1,1, 1)
  811. part4.CFrame=X.CFrame
  812. part4.Transparency=1
  813. part4.BrickColor=BrickColor.new("Hot pink")
  814. local mesh4 = Instance.new("SpecialMesh",part4)
  815. mesh4.MeshType = "Sphere"
  816. mesh4.Scale = Vector3.new(.5,.5,.5)
  817. local part7 = Instance.new("Part", rarm)
  818. part7.Material = "Neon"
  819. part7.Anchored=true
  820. part7.CanCollide=false
  821. part7.Locked = true
  822. part7.TopSurface = "SmoothNoOutlines"
  823. part7.BottomSurface = "SmoothNoOutlines"
  824. part7.FormFactor='Custom'
  825. part7.Size=Vector3.new(1,1, 1)
  826. part7.CFrame=X.CFrame
  827. part7.Transparency=1
  828. part7.BrickColor=BrickColor.new("White")
  829. local mesh7 = Instance.new("SpecialMesh",part7)
  830. mesh7.MeshType = "Sphere"
  831. mesh7.Scale = Vector3.new(0.1, 0.1, 0.1)
  832.  
  833. local acos = math.acos
  834. local sqrt = math.sqrt
  835. local Vec3 = Vector3.new
  836. local fromAxisAngle = CFrame.fromAxisAngle
  837.  
  838. local function toAxisAngle(CFr)
  839. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  840. local Angle = math.acos((R00+R11+R22-1)/2)
  841. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  842. A = A == 0 and 0.00001 or A
  843. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  844. B = B == 0 and 0.00001 or B
  845. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  846. C = C == 0 and 0.00001 or C
  847. local x = (R21-R12)/sqrt(A)
  848. local y = (R02-R20)/sqrt(B)
  849. local z = (R10-R01)/sqrt(C)
  850. return Vec3(x,y,z),Angle
  851. end
  852.  
  853. function ApplyTrig(Num,Func)
  854. local Min,Max = Func(0),Func(1)
  855. local i = Func(Num)
  856. return (i-Min)/(Max-Min)
  857. end
  858.  
  859. function LerpCFrame(CFrame1,CFrame2,Num)
  860. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  861. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  862. end
  863.  
  864. function Crater(Torso,Radius)
  865. Spawn(function()
  866. local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10)
  867. local Ignore = {}
  868. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  869. if v.Character ~= nil then
  870. Ignore[#Ignore+1] = v.Character
  871. end
  872. end
  873. local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  874. if Hit == nil then return end
  875. local Parts = {}
  876. for i = 1,360,10 do
  877. local P = Instance.new("Part",Torso.Parent)
  878. P.Anchored = true
  879. P.FormFactor = "Custom"
  880. P.BrickColor = Hit.BrickColor
  881. P.Material = Hit.Material
  882. P.TopSurface = "Smooth"
  883. P.BottomSurface = "Smooth"
  884. P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100)
  885. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
  886. Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size}
  887. if math.random(0,5) == 0 then -- rubble
  888. local P = Instance.new("Part",Torso.Parent)
  889. P.Anchored = true
  890. P.FormFactor = "Custom"
  891. P.BrickColor = Hit.BrickColor
  892. P.Material = Hit.Material
  893. P.TopSurface = "Smooth"
  894. P.BottomSurface = "Smooth"
  895. P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100)
  896. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
  897. Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size}
  898. end
  899. end
  900. for i = 0,1,0.05 do
  901. for i2,v in pairs(Parts) do
  902. v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
  903. end
  904. wait(0.02)
  905. end
  906. for i,v in pairs(Parts) do
  907. if v[1].Size.X > 2.1 then
  908. v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
  909. end
  910. v[1].Anchored = false
  911. end
  912. for i = 0,1,0.05 do
  913. for i2,v in pairs(Parts) do
  914. v[1].Transparency = i
  915. if i == 1 then
  916. v[1]:Destroy()
  917. elseif i >= 0.25 then
  918. v[1].CanCollide = false
  919. end
  920. end
  921. wait(0.02)
  922. end
  923. Parts = nil
  924. end)
  925. end
  926.  
  927. ROW = function(out, trans, s, wt, t, ang, plus)
  928. for i = 1, 360, 360/t do
  929. local c = Instance.new("Part", game.Workspace)
  930. c.FormFactor = 3
  931. c.TopSurface = 0
  932. c.BottomSurface = 0
  933. c.Size = s
  934. c.Anchored = true
  935. c.CanCollide = True --wt
  936. c.Material=workspace.Base.Material
  937. c.Transparency = 1
  938. c.BrickColor = workspace.Base.BrickColor
  939. c.CFrame = CFrame.new(X.CFrame.x,0,X.CFrame.z) * CFrame.Angles(0, math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang
  940. c.Locked=true
  941. game.Debris:AddItem(c,15)
  942. end
  943. end
  944.  
  945. Part = function(x,y,z,color,tr,cc,an,parent)
  946. local p = Instance.new('Part',parent or Weapon)
  947. p.formFactor = 'Custom'
  948. p.Size = Vector3.new(x,y,z)
  949. p.BrickColor = BrickColor.new(color)
  950. p.CanCollide = cc
  951. p.Transparency = tr
  952. p.Anchored = an
  953. p.TopSurface,p.BottomSurface = 0,0
  954. p.Locked=true
  955. p:BreakJoints()
  956. return p end
  957.  
  958. Mesh = function(par,num,x,y,z)
  959. local msh = _
  960. if num == 1 then msh = Instance.new("CylinderMesh",par)
  961. elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3
  962. elseif num == 3 then msh = Instance.new("BlockMesh",par)
  963. elseif num == 4 then msh = Instance.new("SpecialMesh",par) msh.MeshType = "Torso"
  964. elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num
  965. end msh.Scale = Vector3.new(x,y,z)
  966. return msh end
  967.  
  968. function explosion(col1,col2,cfr,sz,rng,dmg)
  969. local a= Part(1,1,1,col1,.5,false,true,workspace)
  970. local a2= Part(1,1,1,col2,.5,false,true,workspace)
  971. local a3= Part(1,1,1,col2,.5,false,true,workspace)
  972. v1,v2,v3=sz.x,sz.y,sz.z
  973. local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3)
  974. local m2= Mesh(a2,3,v1/3,v2/3,v3/3)
  975. local m3= Mesh(a3,3,v1/3,v2/3,v3/3)
  976. a.CFrame=cfr
  977. a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  978. a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  979.  
  980. Spawn(function()
  981. while wait() do
  982. if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end
  983. m.Scale=m.Scale+Vector3.new(.1,0.1,0.1)
  984. m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1)
  985. m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1)
  986. a.Transparency=a.Transparency+0.05
  987. a2.Transparency=a2.Transparency+0.05
  988. a3.Transparency=a3.Transparency+0.05
  989. end
  990. end)
  991. end
  992.  
  993. Crater(X,20)
  994. ROW(12, 0, Vector3.new(34.5, 30, 3), true, 8, CFrame.Angles(math.rad(math.random (30,60)), 0, math.rad (math.random(-30,30))), 0)
  995. z = Instance.new("Sound",X)
  996. z.SoundId = "rbxassetid://231917744"
  997. z.Pitch = .5
  998. z.Volume = 10
  999. z1 = Instance.new("Sound",X)
  1000. z1.SoundId = "rbxassetid://231917744"
  1001. z1.Pitch = .5
  1002. z1.Volume = 10
  1003. z2 = Instance.new("Sound",X)
  1004. z2.SoundId = "rbxassetid://231917744"
  1005. z2.Pitch = .5
  1006. z2.Volume = 10
  1007. z3 = Instance.new("Sound",X)
  1008. z3.SoundId = "rbxassetid://245537790"
  1009. z3.Pitch = .7
  1010. z3.Volume = 1
  1011. z4 = Instance.new("Sound",X)
  1012. z4.SoundId = "rbxassetid://245537790"
  1013. z4.Pitch = .7
  1014. z4.Volume = 1
  1015. wait(0.1)
  1016. z:Play()
  1017. z1:Play()
  1018. z2:Play()
  1019. z3:Play()
  1020. z4:Play()
  1021.  
  1022. local part=Instance.new('Part',rarm)
  1023. part.Anchored=true
  1024. part.CanCollide=false
  1025. part.Locked = true
  1026. part.FormFactor='Custom'
  1027. part.Size=Vector3.new(1,1,1)
  1028. part.CFrame=X.CFrame*CFrame.new(0,0,0)
  1029. part.Transparency=1
  1030. part.BrickColor=BrickColor.new('Really black')
  1031. local mesh=Instance.new('SpecialMesh',part)
  1032. mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
  1033. mesh.Scale=Vector3.new(2,2,2)
  1034. local part2=part:clone()
  1035. part2.Parent = rarm
  1036. part2.BrickColor=BrickColor.new("Really blue")
  1037. part2.Transparency=1
  1038. local part5=part:clone()
  1039. part5.Parent = rarm
  1040. part5.BrickColor=BrickColor.new("Grime")
  1041. local part6=part:clone()
  1042. part6.Parent = rarm
  1043. part6.BrickColor=BrickColor.new("White")
  1044. local mesh2=mesh:clone()
  1045. mesh2.Parent=part2
  1046. mesh2.Scale=Vector3.new(3, 3, 3)
  1047. local mesh5=mesh:clone()
  1048. mesh5.Parent=part5
  1049. mesh5.Scale=Vector3.new(3, 3, 3)
  1050. local mesh6=mesh:clone()
  1051. mesh6.Parent=part6
  1052. mesh6.Scale=Vector3.new(3, 3, 3)
  1053. local blast = Instance.new("Part", rarm)
  1054. blast.BrickColor = BrickColor.new("White")
  1055. blast.Anchored = true
  1056. blast.CanCollide = false
  1057. blast.Locked = true
  1058. blast.Size = Vector3.new(1, 1, 1)
  1059. blast.TopSurface = "Smooth"
  1060. blast.BottomSurface = "Smooth"
  1061. blast.Transparency = 0
  1062. blast.CFrame = HandCF
  1063. local bm = Instance.new("SpecialMesh", blast)
  1064. bm.Scale = Vector3.new(5,1,5)
  1065. bm.MeshId = "rbxassetid://3270017"
  1066. local blast2 = Instance.new("Part", rarm)
  1067. blast2.BrickColor = BrickColor.new("White")
  1068. blast2.Anchored = true
  1069. blast2.CanCollide = false
  1070. blast2.Locked = true
  1071. blast2.Size = Vector3.new(1, 1, 1)
  1072. blast2.TopSurface = "Smooth"
  1073. blast2.BottomSurface = "Smooth"
  1074. blast2.Transparency = 0
  1075. blast2.CFrame = HandCF
  1076. local bm2 = Instance.new("SpecialMesh", blast2)
  1077. bm2.Scale = Vector3.new(3,1,3)
  1078. bm2.MeshId = "rbxassetid://3270017"
  1079. local blast3 = Instance.new("Part", rarm)
  1080. blast3.BrickColor = BrickColor.new("White")
  1081. blast3.Anchored = true
  1082. blast3.CanCollide = false
  1083. blast3.Locked = true
  1084. blast3.Size = Vector3.new(1, 1, 1)
  1085. blast3.TopSurface = "Smooth"
  1086. blast3.BottomSurface = "Smooth"
  1087. blast3.Transparency = 0
  1088. blast3.CFrame = HandCF
  1089. local bm3 = Instance.new("SpecialMesh", blast3)
  1090. bm3.Scale = Vector3.new(3,1,3)
  1091. bm3.MeshId = "rbxassetid://3270017"
  1092. for i = 1,120 do rs:wait()
  1093. X.Transparency = X.Transparency + (1/120)
  1094. part.Transparency = part.Transparency + (1/120)
  1095. part2.Transparency = part2.Transparency + (1/120)
  1096. part3.Transparency = part3.Transparency + (1/120)
  1097. part4.Transparency = part4.Transparency + (1/120)
  1098. part5.Transparency = part5.Transparency + (1/120)
  1099. part6.Transparency = part6.Transparency + (1/120)
  1100. part7.Transparency = part7.Transparency + (1/120)
  1101. blast.Transparency = blast.Transparency + (1/120)
  1102. blast2.Transparency = blast2.Transparency + (1/120)
  1103. blast3.Transparency = blast3.Transparency + (1/120)
  1104. X.Size = X.Size + Vector3.new(.8,.8,.8)
  1105. --part3.Size = part3.Size + Vector3.new(3,3,3)
  1106. mesh.Scale = mesh.Scale + Vector3.new(1,.2,1)
  1107. mesh2.Scale = mesh2.Scale + Vector3.new(1.1,.2,1.1)
  1108. mesh3.Scale = mesh3.Scale + Vector3.new(3,3,3)
  1109. mesh4.Scale = mesh4.Scale + Vector3.new(1.7,1.7,1.7)
  1110. mesh5.Scale = mesh5.Scale + Vector3.new(1.6,.2,1.6)
  1111. mesh6.Scale = mesh6.Scale + Vector3.new(2,.2,2)
  1112. mesh7.Scale = mesh7.Scale + Vector3.new(4,4,4)
  1113. bm.Scale = bm.Scale + Vector3.new(6,6,.2)
  1114. bm2.Scale = bm2.Scale + Vector3.new(4,4,.2)
  1115. bm3.Scale = bm3.Scale + Vector3.new(4,4,.2)
  1116. X.CFrame = cf
  1117. part.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2),0)
  1118. part2.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2),0)
  1119. part3.CFrame=X.CFrame
  1120. part4.CFrame=X.CFrame
  1121. part7.CFrame=X.CFrame
  1122. part5.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2.6),0)
  1123. part6.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2.4),0)
  1124. blast.CFrame=X.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1125. blast2.CFrame=X.CFrame * CFrame.Angles(math.rad(-i*4), math.rad(i*4), math.rad(0))
  1126. blast3.CFrame=X.CFrame * CFrame.Angles(math.rad(180+i*4), math.rad(90-i*4), math.rad(0))
  1127. rs:wait()
  1128. end
  1129. X:Destroy()
  1130. part:Destroy()
  1131. part2:Destroy()
  1132. part3:Destroy()
  1133. part4:Destroy()
  1134. part5:Destroy()
  1135. part6:Destroy()
  1136. blast:Destroy()
  1137. blast2:Destroy()
  1138. blast3:Destroy()
  1139. z:Destroy()
  1140. z1:Destroy()
  1141. z2:Destroy()
  1142. z3:Destroy()
  1143. z4:Destroy()
  1144. end
  1145. end)
  1146. --[[for i = 1, 20 do
  1147. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(70),math.rad(-6),math.rad(-20)), 0.2)
  1148. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.2)
  1149. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2)
  1150. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.4)
  1151. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2)
  1152. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2)
  1153. if Debounces.on == false then break end
  1154. rs:wait()
  1155. end]]
  1156. end
  1157. end)
  1158. -------------------------------Slash
  1159. mouse.KeyDown:connect(function(key)
  1160. if key == "e" then
  1161. if CanAttack == true then
  1162. CanAttack = false
  1163. Debounces.NoIdl = true
  1164. Debounces.on = true
  1165. for i = 1, 20 do
  1166. 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)
  1167. 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)
  1168. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, 0, -1) * CFrame.Angles(math.rad(0), 0, math.rad(-10)), 0.6)
  1169. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(10)), 0.6)
  1170. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-10), math.rad(18), 0), 0.6)
  1171. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-60), math.rad(-10)), 0.6)
  1172. if Debounces.on == false then
  1173. break
  1174. end
  1175. wait()
  1176. end
  1177. wait()
  1178. z = Instance.new("Sound")
  1179. z.SoundId = "http://www.roblox.com/asset/?id=160069154"
  1180. z.Parent = char.Head
  1181. z.Looped = false
  1182. z.Pitch = 1
  1183. z.Volume = 1
  1184. wait(.01)
  1185. z:Play()
  1186. Debounces.Slashing = true
  1187. for i = 1, 20 do
  1188. 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)
  1189. 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)
  1190. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-14), 0, math.rad(-10)), 0.6)
  1191. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(6), 0, math.rad(10)), 0.6)
  1192. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-14), math.rad(-36), 0), 0.6)
  1193. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(36), 0), 0.6)
  1194. wait()
  1195. if Debounces.on == false then
  1196. break
  1197. end
  1198. wait()
  1199. end
  1200. Debounces.Slashing = false
  1201. Debounces.NoIdl = false
  1202. wait()
  1203. if CanAttack == false then
  1204. CanAttack = true
  1205. end -- dis betr
  1206. end
  1207. end
  1208. end)
  1209. cor.Touched:connect(function(ht)
  1210. hit = ht.Parent
  1211. if ht and hit:IsA("Model") then
  1212. if hit:FindFirstChild("Humanoid") then
  1213. if hit.Name ~= p.Name then
  1214. if Debounces.Slashing == true and Debounces.Slashed == false then
  1215. Debounces.Slashed = true
  1216. if (lastanimpose == "Running" and animpose == "Idle") or animpose == "Running" then
  1217. -- extra damage, 100 for testing.
  1218. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(37, 56))
  1219. else
  1220. print(lastanimpose, animpose)
  1221. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(18,37))
  1222. end
  1223. wait(1)
  1224. Debounces.Slashed = false
  1225. end
  1226. end
  1227. end
  1228. elseif ht and hit:IsA("Hat") then
  1229. if hit.Parent.Name ~= p.Name then
  1230. if hit.Parent:FindFirstChild("Humanoid") then
  1231. if Debounces.Slashing == true and Debounces.Slashed == false then
  1232. Debounces.Slashed = true
  1233. if (lastanimpose == "Running" and animpose == "Idle") or animpose == "Running" then
  1234. -- extra damage, 100 for testing.
  1235. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(37, 56))
  1236. else
  1237. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(18,37))
  1238. end
  1239. wait(1)
  1240. Debounces.Slashed = false
  1241. end
  1242. end
  1243. end
  1244. end
  1245. end)
  1246. -------------------------------Stab
  1247. mouse.KeyDown:connect(function(key)
  1248. if key == "r" then
  1249. if CanAttack == true then
  1250. CanAttack = false
  1251. Debounces.NoIdl = true
  1252. Debounces.on = true
  1253. z = Instance.new("Sound")
  1254. z.SoundId = "http://www.roblox.com/asset/?id=159218913"
  1255. z.Parent = char.Head
  1256. z.Looped = false
  1257. z.Pitch = .9
  1258. z.Volume = 1
  1259. wait(.01)
  1260. z:Play()
  1261. Debounces.Slashing = true
  1262. for i = 1, 20 do
  1263. 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)
  1264. 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)
  1265. 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)
  1266. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-14)), 0.6)
  1267. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(14)), 0.6)
  1268. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(48), 0), 0.6)
  1269. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.7)
  1270. wait()
  1271. if Debounces.on == false then
  1272. break
  1273. end
  1274. wait()
  1275. end
  1276. Debounces.Slashing = false
  1277. Debounces.NoIdl = false
  1278. if CanAttack == false then
  1279. CanAttack = true
  1280. end
  1281. end
  1282. end
  1283. -------------------------------Getsuga Tenshou
  1284. mouse.KeyDown:connect(function(key)
  1285. if key == "t" then
  1286. if CanAttack == true then
  1287. CanAttack = false
  1288. Debounces.NoIdl = true
  1289. Debounces.on = true
  1290. for i = 1, 20 do
  1291. 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)
  1292. 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)
  1293. 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)
  1294. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(-10)), 0.6)
  1295. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(10)), 0.6)
  1296. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.6)
  1297. 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)
  1298. if Debounces.on == false then
  1299. break
  1300. end
  1301. wait()
  1302. end
  1303. wait()
  1304. z = Instance.new("Sound")
  1305. z.SoundId = "http://www.roblox.com/asset/?id=159218913"
  1306. z.Parent = char.Head
  1307. z.Looped = false
  1308. z.Pitch = 1
  1309. z.Volume = 1
  1310. wait(.01)
  1311. z:Play()
  1312. Debounces.Slashing = true
  1313. for i = 1, 20 do
  1314. 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)
  1315. 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)
  1316. 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)
  1317. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1.5, -.5) * CFrame.Angles(math.rad(-90), 0, math.rad(0)), 0.6)
  1318. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -.5, -1) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.6)
  1319. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-20), math.rad(0), 0), 0.6)
  1320. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.6)
  1321. wait()
  1322. if Debounces.on == false then
  1323. break
  1324. end
  1325. wait()
  1326. end
  1327. Debounces.Slashing = false
  1328. Debounces.NoIdl = false
  1329. wait()
  1330. if CanAttack == false then
  1331. CanAttack = true
  1332. end
  1333. end
  1334. end
  1335. end)
  1336. end)
  1337. --------------------------------------------------Insanity
  1338. mouse.KeyDown:connect(function(key)
  1339. if key == "g" then
  1340. if CanAttack == true then
  1341. CanAttack = false
  1342. Debounces.NoIdl = true
  1343. z = Instance.new("Sound")
  1344. z.SoundId = "http://www.roblox.com/asset/?id=154564700"
  1345. z.Parent = char
  1346. z.Looped = true
  1347. z.Pitch = .88
  1348. z.Volume = 1
  1349. wait(.01)
  1350. z:Play()
  1351. for i = 1, 20 do
  1352. 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)
  1353. 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)
  1354. 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)
  1355. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, 0.5, -1) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  1356. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, 0.5, -1) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  1357. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-26), math.rad(0), 0), 0.2)
  1358. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
  1359. if Debounces.on == false then
  1360. break
  1361. end
  1362. wait()
  1363. end
  1364. mouse.KeyUp:connect(function(key)
  1365. if key == "g" then
  1366. z:Stop()
  1367. Debounces.NoIdl = false
  1368. wait()
  1369. if CanAttack == true then
  1370. CanAttack = false
  1371. end
  1372. end
  1373. end)
  1374. end
  1375. end
  1376. end)
  1377. --------------------------------------------------Idle Changing
  1378. mouse.KeyDown:connect(function(key)
  1379. if key == "z" then
  1380. stanceToggle = "Aggressive"
  1381. elseif key == "x" then
  1382. stanceToggle = "Assertive"
  1383. elseif key == "c" then
  1384. stanceToggle = "Floating"
  1385. end
  1386. end)
  1387. -------------------------------Sprint
  1388. mouse.KeyDown:connect(function(key)
  1389. if string.byte(key) == 52 then
  1390. char.Humanoid.WalkSpeed = 48
  1391. end
  1392. end)
  1393. mouse.KeyUp:connect(function(key)
  1394. if string.byte(key) == 52 then
  1395. char.Humanoid.WalkSpeed = 50
  1396. end
  1397. end)
  1398. -------------------------------
  1399. local sine = 0
  1400. local change = 1
  1401. local val = 0
  1402. local ffing = false
  1403. --------------------------------Trail
  1404. local LastCFr = nil
  1405. local Trails = Instance.new("Model",char)
  1406. local Trail = {}
  1407. local Tip = blocks[test]
  1408. local number = 0
  1409. local num2 = 1
  1410. game:GetService("RunService").RenderStepped:connect(function()
  1411. local start = nil
  1412. for i = num2,number do
  1413. local v = Trail[i]
  1414. if v ~= nil then
  1415. local cfr = v.CFrame
  1416. local Amount = v.Size.Y/4
  1417. v.Size = v.Size-Vector3.new(0,Amount,0)
  1418. v.Transparency = v.Transparency+0.05
  1419. v.CFrame = cfr*CFrame.new(0,Amount/2,0)
  1420. if v.Size.Y <= 0.205 or v.Transparency > 0.95 then
  1421. v:Destroy()
  1422. Trail[i] = nil
  1423. num2=num2+1
  1424. end
  1425. break
  1426. end
  1427. end
  1428.  
  1429. if Debounces.Slashing then
  1430. if LastCFr ~= nil and (Tip.Position-LastCFr.p).Magnitude > 0.01 then
  1431. local cfr = Tip.CFrame
  1432. local T = Instance.new("Part",Trails)
  1433. number = number+1
  1434. Trail[number] = T
  1435. T.FormFactor = "Custom"
  1436. T.Name = "Trail"
  1437. T.Anchored = true
  1438. T.CanCollide = false
  1439. T.Size = Vector3.new(0.5,(LastCFr.p-cfr.p).Magnitude,0.5)
  1440. T.TopSurface = "SmoothNoOutlines"
  1441. T.BottomSurface = "SmoothNoOutlines"
  1442. T.FrontSurface = "SmoothNoOutlines"
  1443. T.BackSurface = "SmoothNoOutlines"
  1444. T.LeftSurface = "SmoothNoOutlines"
  1445. T.RightSurface = "SmoothNoOutlines"
  1446. --[[local m = Instance.new("SpecialMesh",T)
  1447. m.MeshType = "Head"
  1448. m.Name = "Mesh"]]
  1449. T.BrickColor = BrickColor.new("Lime green")
  1450. T.Transparency = 0.4
  1451. 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)
  1452. LastCFr = cfr
  1453. else
  1454. LastCFr = Tip.CFrame
  1455. end
  1456. else
  1457. if LastCFr ~= nil then LastCFr = nil Trails:ClearAllChildren() Trail = {} end
  1458. end
  1459. -----------------------------------Animations
  1460. char.Humanoid.FreeFalling:connect(function(f)
  1461. if f then
  1462. ffing = true
  1463. else
  1464. ffing = false
  1465. end
  1466. end)
  1467. sine = sine + change
  1468. if jump == true then
  1469. animpose = "Jumping"
  1470. elseif ffing == true then
  1471. animpose = "Freefalling"
  1472. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  1473. animpose = "Idle"
  1474. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  1475. animpose = "Walking"
  1476. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  1477. animpose = "Running"
  1478. end
  1479. if animpose ~= lastanimpose then
  1480. sine = 0
  1481. if Debounces.NoIdl == false then
  1482. for i = 1, 2 do
  1483. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.6)
  1484. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.6)
  1485. 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)
  1486. wait()
  1487. end
  1488. else
  1489. end
  1490. end
  1491. lastanimpose = animpose
  1492. if Debounces.NoIdl == false then
  1493. if ffing then
  1494. change = 0.5
  1495. if stanceToggle == "Assertive" then
  1496. 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)
  1497. elseif stanceToggle == "Aggressive" then
  1498.  
  1499.  
  1500. 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)
  1501.  
  1502. elseif stanceToggle == "Floating" then
  1503.  
  1504. end
  1505. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-20)), 0.1)
  1506. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(20)), 0.1)
  1507.  
  1508. elseif animpose == "Idle" then
  1509. if stanceToggle == "Aggressive" then
  1510. change = 0.5
  1511. 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)
  1512. 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)
  1513. 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))
  1514. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(70), math.rad(0)), 0.2)
  1515. 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)
  1516. 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)
  1517. 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)
  1518. elseif stanceToggle == "Assertive" then
  1519. change = 0.5
  1520. 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)
  1521. 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)
  1522. hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-10+2*math.cos(sine/14)),math.rad(-32),0)
  1523. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(36), math.rad(0)), 0.2)
  1524. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2)
  1525. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2)
  1526. 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)
  1527.  
  1528. elseif stanceToggle == "Floating" then
  1529.  
  1530. 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)
  1531. 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)
  1532. hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-16+2*math.cos(sine/14)),math.rad(0),0)
  1533. 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)
  1534. 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)
  1535. 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)
  1536. 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)
  1537. --[[bodypos.Parent = root
  1538. local hit,pos = workspace:FindPartOnRayWithIgnoreList(Ray.new(root.CFrame,CFrame.new(0,-20,0)),char:children())
  1539. if hit then
  1540. bodypos.position = Vector3.new(0,hit.CFrame.2 + hit.Size.2/2 + 2,0)
  1541. else
  1542. bodypos.position = Vector3.new(0,root.CFrame.2,0)
  1543. end]]
  1544. end
  1545. elseif animpose == "Walking" then
  1546. change = 1
  1547. if stanceToggle == "Assertive" then
  1548. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.4)
  1549. elseif stanceToggle == "Passive" then
  1550.  
  1551. end
  1552. if stanceToggle == "Assertive" then
  1553. 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)
  1554. 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)
  1555. hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-10-4*math.cos(sine/14)),0,0)
  1556. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(-math.sin(sine/14)/2, 0, 0), .4)
  1557. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.sin(sine/14)/2, 0, 0), .4)
  1558. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, --[[math.rad(36)]]0, math.rad(0)), 0.2)
  1559. elseif stanceToggle == "Aggressive" then
  1560. change = 1.5
  1561. 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)
  1562. 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)
  1563. 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))
  1564. 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)
  1565. 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)
  1566. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), math.rad(0)), 0.2)
  1567. elseif stanceToggle == "Floating" then
  1568. 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)
  1569. 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)
  1570. 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)
  1571. 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)
  1572. 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)
  1573. 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)
  1574. end
  1575.  
  1576. 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)
  1577. elseif animpose == "Running" then
  1578. change = 1
  1579. if stanceToggle == "Assertive" then
  1580. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.04)
  1581. 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)
  1582. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(50), math.rad(40), math.rad(26)), 0.4)
  1583. 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)
  1584. 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)
  1585. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(-1.1, -3.2, 0) * CFrame.Angles(0, 0, math.rad(-28)), 0.4)
  1586. if sine <= 7 then
  1587. for i = 1, 1.5 do
  1588. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.55, 0) * CFrame.Angles(math.rad(17-2*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.2)
  1589. 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)
  1590. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, -0.5) * CFrame.Angles(math.rad(0), 0, math.rad(-5)), 0.2)
  1591. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, 0, -1) * CFrame.Angles(math.rad(0), 0, math.rad(5)), 0.2)
  1592. if sine > 7 or Debounces.on == true then
  1593. break
  1594. end
  1595. wait()
  1596. end
  1597. elseif sine <= 10 then
  1598. for i = 1, 1.5 do
  1599. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, -0.5) * CFrame.Angles(math.rad(0), 0, math.rad(-5)), 0.2)
  1600. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, -0.5) * CFrame.Angles(math.rad(0), 0, math.rad(5)), 0.2)
  1601. if sine > 10 or Debounces.on == true then
  1602. break
  1603. end
  1604. wait()
  1605. end
  1606. elseif sine <= 17 then
  1607. for i = 1, 1.5 do
  1608. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, 0, -1) * CFrame.Angles(math.rad(0), 0, math.rad(5)), 0.2)
  1609. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0.5) * CFrame.Angles(math.rad(0), 0, math.rad(5)), 0.2)
  1610. if sine > 17 or Debounces.on == true then
  1611. break
  1612. end
  1613. wait()
  1614. end
  1615. elseif sine <= 20 then
  1616. for i = 1, 1.5 do
  1617. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, -0.5) * CFrame.Angles(math.rad(0), 0, math.rad(-5)), 0.2)
  1618. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, -0.5) * CFrame.Angles(math.rad(0), 0, math.rad(5)), 0.2)
  1619. if sine > 20 or Debounces.on == true then
  1620. break
  1621. end
  1622. wait()
  1623. end
  1624. elseif sine > 20 then
  1625. sine = 0
  1626. end
  1627. elseif stanceToggle == "Aggressive" then
  1628. elseif stanceToggle == "Floating" then
  1629. 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)
  1630. 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)
  1631. hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0)
  1632. 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)
  1633. 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)
  1634. 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)
  1635. end
  1636. end
  1637. end
  1638. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement