Gametoy

c;

Feb 10th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 68.15 KB | None | 0 0
  1. local Player = game.Players.localPlayer
  2. local Character = Player.Character
  3. local red = 255
  4. local green = 255
  5. local blue = 255
  6. local Humanoid = Character.Humanoid
  7. local mouse = Player:GetMouse()
  8. local m = Instance.new("Model", Character)
  9. m.Name = "WeaponModel"
  10. local LeftArm = Character["Left Arm"]
  11. local RightArm = Character["Right Arm"]
  12. local LeftLeg = Character["Left Leg"]
  13. local RightLeg = Character["Right Leg"]
  14. local Head = Character.Head
  15. local Torso = Character.Torso
  16. local cam = game.Workspace.CurrentCamera
  17. local RootPart = Character.HumanoidRootPart
  18. local RootJoint = RootPart.RootJoint
  19. local equipped = false
  20. local attack = false
  21. local Anim = "Idle"
  22. local idle = 0
  23. local attacktype = 1
  24. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  25. local velocity = RootPart.Velocity.y
  26. local sine = 0
  27. local change = 1
  28. local grabbed = false
  29. local cn = CFrame.new
  30. local mr = math.rad
  31. local angles = CFrame.Angles
  32. local ud = UDim2.new
  33. local c3 = Color3.new
  34. local lim = 0
  35. local st = 0
  36. local necko = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  37. local attacktype = 1
  38. local ZTarget, RocketTarget = nil, nil
  39. local euler = CFrame.fromEulerAnglesXYZ
  40. function clerp(a,b,t)
  41. local qa = {QuaternionFromCFrame(a)}
  42. local qb = {QuaternionFromCFrame(b)}
  43. local ax, ay, az = a.x, a.y, a.z
  44. local bx, by, bz = b.x, b.y, b.z
  45. local _t = 1-t
  46. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  47. end
  48.  
  49. function QuaternionFromCFrame(cf)
  50. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  51. local trace = m00 + m11 + m22
  52. if trace > 0 then
  53. local s = math.sqrt(1 + trace)
  54. local recip = 0.5/s
  55. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  56. else
  57. local i = 0
  58. if m11 > m00 then
  59. i = 1
  60. end
  61. if m22 > (i == 0 and m00 or m11) then
  62. i = 2
  63. end
  64. if i == 0 then
  65. local s = math.sqrt(m00-m11-m22+1)
  66. local recip = 0.5/s
  67. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  68. elseif i == 1 then
  69. local s = math.sqrt(m11-m22-m00+1)
  70. local recip = 0.5/s
  71. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  72. elseif i == 2 then
  73. local s = math.sqrt(m22-m00-m11+1)
  74. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  75. end
  76. end
  77. end
  78.  
  79. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  80. local xs, ys, zs = x + x, y + y, z + z
  81. local wx, wy, wz = w*xs, w*ys, w*zs
  82. local xx = x*xs
  83. local xy = x*ys
  84. local xz = x*zs
  85. local yy = y*ys
  86. local yz = y*zs
  87. local zz = z*zs
  88. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  89. end
  90.  
  91. function QuaternionSlerp(a, b, t)
  92. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  93. local startInterp, finishInterp;
  94. if cosTheta >= 0.0001 then
  95. if (1 - cosTheta) > 0.0001 then
  96. local theta = math.acos(cosTheta)
  97. local invSinTheta = 1/math.sin(theta)
  98. startInterp = math.sin((1-t)*theta)*invSinTheta
  99. finishInterp = math.sin(t*theta)*invSinTheta
  100. else
  101. startInterp = 1-t
  102. finishInterp = t
  103. end
  104. else
  105. if (1+cosTheta) > 0.0001 then
  106. local theta = math.acos(-cosTheta)
  107. local invSinTheta = 1/math.sin(theta)
  108. startInterp = math.sin((t-1)*theta)*invSinTheta
  109. finishInterp = math.sin(t*theta)*invSinTheta
  110. else
  111. startInterp = t-1
  112. finishInterp = t
  113. end
  114. end
  115. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  116. end
  117. rayCast = function(Position, Direction, Range, Ignore)
  118. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  119. end
  120. local v = game.Players.localPlayer
  121. local torso = v.Character.Torso
  122. wait(1)
  123. local p = Instance.new("Part", v.Character)
  124. p.Name = "kit"
  125. p.Anchored = true
  126. p.Transparency = 0
  127. p.Material = "Plastic"
  128. p.CanCollide = false
  129. p.TopSurface = 0
  130. p.BottomSurface = 0
  131. p.Size = Vector3.new(0.2, 0.2, 0.2)
  132. p.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  133. local msh = Instance.new("SpecialMesh", p)
  134. msh.Scale = Vector3.new(-2, 2, 2)
  135. msh.MeshId = "http://www.roblox.com/asset/?id=0"
  136. msh.TextureId = "http://www.roblox.com/asset/?id=0"
  137. msh.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  138. local pn = Instance.new("Part", v.Character.kit)
  139. pn.Name = "tail2"
  140. pn.Anchored = true
  141. pn.Transparency = 0
  142. pn.Material = "Plastic"
  143. pn.CanCollide = false
  144. pn.TopSurface = 0
  145. pn.BottomSurface = 0
  146. pn.Size = Vector3.new(5, 3, 3)
  147. pn.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  148. local mshn = Instance.new("SpecialMesh", pn)
  149. mshn.Scale = Vector3.new(2, 2, 2)
  150. mshn.MeshId = "http://www.roblox.com/asset/?id=0"
  151. mshn.TextureId = "http://www.roblox.com/asset/?id=0"
  152. mshn.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  153. local pn3 = Instance.new("Part", v.Character.kit)
  154. pn3.Name = "tail3"
  155. pn3.Anchored = true
  156. pn3.Transparency = 0
  157. pn3.Material = "Plastic"
  158. pn3.CanCollide = false
  159. pn3.TopSurface = 0
  160. pn3.BottomSurface = 0
  161. pn3.Size = Vector3.new(0.2, 0.2, 0.2)
  162. pn3.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  163. local mshn3 = Instance.new("SpecialMesh", pn3)
  164. mshn3.Scale = Vector3.new(2, 2, 2)
  165. mshn3.MeshId = "http://www.roblox.com/asset/?id=0"
  166. mshn3.TextureId = "http://www.roblox.com/asset/?id=0"
  167. mshn3.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  168. local pn4 = Instance.new("Part", v.Character.kit)
  169. pn4.Name = "tail4"
  170. pn4.Anchored = true
  171. pn4.Transparency = 0
  172. pn4.Material = "Plastic"
  173. pn4.CanCollide = false
  174. pn4.TopSurface = 0
  175. pn4.BottomSurface = 0
  176. pn4.Size = Vector3.new(0.2, 0.2, 0.2)
  177. pn4.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  178. local mshn4 = Instance.new("SpecialMesh", pn4)
  179. mshn4.Scale = Vector3.new(-2, 2, 2)
  180. mshn4.MeshId = "http://www.roblox.com/asset/?id=0"
  181. mshn4.TextureId = "http://www.roblox.com/asset/?id=0"
  182. mshn4.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  183. local pn5 = Instance.new("Part", v.Character.kit)
  184. pn5.Name = "tail5"
  185. pn5.Anchored = true
  186. pn5.Transparency = 0
  187. pn5.Material = "Plastic"
  188. pn5.CanCollide = false
  189. pn5.TopSurface = 0
  190. pn5.BottomSurface = 0
  191. pn5.Size = Vector3.new(0.2, 0.2, 0.2)
  192. pn5.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  193. local mshn5 = Instance.new("SpecialMesh", pn5)
  194. mshn5.Scale = Vector3.new(2, 2, 2)
  195. mshn5.MeshId = "http://www.roblox.com/asset/?id=0"
  196. mshn5.TextureId = "http://www.roblox.com/asset/?id=0"
  197. mshn5.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  198. local pn6 = Instance.new("Part", v.Character.kit)
  199. pn6.Name = "tail6"
  200. pn6.Anchored = true
  201. pn6.Transparency = 0
  202. pn6.Material = "Plastic"
  203. pn6.CanCollide = false
  204. pn6.TopSurface = 0
  205. pn6.BottomSurface = 0
  206. pn6.Size = Vector3.new(0.2, 0.2, 0.2)
  207. pn6.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  208. local mshn6 = Instance.new("SpecialMesh", pn6)
  209. mshn6.Scale = Vector3.new(2, 2, 2)
  210. mshn6.MeshId = "http://www.roblox.com/asset/?id=0"
  211. mshn6.TextureId = "http://www.roblox.com/asset/?id=0"
  212. mshn6.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  213. local pn7 = Instance.new("Part", v.Character.kit)
  214. pn7.Name = "tail7"
  215. pn7.Anchored = true
  216. pn7.Transparency = 0
  217. pn7.Material = "Plastic"
  218. pn7.CanCollide = false
  219. pn7.TopSurface = 0
  220. pn7.BottomSurface = 0
  221. pn7.Size = Vector3.new(0.2, 0.2, 0.2)
  222. pn7.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  223. local mshn7 = Instance.new("SpecialMesh", pn7)
  224. mshn7.Scale = Vector3.new(2, 2, 2)
  225. mshn7.MeshId = "http://www.roblox.com/asset/?id=0"
  226. mshn7.TextureId = "http://www.roblox.com/asset/?id=0"
  227. mshn7.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  228. local pn8 = Instance.new("Part", v.Character.kit)
  229. pn8.Name = "tail8"
  230. pn8.Anchored = true
  231. pn8.Transparency = 0
  232. pn8.Material = "Plastic"
  233. pn8.CanCollide = false
  234. pn8.TopSurface = 0
  235. pn8.BottomSurface = 0
  236. pn8.Size = Vector3.new(0.2, 0.2, 0.2)
  237. pn8.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  238. local mshn8 = Instance.new("SpecialMesh", pn8)
  239. mshn8.Scale = Vector3.new(-2, 2, 2)
  240. mshn8.MeshId = "http://www.roblox.com/asset/?id=0"
  241. mshn8.TextureId = "http://www.roblox.com/asset/?id=0"
  242. mshn8.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  243. local pn9 = Instance.new("Part", v.Character.kit)
  244. pn9.Name = "tail9"
  245. pn9.Anchored = true
  246. pn9.Transparency = 0
  247. pn9.Material = "Plastic"
  248. pn9.CanCollide = false
  249. pn9.TopSurface = 0
  250. pn9.BottomSurface = 0
  251. pn9.Size = Vector3.new(0.2, 0.2, 0.2)
  252. pn9.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  253. local mshn9 = Instance.new("SpecialMesh", pn9)
  254. mshn9.Scale = Vector3.new(-2, 2, 2)
  255. mshn9.MeshId = "http://www.roblox.com/asset/?id=0"
  256. mshn9.TextureId = "http://www.roblox.com/asset/?id=0"
  257. mshn9.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  258. local pn0 = Instance.new("Part", v.Character.kit)
  259. pn0.Name = "ears"
  260. pn0.Anchored = true
  261. pn0.Transparency = 0
  262. pn0.Material = "Plastic"
  263. pn0.CanCollide = false
  264. pn0.TopSurface = 0
  265. pn0.BottomSurface = 0
  266. pn0.Size = Vector3.new(0.2, 0.2, 0.2)
  267. pn0.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  268. local mshn0 = Instance.new("SpecialMesh", pn0)
  269. mshn0.Scale = Vector3.new(0.5, 0.5, 0.5)
  270. mshn0.MeshId = "http://www.roblox.com/asset/?id=361948302"
  271. mshn0.TextureId = "http://www.roblox.com/asset/?id=50657528"
  272. mshn0.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  273. p.Anchored = false
  274. local motor1 = Instance.new("Weld", p)
  275. motor1.Part0 = p
  276. motor1.Part1 = torso
  277. motor1.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  278. motor1.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  279. pn.Anchored = false
  280. local motor2 = Instance.new("Weld", pn)
  281. motor2.Part0 = pn
  282. motor2.Part1 = torso
  283. motor2.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  284. motor2.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  285. pn3.Anchored = false
  286. local motor3 = Instance.new("Weld", pn3)
  287. motor3.Part0 = pn3
  288. motor3.Part1 = torso
  289. motor3.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  290. motor3.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  291. pn4.Anchored = false
  292. local motor4 = Instance.new("Weld", pn4)
  293. motor4.Part0 = pn4
  294. motor4.Part1 = torso
  295. motor4.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  296. motor4.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  297. pn5.Anchored = false
  298. local motor5 = Instance.new("Weld", pn5)
  299. motor5.Part0 = pn5
  300. motor5.Part1 = torso
  301. motor5.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  302. motor5.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  303. pn6.Anchored = false
  304. local motor6 = Instance.new("Weld", pn6)
  305. motor6.Part0 = pn6
  306. motor6.Part1 = torso
  307. motor6.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  308. motor6.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  309. pn7.Anchored = false
  310. local motor7 = Instance.new("Weld", pn7)
  311. motor7.Part0 = pn7
  312. motor7.Part1 = torso
  313. motor7.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  314. motor7.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  315. pn8.Anchored = false
  316. local motor8 = Instance.new("Weld", pn8)
  317. motor8.Part0 = pn8
  318. motor8.Part1 = torso
  319. motor8.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  320. motor8.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  321. pn9.Anchored = false
  322. local motor9 = Instance.new("Weld", pn9)
  323. motor9.Part0 = pn9
  324. motor9.Part1 = torso
  325. motor9.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  326. motor9.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  327. pn0.Anchored = false
  328. local motor0 = Instance.new("Weld", pn0)
  329. motor0.Part0 = pn0
  330. motor0.Part1 = v.Character.Head
  331. motor0.C0 = CFrame.new(0, -0.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  332. game:GetService("RunService").Stepped:connect(function()
  333. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  334. velocity = RootPart.Velocity.y
  335. sine = sine + change
  336. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  337. if equipped == true or equipped == false then
  338. if RootPart.Velocity.y > 1 and hit == nil then
  339. Anim = "Jump"
  340. if attack == false then
  341. motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(80 + 0 * math.cos(sine / 25))), 0.1)
  342. motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1)
  343. motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-110 + 0 * math.cos(sine / 25))), 0.1)
  344. motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(110 + 0 * math.cos(sine / 25))), 0.1)
  345. motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1)
  346. motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1)
  347. motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1)
  348. motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(80 + 0 * math.cos(sine / 25))), 0.1)
  349. motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(80 + 0 * math.cos(sine / 25))), 0.1)
  350. end
  351. else
  352. if RootPart.Velocity.y < -1 and hit == nil then
  353. Anim = "Fall"
  354. if attack == false then
  355. motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1)
  356. motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
  357. motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
  358. motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1)
  359. motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
  360. motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
  361. motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
  362. motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1)
  363. motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1)
  364. end
  365. else
  366. if Torsovelocity < 1 and hit ~= nil then
  367. Anim = "Idle"
  368. if attack == false then
  369. change = 1
  370. motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-5 + 5 * math.cos(sine / 50)), math.rad(0 + 5 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  371. motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-5 + -5 * math.cos(sine / 70)), math.rad(0 + -5 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  372. motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-5 + -5 * math.cos(sine / 80)), math.rad(0 + 5 * math.cos(sine / 65)), math.rad(-50 + 0 * math.cos(sine / 25))), 0.1)
  373. motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(0 + 5 * math.cos(sine / 40)), math.rad(0 + 5 * math.cos(sine / 70)), math.rad(-40 + 0 * math.cos(sine / 25))), 0.1)
  374. motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(0 + 5 * math.cos(sine / 60)), math.rad(0 + 5 * math.cos(sine / 65)), math.rad(40 + 0 * math.cos(sine / 25))), 0.1)
  375. motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 35)), math.rad(0 + 5 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  376. motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 70)), math.rad(0 + 5 * math.cos(sine / 35)), math.rad(-45 + 0 * math.cos(sine / 25))), 0.1)
  377. motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 55)), math.rad(0 + 5 * math.cos(sine / 55)), math.rad(-10 + 0 * math.cos(sine / 25))), 0.1)
  378. motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 65)), math.rad(0 + 5 * math.cos(sine / 60)), math.rad(35 + 0 * math.cos(sine / 25))), 0.1)
  379. end
  380. else
  381. if Torsovelocity > 2 and hit ~= nil then
  382. Anim = "Walk"
  383. if attack == false then
  384. motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1)
  385. motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
  386. motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
  387. motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1)
  388. motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
  389. motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
  390. motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
  391. motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1)
  392. motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1)
  393. end
  394. end
  395. end
  396. end
  397. end
  398. end
  399. end)
  400. ParticleSettings = {
  401. Lifetime = 1,
  402. Texture = 'rbxassetid://1209757190',
  403. --Color1 is for UpperBody and Accessories, Color2 is for Lower Body
  404. Color1 = ColorSequence.new(BrickColor.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b).Color,BrickColor.new('Black').Color),
  405. Color2 = ColorSequence.new(BrickColor.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b).Color,BrickColor.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b).Color),
  406. AllBody = true,
  407. UpperBodyOnly = false,
  408. LowerBodyOnly = false,
  409. Accessories = true,
  410. Extras = true,
  411. }
  412. TrailSettings = {
  413. Lifetime = 1,
  414. Texture = 'rbxassetid://1209757190',
  415. --Color1 is for UpperBody and Accessories, Color2 is for Lower Body
  416. Color1 = ColorSequence.new(BrickColor.new('Lime green').Color,BrickColor.new('Black').Color),
  417. Color2 = ColorSequence.new(BrickColor.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b).Color,BrickColor.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b).Color),
  418. AllBody = true,
  419. UpperBodyOnly = false,
  420. LowerBodyOnly = false,
  421. Accessories = true,
  422. Extras = true,
  423. }
  424. m = game:service'Players'.LocalPlayer:GetMouse()
  425. local p=game:service("Players").LocalPlayer
  426. Instance.new("ForceField", game.Players.LocalPlayer.Character). Visible = false
  427. local char=p.Character
  428. script.Parent=char
  429. local tor=char.Torso
  430. local hed=char.Head
  431. local larm=char:FindFirstChild("Left Arm")
  432. local rarm=char:FindFirstChild("Right Arm")
  433. local lleg=char:FindFirstChild("Left Leg")
  434. local rleg=char:FindFirstChild("Right Leg")
  435. local hum=char.Humanoid
  436. local cam=workspace.CurrentCamera
  437. local root=char.HumanoidRootPart
  438. local mouse=p:GetMouse()
  439. local hb=game:service("RunService").Heartbeat
  440. local rs=game:service("RunService").Stepped
  441. hum.MaxHealth= math.huge
  442. hum.Health=hum.MaxHealth
  443. local Colorpart1 = Torso.BrickColor.r
  444. local Colorpart2 = Torso.BrickColor.g
  445. local Colorpart3 = Torso.BrickColor.b
  446.  
  447.  
  448. local hat3 = Instance.new("Part",char)
  449. hat3.Transparency = 0.3
  450. hat3.CanCollide= false
  451. hat3.Name = 'aot'
  452. hat3.Size = Vector3.new(1,1,1)
  453. local light =Instance.new('PointLight',hat3)
  454. light.Color= Color3.new(Colorpart1, Colorpart2, Colorpart3)
  455. light.Brightness = 1234
  456. light.Range = 18
  457. local image =Instance.new("SpecialMesh",hat3)
  458. image.Scale = Vector3.new(1,1,1)
  459. image.MeshId = 'http://www.roblox.com/asset/?id=1376459'
  460. image.TextureId ='rbxassetid://1982057222'
  461. image.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  462. local w = Instance.new("Weld",hat3)
  463. w.Part1=hat3
  464. w.Part0=tor
  465. w.C0=CFrame.new(0,4,0)
  466.  
  467. local hat4 = Instance.new("Part",char)
  468. hat4.Transparency = 0.3
  469. hat4.CanCollide= false
  470. hat4.Name = 'aot1'
  471. hat4.Size = Vector3.new(1,1,1)
  472. local image =Instance.new("SpecialMesh",hat4)
  473. image.Scale = Vector3.new(1, 1, 1)
  474. image.MeshId = 'http://www.roblox.com/asset/?id=1028713'
  475. image.TextureId ='rbxassetid://1982057222'
  476. image.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  477. local w = Instance.new("Weld",hat4)
  478. w.Part1=hat4
  479. w.Part0=hed
  480. w.C0=CFrame.new(0,.9,0)
  481.  
  482. local hat2 = Instance.new("Part",char)
  483. hat2.Transparency = 1
  484. hat2.CanCollide= false
  485. hat2.Size = Vector3.new(1,1,1)
  486. hat2.Name = 'r'
  487.  
  488. local w = Instance.new("Weld",hat2)
  489. w.Part1=hat2
  490. w.Part0=tor
  491. w.C0=CFrame.new(0,4.5,0)
  492.  
  493. local trail = Instance.new("Trail",char)
  494. trail.Color = TrailSettings.Color2
  495. trail.Lifetime = 0.5
  496. local attachment0 = Instance.new("Attachment",char.aot)
  497. attachment0.Name = "TrailAttachment0"
  498. local attachment1 = Instance.new("Attachment",char.r)
  499. attachment1.Name = "TrailAttachment1"
  500. trail.Attachment0 = attachment0
  501. trail.Attachment1 = attachment1
  502. local scarf =Instance.new('Part',char)
  503. scarf.Transparency = 0
  504. scarf.CanCollide = false
  505. local hit =Instance.new("SpecialMesh",scarf)
  506. hit.Scale = Vector3.new(1, 1, 1)
  507. hit.MeshId = 'http://www.roblox.com/asset/?id=99856331'
  508. hit.TextureId ='rbxassetid://138769644'
  509. hit.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  510. local w = Instance.new("Weld",scarf)
  511. w.Part1=scarf
  512. w.Part0=hed
  513. w.C0=CFrame.new(0,-1,0)
  514. -----------------------------------------------------
  515. ----------------------------------------
  516. m.KeyDown:connect(function(k)
  517. if k == "m" then
  518. if (hum ~= nil) then -- if a humanoid exists, then
  519. hum.Sit = true -- make the humanoid sit!
  520. end
  521. end
  522. end)
  523. print("Made by SezHu for Void's Script Builder. If logged, please do not remove credit.")
  524. wait(1 / 60)
  525. Effects = { }
  526. local Player = game.Players.localPlayer
  527. local Character = Player.Character
  528. local Humanoid = Character.Humanoid
  529. Humanoid.WalkSpeed = 100
  530. local Mouse = Player:GetMouse()
  531. local LeftArm = Character["Left Arm"]
  532. local RightArm = Character["Right Arm"]
  533. local LeftLeg = Character["Left Leg"]
  534. local RightLeg = Character["Right Leg"]
  535. local Head = Character.Head
  536. local Torso = Character.Torso
  537. local Camera = game.Workspace.CurrentCamera
  538. local RootPart = Character.HumanoidRootPart
  539. local RootJoint = RootPart.RootJoint
  540. local attack = false
  541. local Anim = 'Idle'
  542. local attacktype = 1
  543. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  544. local velocity = RootPart.Velocity.y
  545. local sine = 0
  546. local change = 1
  547. local Create = LoadLibrary("RbxUtility").Create
  548. Humanoid.Health = math.huge
  549. Instance.new("ForceField",Character).Visible = false
  550. hit = nil
  551. oof = false
  552. DHandle = Instance.new("Part")
  553. DMesh = Instance.new("SpecialMesh")
  554. DWeld = Instance.new("Weld")
  555. DHandle.Parent = Character
  556. DHandle.Name = "Handle"
  557. DHandle.CanCollide = false
  558. DHandle.Locked = true
  559. DHandle.Size = Vector3.new(1.93, 1.77, 1.6)
  560. DMesh.Parent = DHandle
  561. DMesh.Scale = DMesh.Scale
  562. DWeld.Parent = DHandle
  563. DWeld.Name = "no"
  564. DWeld.Part0 = Head
  565. DWeld.Part1 = DHandle
  566. DWeld.C0 = CFrame.new(0,-.2,0) * CFrame.fromEulerAnglesXYZ(math.rad(-1),0,0)VertexColor = Vector3.new(1,1,1)
  567. DHandle.Transparency = 0
  568. DMesh.MeshId = "http://www.roblox.com/asset/?id=13070796"
  569. DMesh.TextureId = "http://www.roblox.com/asset/?id=451217406"
  570. local m = Create("Model"){
  571. Parent = Character,
  572. Name = "WeaponModel",
  573. }
  574.  
  575. Humanoid.Animator.Parent = nil
  576. Character.Animate.Parent = nil
  577.  
  578. local newMotor = function(part0, part1, c0, c1)
  579. local w = Create('Motor'){
  580. Parent = part0,
  581. Part0 = part0,
  582. Part1 = part1,
  583. C0 = c0,
  584. C1 = c1,
  585. }
  586. return w
  587. end
  588.  
  589. function clerp(a, b, t)
  590. return a:lerp(b, t)
  591. end
  592.  
  593. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  594. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  595.  
  596. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  597. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  598. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  599. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  600. RootJoint.C1 = CFrame.new(0, 0, 0)
  601. RootJoint.C0 = CFrame.new(0, 0, 0)
  602. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  603. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  604.  
  605. local rarmc1 = RW.C1
  606. local larmc1 = LW.C1
  607. local rlegc1 = RH.C1
  608. local llegc1 = LH.C1
  609.  
  610. local resetc1 = false
  611.  
  612. function PlayAnimationFromTable(table, speed, bool)
  613. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  614. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  615. RW.C0 = clerp(RW.C0, table[3], speed)
  616. LW.C0 = clerp(LW.C0, table[4], speed)
  617. RH.C0 = clerp(RH.C0, table[5], speed)
  618. LH.C0 = clerp(LH.C0, table[6], speed)
  619. if bool == true then
  620. if resetc1 == false then
  621. resetc1 = true
  622. RootJoint.C1 = RootJoint.C1
  623. Torso.Neck.C1 = Torso.Neck.C1
  624. RW.C1 = rarmc1
  625. LW.C1 = larmc1
  626. RH.C1 = rlegc1
  627. LH.C1 = llegc1
  628. end
  629. end
  630. end
  631.  
  632. ArtificialHB = Create("BindableEvent", script){
  633. Parent = script,
  634. Name = "Heartbeat",
  635. }
  636.  
  637. script:WaitForChild("Heartbeat")
  638.  
  639. frame = 1 / 500
  640. tf = 0
  641. allowframeloss = false
  642. tossremainder = false
  643. lastframe = tick()
  644. script.Heartbeat:Fire()
  645.  
  646. game:GetService("RunService").Heartbeat:connect(function(s, p)
  647. tf = tf + s
  648. if tf >= frame then
  649. if allowframeloss then
  650. script.Heartbeat:Fire()
  651. lastframe = tick()
  652. else
  653. for i = 1, math.floor(tf / frame) do
  654. script.Heartbeat:Fire()
  655. end
  656. lastframe = tick()
  657. end
  658. if tossremainder then
  659. tf = 0
  660. else
  661. tf = tf - frame * math.floor(tf / frame)
  662. end
  663. end
  664. end)
  665.  
  666. function swait(num)
  667. if num == 0 or num == nil then
  668. ArtificialHB.Event:wait()
  669. else
  670. for i = 0, num do
  671. ArtificialHB.Event:wait()
  672. end
  673. end
  674. end
  675.  
  676. function RemoveOutlines(part)
  677. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  678. end
  679.  
  680. CFuncs = {
  681. Part = {
  682. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  683. local Part = Create("Part"){
  684. Parent = Parent,
  685. Reflectance = Reflectance,
  686. Transparency = Transparency,
  687. CanCollide = false,
  688. Locked = true,
  689. BrickColor = BrickColor.new(tostring(BColor)),
  690. Name = Name,
  691. Size = Size,
  692. Material = Material,
  693. }
  694. RemoveOutlines(Part)
  695. if Size == Vector3.new() then
  696. Part.Size = Vector3.new(0.2, 0.2, 0.2)
  697. else
  698. Part.Size = Size
  699. end
  700. return Part
  701. end;
  702. };
  703.  
  704. Mesh = {
  705. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  706. local Msh = Create(Mesh){
  707. Parent = Part,
  708. Offset = OffSet,
  709. Scale = Scale,
  710. }
  711. if Mesh == "SpecialMesh" then
  712. Msh.MeshType = MeshType
  713. Msh.MeshId = MeshId
  714. end
  715. return Msh
  716. end;
  717. };
  718.  
  719. Weld = {
  720. Create = function(Parent, Part0, Part1, C0, C1)
  721. local Weld = Create("Weld"){
  722. Parent = Parent,
  723. Part0 = Part0,
  724. Part1 = Part1,
  725. C0 = C0,
  726. C1 = C1,
  727. }
  728. return Weld
  729. end;
  730. };
  731.  
  732. Sound = {
  733. Create = function(id, par, vol, pit)
  734. local Sound = Create("Sound"){
  735. Volume = vol,
  736. Pitch = pit or 1,
  737. SoundId = "rbxassetid://" .. id,
  738. Parent = par or workspace,
  739. }
  740. Sound:play()
  741. return Sound
  742. end;
  743. };
  744.  
  745. Decal = {
  746. Create = function(Color, Texture, Transparency, Name, Parent)
  747. local Decal = Create("Decal"){
  748. Color3 = Color,
  749. Texture = "rbxassetid://" .. Texture,
  750. Transparency = Transparency,
  751. Name = Name,
  752. Parent = Parent,
  753. }
  754. return Decal
  755. end;
  756. };
  757.  
  758. BillboardGui = {
  759. Create = function(Parent, Image, Position, Size)
  760. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  761. BillPar.CFrame = CFrame.new(Position)
  762. local Bill = Create("BillboardGui"){
  763. Parent = BillPar,
  764. Adornee = BillPar,
  765. Size = UDim2.new(1, 0, 1, 0),
  766. SizeOffset = Vector2.new(Size, Size),
  767. }
  768. local d = Create("ImageLabel", Bill){
  769. Parent = Bill,
  770. BackgroundTransparency = 1,
  771. Size = UDim2.new(1, 0, 1, 0),
  772. Image = "rbxassetid://" .. Image,
  773. }
  774. return BillPar
  775. end
  776. };
  777.  
  778. ParticleEmitter = {
  779. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  780. local Particle = Create("ParticleEmitter"){
  781. Parent = Parent,
  782. Color = ColorSequence.new(Color1, Color2),
  783. LightEmission = LightEmission,
  784. Size = Size,
  785. Texture = Texture,
  786. Transparency = Transparency,
  787. ZOffset = ZOffset,
  788. Acceleration = Accel,
  789. Drag = Drag,
  790. LockedToPart = LockedToPart,
  791. VelocityInheritance = VelocityInheritance,
  792. EmissionDirection = EmissionDirection,
  793. Enabled = Enabled,
  794. Lifetime = LifeTime,
  795. Rate = Rate,
  796. Rotation = Rotation,
  797. RotSpeed = RotSpeed,
  798. Speed = Speed,
  799. VelocitySpread = VelocitySpread,
  800. }
  801. return Particle
  802. end;
  803. };
  804.  
  805. CreateTemplate = {
  806.  
  807. };
  808. }
  809.  
  810. function rayCast(Position, Direction, Range, Ignore)
  811. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  812. end
  813.  
  814. function FindNearestTorso(Position, Distance, SinglePlayer)
  815. if SinglePlayer then
  816. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  817. end
  818. local List = {}
  819. for i, v in pairs(workspace:GetChildren()) do
  820. if v:IsA("Model") then
  821. if v:findFirstChild("Torso") then
  822. if v ~= Character then
  823. if (v.Torso.Position - Position).magnitude <= Distance then
  824. table.insert(List, v)
  825. end
  826. end
  827. end
  828. end
  829. end
  830. return List
  831. end
  832.  
  833. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  834. if hit.Parent == nil then
  835. return
  836. end
  837. local h = hit.Parent:FindFirstChild("Part")
  838. for _, v in pairs(hit.Parent:children()) do
  839. if v:IsA("Part") then
  840. h = v
  841. end
  842. end
  843. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent.Name ~= "Base" and hit ~= nil then
  844. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  845. if hit.Parent.DebounceHit.Value == true then
  846. return
  847. end
  848. end
  849. local c = Create("ObjectValue"){
  850. Name = "creator",
  851. Value = game:service("Players").LocalPlayer,
  852. Parent = h,
  853. }
  854. game:GetService("Debris"):AddItem(c, .5)
  855. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  856. local Damage = math.random(minim, maxim)
  857. local blocked = false
  858. local block = hit.Parent:findFirstChild("Block")
  859. if block ~= nil then
  860. if block.className == "IntValue" then
  861. if block.Value > 0 then
  862. blocked = true
  863. block.Value = block.Value - 1
  864. print(block.Value)
  865. end
  866. end
  867. end
  868. if Type == "Knockdown" then
  869. local hum = hit.Parent.Humanoid
  870. hum.PlatformStand = true
  871. coroutine.resume(coroutine.create(function(HHumanoid)
  872. swait(1)
  873. HHumanoid.PlatformStand = false
  874. end), hum)
  875. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  876. local bodvol = Create("BodyVelocity"){
  877. velocity = angle * knockback,
  878. P = 5000,
  879. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  880. Parent = hit,
  881. }
  882. local rl = Create("BodyAngularVelocity"){
  883. P = 3000,
  884. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  885. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  886. Parent = hit,
  887. }
  888. game:GetService("Debris"):AddItem(bodvol, .5)
  889. game:GetService("Debris"):AddItem(rl, .5)
  890. elseif Type == "Normal" then
  891. local vp = Create("BodyVelocity"){
  892. P = 500,
  893. maxForce = Vector3.new(math.huge, 0, math.huge),
  894. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  895. }
  896. if knockback > 0 then
  897. vp.Parent = hit
  898. hit.Parent = workspace
  899. hit.Anchored = false
  900. hit.CanCollide = false
  901. hit:BreakJoints()
  902. end
  903. game:GetService("Debris"):AddItem(vp, .5)
  904. elseif Type == "Up" then
  905. local bodyVelocity = Create("BodyVelocity"){
  906. velocity = Vector3.new(0, 20, 0),
  907. P = 5000,
  908. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  909. Parent = hit,
  910. }
  911. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  912. elseif Type == "DarkUp" then
  913. coroutine.resume(coroutine.create(function()
  914. for i = 0, 1, 0.1 do
  915. swait()
  916. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  917. end
  918. end))
  919. local bodyVelocity = Create("BodyVelocity"){
  920. velocity = Vector3.new(0, 20, 0),
  921. P = 5000,
  922. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  923. Parent = hit,
  924. }
  925. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  926. elseif Type == "Snare" then
  927. local bp = Create("BodyPosition"){
  928. P = 2000,
  929. D = 100,
  930. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  931. position = hit.Parent.Torso.Position,
  932. Parent = hit.Parent.Torso,
  933. }
  934. game:GetService("Debris"):AddItem(bp, 1)
  935. elseif Type == "Freeze" then
  936. local BodPos = Create("BodyPosition"){
  937. P = 50000,
  938. D = 1000,
  939. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  940. position = hit.Parent.Torso.Position,
  941. Parent = hit.Parent.Torso,
  942. }
  943. local BodGy = Create("BodyGyro") {
  944. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  945. P = 20e+003,
  946. Parent = hit.Parent.Torso,
  947. cframe = hit.Parent.Torso.CFrame,
  948. }
  949. hit.Parent.Torso.Anchored = true
  950. coroutine.resume(coroutine.create(function(Part)
  951. swait(1.5)
  952. Part.Anchored = false
  953. end), hit.Parent.Torso)
  954. game:GetService("Debris"):AddItem(BodPos, 3)
  955. game:GetService("Debris"):AddItem(BodGy, 3)
  956. end
  957. local debounce = Create("BoolValue"){
  958. Name = "DebounceHit",
  959. Parent = hit.Parent,
  960. Value = true,
  961. }
  962. game:GetService("Debris"):AddItem(debounce, Delay)
  963. c = Create("ObjectValue"){
  964. Name = "creator",
  965. Value = Player,
  966. Parent = h,
  967. }
  968. game:GetService("Debris"):AddItem(c, .5)
  969. end
  970. end
  971.  
  972. function ShowDamage(Pos, Text, Time, Color)
  973. local Rate = (1 / 30)
  974. local Pos = (Pos or Vector3.new(0, 0, 0))
  975. local Text = (Text or "")
  976. local Time = (Time or 2)
  977. local Color = (Color or Color3.new(1, 0, 1))
  978. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  979. EffectPart.Anchored = true
  980. local BillboardGui = Create("BillboardGui"){
  981. Size = UDim2.new(3, 0, 3, 0),
  982. Adornee = EffectPart,
  983. Parent = EffectPart,
  984. }
  985. local TextLabel = Create("TextLabel"){
  986. BackgroundTransparency = 1,
  987. Size = UDim2.new(1, 0, 1, 0),
  988. Text = Text,
  989. Font = "Garamond",
  990. TextColor3 = Torso.Color,
  991. TextScaled = true,
  992. Parent = BillboardGui,
  993. }
  994. game.Debris:AddItem(EffectPart, (Time))
  995. EffectPart.Parent = game:GetService("Workspace")
  996. delay(0, function()
  997. local Frames = (Time / Rate)
  998. for Frame = 1, Frames do
  999. wait(Rate)
  1000. local Percent = (Frame / Frames)
  1001. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1002. TextLabel.TextTransparency = Percent
  1003. end
  1004. if EffectPart and EffectPart.Parent then
  1005. EffectPart:Destroy()
  1006. end
  1007. end)
  1008. end
  1009.  
  1010.  
  1011.  
  1012.  
  1013. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  1014. for _, c in pairs(workspace:children()) do
  1015. local hum = c:findFirstChild("Humanoid")
  1016. if hum ~= nil then
  1017. local head = hit
  1018. if head ~= nil then
  1019. local targ = head.Position - Part.Position
  1020. local mag = targ.magnitude
  1021. if mag <= Magnitude and c.Name ~= Player.Name then
  1022. CFuncs.Sound.Create("324867021", head, 1, 1)
  1023. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, HitSound, HitPitch)
  1024. end
  1025. end
  1026. end
  1027. end
  1028. end
  1029.  
  1030.  
  1031. Handle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Bright green","Handle",Vector3.new(1, 1.20000005, 1))
  1032. HandleWeld=CFuncs.Weld.Create(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.435136795, -0.716373444, -0.168147802, -0.184279382, -0.967371345, 0.173878923, -0.0978992507, -0.157963246, -0.982580066, 0.977986097, -0.198091835, -0.0655955523))
  1033. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  1034. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-8.36849213e-05, 4.00039482, -5.86509705e-05, 3.83518636e-06, 8.29994678e-06, -1, 4.9972441e-06, -1.00000012, -8.29994678e-06, -1.00000012, -4.9949158e-06, -3.83518636e-06))
  1035. CFuncs.Mesh.Create("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.400000006, 1, 0.0500000007))
  1036. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  1037. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.67979431e-05, -4.00035858, 0.499849081, -0.999994338, 5.56639861e-06, 1.65775418e-06, 5.24974894e-06, 0.999995232, -5.0291419e-06, -3.25776637e-06, -5.08874655e-06, -0.999990761))
  1038. CFuncs.Mesh.Create("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.0500000007, 1, 0.600000024))
  1039. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  1040. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.17232513e-05, 3.20031929, -3.71932983e-05, 3.83518636e-06, 8.29994678e-06, -1, 4.9972441e-06, -1.00000012, -8.29994678e-06, -1.00000012, -4.9949158e-06, -3.83518636e-06))
  1041. CFuncs.Mesh.Create("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.60000002, 0.400000006, 0.0500000007))
  1042. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  1043. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.48905945e-05, -4.00033379, 0.499926567, 1, -5.21628408e-06, -3.65823939e-06, 5.21626544e-06, 1, -5.09625352e-06, 3.658266e-06, 5.09623442e-06, 1))
  1044. CFuncs.Mesh.Create("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.0500000007, 1, 0.600000024))
  1045. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  1046. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.74724579e-05, 2.90030861, -2.95639038e-05, 3.83518636e-06, 8.29994678e-06, -1, 4.9972441e-06, -1.00000012, -8.29994678e-06, -1.00000012, -4.9949158e-06, -3.83518636e-06))
  1047. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.400000006, 0.400000006, 0.400000006))
  1048. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  1049. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0976924896, -1.42856026, 1.57356262e-05, 3.90782952e-06, 0.275675088, -0.961250901, 5.61308116e-06, -0.96125102, -0.275675088, -1.00000012, -4.33286186e-06, -5.2973628e-06))
  1050. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 0.200000003))
  1051. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  1052. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.93119049e-05, -0.700065613, 1.33514404e-05, 3.83518636e-06, 8.29994678e-06, -1, 4.9972441e-06, -1.00000012, -8.29994678e-06, -1.00000012, -4.9949158e-06, -3.83518636e-06))
  1053. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.5, 0.5))
  1054. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  1055. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0726666451, 1.43006897, 1.62124634e-05, -5.01610339e-06, 0.258840203, 0.96592015, -3.55858356e-06, 0.96592021, -0.258840173, -1.00000012, -4.73321415e-06, -3.92459333e-06))
  1056. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 0.200000003))
  1057. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  1058. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.14848328e-05, 4.36306e-05, 2.00019836, 1, -5.38327731e-06, -2.46055424e-06, -2.4586916e-06, 8.36700201e-06, -1, 5.40760811e-06, 1, 8.37445259e-06))
  1059. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 0.200000003))
  1060. Shaft=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Brown","Shaft",Vector3.new(1, 3.60000014, 1))
  1061. ShaftWeld=CFuncs.Weld.Create(m,Handle,Shaft,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.21729279e-05, 1.20008087, -2.24113464e-05, 3.14228237e-06, 4.38094139e-06, -1.00000012, 2.94635538e-06, -1, -4.38839197e-06, -1, -2.95066275e-06, -3.14228237e-06))
  1062. CFuncs.Mesh.Create("CylinderMesh",Shaft,"","",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 1, 0.300000012))
  1063. Hitbox=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","Hitbox",Vector3.new(7, 3, 3))
  1064. HitboxWeld=CFuncs.Weld.Create(m,Handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19377899, -0.184207916, -0.14117223, -0.00053447485, 0.99471724, -0.102652542, -0.999858558, 0.00119461119, 0.0167820305, 0.0168160032, 0.102646977, 0.994575679))
  1065.  
  1066.  
  1067. sref = CFuncs.Part.Create(Character, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new())
  1068. sref.Anchored = true
  1069.  
  1070. EffectModel = Create("Model"){
  1071. Parent = Character,
  1072. Name = "Effects",
  1073. }
  1074.  
  1075. Effects = {
  1076. Block = {
  1077. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1078. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1079. prt.Anchored = true
  1080. prt.CFrame = cframe
  1081. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1082. game:GetService("Debris"):AddItem(prt, 10)
  1083. if Type == 1 or Type == nil then
  1084. table.insert(Effects, {
  1085. prt,
  1086. "Block1",
  1087. delay,
  1088. x3,
  1089. y3,
  1090. z3,
  1091. msh
  1092. })
  1093. elseif Type == 2 then
  1094. table.insert(Effects, {
  1095. prt,
  1096. "Block2",
  1097. delay,
  1098. x3,
  1099. y3,
  1100. z3,
  1101. msh
  1102. })
  1103. end
  1104. end;
  1105. };
  1106.  
  1107. Cylinder = {
  1108. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1109. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  1110. prt.Anchored = true
  1111. prt.CFrame = cframe
  1112. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1113. game:GetService("Debris"):AddItem(prt, 2)
  1114. table.insert(Effects, {
  1115. prt,
  1116. "Cylinder",
  1117. delay,
  1118. x3,
  1119. y3,
  1120. z3,
  1121. msh
  1122. })
  1123. end;
  1124. };
  1125.  
  1126. Head = {
  1127. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1128. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1129. prt.Anchored = true
  1130. prt.CFrame = cframe
  1131. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1132. game:GetService("Debris"):AddItem(prt, 10)
  1133. table.insert(Effects, {
  1134. prt,
  1135. "Cylinder",
  1136. delay,
  1137. x3,
  1138. y3,
  1139. z3,
  1140. msh
  1141. })
  1142. end;
  1143. };
  1144.  
  1145. Sphere = {
  1146. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1147. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1148. prt.Anchored = true
  1149. prt.CFrame = cframe
  1150. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1151. game:GetService("Debris"):AddItem(prt, 10)
  1152. table.insert(Effects, {
  1153. prt,
  1154. "Cylinder",
  1155. delay,
  1156. x3,
  1157. y3,
  1158. z3,
  1159. msh
  1160. })
  1161. end;
  1162. };
  1163.  
  1164. Elect = {
  1165. Create = function(cff, x, y, z)
  1166. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("New Yeller"), "Part", Vector3.new(1, 1, 1))
  1167. prt.Anchored = true
  1168. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  1169. prt.CFrame = CFrame.new(prt.Position)
  1170. game:GetService("Debris"):AddItem(prt, 2)
  1171. local xval = math.random() / 2
  1172. local yval = math.random() / 2
  1173. local zval = math.random() / 2
  1174. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  1175. table.insert(Effects, {
  1176. prt,
  1177. "Elec",
  1178. 0.1,
  1179. x,
  1180. y,
  1181. z,
  1182. xval,
  1183. yval,
  1184. zval
  1185. })
  1186. end;
  1187.  
  1188. };
  1189.  
  1190. Ring = {
  1191. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1192. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1193. prt.Anchored = true
  1194. prt.CFrame = cframe
  1195. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1196. game:GetService("Debris"):AddItem(prt, 10)
  1197. table.insert(Effects, {
  1198. prt,
  1199. "Cylinder",
  1200. delay,
  1201. x3,
  1202. y3,
  1203. z3,
  1204. msh
  1205. })
  1206. end;
  1207. };
  1208.  
  1209.  
  1210. Wave = {
  1211. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1212. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1213. prt.Anchored = true
  1214. prt.CFrame = cframe
  1215. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1216. game:GetService("Debris"):AddItem(prt, 10)
  1217. table.insert(Effects, {
  1218. prt,
  1219. "Cylinder",
  1220. delay,
  1221. x3,
  1222. y3,
  1223. z3,
  1224. msh
  1225. })
  1226. end;
  1227. };
  1228.  
  1229. Break = {
  1230. Create = function(brickcolor, cframe, x1, y1, z1)
  1231. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1232. prt.Anchored = true
  1233. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1234. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1235. local num = math.random(10, 50) / 1000
  1236. game:GetService("Debris"):AddItem(prt, 10)
  1237. table.insert(Effects, {
  1238. prt,
  1239. "Shatter",
  1240. num,
  1241. prt.CFrame,
  1242. math.random() - math.random(),
  1243. 0,
  1244. math.random(50, 100) / 100
  1245. })
  1246. end;
  1247. };
  1248.  
  1249. Fire = {
  1250. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  1251. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1252. prt.Anchored = true
  1253. prt.CFrame = cframe
  1254. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1255. game:GetService("Debris"):AddItem(prt, 10)
  1256. table.insert(Effects, {
  1257. prt,
  1258. "Fire",
  1259. delay,
  1260. 1,
  1261. 1,
  1262. 1,
  1263. msh
  1264. })
  1265. end;
  1266. };
  1267.  
  1268. FireWave = {
  1269. Create = function(brickcolor, cframe, x1, y1, z1)
  1270. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  1271. prt.Anchored = true
  1272. prt.CFrame = cframe
  1273. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1274. local d = Create("Decal"){
  1275. Parent = prt,
  1276. Texture = "rbxassetid://26356434",
  1277. Face = "Top",
  1278. }
  1279. local d = Create("Decal"){
  1280. Parent = prt,
  1281. Texture = "rbxassetid://26356434",
  1282. Face = "Bottom",
  1283. }
  1284. game:GetService("Debris"):AddItem(prt, 10)
  1285. table.insert(Effects, {
  1286. prt,
  1287. "FireWave",
  1288. 1,
  1289. 30,
  1290. math.random(400, 600) / 100,
  1291. msh
  1292. })
  1293. end;
  1294. };
  1295.  
  1296. Lightning = {
  1297. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  1298. local magz = (p0 - p1).magnitude
  1299. local curpos = p0
  1300. local trz = {
  1301. -ofs,
  1302. ofs
  1303. }
  1304. for i = 1, tym do
  1305. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  1306. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  1307. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  1308. li.Material = "Neon"
  1309. if tym == i then
  1310. local magz2 = (curpos - p1).magnitude
  1311. li.Size = Vector3.new(th, th, magz2)
  1312. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  1313. table.insert(Effects, {
  1314. li,
  1315. "Disappear",
  1316. last
  1317. })
  1318. else
  1319. do
  1320. do
  1321. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  1322. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  1323. game.Debris:AddItem(li, 10)
  1324. table.insert(Effects, {
  1325. li,
  1326. "Disappear",
  1327. last
  1328. })
  1329. end
  1330. end
  1331. end
  1332. end
  1333. end
  1334. };
  1335.  
  1336. EffectTemplate = {
  1337.  
  1338. };
  1339. }
  1340.  
  1341.  
  1342. function ears()
  1343. local quote = math.random(1, 10)
  1344. if quote == 1 then
  1345. ow = CFuncs.Sound.Create("276916733", Character, .5, 1)
  1346. Instance.new("DistortionSoundEffect", ow).Level = 0
  1347. elseif quote == 2 then
  1348. ow = CFuncs.Sound.Create("222045669", Character, .5, 1)
  1349. Instance.new("DistortionSoundEffect", ow).Level = 0
  1350. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "I played college ball yaknow", 1.5, BrickColor.new("Grey").Color)
  1351. elseif quote == 3 then
  1352. ow = CFuncs.Sound.Create("657527128", Character, .5, 1)
  1353. Instance.new("DistortionSoundEffect", ow).Level = 0
  1354. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "Oof", 1.5, BrickColor.new("Grey").Color)
  1355. elseif quote == 4 then
  1356. CFuncs.Sound.Create("230292394", Character, .5, 1)
  1357. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "AAAAAH", 1.5, BrickColor.new("Grey").Color)
  1358. elseif quote == 5 then
  1359. CFuncs.Sound.Create("230255621", Character, .5, 1)
  1360. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "SO", 1.5, BrickColor.new("Grey").Color)
  1361. wait(.2)
  1362. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "DAH", 1.5, BrickColor.new("Grey").Color)
  1363. elseif quote == 6 then
  1364. CFuncs.Sound.Create("230255698", Character, .5, 1)
  1365. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "Y E S", 1.5, BrickColor.new("Grey").Color)
  1366. elseif quote == 7 then
  1367. CFuncs.Sound.Create("230255738", Character, .5, 1)
  1368. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "OH", 1.5, BrickColor.new("Grey").Color)
  1369. elseif quote == 8 then
  1370. CFuncs.Sound.Create("230292118", Character, .5, 1)
  1371. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "AAAAAAAA", 1.5, BrickColor.new("Grey").Color)
  1372. elseif quote == 9 then
  1373. CFuncs.Sound.Create("230292073", Character, .5, 1)
  1374. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "UWEEEEEEEEEEH", 1.5, BrickColor.new("Grey").Color)
  1375. elseif quote == 10 then
  1376. ow = CFuncs.Sound.Create("225279648", Character, .5, 1)
  1377. Instance.new("DistortionSoundEffect", ow).Level = 0
  1378. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "help", 1.5, BrickColor.new("Grey").Color)
  1379. end
  1380. end
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386. function joj()
  1387. while oof == true do
  1388. attack = true
  1389. local con = Hitbox.Touched:connect(function(hit)
  1390. Damage(Hitbox, hit, 0, 0, math.random(300,300), "Normal", RootPart, 0.2, "148862502", 1)end)
  1391. CFuncs.Sound.Create("233856140", Hitbox, .5, 1)
  1392. for i = 0, 1, 0.1 do
  1393. swait()
  1394. PlayAnimationFromTable({
  1395. CFrame.new(0.318533748, 1.11758709e-08, -0.186876655, 0.571150839, -0.107324705, 0.813798547, -0.321393877, 0.883022606, 0.342018932, -0.755309701, -0.456894249, 0.469845593) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1396. CFrame.new(-0.136643112, 1.46224117, -0.102674514, 0.571150839, -0.321393877, -0.755309701, -0.107324705, 0.883022606, -0.456894249, 0.813798547, 0.342018932, 0.469845593) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1397. CFrame.new(1.34420753, 1.19733691, -0.575926542, -0.0377464592, -0.0365618169, 0.998618245, -0.0365605801, -0.998610795, -0.0379435122, 0.998618245, -0.0379423201, 0.0363572836) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1398. CFrame.new(-1.54852927, 1.0183481, -0.403962731, 0.992945313, -0.0193823874, 0.11697869, 0.0193829238, -0.946746707, -0.321395338, 0.116978586, 0.321395338, -0.93969202) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1399. CFrame.new(1.30056286, -1.52663183, -0.684036016, 0.872286201, -0.321393877, -0.368541837, 0.13550131, 0.883022606, -0.449344397, 0.469847292, 0.342018932, 0.813797712) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1400. CFrame.new(-0.0819230229, -1.98630714, -0.796365142, 0.843013644, -0.321393877, 0.431316614, 0.431316495, 0.883022606, -0.185032547, -0.321394026, 0.342018932, 0.883022547) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1401. }, .3, false)
  1402. end
  1403. for i = 0, 1, 0.1 do
  1404. swait()
  1405. PlayAnimationFromTable({
  1406. CFrame.new(-0.70452857, 1.34110451e-07, -0.85472101, 0.0479760207, 0.375900865, -0.925417125, -0.321394145, 0.883022726, 0.342018545, 0.945729494, 0.281014919, 0.163176239) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1407. CFrame.new(-0.332258016, 1.42813265, -0.198432297, 0.0479760207, -0.321394145, 0.945729494, 0.375900865, 0.883022726, 0.281014919, -0.925417125, 0.342018545, 0.163176239) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1408. CFrame.new(1.3427434, 0.740131199, -1.01291919, 0.0505371541, -0.0144109726, 0.998618364, 0.883102953, 0.467642725, -0.0379427671, -0.466449738, 0.883800209, 0.0363596678) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1409. CFrame.new(-1.46270001, 0.38253215, -1.0271579, 0.992945492, -0.11697793, -0.01938124, 0.0193838775, 0.321395963, -0.946746528, 0.116977483, 0.939691901, 0.321396172) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1410. CFrame.new(1.30056417, -1.52663159, -0.684035659, 0.872286379, -0.321394145, -0.368541002, 0.1355021, 0.883022726, -0.449344009, 0.469846606, 0.342018545, 0.813798249) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1411. CFrame.new(-0.0819211155, -1.98630702, -0.796365023, 0.84301424, -0.321394145, 0.431315303, 0.431316257, 0.883022726, -0.18503274, -0.321392775, 0.342018545, 0.883023262) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1412. }, .3, false)
  1413. end
  1414. con:Disconnect()
  1415. attack = false
  1416. end
  1417. end
  1418.  
  1419. Mouse.Button1Down:connect(function()
  1420. if attack == false and oof == false then
  1421. oof = true
  1422. joj()
  1423. end
  1424. end)
  1425.  
  1426.  
  1427.  
  1428. Mouse.Button1Up:connect(function()
  1429. if attack == true and oof == true then
  1430. oof = false
  1431. end
  1432. end)
  1433.  
  1434.  
  1435.  
  1436.  
  1437. Mouse.KeyDown:connect(function(k)
  1438. k = k:lower()
  1439. if k == 't' then
  1440. ears()
  1441. end
  1442. end)
  1443.  
  1444. while true do
  1445. swait()
  1446. sref.CFrame = RightArm.CFrame * CFrame.new(0, -1.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0)
  1447. for i, v in pairs(Character:GetChildren()) do
  1448. if v:IsA("Part") then
  1449. v.Material = "SmoothPlastic"
  1450. elseif v:IsA("Accessory") then
  1451. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1452. end
  1453. end
  1454. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1455. velocity = RootPart.Velocity.y
  1456. sine = sine + change
  1457. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1458. if RootPart.Velocity.y > 1 and hit == nil then
  1459. Anim = "Jump"
  1460. if attack == false then
  1461. PlayAnimationFromTable({
  1462. CFrame.new(0, 0.0486936681, -0.0429394133, 1, 0, -0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1463. CFrame.new(0, 1.48698187, -0.0992434025, 1, 0, 0, 0, 0.98480767, 0.173648626, -0, -0.173648626, 0.98480767) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1464. CFrame.new(1.66118193, 0.583681226, 0.430878729, 0.556951106, -0.772693694, -0.30454877, 0.830109596, 0.506009281, 0.234249175, -0.026898358, -0.383274168, 0.923242927) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1465. CFrame.new(-1.65963519, 0.695907593, 0.339572817, 0.482961893, 0.810776234, 0.330741376, -0.866026103, 0.498096228, 0.0435779653, -0.129409045, -0.307477146, 0.94271481) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1466. CFrame.new(0.499997795, -1.71809137, -0.102601528, 0.984807849, 3.55863392e-007, -0.173647791, 0.0593907312, 0.939692557, 0.336824298, 0.163175657, -0.342020214, 0.925416589) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1467. CFrame.new(-0.599241376, -1.29528463, -0.396836221, 0.992403984, 0.086823605, 0.0871558413, -0.118890785, 0.858931601, 0.498097867, -0.0316142589, -0.504676282, 0.862729669) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1468. }, .3, false)
  1469. end
  1470. elseif RootPart.Velocity.y < -1 and hit == nil then
  1471. Anim = "Fall"
  1472. if attack == false then
  1473. PlayAnimationFromTable({
  1474. CFrame.new(-0, -0.0520263538, -0.0354017057, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1475. CFrame.new(0, 1.51533091, -0.10684365, 1, 0, 0, 0, 0.965925872, 0.258819342, 0, -0.258819342, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1476. CFrame.new(1.67554009, 0.885679007, 0.385592818, 0.374123871, -0.696466088, -0.61234498, 0.914592147, 0.386364758, 0.119345918, 0.153468132, -0.604696095, 0.781530797) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1477. CFrame.new(-1.67474985, 0.999329269, 0.296636045, 0.250219911, 0.753912985, 0.607457995, -0.927206695, 0.367205799, -0.0738086402, -0.278707415, -0.544770718, 0.79091537) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1478. CFrame.new(0.504494727, -1.81757987, -0.0935191363, 0.984807849, -0.0449431092, -0.167730823, 0.059390761, 0.99484998, 0.0821366012, 0.163175508, -0.0908504426, 0.982405365) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1479. CFrame.new(-0.623603821, -1.49203336, -0.421764404, 0.992403865, 0.122534379, 0.0109562073, -0.118891656, 0.978150725, -0.17054674, -0.0316146575, 0.167948633, 0.985288799) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1480. }, .3, false)
  1481. end
  1482. elseif Torsovelocity < 1 and hit ~= nil then
  1483. Anim = "Idle"
  1484. if attack == false then
  1485. change = 1
  1486. PlayAnimationFromTable({
  1487. CFrame.new(1.90734863e-06, 0, 0, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1488. CFrame.new(-1.90734863e-06, 1.49520886, -0.307131112, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1489. CFrame.new(1.37194049, -0.0753216743, -0.606283188, 0.229498088, 0.301554978, 0.925416291, 0.481514871, 0.791113436, -0.377204269, -0.845857084, 0.532169282, 0.0363558233) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1490. CFrame.new(-1.5, 0.0121572316, -0.267316073, 1, 0, -0, 0, 0.642788708, -0.766043544, 0, 0.766043544, 0.642788708) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1491. CFrame.new(0.699996471, -1.87938261, -0.684038877, 0.866025388, 0, -0.500000238, -0.171010032, 0.939692736, -0.296197921, 0.469846606, 0.342019886, 0.813797772) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1492. CFrame.new(-0.756342053, -1.83849907, -0.79636544, 0.939692736, 0, 0.342019886, 0.116977625, 0.939692736, -0.321393639, -0.321393639, 0.342019886, 0.883022428) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1493. }, .3, false)
  1494. end
  1495. elseif Torsovelocity > 2 and hit ~= nil then
  1496. Anim = "Walk"
  1497. if attack == false then
  1498. change = 2
  1499. PlayAnimationFromTable({
  1500. CFrame.new(1.90734863e-06, 0, 0, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1501. CFrame.new(-1.90734863e-06, 1.49520886, -0.307131112, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1502. CFrame.new(1.37194049, -0.0753216743, -0.606283188, 0.229498088, 0.301554978, 0.925416291, 0.481514871, 0.791113436, -0.377204269, -0.845857084, 0.532169282, 0.0363558233) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1503. CFrame.new(-1.5, 0.0121572316, -0.267316073, 1, 0, -0, 0, 0.642788708, -0.766043544, 0, 0.766043544, 0.642788708) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1504. CFrame.new(.5, -1.64 - 0.5 * math.cos(sine / 8) / 2, 0 + 2 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(-70 * math.sin(sine / 8)), math.rad(-3), math.rad(0)),
  1505. CFrame.new(-.5, -1.64 + 0.5 * math.cos(sine / 8) / 2, 0 - 2 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(70 * math.sin(sine / 8)), math.rad(3), math.rad(0)),
  1506. }, .3, false)
  1507. end
  1508. end
  1509. if 0 < #Effects then
  1510. for e = 1, #Effects do
  1511. if Effects[e] ~= nil then
  1512. local Thing = Effects[e]
  1513. if Thing ~= nil then
  1514. local Part = Thing[1]
  1515. local Mode = Thing[2]
  1516. local Delay = Thing[3]
  1517. local IncX = Thing[4]
  1518. local IncY = Thing[5]
  1519. local IncZ = Thing[6]
  1520. if Thing[2] == "Shoot" then
  1521. local Look = Thing[1]
  1522. local move = 5
  1523. local hit, pos = rayCast(Thing[4], Thing[1], move, Character)
  1524. if Thing[10] ~= nil then
  1525. da = pos
  1526. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1527. cfa = CFrame.new(Thing[4], pos)
  1528. tehCF = cfa:lerp(cf2, 0.2)
  1529. Thing[1] = tehCF.lookVector
  1530. end
  1531. local mag = (Thing[4] - pos).magnitude
  1532. Effects.Elect.Create(CFrame.new((Thing[4] + pos) / 2, pos), 4, 4, 4)
  1533. Effects.Sphere.Create(BrickColor.new("New Yeller"), CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, 3, 3, 5, 5, 5, 0.15)
  1534. Thing[4] = Thing[4] + Look * move
  1535. Thing[3] = Thing[3] - 1
  1536. if 2 < Thing[5] then
  1537. Thing[5] = Thing[5] - 0.3
  1538. Thing[6] = Thing[6] - 0.3
  1539. end
  1540. if hit ~= nil then
  1541. Thing[3] = 0
  1542. MagnitudeDamage(hit, 5, 10, 15, 0, "Normal", "161006093", 0.8)
  1543. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1544. ref.Anchored = true
  1545. ref.CFrame = CFrame.new(pos)
  1546. Effects.Block.Create(BrickColor.new("New Yeller"), CFrame.new(pos), 1, 1, 1, 2, 2, 2, .05)
  1547. Effects.Sphere.Create(BrickColor.new("New Yeller"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.03)
  1548. game:GetService("Debris"):AddItem(ref, 1)
  1549. end
  1550. if Thing[3] <= 0 then
  1551. table.remove(Effects, e)
  1552. end
  1553. end
  1554. do
  1555. do
  1556. if Thing[2] == "FireWave" then
  1557. if Thing[3] <= Thing[4] then
  1558. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1559. Thing[3] = Thing[3] + 1
  1560. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1561. else
  1562. Part.Parent = nil
  1563. table.remove(Effects, e)
  1564. end
  1565. end
  1566. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1567. if Thing[1].Transparency <= 1 then
  1568. if Thing[2] == "Block1" then
  1569. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1570. Mesh = Thing[7]
  1571. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1572. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1573. else
  1574. if Thing[2] == "Block2" then
  1575. Thing[1].CFrame = Thing[1].CFrame
  1576. Mesh = Thing[7]
  1577. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1578. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1579. else
  1580. if Thing[2] == "Fire" then
  1581. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1582. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1583. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1584. else
  1585. if Thing[2] == "Cylinder" then
  1586. Mesh = Thing[7]
  1587. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1588. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1589. else
  1590. if Thing[2] == "Blood" then
  1591. Mesh = Thing[7]
  1592. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1593. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1594. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1595. else
  1596. if Thing[2] == "Elec" then
  1597. Thing[1].Size = Thing[1].Size + Vector3.new(Thing[7], Thing[8], Thing[9])
  1598. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1599. else
  1600. if Thing[2] == "Disappear" then
  1601. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1602. end
  1603. end
  1604. end
  1605. end
  1606. end
  1607. end
  1608. end
  1609. else
  1610. Part.Parent = nil
  1611. table.remove(Effects, e)
  1612. end
  1613. end
  1614. end
  1615. end
  1616. end
  1617. end
  1618. end
  1619. end
  1620. end
Add Comment
Please, Sign In to add comment