Advertisement
LightingJonathan

ZerC

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