Advertisement
Orangeplayer1431

Untitled

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