Advertisement
MysteriousL

Untitled

Jul 22nd, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 46.53 KB | None | 0 0
  1. local p = game.Players.LocalPlayer
  2. local char = p.Character
  3. local mouse = p:GetMouse()
  4. local larm = char["Left Arm"]
  5. local rarm = char["Right Arm"]
  6. local lleg = char["Left Leg"]
  7. local rleg = char["Right Leg"]
  8. local hed = char.Head
  9. local torso = char.Torso
  10. local hum = char.Humanoid
  11. local cam = game.Workspace.CurrentCamera
  12. local root = char.HumanoidRootPart
  13.  
  14.  
  15. local deb = false
  16. local shot = 0
  17. local debris=game:service"Debris"
  18. local l = game:GetService("Lighting")
  19. local rs = game:GetService("RunService").RenderStepped
  20. hum.MaxHealth = math.huge
  21. hum.Health = math.huge
  22. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  23. math.randomseed(os.time())
  24. for i,v in pairs (hed:GetChildren()) do
  25. if v:IsA("Sound") then
  26. v:Destroy()
  27. end
  28. end
  29. Debounces = {
  30. CanAttack = true;
  31. NoIdl = false;
  32. Slashing = false;
  33. Slashed = false;
  34. RPunch = false;
  35. RPunched = false;
  36. LPunch = false;
  37. LPunched = false;
  38. }
  39. local Touche = {char.Name, }
  40. ----------------------------------------------------
  41. hed.face.Texture = "rbxassetid://257837512"
  42. ----------------------------------------------------
  43. ypcall(function()
  44. char.Shirt:Destroy()
  45. char.Pants:Destroy()
  46. shirt = Instance.new("Shirt", char)
  47. shirt.Name = "Shirt"
  48. pants = Instance.new("Pants", char)
  49. pants.Name = "Pants"
  50. char.Shirt.ShirtTemplate = "rbxassetid://345371561"
  51. char.Pants.PantsTemplate = "rbxassetid://345372241"
  52. end)
  53. ----------------------------------------------------
  54. function lerp(a, b, t) -- Linear interpolation
  55. return a + (b - a)*t
  56. end
  57.  
  58. function slerp(a, b, t) --Spherical interpolation
  59. dot = a:Dot(b)
  60. if dot > 0.99999 or dot < -0.99999 then
  61. return t <= 0.5 and a or b
  62. else
  63. r = math.acos(dot)
  64. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  65. end
  66. end
  67.  
  68. function matrixInterpolate(a, b, t)
  69. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  70. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  71. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  72. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  73. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  74. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  75. local t = v1:Dot(v2)
  76. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  77. return CFrame.new()
  78. end
  79. return CFrame.new(
  80. v0.x, v0.y, v0.z,
  81. v1.x, v1.y, v1.z,
  82. v2.x, v2.y, v2.z,
  83. v3.x, v3.y, v3.z)
  84. end
  85. ----------------------------------------------------
  86. lleg.Transparency = 0
  87. rleg.Transparency = 0
  88. larm.Transparency = 1
  89. rarm.Transparency = 1
  90. torso.Transparency = 0
  91. ----------------------------------------------------------------- Left Arm -----------------------------------------------------------------
  92. larm1 = Instance.new("Part", char)
  93. larm1.Name = "Middle"
  94. larm1.BrickColor = BrickColor.new("New Yeller")
  95. larm1.Size = Vector3.new(1, 2, 1)
  96. larm1.CanCollide = false
  97. larm1.BottomSurface = "Smooth"
  98. larm1.TopSurface = "Smooth"
  99. larm1.Material = "Neon"
  100. Weld = Instance.new("Weld",larm)
  101. Weld.Part0 = larm
  102. 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)
  103. Weld.Part1 = larm1
  104. 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)
  105.  
  106. larm2 = Instance.new("Part", char)
  107. larm2.BrickColor = BrickColor.new("Really black")
  108. larm2.Size = Vector3.new(1, 0.4, 1)
  109. larm2.CanCollide = false
  110. larm2.BottomSurface = "Smooth"
  111. larm2.TopSurface = "Smooth"
  112. Weld = Instance.new("Weld",larm)
  113. Weld.Part0 = larm
  114. 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)
  115. Weld.Part1 = larm2
  116. 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)
  117.  
  118. larm3 = Instance.new("Part", char)
  119. larm3.BrickColor = BrickColor.new("Really black")
  120. larm3.Size = Vector3.new(1, 0.4, 1)
  121. larm3.CanCollide = false
  122. larm3.BottomSurface = "Smooth"
  123. larm3.TopSurface = "Smooth"
  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 = larm3
  128. 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)
  129.  
  130. larm4 = Instance.new("Part", char)
  131. larm4.BrickColor = BrickColor.new("Really black")
  132. larm4.Size = Vector3.new(1, 0.4, 1)
  133. larm4.CanCollide = false
  134. larm4.BottomSurface = "Smooth"
  135. larm4.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 = larm4
  140. 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)
  141.  
  142. larm5 = Instance.new("Part", char)
  143. larm5.BrickColor = BrickColor.new("Really black")
  144. larm5.Size = Vector3.new(1, 0.4, 1)
  145. larm5.CanCollide = false
  146. larm5.BottomSurface = "Smooth"
  147. larm5.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 = larm5
  152. 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)
  153.  
  154. larm6 = Instance.new("Part", char)
  155. larm6.BrickColor = BrickColor.new("Really black")
  156. larm6.Size = Vector3.new(1, 0.4, 1)
  157. larm6.CanCollide = false
  158. larm6.BottomSurface = "Smooth"
  159. larm6.TopSurface = "Smooth"
  160. Mesh = Instance.new("SpecialMesh", larm6)
  161. Mesh.MeshType = "Brick"
  162. Mesh.Scale = Vector3.new(1.1, 1.1, 1.1)
  163. Weld = Instance.new("Weld",larm)
  164. Weld.Part0 = larm
  165. 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)
  166. Weld.Part1 = larm6
  167. 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)
  168.  
  169. larm7 = Instance.new("Part", char)
  170. larm7.BrickColor = BrickColor.new("New Yeller")
  171. larm7.Size = Vector3.new(0.5, 0.3, 2)
  172. larm7.CanCollide = false
  173. larm7.BottomSurface = "Smooth"
  174. larm7.TopSurface = "Smooth"
  175. larm7.Material = "Neon"
  176. mesh7 = Instance.new('SpecialMesh', larm7)
  177. mesh7.MeshId = "http://www.roblox.com/asset/?id=156292355"
  178. mesh7.Scale = Vector3.new(1, 8, 2)
  179. Weld = Instance.new("Weld",larm)
  180. Weld.Part0 = larm
  181. 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)
  182. Weld.Part1 = larm7
  183. 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)
  184.  
  185. larm8 = Instance.new("Part", char)
  186. larm8.BrickColor = BrickColor.new("Really black")
  187. larm8.Size = Vector3.new(1, 0.4, 1)
  188. larm8.CanCollide = false
  189. larm8.BottomSurface = "Smooth"
  190. larm8.TopSurface = "Smooth"
  191. Weld = Instance.new("Weld",larm)
  192. Weld.Part0 = larm
  193. 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)
  194. Weld.Part1 = larm8
  195. 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)
  196. ----------------------------------------------------------------- Right Arm -----------------------------------------------------------------
  197. rarm1 = Instance.new("Part", char)
  198. rarm1.Name = "Middle"
  199. rarm1.BrickColor = BrickColor.new("New Yeller")
  200. rarm1.Size = Vector3.new(1, 2, 1)
  201. rarm1.CanCollide = false
  202. rarm1.BottomSurface = "Smooth"
  203. rarm1.TopSurface = "Smooth"
  204. rarm1.Material = "Neon"
  205. Weld = Instance.new("Weld",rarm)
  206. Weld.Part0 = rarm
  207. 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)
  208. Weld.Part1 = rarm1
  209. 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)
  210.  
  211. rarm2 = Instance.new("Part", char)
  212. rarm2.BrickColor = BrickColor.new("Really black")
  213. rarm2.Size = Vector3.new(1, 0.4, 1)
  214. rarm2.CanCollide = false
  215. rarm2.BottomSurface = "Smooth"
  216. rarm2.TopSurface = "Smooth"
  217. Weld = Instance.new("Weld",rarm)
  218. Weld.Part0 = rarm
  219. 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)
  220. Weld.Part1 = rarm2
  221. 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)
  222.  
  223. rarm3 = Instance.new("Part", char)
  224. rarm3.BrickColor = BrickColor.new("Really black")
  225. rarm3.Size = Vector3.new(1, 0.4, 1)
  226. rarm3.CanCollide = false
  227. rarm3.BottomSurface = "Smooth"
  228. rarm3.TopSurface = "Smooth"
  229. Weld = Instance.new("Weld",rarm)
  230. Weld.Part0 = rarm
  231. 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)
  232. Weld.Part1 = rarm3
  233. 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)
  234.  
  235. rarm4 = Instance.new("Part", char)
  236. rarm4.BrickColor = BrickColor.new("Really black")
  237. rarm4.Size = Vector3.new(1, 0.4, 1)
  238. rarm4.CanCollide = false
  239. rarm4.BottomSurface = "Smooth"
  240. rarm4.TopSurface = "Smooth"
  241. Weld = Instance.new("Weld",rarm)
  242. Weld.Part0 = rarm
  243. 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)
  244. Weld.Part1 = rarm4
  245. 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)
  246.  
  247. rarm5 = Instance.new("Part", char)
  248. rarm5.BrickColor = BrickColor.new("Really black")
  249. rarm5.Size = Vector3.new(1, 0.4, 1)
  250. rarm5.CanCollide = false
  251. rarm5.BottomSurface = "Smooth"
  252. rarm5.TopSurface = "Smooth"
  253. Mesh = Instance.new("SpecialMesh", rarm5)
  254. Mesh.MeshType = "Brick"
  255. Mesh.Scale = Vector3.new(1.1, 1.1, 1.1)
  256. Weld = Instance.new("Weld",rarm)
  257. Weld.Part0 = rarm
  258. 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)
  259. Weld.Part1 = rarm5
  260. 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)
  261.  
  262. rarm6 = Instance.new("Part", char)
  263. rarm6.BrickColor = BrickColor.new("Really black")
  264. rarm6.Size = Vector3.new(1, 0.4, 1)
  265. rarm6.CanCollide = false
  266. rarm6.BottomSurface = "Smooth"
  267. rarm6.TopSurface = "Smooth"
  268. Weld = Instance.new("Weld",rarm)
  269. Weld.Part0 = rarm
  270. 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)
  271. Weld.Part1 = rarm6
  272. 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)
  273.  
  274. rarm7 = Instance.new("Part", char)
  275. rarm7.BrickColor = BrickColor.new("New Yeller")
  276. rarm7.Size = Vector3.new(0.5, 0.3, 2)
  277. rarm7.CanCollide = false
  278. rarm7.BottomSurface = "Smooth"
  279. rarm7.TopSurface = "Smooth"
  280. mesh7 = Instance.new('SpecialMesh', rarm7)
  281. mesh7.MeshId = "http://www.roblox.com/asset/?id=156292355"
  282. mesh7.Scale = Vector3.new(1, 8, 2)
  283. Weld = Instance.new("Weld",rarm)
  284. Weld.Part0 = rarm
  285. 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)
  286. Weld.Part1 = rarm7
  287. 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)
  288.  
  289. rarm8 = Instance.new("Part", char)
  290. rarm8.BrickColor = BrickColor.new("Really black")
  291. rarm8.Size = Vector3.new(1, 0.4, 1)
  292. rarm8.CanCollide = false
  293. rarm8.BottomSurface = "Smooth"
  294. rarm8.TopSurface = "Smooth"
  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 = rarm8
  299. 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)
  300.  
  301. rarm.Touched:connect(function(ht)
  302. hit = ht.Parent
  303. if ht and hit:IsA("Model") then
  304. if hit:FindFirstChild("Humanoid") then
  305. if hit.Name ~= p.Name then
  306. if Debounces.RPunch == true and Debounces.RPunched == false then
  307. Debounces.RPunched = true
  308. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
  309. if Debounces.ks==true then
  310. z = Instance.new("Sound",hed)
  311. z.SoundId = "rbxassetid://169380525"
  312. z.Pitch = ptz[math.random(1,#ptz)]
  313. z.Volume = 1
  314. z:Play()
  315. end
  316. wait(.2)
  317. Debounces.RPunched = false
  318. end
  319. end
  320. end
  321. elseif ht and hit:IsA("Hat") then
  322. if hit.Parent.Name ~= p.Name then
  323. if hit.Parent:FindFirstChild("Humanoid") then
  324. if Debounces.RPunch == true and Debounces.RPunched == false then
  325. Debounces.RPunched = true
  326. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
  327. if Debounces.ks==true then
  328. z = Instance.new("Sound",hed)
  329. z.SoundId = "rbxassetid://169380525"
  330. z.Pitch = ptz[math.random(1,#ptz)]
  331. z.Volume = 1
  332. z:Play()
  333. end
  334. wait(.2)
  335. Debounces.RPunched = false
  336. end
  337. end
  338. end
  339. end
  340. end)
  341. larm.Touched:connect(function(ht)
  342. hit = ht.Parent
  343. if ht and hit:IsA("Model") then
  344. if hit:FindFirstChild("Humanoid") then
  345. if hit.Name ~= p.Name then
  346. if Debounces.LPunch == true and Debounces.LPunched == false then
  347. Debounces.LPunched = true
  348. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
  349. if Debounces.ks2==true then
  350. z = Instance.new("Sound",hed)
  351. z.SoundId = "rbxassetid://169380525"
  352. z.Pitch = ptz[math.random(1,#ptz)]
  353. z.Volume = 1
  354. z:Play()
  355. end
  356. wait(.2)
  357. Debounces.LPunched = false
  358. end
  359. end
  360. end
  361. elseif ht and hit:IsA("Hat") then
  362. if hit.Parent.Name ~= p.Name then
  363. if hit.Parent:FindFirstChild("Humanoid") then
  364. if Debounces.LPunch == true and Debounces.LPunched == false then
  365. Debounces.LPunched = true
  366. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
  367. if Debounces.ks2==true then
  368. z = Instance.new("Sound",hed)
  369. z.SoundId = "rbxassetid://169380525"
  370. z.Pitch = ptz[math.random(1,#ptz)]
  371. z.Volume = 1
  372. z:Play()
  373. end
  374. wait(.2)
  375. Debounces.LPunched = false
  376. end
  377. end
  378. end
  379. end
  380. end)
  381.  
  382. rarm.Touched:connect(function(ht)
  383. hit = ht.Parent
  384. if ht and hit:IsA("Model") then
  385. if hit:FindFirstChild("Humanoid") then
  386. if hit.Name ~= p.Name then
  387. if Debounces.RPunch == true and Debounces.RPunched == false then
  388. Debounces.RPunched = true
  389. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
  390. if Debounces.ks==true then
  391. z = Instance.new("Sound",hed)
  392. z.SoundId = "rbxassetid://169380525"
  393. z.Pitch = ptz[math.random(1,#ptz)]
  394. z.Volume = 1
  395. z:Play()
  396. end
  397. wait(.2)
  398. Debounces.RPunched = false
  399. end
  400. end
  401. end
  402. elseif ht and hit:IsA("Hat") then
  403. if hit.Parent.Name ~= p.Name then
  404. if hit.Parent:FindFirstChild("Humanoid") then
  405. if Debounces.RPunch == true and Debounces.RPunched == false then
  406. Debounces.RPunched = true
  407. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
  408. if Debounces.ks==true then
  409. z = Instance.new("Sound",hed)
  410. z.SoundId = "rbxassetid://169380525"
  411. z.Pitch = ptz[math.random(1,#ptz)]
  412. z.Volume = 1
  413. z:Play()
  414. end
  415. wait(.2)
  416. Debounces.RPunched = false
  417. end
  418. end
  419. end
  420. end
  421. end)
  422. larm.Touched:connect(function(ht)
  423. hit = ht.Parent
  424. if ht and hit:IsA("Model") then
  425. if hit:FindFirstChild("Humanoid") then
  426. if hit.Name ~= p.Name then
  427. if Debounces.LPunch == true and Debounces.LPunched == false then
  428. Debounces.LPunched = true
  429. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
  430. if Debounces.ks2==true then
  431. z = Instance.new("Sound",hed)
  432. z.SoundId = "rbxassetid://169380525"
  433. z.Pitch = ptz[math.random(1,#ptz)]
  434. z.Volume = 1
  435. z:Play()
  436. end
  437. wait(.2)
  438. Debounces.LPunched = false
  439. end
  440. end
  441. end
  442. elseif ht and hit:IsA("Hat") then
  443. if hit.Parent.Name ~= p.Name then
  444. if hit.Parent:FindFirstChild("Humanoid") then
  445. if Debounces.LPunch == true and Debounces.LPunched == false then
  446. Debounces.LPunched = true
  447. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
  448. if Debounces.ks2==true then
  449. z = Instance.new("Sound",hed)
  450. z.SoundId = "rbxassetid://169380525"
  451. z.Pitch = ptz[math.random(1,#ptz)]
  452. z.Volume = 1
  453. z:Play()
  454. end
  455. wait(.2)
  456. Debounces.LPunched = false
  457. end
  458. end
  459. end
  460. end
  461. end)
  462. -------
  463.  
  464. local player = game.Players.LocalPlayer
  465. local pchar = player.Character
  466. local mouse = player:GetMouse()
  467. local cam = workspace.CurrentCamera
  468.  
  469. local rad = math.rad
  470.  
  471. local keysDown = {}
  472. local flySpeed = 0
  473. local MAX_FLY_SPEED = 150
  474.  
  475. local canFly = false
  476. local flyToggled = false
  477.  
  478. local forward, side = 0, 0
  479. local lastForward, lastSide = 0, 0
  480.  
  481. local floatBP = Instance.new("BodyPosition")
  482. floatBP.maxForce = Vector3.new(0, math.huge, 0)
  483. local flyBV = Instance.new("BodyVelocity")
  484. flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  485. local turnBG = Instance.new("BodyGyro")
  486. turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  487.  
  488. mouse.KeyDown:connect(function(key)
  489. keysDown[key] = true
  490.  
  491. if key == "f" then
  492. flyToggled = not flyToggled
  493.  
  494. if not flyToggled then
  495. stanceToggle = "Normal"
  496. floatBP.Parent = nil
  497. flyBV.Parent = nil
  498. turnBG.Parent = nil
  499. root.Velocity = Vector3.new()
  500. pchar.Humanoid.PlatformStand = false
  501. end
  502. end
  503.  
  504. end)
  505. mouse.KeyUp:connect(function(key)
  506. keysDown[key] = nil
  507. end)
  508.  
  509. local function updateFly()
  510.  
  511. if not flyToggled then return end
  512.  
  513. lastForward = forward
  514. lastSide = side
  515.  
  516. forward = 0
  517. side = 0
  518.  
  519. if keysDown.w then
  520. forward = forward + 1
  521. end
  522. if keysDown.s then
  523. forward = forward - 1
  524. end
  525. if keysDown.a then
  526. side = side - 1
  527. end
  528. if keysDown.d then
  529. side = side + 1
  530. end
  531.  
  532. canFly = (forward ~= 0 or side ~= 0)
  533.  
  534. if canFly then
  535. stanceToggle = "Floating"
  536. turnBG.Parent = root
  537. floatBP.Parent = nil
  538. flyBV.Parent = root
  539.  
  540. flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED)
  541. if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end
  542. else
  543. floatBP.position = root.Position
  544. floatBP.Parent = root
  545.  
  546. flySpeed = flySpeed - 1
  547. if flySpeed < 0 then flySpeed = 0 end
  548. end
  549.  
  550. local camCF = cam.CoordinateFrame
  551. local in_forward = canFly and forward or lastForward
  552. local in_side = canFly and side or lastSide
  553.  
  554. flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side,
  555. in_forward * 0.2, 0).p) - camCF.p) * flySpeed
  556.  
  557. turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0, 0)
  558. end
  559.  
  560. game:service'RunService'.RenderStepped:connect(function()
  561. if flyToggled then
  562. pchar.Humanoid.PlatformStand = true
  563. end
  564. updateFly()
  565. end)
  566.  
  567. mouse.KeyDown:connect(function(key)
  568. if key == "q" then
  569. if Debounces.CanAttack == true then
  570. Debounces.CanAttack = false
  571. Debounces.NoIdl = true
  572. Debounces.on = true
  573. function FindNearestTorso(Position,Distance,SinglePlayer)
  574. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  575. local List = {}
  576. for i,v in pairs(workspace:GetChildren())do
  577. if v:IsA("Model")then
  578. if v:findFirstChild("Torso")then
  579. if v ~= char then
  580. if(v.Torso.Position -Position).magnitude <= Distance then
  581. table.insert(List,v)
  582. end
  583. end
  584. end
  585. end
  586. end
  587. return List
  588. end
  589. z = Instance.new("Sound",hed)
  590. z.SoundId = "rbxassetid://232213955"
  591. z.Pitch = 1
  592. z.Volume = 1
  593. wait(0.2)
  594. z:Play()
  595. sp = Instance.new("Part",rarm)
  596. sp.Anchored = true
  597. sp.CanCollide = false
  598. sp.Locked = true
  599. sp.Transparency = 0
  600. sp.Material = "Neon"
  601. sp.Size = Vector3.new(1,1,1)
  602. sp.TopSurface = "SmoothNoOutlines"
  603. sp.BottomSurface = "SmoothNoOutlines"
  604. sp.BrickColor = BrickColor.new("Toothpaste")
  605. spm = Instance.new("SpecialMesh",sp)
  606. spm.MeshId = "http://www.roblox.com/asset/?id=9756362"
  607. spm.Scale = Vector3.new(21,21,21)
  608. sp2 = Instance.new("Part", rarm)
  609. sp2.Name = "Energy"
  610. sp2.BrickColor = BrickColor.new("Toothpaste")
  611. sp2.Size = Vector3.new(1, 1, 1)
  612. sp2.Shape = "Ball"
  613. sp2.CanCollide = false
  614. sp2.Anchored = true
  615. sp2.Locked = true
  616. sp2.TopSurface = 0
  617. sp2.BottomSurface = 0
  618. sp2.Transparency = 1
  619. spm2 = Instance.new("SpecialMesh",sp2)
  620. spm2.MeshId = "rbxassetid://9756362"
  621. spm2.Scale = Vector3.new(2,2,2)
  622. for i = 1, 20 do
  623. spm.Scale = spm.Scale - Vector3.new(1,1,1)
  624. sp.CFrame = root.CFrame*CFrame.new(0,1,-2)
  625. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4)
  626. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4)
  627. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4)
  628. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4)
  629. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4)
  630. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4)
  631. if Debounces.on == false then break end
  632. rs:wait()
  633. end
  634. for i = 1, 100, 20 do rs:wait()
  635. sp.CFrame = root.CFrame*CFrame.new(0,1,-2)
  636. end
  637. for i = 1, 20 do
  638. sp.CFrame = root.CFrame*CFrame.new(0,1,-2)
  639. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4)
  640. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.4)
  641. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(10),math.rad(-30),0), 0.4)
  642. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), math.rad(0)), 0.4)
  643. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4)
  644. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4)
  645. if Debounces.on == false then break end
  646. rs:wait()
  647. end
  648. sp.Transparency = 1
  649. for i = 1, 20 do
  650. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4)
  651. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.62,-.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.4)
  652. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.4)
  653. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(-50), math.rad(0)), 0.4)
  654. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4)
  655. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4)
  656. if Debounces.on == false then break end
  657. rs:wait()
  658. end
  659. wait(1)
  660. sp.Transparency = 0
  661. sp2.Transparency = 0.84
  662. for i = 1, 20 do
  663. --spm.Scale = spm.Scale - Vector3.new(1,1,1)
  664. sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0)
  665. sp2.CFrame = sp.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-i), math.rad(-i), math.rad(i))
  666. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(110),math.rad(-6),math.rad(140)), 0.4)
  667. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(80),math.rad(6),math.rad(-40)), 0.2)
  668. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2)
  669. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
  670. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2)
  671. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2)
  672. if Debounces.on == false then break end
  673. rs:wait()
  674. end
  675. for i = 1, 2880, 50 do
  676. rs:wait()
  677. sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0)
  678. sp2.CFrame = rarm.CFrame * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10))
  679. rs:wait()
  680. end
  681. sp:Destroy()
  682. sp2:Destroy()
  683. local X = Instance.new("Part",char)
  684. local O = Instance.new("ObjectValue",X)
  685. O.Name = "creator"
  686. X.Locked = true
  687. X.Name = "Shell"
  688. X.Anchored = false
  689. X.CanCollide = false
  690. X.Transparency = 0
  691. X.Reflectance = 0
  692. X.BottomSurface = 0
  693. X.TopSurface = 0
  694. X.Shape = 0
  695. local V = Instance.new("ObjectValue",X)
  696. V.Value = char
  697. V.Name = "creator"
  698. X.BrickColor = BrickColor.new("Toothpaste")
  699. X.Size = Vector3.new(2,2,2)
  700. X.Material = "Neon"
  701. local Z = Instance.new("SpecialMesh",X)
  702. Z.MeshId = "http://www.roblox.com/asset/?id=9982590"
  703. Z.Scale = Vector3.new(0.5,0.5,1)
  704. X.CFrame = rarm.CFrame*CFrame.new(-3,0,0)
  705. local bv = Instance.new("BodyVelocity",X)
  706. bv.maxForce = Vector3.new(99999,99999,99999)
  707. X.CFrame = CFrame.new(X.Position,mouse.Hit.p)
  708. bv.velocity = X.CFrame.lookVector*500
  709.  
  710. Explode = X.Touched:connect(function(hit)
  711. if hit ~= char and hit.Name ~= "Shell" then
  712. local cf = X.CFrame
  713. bv:Destroy()
  714. X.Anchored = true
  715. Z:Remove()
  716. Explode:disconnect()
  717. X.Size = Vector3.new(3,3,3)
  718. X.Touched:connect(function(hit) end)
  719. X.CanCollide = false
  720. local part3 = Instance.new("Part", rarm)
  721. part3.Anchored=true
  722. part3.CanCollide=false
  723. part3.Locked = true
  724. part3.TopSurface = "SmoothNoOutlines"
  725. part3.BottomSurface = "SmoothNoOutlines"
  726. part3.FormFactor='Custom'
  727. part3.Size=Vector3.new(1,1, 1)
  728. part3.CFrame=X.CFrame
  729. part3.Transparency=0
  730. part3.BrickColor=BrickColor.new("Toothpaste")
  731. local mesh3 = Instance.new("SpecialMesh",part3)
  732. mesh3.MeshId = "http://www.roblox.com/asset/?id=9756362"
  733. mesh3.Scale = Vector3.new(1,1,1)
  734. --debris:AddItem(X,8)
  735. local part4 = Instance.new("Part", rarm)
  736. part4.Material = "Neon"
  737. part4.Anchored=true
  738. part4.CanCollide=false
  739. part4.Locked = true
  740. part4.TopSurface = "SmoothNoOutlines"
  741. part4.BottomSurface = "SmoothNoOutlines"
  742. part4.FormFactor='Custom'
  743. part4.Size=Vector3.new(1,1, 1)
  744. part4.CFrame=X.CFrame
  745. part4.Transparency=0
  746. part4.BrickColor=BrickColor.new("Hot pink")
  747. local mesh4 = Instance.new("SpecialMesh",part4)
  748. mesh4.MeshId = "http://www.roblox.com/asset/?id=9756362"
  749. mesh4.Scale = Vector3.new(.5,.5,.5)
  750. local part7 = Instance.new("Part", rarm)
  751. part7.Material = "Neon"
  752. part7.Anchored=true
  753. part7.CanCollide=false
  754. part7.Locked = true
  755. part7.TopSurface = "SmoothNoOutlines"
  756. part7.BottomSurface = "SmoothNoOutlines"
  757. part7.FormFactor='Custom'
  758. part7.Size=Vector3.new(1,1, 1)
  759. part7.CFrame=X.CFrame
  760. part7.Transparency=0
  761. part7.BrickColor=BrickColor.new("Really black")
  762. local mesh7 = Instance.new("SpecialMesh",part7)
  763. mesh7.MeshId = "http://www.roblox.com/asset/?id=9756362"
  764. mesh7.Scale = Vector3.new(0.1, 0.1, 0.1)
  765. --[[X.Touched:connect(function(ht)
  766. hit = ht.Parent
  767. if ht and hit:IsA("Model") then
  768. if hit:FindFirstChild("Humanoid") then
  769. if hit.Name ~= p.Name then
  770. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
  771. wait(.3)
  772. end
  773. end
  774. elseif ht and hit:IsA("Hat") then
  775. if hit.Parent.Name ~= p.Name then
  776. if hit.Parent:FindFirstChild("Humanoid") then
  777. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
  778. wait(.3)
  779. end
  780. end
  781. end
  782. end)
  783. part3.Touched:connect(function(ht)
  784. hit = ht.Parent
  785. if ht and hit:IsA("Model") then
  786. if hit:FindFirstChild("Humanoid") then
  787. if hit.Name ~= p.Name then
  788. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
  789. wait(.3)
  790. end
  791. end
  792. elseif ht and hit:IsA("Hat") then
  793. if hit.Parent.Name ~= p.Name then
  794. if hit.Parent:FindFirstChild("Humanoid") then
  795. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
  796. wait(.3)
  797. end
  798. end
  799. end
  800. end)]]--
  801. for i,v in pairs(FindNearestTorso(X.CFrame.p,140))do
  802. if v:FindFirstChild('Humanoid') then
  803. v.Humanoid:TakeDamage(math.random(60,90))
  804. v.Humanoid.PlatformStand = true
  805. v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
  806. end
  807. end
  808.  
  809. local acos = math.acos
  810. local sqrt = math.sqrt
  811. local Vec3 = Vector3.new
  812. local fromAxisAngle = CFrame.fromAxisAngle
  813.  
  814. local function toAxisAngle(CFr)
  815. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  816. local Angle = math.acos((R00+R11+R22-1)/2)
  817. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  818. A = A == 0 and 0.00001 or A
  819. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  820. B = B == 0 and 0.00001 or B
  821. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  822. C = C == 0 and 0.00001 or C
  823. local x = (R21-R12)/sqrt(A)
  824. local y = (R02-R20)/sqrt(B)
  825. local z = (R10-R01)/sqrt(C)
  826. return Vec3(x,y,z),Angle
  827. end
  828.  
  829. function ApplyTrig(Num,Func)
  830. local Min,Max = Func(0),Func(1)
  831. local i = Func(Num)
  832. return (i-Min)/(Max-Min)
  833. end
  834.  
  835. function LerpCFrame(CFrame1,CFrame2,Num)
  836. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  837. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  838. end
  839.  
  840. function Crater(Torso,Radius)
  841. Spawn(function()
  842. local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10)
  843. local Ignore = {}
  844. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  845. if v.Character ~= nil then
  846. Ignore[#Ignore+1] = v.Character
  847. end
  848. end
  849. local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  850. if Hit == nil then return end
  851. local Parts = {}
  852. for i = 1,360,10 do
  853. local P = Instance.new("Part",Torso.Parent)
  854. P.Anchored = true
  855. P.FormFactor = "Custom"
  856. P.BrickColor = Hit.BrickColor
  857. P.Material = Hit.Material
  858. P.TopSurface = "Smooth"
  859. P.BottomSurface = "Smooth"
  860. P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100)
  861. 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)))
  862. 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}
  863. if math.random(0,5) == 0 then -- rubble
  864. local P = Instance.new("Part",Torso.Parent)
  865. P.Anchored = true
  866. P.FormFactor = "Custom"
  867. P.BrickColor = Hit.BrickColor
  868. P.Material = Hit.Material
  869. P.TopSurface = "Smooth"
  870. P.BottomSurface = "Smooth"
  871. P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100)
  872. 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)))
  873. 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}
  874. end
  875. end
  876. for i = 0,1,0.05 do
  877. for i2,v in pairs(Parts) do
  878. v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
  879. end
  880. wait(0.02)
  881. end
  882. for i,v in pairs(Parts) do
  883. if v[1].Size.X > 2.1 then
  884. v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
  885. end
  886. v[1].Anchored = false
  887. end
  888. for i = 0,1,0.05 do
  889. for i2,v in pairs(Parts) do
  890. v[1].Transparency = i
  891. if i == 1 then
  892. v[1]:Destroy()
  893. elseif i >= 0.25 then
  894. v[1].CanCollide = false
  895. end
  896. end
  897. wait(0.02)
  898. end
  899. Parts = nil
  900. end)
  901. end
  902.  
  903. ROW = function(out, trans, s, wt, t, ang, plus)
  904. for i = 1, 360, 360/t do
  905. local c = Instance.new("Part", game.Workspace)
  906. c.FormFactor = 3
  907. c.TopSurface = 0
  908. c.BottomSurface = 0
  909. c.Size = s
  910. c.Anchored = true
  911. c.CanCollide = wt
  912. c.Material=workspace.Base.Material
  913. c.Transparency = trans
  914. c.BrickColor = workspace.Base.BrickColor
  915. 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
  916. c.Locked=true
  917. game.Debris:AddItem(c,15)
  918. end
  919. end
  920.  
  921. Part = function(x,y,z,color,tr,cc,an,parent)
  922. local p = Instance.new('Part',parent or Weapon)
  923. p.formFactor = 'Custom'
  924. p.Size = Vector3.new(x,y,z)
  925. p.BrickColor = BrickColor.new(color)
  926. p.CanCollide = cc
  927. p.Transparency = tr
  928. p.Anchored = an
  929. p.TopSurface,p.BottomSurface = 0,0
  930. p.Locked=true
  931. p:BreakJoints()
  932. return p end
  933.  
  934. Mesh = function(par,num,x,y,z)
  935. local msh = _
  936. if num == 1 then msh = Instance.new("CylinderMesh",par)
  937. elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3
  938. elseif num == 3 then msh = Instance.new("BlockMesh",par)
  939. elseif num == 4 then msh = Instance.new("SpecialMesh",par) msh.MeshType = "Torso"
  940. elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num
  941. end msh.Scale = Vector3.new(x,y,z)
  942. return msh end
  943.  
  944. function explosion(col1,col2,cfr,sz,rng,dmg)
  945. local a= Part(1,1,1,col1,.5,false,true,workspace)
  946. local a2= Part(1,1,1,col2,.5,false,true,workspace)
  947. local a3= Part(1,1,1,col2,.5,false,true,workspace)
  948. v1,v2,v3=sz.x,sz.y,sz.z
  949. local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3)
  950. local m2= Mesh(a2,3,v1/3,v2/3,v3/3)
  951. local m3= Mesh(a3,3,v1/3,v2/3,v3/3)
  952. a.CFrame=cfr
  953. a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  954. a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  955.  
  956. Spawn(function()
  957. while wait() do
  958. if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end
  959. m.Scale=m.Scale+Vector3.new(.1,0.1,0.1)
  960. m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1)
  961. m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1)
  962. a.Transparency=a.Transparency+0.05
  963. a2.Transparency=a2.Transparency+0.05
  964. a3.Transparency=a3.Transparency+0.05
  965. end
  966. end)
  967. end
  968.  
  969. Crater(X,20)
  970. 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)
  971. z = Instance.new("Sound",X)
  972. z.SoundId = "rbxassetid://231917744"
  973. z.Pitch = .5
  974. z.Volume = 10
  975. z1 = Instance.new("Sound",X)
  976. z1.SoundId = "rbxassetid://231917744"
  977. z1.Pitch = .5
  978. z1.Volume = 10
  979. z2 = Instance.new("Sound",X)
  980. z2.SoundId = "rbxassetid://231917744"
  981. z2.Pitch = .5
  982. z2.Volume = 10
  983. z3 = Instance.new("Sound",X)
  984. z3.SoundId = "rbxassetid://245537790"
  985. z3.Pitch = .7
  986. z3.Volume = 1
  987. z4 = Instance.new("Sound",X)
  988. z4.SoundId = "rbxassetid://245537790"
  989. z4.Pitch = .7
  990. z4.Volume = 1
  991. wait(0.1)
  992. z:Play()
  993. z1:Play()
  994. z2:Play()
  995. z3:Play()
  996. z4:Play()
  997.  
  998. local part=Instance.new('Part',rarm)
  999. part.Anchored=true
  1000. part.CanCollide=false
  1001. part.Locked = true
  1002. part.FormFactor='Custom'
  1003. part.Size=Vector3.new(1,1,1)
  1004. part.CFrame=X.CFrame*CFrame.new(0,0,0)
  1005. part.Transparency=0
  1006. part.BrickColor=BrickColor.new('Really black')
  1007. local mesh=Instance.new('SpecialMesh',part)
  1008. mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
  1009. mesh.Scale=Vector3.new(2,2,2)
  1010. local part2=part:clone()
  1011. part2.Parent = rarm
  1012. part2.BrickColor=BrickColor.new("Toothpaste")
  1013. local part5=part:clone()
  1014. part5.Parent = rarm
  1015. part5.BrickColor=BrickColor.new("Toothpaste")
  1016. local part6=part:clone()
  1017. part6.Parent = rarm
  1018. part6.BrickColor=BrickColor.new("Black")
  1019. local mesh2=mesh:clone()
  1020. mesh2.Parent=part2
  1021. mesh2.Scale=Vector3.new(3, 3, 3)
  1022. local mesh5=mesh:clone()
  1023. mesh5.Parent=part5
  1024. mesh5.Scale=Vector3.new(3, 3, 3)
  1025. local mesh6=mesh:clone()
  1026. mesh6.Parent=part6
  1027. mesh6.Scale=Vector3.new(3, 3, 3)
  1028. local blast = Instance.new("Part", rarm)
  1029. blast.BrickColor = BrickColor.new("Really black")
  1030. blast.Anchored = true
  1031. blast.CanCollide = false
  1032. blast.Locked = true
  1033. blast.Size = Vector3.new(1, 1, 1)
  1034. blast.TopSurface = "Smooth"
  1035. blast.BottomSurface = "Smooth"
  1036. blast.Transparency = 0
  1037. blast.CFrame = HandCF
  1038. local bm = Instance.new("SpecialMesh", blast)
  1039. bm.Scale = Vector3.new(5,1,5)
  1040. bm.MeshId = "rbxassetid://156292343"
  1041. local blast2 = Instance.new("Part", rarm)
  1042. blast2.BrickColor = BrickColor.new("Really black")
  1043. blast2.Anchored = true
  1044. blast2.CanCollide = false
  1045. blast2.Locked = true
  1046. blast2.Size = Vector3.new(1, 1, 1)
  1047. blast2.TopSurface = "Smooth"
  1048. blast2.BottomSurface = "Smooth"
  1049. blast2.Transparency = 0
  1050. blast2.CFrame = HandCF
  1051. local bm2 = Instance.new("SpecialMesh", blast2)
  1052. bm2.Scale = Vector3.new(3,1,3)
  1053. bm2.MeshId = "rbxassetid://156292343"
  1054. local blast3 = Instance.new("Part", rarm)
  1055. blast3.BrickColor = BrickColor.new("Really black")
  1056. blast3.Anchored = true
  1057. blast3.CanCollide = false
  1058. blast3.Locked = true
  1059. blast3.Size = Vector3.new(1, 1, 1)
  1060. blast3.TopSurface = "Smooth"
  1061. blast3.BottomSurface = "Smooth"
  1062. blast3.Transparency = 0
  1063. blast3.CFrame = HandCF
  1064. local bm3 = Instance.new("SpecialMesh", blast3)
  1065. bm3.Scale = Vector3.new(3,1,3)
  1066. bm3.MeshId = "rbxassetid://3270017"
  1067. for i = 1,120 do rs:wait()
  1068. X.Transparency = X.Transparency + (1/120)
  1069. part.Transparency = part.Transparency + (1/120)
  1070. part2.Transparency = part2.Transparency + (1/120)
  1071. part3.Transparency = part3.Transparency + (1/120)
  1072. part4.Transparency = part4.Transparency + (1/120)
  1073. part5.Transparency = part5.Transparency + (1/120)
  1074. part6.Transparency = part6.Transparency + (1/120)
  1075. part7.Transparency = part7.Transparency + (1/120)
  1076. blast.Transparency = blast.Transparency + (1/120)
  1077. blast2.Transparency = blast2.Transparency + (1/120)
  1078. blast3.Transparency = blast3.Transparency + (1/120)
  1079. X.Size = X.Size + Vector3.new(.8,.8,.8)
  1080. --part3.Size = part3.Size + Vector3.new(3,3,3)
  1081. mesh.Scale = mesh.Scale + Vector3.new(1,.2,1)
  1082. mesh2.Scale = mesh2.Scale + Vector3.new(1.1,.2,1.1)
  1083. mesh3.Scale = mesh3.Scale + Vector3.new(3,3,3)
  1084. mesh4.Scale = mesh4.Scale + Vector3.new(1.7,1.7,1.7)
  1085. mesh5.Scale = mesh5.Scale + Vector3.new(1.6,.2,1.6)
  1086. mesh6.Scale = mesh6.Scale + Vector3.new(2,.2,2)
  1087. mesh7.Scale = mesh7.Scale + Vector3.new(4,4,4)
  1088. bm.Scale = bm.Scale + Vector3.new(6,6,.2)
  1089. bm2.Scale = bm2.Scale + Vector3.new(4,4,.2)
  1090. bm3.Scale = bm3.Scale + Vector3.new(4,4,.2)
  1091. X.CFrame = cf
  1092. part.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2),0)
  1093. part2.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2),0)
  1094. part3.CFrame=X.CFrame
  1095. part4.CFrame=X.CFrame
  1096. part7.CFrame=X.CFrame
  1097. part5.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2.6),0)
  1098. part6.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2.4),0)
  1099. blast.CFrame=X.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1100. blast2.CFrame=X.CFrame * CFrame.Angles(math.rad(-i*4), math.rad(i*4), math.rad(0))
  1101. blast3.CFrame=X.CFrame * CFrame.Angles(math.rad(180+i*4), math.rad(90-i*4), math.rad(0))
  1102. rs:wait()
  1103. end
  1104. X:Destroy()
  1105. part:Destroy()
  1106. part2:Destroy()
  1107. part3:Destroy()
  1108. part4:Destroy()
  1109. part5:Destroy()
  1110. part6:Destroy()
  1111. blast:Destroy()
  1112. blast2:Destroy()
  1113. blast3:Destroy()
  1114. z:Destroy()
  1115. z1:Destroy()
  1116. z2:Destroy()
  1117. z3:Destroy()
  1118. z4:Destroy()
  1119. end
  1120. end)
  1121. for i = 1, 20 do
  1122. 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)
  1123. 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)
  1124. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2)
  1125. 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)
  1126. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2)
  1127. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2)
  1128. if Debounces.on == false then break end
  1129. rs:wait()
  1130. end
  1131. if Debounces.CanAttack == false then
  1132. Debounces.CanAttack = true
  1133. Debounces.NoIdl = false
  1134. Debounces.on = false
  1135. end
  1136. end
  1137. end
  1138. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement