Advertisement
Dark_EccentricYT

Untitled

Jul 8th, 2018 (edited)
6,455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 80.66 KB | None | 0 0
  1. --[[screw bumper cars now we have...
  2.  
  3.  
  4.  
  5.  
  6. A REAL FUCKING CAR HOLY SHIT!!!!1!1]]--
  7.  
  8. maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name
  9. secondcolor = "Really black"
  10.  
  11. wait(1 / 60)
  12. Effects = { }
  13. local Player = game.Players.localPlayer
  14. local Character = Player.Character
  15. local Humanoid = Character:FindFirstChildOfClass("Humanoid")
  16. local mouse = Player:GetMouse()
  17. local LeftArm = Character["Left Arm"]
  18. local RightArm = Character["Right Arm"]
  19. local LeftLeg = Character["Left Leg"]
  20. local RightLeg = Character["Right Leg"]
  21. local Head = Character.Head
  22. local Torso = Character.Torso
  23. local cam = game.Workspace.CurrentCamera
  24. local RootPart = Character.HumanoidRootPart
  25. local RootJoint = RootPart.RootJoint
  26. local equipped = true
  27. local attack = false
  28. local Anim = 'Idle'
  29. local idle = 0
  30. local attacktype = 1
  31. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  32. local velocity = RootPart.Velocity.y
  33. local sine = 0
  34. local change = 1
  35. local grabbed = false
  36. local cn = CFrame.new
  37. local mr = math.rad
  38. local angles = CFrame.Angles
  39. local ud = UDim2.new
  40. local c3 = Color3.new
  41. local dir = {w = 0, s = 0, a = 0, d = 0}
  42. Climbanim = false
  43. Runkey=false
  44. firemode = false
  45. inair = false
  46. blocking=false
  47. humHsave=0
  48. humDsave=0
  49. extralock=true
  50. lasthit = nil
  51. IKM = false
  52. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  53. ff.Visible = false
  54. HMDX = Humanoid.MoveDirection.X/3
  55. HMDZ = Humanoid.MoveDirection.Z/3
  56. local ColorsArray = {ColorSequenceKeypoint.new(0, Color3.new(0,1,1)),
  57. ColorSequenceKeypoint.new(0.16, Color3.new(0,1,1)),
  58. ColorSequenceKeypoint.new(0.32, Color3.new(0,1,1)),
  59. ColorSequenceKeypoint.new(0.48, Color3.new(0.5,0,1)),
  60. ColorSequenceKeypoint.new(0.64, Color3.new(0.5,0,1)),
  61. ColorSequenceKeypoint.new(0.80, Color3.new(0.5,0,1)),
  62. ColorSequenceKeypoint.new(0.96, Color3.new(0.5,0,1)),
  63. ColorSequenceKeypoint.new(1, Color3.new(0.5,0,1))}
  64. local s = Instance.new("Sound",Character)
  65. s.Name = "BumperCarSound"
  66. s.SoundId = "http://www.roblox.com/asset/?id=532147820"
  67. s.Pitch = .7
  68. s.Volume = 5
  69. s.Looped = true
  70. s.archivable = false
  71. s.Parent = Character
  72. s:play()
  73. local airtime = Instance.new("Sound",Character)
  74. airtime.Name = "airtime"
  75. airtime.SoundId = "http://www.roblox.com/asset/?id=892076107"
  76. airtime.Volume = 5
  77. airtime.archivable = false
  78. airtime.Parent = Character
  79. sflon = true
  80. bg2 = Instance.new("BodyGyro", game.Players.LocalPlayer.Character.HumanoidRootPart)
  81. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  82. if attack == true then
  83. bg2.D = 0
  84. bg2.P = 0
  85. bg2.maxTorque = Vector3.new(0,0,0)
  86. end
  87. if attack == false then
  88. bg2.D = 100
  89. bg2.P = 9999
  90. bg2.maxTorque = Vector3.new(1e+005,1e+000,1e+005)*math.huge
  91. bg2.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position ,Vector3.new(game.Workspace.CurrentCamera.CoordinateFrame.p.x,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.y,game.Workspace.CurrentCamera.CoordinateFrame.p.z)) * CFrame.Angles(0,math.rad(180),0)
  92.  
  93. end
  94. end)--]]
  95.  
  96. New = function(Object, Parent, Name, Data)
  97. local Object = Instance.new(Object)
  98. for Index, Value in pairs(Data or {}) do
  99. Object[Index] = Value
  100. end
  101. Object.Parent = Parent
  102. Object.Name = Name
  103. return Object
  104. end
  105.  
  106. BumperCar = New("Model",Workspace,"BumperCar",{})
  107. SwHandle = New("Part",BumperCar,"Handle",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 7.55000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
  108. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(1.359, 0.416, 13.38),CFrame = CFrame.new(-5.16500664, 7.55000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.7,0.7,0.7),})
  109. wheel = New("Part",BumperCar,"wheels",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.7, 6.5),CFrame = CFrame.new(-5.16500664, 8.15000019, -36.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
  110. wheel2 = New("Part",BumperCar,"idk",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.7, 6.5),CFrame = CFrame.new(-5.16500664, 6.98000019, -36.9631157, 1, 0, 0, 0, 1, 0, 90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
  111. body = New("Part",BumperCar,"car",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.75000019, -36.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,1),})
  112. glass = New("Part",BumperCar,"glass",{BrickColor = BrickColor.new("Pastel light blue"),Material = Enum.Material.Glass,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.18500664, 10.45000019, -35.7631157, 0.001, 0, 0, 0, 1, 0, 90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Transparency = 0.5,})
  113. inside = New("Part",BumperCar,"inside",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 8.75000019, -36.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
  114. grille = New("Part",BumperCar,"grille",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.55000019, -29.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.1,0.1,0.1),})
  115. plate = New("Part",BumperCar,"plate",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.55000019, -44.7851157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,1,1),})
  116. rl = New("Part",BumperCar,"rl",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Neon,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.06500664, 9.45000019, -44.1751157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,0,0),})
  117. hl = New("Part",BumperCar,"hl",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Neon,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.55000019, -29.9651157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,1,1),})
  118. ep = New("Part",BumperCar,"idk",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(18, 0.7, 6.5),CFrame = CFrame.new(-5.16500664, 12.98000019, -36.9631157, 1, 0, 0, 0, 1, 0, 90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
  119. hitbox = New("Part",BumperCar,"hitbox",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 16),CFrame = CFrame.new(-5.16500664, 10.05000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
  120. hitbox2 = New("Part",BumperCar,"hitbox2",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 11.55000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
  121.  
  122. FrontPart = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(6, 6, 6),CFrame = CFrame.new(-5.16500664, 7.55000019, -31.9631157, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 0.999999821),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),Transparency = 1,})
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135. local mesh2 = Instance.new("FileMesh")
  136. mesh2.Parent = body
  137. mesh2.MeshId = "rbxassetid://1432737948"
  138. local mesh = Instance.new("FileMesh")
  139. mesh.Parent = wheel
  140. mesh.MeshId = "rbxassetid://1432629613"
  141. local mesh3 = Instance.new("FileMesh")
  142. mesh3.Parent = glass
  143. mesh3.MeshId = "rbxassetid://1432810983"
  144. local mesh4 = Instance.new("FileMesh")
  145. mesh4.Parent = inside
  146. mesh4.MeshId = "rbxassetid://1432877497"
  147. local mesh5 = Instance.new("FileMesh")
  148. mesh5.Parent = grille
  149. mesh5.MeshId = "rbxassetid://1432898984"
  150. local mesh6 = Instance.new("FileMesh")
  151. mesh6.Parent = plate
  152. mesh6.MeshId = "rbxassetid://1432917470"
  153. local mesh7 = Instance.new("FileMesh")
  154. mesh7.Parent = rl
  155. mesh7.MeshId = "rbxassetid://1432942116"
  156. local mesh8 = Instance.new("FileMesh")
  157. mesh8.Parent = hl
  158. mesh8.MeshId = "rbxassetid://1432958104"
  159. local Light = Instance.new("SpotLight",hl)
  160. Light.Angle = 90;
  161. Light.Brightness = 100;
  162. Light.Face = Enum.NormalId.Left;
  163. Light.Range = 30;
  164. local lt2 = Instance.new('PointLight',rl)
  165. lt2.Range = 8
  166. lt2.Brightness = 100
  167. lt2.Color = Color3.new(1,0,0)
  168. lt2.Enabled = true
  169. lt2.Shadows = true
  170. ep.Transparency = 1
  171. particle = Instance.new("ParticleEmitter",ep)
  172. particle.Enabled = false
  173. particle.EmissionDirection = "Bottom"
  174. particle.Lifetime = NumberRange.new(2.5,2.501)
  175. particle.Rate = 1500
  176. particle.Texture = "rbxassetid://241629053"
  177. particle.Color = ColorSequence.new(Color3.new(0,0,1))
  178.  
  179. particle.Size = NumberSequence.new(1.4,1.41)
  180. local all,last = {}
  181. function scan(p)
  182. for _,v in pairs(p:GetChildren()) do
  183. if (v:IsA("BasePart")) then
  184. if (last) then
  185. local w = Instance.new("Weld")
  186. w.Part0,w.Part1 = last,v
  187. w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
  188. w.Parent = last
  189. end
  190. table.insert(all,v)
  191. last = v
  192. end
  193. scan(v)
  194. end
  195. end
  196. scan(BumperCar)
  197.  
  198.  
  199. for _,v in pairs(all) do v.Anchored = false v.CanCollide = false end
  200. wheel2.Transparency = 1
  201. wheel2.CanCollide = true
  202. hitbox.CanCollide = true
  203. hitbox.Transparency = 1
  204. hitbox2.CanCollide = true
  205. hitbox2.Transparency = 1
  206. BumperCar.Parent = Character
  207.  
  208. local Services = {
  209.  
  210.  
  211. SoundService = game:GetService("SoundService");
  212. Players = game:GetService("Players");
  213. Debris = game:GetService("Debris");
  214. Workspace = game:GetService("Workspace");
  215. Lighting = game:GetService("Lighting");
  216. HttpService = game:GetService("HttpService");
  217. InsertService = game:GetService("InsertService");
  218.  
  219. }
  220.  
  221. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  222. Humanoid.Animator:Destroy()
  223. Character.Animate:Destroy()
  224.  
  225. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  226. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  227. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  228.  
  229.  
  230.  
  231. SWW = Instance.new("Weld")
  232. SWW.Name = "SWW"
  233. SWW.Part0 = Torso
  234. SWW.C0 = cn(0, -2.6, -1)*angles(math.rad(-0),math.rad(-180),math.rad(0))
  235. SWW.C1 = cn(0, 0, 0)
  236. SWW.Part1 = SwHandle
  237. SWW.Parent = Torso
  238.  
  239. RSH, LSH = nil, nil
  240.  
  241. RW = Instance.new("Weld")
  242. LW = Instance.new("Weld")
  243.  
  244. RH = Torso["Right Hip"]
  245. LH = Torso["Left Hip"]
  246.  
  247. RSH = Torso["Right Shoulder"]
  248. LSH = Torso["Left Shoulder"]
  249.  
  250. RSH.Parent = nil
  251. LSH.Parent = nil
  252.  
  253. RW.Name = "RW"
  254. RW.Part0 = Torso
  255. RW.C0 = cn(1.5, 0.5, 0)
  256. RW.C1 = cn(0, 0.5, 0)
  257. RW.Part1 = RightArm
  258. RW.Parent = Torso
  259.  
  260. LW.Name = "LW"
  261. LW.Part0 = Torso
  262. LW.C0 = cn(-1.5, 0.5, 0)
  263. LW.C1 = cn(0, 0.5, 0)
  264. LW.Part1 = LeftArm
  265. LW.Parent = Torso
  266.  
  267. function clerp(a, b, t)
  268. local qa = {
  269. QuaternionFromCFrame(a)
  270. }
  271. local qb = {
  272. QuaternionFromCFrame(b)
  273. }
  274. local ax, ay, az = a.x, a.y, a.z
  275. local bx, by, bz = b.x, b.y, b.z
  276. local _t = 1 - t
  277. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  278. end
  279.  
  280. function QuaternionFromCFrame(cf)
  281. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  282. local trace = m00 + m11 + m22
  283. if trace > 0 then
  284. local s = math.sqrt(1 + trace)
  285. local recip = 0.5 / s
  286. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  287. else
  288. local i = 0
  289. if m11 > m00 then
  290. i = 1
  291. end
  292. if m22 > (i == 0 and m00 or m11) then
  293. i = 2
  294. end
  295. if i == 0 then
  296. local s = math.sqrt(m00 - m11 - m22 + 1)
  297. local recip = 0.5 / s
  298. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  299. elseif i == 1 then
  300. local s = math.sqrt(m11 - m22 - m00 + 1)
  301. local recip = 0.5 / s
  302. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  303. elseif i == 2 then
  304. local s = math.sqrt(m22 - m00 - m11 + 1)
  305. local recip = 0.5 / s
  306. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  307. end
  308. end
  309. end
  310.  
  311. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  312. local xs, ys, zs = x + x, y + y, z + z
  313. local wx, wy, wz = w * xs, w * ys, w * zs
  314. local xx = x * xs
  315. local xy = x * ys
  316. local xz = x * zs
  317. local yy = y * ys
  318. local yz = y * zs
  319. local zz = z * zs
  320. 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))
  321. end
  322.  
  323. function QuaternionSlerp(a, b, t)
  324. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  325. local startInterp, finishInterp;
  326. if cosTheta >= 0.0001 then
  327. if (1 - cosTheta) > 0.0001 then
  328. local theta = math.acos(cosTheta)
  329. local invSinTheta = 1 / math.sin(theta)
  330. startInterp = math.sin((1 - t) * theta) * invSinTheta
  331. finishInterp = math.sin(t * theta) * invSinTheta
  332. else
  333. startInterp = 1 - t
  334. finishInterp = t
  335. end
  336. else
  337. if (1 + cosTheta) > 0.0001 then
  338. local theta = math.acos(-cosTheta)
  339. local invSinTheta = 1 / math.sin(theta)
  340. startInterp = math.sin((t - 1) * theta) * invSinTheta
  341. finishInterp = math.sin(t * theta) * invSinTheta
  342. else
  343. startInterp = t - 1
  344. finishInterp = t
  345. end
  346. end
  347. 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
  348. end
  349.  
  350. function swait(num)
  351. if num == 0 or num == nil then
  352. game:service'RunService'.RenderStepped:wait(0)
  353. else
  354. for i = 0, num do
  355. game:service'RunService'.RenderStepped:wait(0)
  356. end
  357. end
  358. end
  359.  
  360. local RbxUtility = LoadLibrary("RbxUtility")
  361. local Create = RbxUtility.Create
  362.  
  363. function RemoveOutlines(part)
  364. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  365. end
  366.  
  367. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  368. local Part = Create("Part"){
  369. formFactor = FormFactor,
  370. Parent = Parent,
  371. Reflectance = Reflectance,
  372. Transparency = Transparency,
  373. CanCollide = false,
  374. Locked = true,
  375. BrickColor = BrickColor.new(tostring(BColor)),
  376. Name = Name,
  377. Size = Size,
  378. Material = Material,
  379. }
  380. RemoveOutlines(Part)
  381. return Part
  382. end
  383.  
  384. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  385. local Msh = Create(Mesh){
  386. Parent = Part,
  387. Offset = OffSet,
  388. Scale = Scale,
  389. }
  390. if Mesh == "SpecialMesh" then
  391. Msh.MeshType = MeshType
  392. Msh.MeshId = MeshId
  393. end
  394. return Msh
  395. end
  396.  
  397. function CreateWeld(Parent, Part0, Part1, C0, C1)
  398. local Weld = Create("Weld"){
  399. Parent = Parent,
  400. Part0 = Part0,
  401. Part1 = Part1,
  402. C0 = C0,
  403. C1 = C1,
  404. }
  405. return Weld
  406. end
  407.  
  408. function rayCast(Position, Direction, Range, Ignore)
  409. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  410. end
  411.  
  412. function CreateSound(id, par, vol, pit)
  413. coroutine.resume(coroutine.create(function()
  414. local sou = Instance.new("Sound", par or workspace)
  415. sou.Volume = vol
  416. sou.Pitch = pit or 1
  417. sou.SoundId = id
  418. wait()
  419. sou:play()
  420. game:GetService("Debris"):AddItem(sou, 6)
  421. end))
  422. end
  423. function CreateSong(id, par, vol, pit)
  424. coroutine.resume(coroutine.create(function()
  425. sou2 = Instance.new("Sound", par or workspace)
  426. sou2.Volume = vol
  427. sou2.Pitch = 1
  428. sou2.SoundId = id
  429. wait()
  430. sou2:play()
  431. sou2.Looped = true
  432. end))
  433. end
  434.  
  435. local function getclosest(obj, distance)
  436. local last, lastx = distance + 1
  437. for i, v in pairs(workspace:GetChildren()) do
  438. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  439. local t = v.Torso
  440. local dist = (t.Position - obj.Position).magnitude
  441. if dist <= distance then
  442. if dist < last then
  443. last = dist
  444. lastx = v
  445. end
  446. end
  447. end
  448. end
  449. return lastx
  450. end
  451.  
  452. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  453. for i, v in pairs(hit:GetChildren()) do
  454. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  455. local find = v:FindFirstChild("Hitz")
  456. if not find then
  457. if v.Parent:findFirstChild("Head") then
  458. local BillG = Create("BillboardGui"){
  459. Parent = v.Parent.Head,
  460. Size = UDim2.new(1, 0, 1, 0),
  461. Adornee = v.Parent.Head,
  462. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  463. }
  464. local TL = Create("TextLabel"){
  465. Parent = BillG,
  466. Size = UDim2.new(3, 3, 3, 3),
  467. BackgroundTransparency = 1,
  468. Text = tostring(damage).."-",
  469. TextColor3 = Color1.Color,
  470. TextStrokeColor3 = Color2.Color,
  471. TextStrokeTransparency = 0,
  472. TextXAlignment = Enum.TextXAlignment.Center,
  473. TextYAlignment = Enum.TextYAlignment.Center,
  474. FontSize = Enum.FontSize.Size18,
  475. Font = "ArialBold",
  476. }
  477. coroutine.resume(coroutine.create(function()
  478. wait(1)
  479. for i = 0, 1, .1 do
  480. wait(.1)
  481. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  482. end
  483. BillG:Destroy()
  484. end))
  485. end
  486. v.Health = v.Health - damage
  487. local bool = Create("BoolValue"){
  488. Parent = v,
  489. Name = 'Hitz',
  490. }
  491. if HSound ~= nil and HPitch ~= nil then
  492. CreateSound(HSound, hit, 1, HPitch)
  493. end
  494. game:GetService("Debris"):AddItem(bool, cooldown)
  495. end
  496. end
  497. end
  498. end
  499.  
  500.  
  501. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  502. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  503. prt.Anchored = true
  504. prt.CFrame = cframe
  505. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  506. game:GetService("Debris"):AddItem(prt, 10)
  507. if Type == 1 or Type == nil then
  508. table.insert(Effects, {
  509. prt,
  510. "Block1",
  511. delay,
  512. x3,
  513. y3,
  514. z3,
  515. msh
  516. })
  517. elseif Type == 2 then
  518. table.insert(Effects, {
  519. prt,
  520. "Block2",
  521. delay,
  522. x3,
  523. y3,
  524. z3,
  525. msh
  526. })
  527. elseif Type == 3 then
  528. table.insert(Effects, {
  529. prt,
  530. "Block3",
  531. delay,
  532. x3,
  533. y3,
  534. z3,
  535. msh
  536. })
  537. end
  538. end
  539.  
  540. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  541. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  542. prt.Anchored = true
  543. prt.CFrame = cframe
  544. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  545. game:GetService("Debris"):AddItem(prt, 10)
  546. table.insert(Effects, {
  547. prt,
  548. "Cylinder",
  549. delay,
  550. x3,
  551. y3,
  552. z3,
  553. msh
  554. })
  555. end
  556.  
  557. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  558. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  559. prt.Anchored = true
  560. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  561. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  562. game:GetService("Debris"):AddItem(prt, 10)
  563. table.insert(Effects, {
  564. prt,
  565. "Cylinder",
  566. delay,
  567. x3,
  568. y3,
  569. z3,
  570. msh
  571. })
  572. end
  573.  
  574. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  575. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  576. prt.Anchored = true
  577. prt.CFrame = cframe
  578. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  579. game:GetService("Debris"):AddItem(prt, 10)
  580. table.insert(Effects, {
  581. prt,
  582. "Cylinder",
  583. delay,
  584. x3,
  585. y3,
  586. z3,
  587. msh
  588. })
  589. end
  590.  
  591. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  592. local prt = CreatePart(3, workspace,"Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  593. prt.Anchored = true
  594. prt.CFrame = cframe
  595. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  596. game:GetService("Debris"):AddItem(prt, 10)
  597. table.insert(Effects, {
  598. prt,
  599. "Cylinder",
  600. delay,
  601. x3,
  602. y3,
  603. z3,
  604. msh
  605. })
  606. end
  607.  
  608. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  609. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  610. prt.Anchored = true
  611. prt.CFrame = cframe
  612. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  613. game:GetService("Debris"):AddItem(prt, 10)
  614. table.insert(Effects, {
  615. prt,
  616. "Cylinder",
  617. delay,
  618. x3,
  619. y3,
  620. z3,
  621. msh
  622. })
  623. end
  624.  
  625. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  626. local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  627. prt.Anchored = true
  628. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  629. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  630. local num = math.random(10, 50) / 1000
  631. game:GetService("Debris"):AddItem(prt, 10)
  632. table.insert(Effects, {
  633. prt,
  634. "Shatter",
  635. num,
  636. prt.CFrame,
  637. math.random() - math.random(),
  638. 0,
  639. math.random(50, 100) / 100
  640. })
  641. end
  642.  
  643.  
  644.  
  645.  
  646. for i = 0, 1, 0.05 do
  647. swait()
  648. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  649. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  650. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  651. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  652. if Torsovelocity > 2 then
  653. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  654. RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  655. LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  656. elseif Torsovelocity < 1 then
  657. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  658. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  659. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  660. end
  661. end
  662. attack = false
  663.  
  664.  
  665.  
  666. game:GetService'RunService'.Stepped:connect(function()
  667. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  668. velocity = RootPart.Velocity.y
  669. sine = sine + change
  670. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  671. if equipped == true or equipped == false then
  672. if RootPart.Velocity.y > -1 and hit == nil then
  673. Anim = "Jump"
  674. inair = true
  675.  
  676. if attack == false then
  677. s.Pitch = 1
  678. s.Volume = 5
  679. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(15), math.rad(0), math.rad(0)), .1)
  680. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  681. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-15)), 0.1)
  682. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(15)), 0.1)
  683. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  684. LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  685. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  686. end
  687. elseif RootPart.Velocity.y < -1 and hit == nil then
  688. Anim = "Fall"
  689. inair = true
  690.  
  691. if attack == false then
  692. s.Pitch = .7
  693. s.Volume = 5
  694. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  695. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  696. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(180 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(45)), 0.05)
  697. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(180 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-45)), 0.05)
  698. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  699. LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  700. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  701. end
  702. elseif Torsovelocity < 1 and hit ~= nil then
  703. Anim = "Idle"
  704.  
  705. inair = false
  706. if attack == false then
  707. s.Pitch = .7
  708. s.Volume = 5
  709. change = 0.8
  710. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  711. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  712. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  713. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  714. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  715. LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  716. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  717. end --]]
  718.  
  719. elseif Torsovelocity > 1 and hit ~= nil then
  720. Anim = "Walk"
  721. inair = false
  722.  
  723. if attack == false and Runkey == true then
  724. s.Pitch = 1.2
  725. s.Volume = 5
  726.  
  727. change = 1
  728. Humanoid.WalkSpeed = 60
  729. Humanoid.JumpPower = 105
  730. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(-45), math.rad(0) + RootPart.RotVelocity.Y/40, math.rad(2 * math.cos(sine / 1))), .4)
  731. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(35 - 1 * math.cos(sine / 4)), math.rad(0), math.rad(-0) + RootPart.RotVelocity.Y/20), .2)
  732. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(25 - 1 * math.cos(sine / 4)), math.rad(0), math.rad(-45)), 0.2)
  733. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(25 + 1 * math.cos(sine / 4)), math.rad(0), math.rad(45)), 0.2)
  734. RH.C0 = clerp(RH.C0, cn(.6, -1, 0) * RHCF * angles(math.rad(6), math.rad(0), math.rad(45 + .05 * math.cos(sine / 25))), .4)
  735. LH.C0 = clerp(LH.C0, cn(-.6, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-45 + .05 * math.cos(sine / 25))), .4)
  736. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1,1) * angles(math.rad(-45),math.rad(-180),math.rad(0)), 0.4)
  737. end
  738. if attack == false and Runkey == false then
  739. s.Pitch = .8
  740. s.Volume = 5
  741. change = 0.65
  742. Humanoid.WalkSpeed = 30
  743. Humanoid.JumpPower = 50
  744. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(.5 * math.cos(sine / 1))), .3)
  745. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0) + RootPart.RotVelocity.Y/20), .1)
  746. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  747. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  748. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  749. LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  750. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  751. end
  752.  
  753. function onClimbing(speed)
  754. if attack == false then
  755. attack = true
  756. Climbanim= true
  757. Humanoid.WalkSpeed = 14
  758. while Climbanim == true do
  759. for i = 0, 0, 0.1 do
  760. swait()
  761.  
  762. change = 0.5
  763.  
  764.  
  765.  
  766. if RootPart.Velocity.y > .01 then
  767. s.Pitch = .9
  768. s.Volume = 5
  769. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(0)), .3)
  770. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  771. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  772. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  773. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  774. LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  775. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  776. end
  777.  
  778.  
  779.  
  780.  
  781. if RootPart.Velocity.y < .5 and RootPart.Velocity.y > -0.5 then
  782. s.Pitch = .7
  783. s.Volume = 5
  784. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(0)), .1)
  785. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  786. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  787. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  788. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  789. LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  790. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  791. end
  792.  
  793.  
  794. if RootPart.Velocity.y < -1 then
  795. s.Pitch = .9
  796. s.Volume = 5
  797. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(180)), .3)
  798. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  799. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  800. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  801. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  802. LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  803. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1) end
  804.  
  805. end
  806. if Torsovelocity > 1 then
  807. Climbanim = false
  808. end
  809. end
  810. attack = false
  811. end
  812. end
  813. Humanoid.Climbing:connect(onClimbing)
  814.  
  815.  
  816.  
  817. end
  818. end
  819.  
  820.  
  821. if #Effects > 0 then
  822. for e = 1, #Effects do
  823. if Effects[e] ~= nil then
  824. local Thing = Effects[e]
  825. if Thing ~= nil then
  826. local Part = Thing[1]
  827. local Mode = Thing[2]
  828. local Delay = Thing[3]
  829. local IncX = Thing[4]
  830. local IncY = Thing[5]
  831. local IncZ = Thing[6]
  832. if Thing[1].Transparency <= 1 then
  833. if Thing[2] == "Block1" then
  834. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  835. local Mesh = Thing[1].Mesh
  836. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  837. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  838. elseif Thing[2] == "Block2" then
  839. Thing[1].CFrame = Thing[1].CFrame+Vector3.new(0,-.0,0)
  840. local Mesh = Thing[7]
  841. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  842. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  843. elseif Thing[2] == "Block3" then
  844. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))+Vector3.new(0,.15,0)
  845. local Mesh = Thing[7]
  846. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  847. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  848. elseif Thing[2] == "Cylinder" then
  849. local Mesh = Thing[1].Mesh
  850. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  851. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  852. elseif Thing[2] == "Blood" then
  853. local Mesh = Thing[7]
  854. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  855. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  856. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  857. elseif Thing[2] == "Elec" then
  858. local Mesh = Thing[1].Mesh
  859. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  860. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  861. elseif Thing[2] == "Disappear" then
  862. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  863. elseif Thing[2] == "Shatter" then
  864. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  865. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  866. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  867. Thing[6] = Thing[6] + Thing[5]
  868. end
  869. else
  870. Part.Parent = nil
  871. table.remove(Effects, e)
  872. end
  873. end
  874. end
  875. end
  876. end
  877. end)
  878.  
  879.  
  880. Effects = {
  881. Block = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  882.  
  883. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  884. prt.Anchored = true
  885. prt.CFrame = cframe
  886. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  887. game:GetService("Debris"):AddItem(prt, 10)
  888. if Type == 1 or Type == nil then
  889. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  890. else
  891. if Type == 2 then
  892. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  893. else
  894. table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh})
  895. end
  896. end
  897. end
  898. }
  899. ,
  900. Sphere = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  901.  
  902. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  903. prt.Anchored = true
  904. prt.CFrame = cframe
  905. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  906. game:GetService("Debris"):AddItem(prt, 10)
  907. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  908. end
  909. }
  910. ,
  911. Cylinder = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  912.  
  913. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  914. prt.Anchored = true
  915. prt.CFrame = cframe
  916. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  917. game:GetService("Debris"):AddItem(prt, 10)
  918. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  919. end
  920. }
  921. ,
  922. Wave = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  923.  
  924. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  925. prt.Anchored = true
  926. prt.CFrame = cframe
  927. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://431164262", Vector3.new(0, 0, 0), Vector3.new(x1/60, y1/60, z1/60))
  928. game:GetService("Debris"):AddItem(prt, 10)
  929. table.insert(Effects, {prt, "Cylinder", delay, x3/60, y3/60, z3/60, msh})
  930. end
  931. }
  932. ,
  933. Ring = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  934.  
  935. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  936. prt.Anchored = true
  937. prt.CFrame = cframe
  938. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  939. game:GetService("Debris"):AddItem(prt, 10)
  940. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  941. end
  942. }
  943. ,
  944. Break = {Create = function(brickcolor, cframe, x1, y1, z1)
  945.  
  946. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  947. prt.Anchored = true
  948. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  949. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  950. local num = math.random(10, 50) / 1000
  951. game:GetService("Debris"):AddItem(prt, 10)
  952. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  953. end
  954. }
  955. }
  956.  
  957.  
  958.  
  959. RemoveOutlines = function(part)
  960.  
  961. part.TopSurface = 10
  962. end
  963.  
  964. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  965.  
  966. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  967. RemoveOutlines(Part)
  968. return Part
  969. end
  970.  
  971. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  972.  
  973. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  974. if Mesh == "SpecialMesh" then
  975. Msh.MeshType = MeshType
  976. Msh.MeshId = MeshId
  977. end
  978. return Msh
  979. end
  980.  
  981. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  982.  
  983. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  984. return Weld
  985. end
  986.  
  987.  
  988.  
  989.  
  990. WSHM = {'White',"Pastel light red"}
  991. WSH = WSHM[math.random(1,#WSHM)]
  992.  
  993.  
  994. IcePartFunk = function(HPart,aria,Min,Max)
  995.  
  996. IcePart = Instance.new("Part",HPart)
  997. IcePart.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
  998. IcePart.CanCollide = false
  999. IuW = Instance.new("Weld")
  1000. IuW.Name = "GuW"
  1001. IuW.Part0 = HPart
  1002. IuW.C0 = cn(math.random(-aria, aria),math.random(-aria, aria),math.random(-aria, aria))*angles( math.random(-180, 180),math.random(-180, 180),math.random(-180, 180))
  1003. IuW.C1 = cn(0, math.random(-aria/2, aria/2), 0)
  1004. IuW.Part1 = IcePart
  1005. IuW.Parent = HPart
  1006. IcePart.Transparency = .85
  1007. IcePart.Material= "Neon"
  1008. WSH = WSHM[math.random(1,#WSHM)]
  1009. IcePart.BrickColor = BrickColor.new(""..WSH)
  1010.  
  1011. RemoveOutlines(IcePart)
  1012. game:GetService("Debris"):AddItem(IuW, 4)
  1013. game:GetService("Debris"):AddItem(IcePart, 6)
  1014.  
  1015.  
  1016. end
  1017. --[[
  1018. GroundPartFunk2 = function(Hit,HPart,color,aria,Min,Max)
  1019.  
  1020. IcePart2 = Instance.new("Part",HPart)
  1021. IcePart2.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
  1022. IcePart2.CanCollide = false
  1023. RemoveOutlines(IcePart2)
  1024. IcePart2.Anchored = true
  1025.  
  1026.  
  1027.  
  1028. IcePart2.CFrame=CFrame.new(Hit.Position* Vector3.new(math.random(-aria, aria),math.random(-aria, aria),math.random(-aria, aria)))
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035. IcePart2.Transparency = .85
  1036. IcePart2.Material= "Neon"
  1037.  
  1038. IcePart2.BrickColor = BrickColor.new(""..color)
  1039.  
  1040.  
  1041.  
  1042. game:GetService("Debris"):AddItem(IcePart2, 6)
  1043.  
  1044.  
  1045. end
  1046. --]]
  1047. GroundPartFunk2 = function(Hit,HPart,color,aria,Min,Max,num)
  1048.  
  1049. IcePart2 = Instance.new("Part",HPart)
  1050. IcePart2.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
  1051. IcePart2.CanCollide = false
  1052. RemoveOutlines(IcePart2)
  1053. IcePart2.Anchored = true
  1054. game:GetService("Debris"):AddItem(IcePart2, .4)
  1055. IcePart2.Transparency = .3
  1056. IcePart2.Material= "Neon"
  1057. IcePart2.BrickColor = BrickColor.new(""..color)
  1058.  
  1059. IcePart2.CFrame=CFrame.new(Hit.Position+ Vector3.new(math.random(-aria, aria),math.random(-aria, 0),math.random(-aria, aria)))*angles(math.rad(math.random(-45, 45)),math.rad(math.random(-45, 45)),math.rad(math.random(-45, 45)))
  1060. for i = 0,num do
  1061. if num > 1 then
  1062. GroundPartFunk2(Hit,HPart,color,aria,Min,Max,0)
  1063. end
  1064. end
  1065.  
  1066.  
  1067.  
  1068.  
  1069.  
  1070.  
  1071.  
  1072.  
  1073.  
  1074.  
  1075.  
  1076. end
  1077.  
  1078.  
  1079.  
  1080.  
  1081.  
  1082. SpikeMeshId = 1033714
  1083. local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale)
  1084.  
  1085.  
  1086. local Part = Instance.new("Part", Parent)
  1087. Part.Name = Name
  1088. Part.BrickColor = BrickColor.new(Color)
  1089. Part.Size = Size
  1090. Part.Material = Material
  1091. Part.Transparency = Transparency
  1092. Part.CanCollide = false
  1093. RemoveOutlines(Part)
  1094.  
  1095. local Mesh = Instance.new("SpecialMesh", Part)
  1096. Mesh.MeshType = "Sphere"
  1097. Mesh.Scale = Scale
  1098.  
  1099. return Mesh and Part
  1100.  
  1101. end
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110. CFuncs = {
  1111. Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1112.  
  1113. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  1114. RemoveOutlines(Part)
  1115. return Part
  1116. end
  1117. }
  1118. ,
  1119. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1120.  
  1121. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  1122. if Mesh == "SpecialMesh" then
  1123. Msh.MeshType = MeshType
  1124. Msh.MeshId = MeshId
  1125. end
  1126. return Msh
  1127. end
  1128. }
  1129. ,
  1130. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1131.  
  1132. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  1133. if Mesh == "SpecialMesh" then
  1134. Msh.MeshType = MeshType
  1135. Msh.MeshId = MeshId
  1136. end
  1137. return Msh
  1138. end
  1139. }
  1140. ,
  1141. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  1142.  
  1143. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  1144. return Weld
  1145. end
  1146. }
  1147. ,
  1148. Sound = {Create = function(id, par, vol, pit)
  1149.  
  1150. coroutine.resume(coroutine.create(function()
  1151.  
  1152. local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace})
  1153. wait()
  1154. S:play()
  1155. game:GetService("Debris"):AddItem(S, 6)
  1156. end
  1157. ))
  1158. end
  1159. }
  1160. ,
  1161. ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1162.  
  1163. local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
  1164. return fp
  1165. end
  1166. }
  1167. }
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1174.  
  1175. if hit.Parent == nil then
  1176. return
  1177. end
  1178. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1179. for _,v in pairs(hit.Parent:children()) do
  1180. if v:IsA("Humanoid") then
  1181. h.MaxHealth = 100
  1182. h = v
  1183. end
  1184. end
  1185. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1186. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1187. return
  1188. end
  1189. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  1190. game:GetService("Debris"):AddItem(c, 0.5)
  1191. if HitSound ~= nil and HitPitch ~= nil then
  1192. CreateSound(HitSound, hit, 1, HitPitch)
  1193. end
  1194. local Damage = math.random(minim, maxim)
  1195. local blocked = false
  1196. local block = hit.Parent:findFirstChild("Block")
  1197. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1198. blocked = true
  1199. block.Value = block.Value - 1
  1200. print(block.Value)
  1201. end
  1202. if blocked == false then
  1203. h.Health = h.Health - Damage
  1204. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1205. else
  1206. h.Health = h.Health - Damage / 2
  1207. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1208. end
  1209. if hit.Parent:FindFirstChild("Torso") ~= nil then
  1210. lasthit = hit.Parent.Torso
  1211. end
  1212. if Type == "Knockdown" then
  1213. local hum = hit.Parent.Humanoid
  1214. hum.PlatformStand = true
  1215. coroutine.resume(coroutine.create(function(HHumanoid)
  1216.  
  1217. swait(.2)
  1218. HHumanoid.PlatformStand = false
  1219. end
  1220. ), hum)
  1221. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1222. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 50, maxForce = Vector3.new(80000, 80000, 80000), Parent = hit})
  1223. local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  1224. game:GetService("Debris"):AddItem(bodvol, 0.1)
  1225. game:GetService("Debris"):AddItem(rl, 0.1)
  1226. elseif Type == "Normal" then
  1227. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback})
  1228. if knockback > 0 then
  1229. vp.Parent = hit.Parent.Torso
  1230. end
  1231. game:GetService("Debris"):AddItem(vp, 0.5)
  1232. elseif Type == "Impale" then
  1233.  
  1234. local Spike = CreateSpike(Services.Workspace, "Ice Spike", "Really red", Vector3.new(1,2,1), "Neon", .2, Vector3.new(.5,25,.5))
  1235. Spike.Anchored = true
  1236. Spike.Rotation = Vector3.new(math.random(-45,45), 0 , math.random(-45,45))
  1237. Spike.Position = hit.Parent.Torso.Position
  1238.  
  1239. Services.Debris:AddItem(Spike, 4)
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2)
  1247. hit.Parent.Humanoid.PlatformStand = true
  1248.  
  1249.  
  1250. swait(1)
  1251. hit.Parent.Humanoid.PlatformStand = false
  1252. elseif Type == "Up" then
  1253. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1254. game:GetService("Debris"):AddItem(bodyVelocity, 0.1)
  1255. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1256. game:GetService("Debris"):AddItem(bodyVelocity, .1)
  1257.  
  1258.  
  1259.  
  1260. elseif Type == "UltSlice" then
  1261.  
  1262. BlockEffect( BrickColor.new("Really red"), SwHandle.CFrame * cn(0, 1.8, 0), 16, 141, .5, 0,0,0, 0.01,2)
  1263. BlockEffect( BrickColor.new("Really red"), Head.CFrame, 21, 21, 21, 0,0,0, 0.01,2)
  1264. BlockEffect( BrickColor.new("Really red"), Torso.CFrame, 41, 41, 21, 0,0,0, 0.01,2)
  1265. BlockEffect( BrickColor.new("Really red"), RightArm.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
  1266. BlockEffect( BrickColor.new("Really red"), LeftArm.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
  1267. BlockEffect( BrickColor.new("Really red"), RightLeg.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
  1268. BlockEffect( BrickColor.new("Really red"), LeftLeg.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
  1269.  
  1270.  
  1271. elseif Type == "Slice" then
  1272. local bp2 = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Head.Position, Parent = hit.Parent.Torso})
  1273. game:GetService("Debris"):AddItem(bp2, 1)
  1274.  
  1275. if hit.Parent:FindFirstChild("HumanoidRootPart") ~= nil then
  1276. for i = 1,10 do
  1277. Effects.Break.Create (BrickColor.new("Really red"), hit.Parent.HumanoidRootPart.CFrame, 10, .5, .5)
  1278.  
  1279.  
  1280. end
  1281. end
  1282.  
  1283.  
  1284.  
  1285.  
  1286. elseif Type == "Snare" then
  1287. local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  1288. game:GetService("Debris"):AddItem(bp, 1)
  1289. elseif Type == "Slowness" then
  1290. local SpeedSave=hit.Parent.Humanoid.WalkSpeed
  1291.  
  1292. for i = 1,25 do
  1293. hit.Parent.Humanoid.WalkSpeed = 4
  1294. IcePartFunk(hit.Parent.Torso,.55,0.1,1)
  1295. end
  1296. wait(4)
  1297. hit.Parent.Humanoid.WalkSpeed = SpeedSave
  1298. elseif Type == "Firedmg" then
  1299.  
  1300. for i = 1,math.random(1, 6) do
  1301. if hit.Parent:FindFirstChild("Torso") ~= nil then
  1302. BlockEffect( BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 20, 20, 20, 1.5, 1.5, 1.5, 0.05,3)
  1303. BlockEffect(BrickColor.new("Gold"), hit.Parent.Torso.CFrame, 20, 20, 20, 2, 2, 2, 0.05,3)
  1304. BlockEffect(BrickColor.new("Really black"), hit.Parent.Torso.CFrame, 0, 0, 0, 2, 2, 2, 0.035,3)
  1305.  
  1306.  
  1307.  
  1308. wait(.1)
  1309. end
  1310. end
  1311.  
  1312. elseif Type == "Freeze" then
  1313. local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  1314. game:GetService("Debris"):AddItem(bp, 4)
  1315. for i=1,25 do
  1316. IcePartFunk(hit.Parent.Torso,1,1.5,2)
  1317. end
  1318. elseif Type == "Freeze2" then
  1319. local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  1320. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  1321. hit.Parent.Torso.Anchored = true
  1322. coroutine.resume(coroutine.create(function(Part)
  1323.  
  1324. swait(1.5)
  1325. Part.Anchored = false
  1326. end
  1327. ), hit.Parent.Torso)
  1328. game:GetService("Debris"):AddItem(BodPos, 3)
  1329. game:GetService("Debris"):AddItem(BodGy, 3)
  1330. end
  1331. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  1332. game:GetService("Debris"):AddItem(debounce, Delay)
  1333. c = Instance.new("ObjectValue")
  1334. c.Name = "creator"
  1335. c.Value = Player
  1336. c.Parent = h
  1337. game:GetService("Debris"):AddItem(c, 0.5)
  1338. end
  1339. end
  1340.  
  1341. ShowDamage = function(Pos, Text, Time, Color)
  1342.  
  1343. local Rate = 0.033333333333333
  1344. if not Pos then
  1345. local Pos = Vector3.new(0, 0, 0)
  1346. end
  1347. local Text = Text or ""
  1348. local Time = Time or 2
  1349. if not Color then
  1350. local Color = Color3.new(1, 0, 1)
  1351. end
  1352. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1353. EffectPart.Anchored = true
  1354. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  1355. local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  1356. game.Debris:AddItem(EffectPart, Time + 0.1)
  1357. EffectPart.Parent = game:GetService("Workspace")
  1358. delay(0, function()
  1359.  
  1360. local Frames = Time / Rate
  1361. for Frame = 1, Frames do
  1362. wait(Rate)
  1363. local Percent = Frame / Frames
  1364. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1365. TextLabel.TextTransparency = Percent
  1366. end
  1367. if EffectPart and EffectPart.Parent then
  1368. EffectPart:Destroy()
  1369. end
  1370. end
  1371. )
  1372. end
  1373.  
  1374. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  1375.  
  1376. for _,c in pairs(workspace:children()) do
  1377. local hum = c:findFirstChildOfClass("Humanoid")
  1378. if hum ~= nil then
  1379. local head = c:findFirstChild("Head")
  1380. if head ~= nil then
  1381. local targ = head.Position - Part.Position
  1382. local mag = targ.magnitude
  1383. if mag <= magni and c.Name ~= Player.Name then
  1384. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.001, "http://www.roblox.com/asset/?id=0", 1.2)
  1385. end
  1386. end
  1387. end
  1388. end
  1389. end
  1390. MagniKILL = function(Part, magni, knock, Type)
  1391.  
  1392. for _,c in pairs(workspace:children()) do
  1393. local hum = c:findFirstChildOfClass("Humanoid")
  1394. if hum ~= nil then
  1395. local head = c:findFirstChild("Head")
  1396. if head ~= nil then
  1397. local targ = head.Position - Part.Position
  1398. local mag = targ.magnitude
  1399. if mag <= magni and c.Name ~= Player.Name then
  1400. hum.Health = 0
  1401. end
  1402. end
  1403. end
  1404. end
  1405. end
  1406. EffectModel = Instance.new("Model", Character)
  1407. EffectModel.Name = "Effects"
  1408.  
  1409. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1410.  
  1411. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1412. prt.Anchored = true
  1413. prt.CFrame = cframe
  1414. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1415. game:GetService("Debris"):AddItem(prt, 10)
  1416. if Type == 1 or Type == nil then
  1417. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  1418. else
  1419. if Type == 2 then
  1420. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  1421. else
  1422. if Type == 3 then
  1423. table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh})
  1424. end
  1425. end
  1426. end
  1427. end
  1428. CreateSound = function(id, par, vol, pit)
  1429.  
  1430. coroutine.resume(coroutine.create(function()
  1431.  
  1432. local sou = Instance.new("Sound", par or workspace)
  1433. sou.Volume = vol
  1434. sou.Pitch = pit or 1
  1435. sou.SoundId = id
  1436. swait()
  1437. sou:play()
  1438. game:GetService("Debris"):AddItem(sou, 6)
  1439. end
  1440. ))
  1441. end
  1442.  
  1443. Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1444.  
  1445. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1446. prt.Anchored = true
  1447. prt.CFrame = cframe
  1448. prt.Material = "Neon"
  1449. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1450. game:GetService("Debris"):AddItem(prt, 10)
  1451. coroutine.resume(coroutine.create(function(Part, Mesh)
  1452.  
  1453. for i = 0, 6, delay do
  1454. swait()
  1455. Part.Transparency = i
  1456. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  1457. end
  1458. Part.Parent = nil
  1459. end
  1460. ), prt, msh)
  1461. end
  1462.  
  1463. shoottraildd = function(mouse, partt, SpreadAmount)
  1464.  
  1465. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount/10, SpreadAmount/10), math.random(-SpreadAmount, SpreadAmount))
  1466. local MainPos = mouse + Vector3.new(0, 6, 0)+RootPart.CFrame.lookVector*-2
  1467. local MainPos2 = mouse + SpreadVectors
  1468. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1469. local speed = 100
  1470. local num = 1
  1471. coroutine.resume(coroutine.create(function()
  1472.  
  1473. repeat
  1474. swait()
  1475. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1476. local mag = (MainPos - pos).magnitude
  1477. Laser(BrickColor.new("Really red"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 0, mag * (speed / (speed / 2)), 0, -0, 0, -0, 10)
  1478. MainPos = MainPos + MouseLook.lookVector * speed
  1479. num = num - 1
  1480. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1481. if hit ~= nil then
  1482. num = 0
  1483. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1484. refpart.Anchored = true
  1485. refpart.CFrame = CFrame.new(pos)
  1486. game:GetService("Debris"):AddItem(refpart, 2)
  1487. end
  1488. do
  1489. if num <= 0 then
  1490. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1491. refpart.Anchored = true
  1492. refpart.CFrame = CFrame.new(pos)
  1493. if hit ~= nil then
  1494.  
  1495.  
  1496.  
  1497. GroundPartFunk2(refpart,EffectModel,"Really red",1,.1,2,2)
  1498. BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 70, 70, 70, -.5, -.5, -.5, 0.05)
  1499. -- BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.07)
  1500. -- BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.07)
  1501. MagniDamage(refpart, 6, 10, 25, 0, "Slice")
  1502. end
  1503. game:GetService("Debris"):AddItem(refpart, 0)
  1504. end
  1505. end
  1506. until num <= 0
  1507. end
  1508. ))
  1509. end
  1510.  
  1511. shoottraildd2 = function(mouse, partt, SpreadAmount)
  1512.  
  1513. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1514. local MainPos = partt.Position
  1515. local MainPos2 = mouse + SpreadVectors
  1516. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1517. local speed = 1000
  1518. local num = 1
  1519. coroutine.resume(coroutine.create(function()
  1520.  
  1521. repeat
  1522. swait()
  1523. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1524. local mag = (MainPos - pos).magnitude
  1525. Laser(BrickColor.new("Gold"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -8.175, 0, -8.175, 0.15)
  1526. MainPos = MainPos + MouseLook.lookVector * speed
  1527. num = num - 1
  1528. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1529. if hit ~= nil then
  1530. num = 0
  1531. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1532. refpart.Anchored = true
  1533. refpart.CFrame = CFrame.new(pos)
  1534. game:GetService("Debris"):AddItem(refpart, 2)
  1535. end
  1536. do
  1537. if num <= 0 then
  1538. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1539. refpart.Anchored = true
  1540. refpart.CFrame = CFrame.new(pos)
  1541. if hit ~= nil then
  1542. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
  1543. BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 86.5, 86.5, 86.5, 0.05)
  1544. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
  1545. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
  1546. MagniKILL(refpart, 80, 0, "Normal")
  1547. end
  1548. game:GetService("Debris"):AddItem(refpart, 0)
  1549. end
  1550. end
  1551. until num <= 0
  1552. end
  1553. ))
  1554. end
  1555.  
  1556. shoottraildd3 = function(mouse, partt, SpreadAmount, dmg)
  1557.  
  1558. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1559. local MainPos = partt.Position
  1560. local MainPos2 = mouse + SpreadVectors
  1561. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1562. local speed = 200
  1563. local num = 0
  1564. coroutine.resume(coroutine.create(function()
  1565.  
  1566. repeat
  1567. swait()
  1568. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1569. local mag = (MainPos - pos).magnitude
  1570. Laser(BrickColor.new("White"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.375, 0, -0.375, 0.05)
  1571. MainPos = MainPos + MouseLook.lookVector * speed
  1572. num = num - 1
  1573. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1574. if hit ~= nil then
  1575. num = 0
  1576. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1577. refpart.Anchored = true
  1578. refpart.CFrame = CFrame.new(pos)
  1579. BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1580. game:GetService("Debris"):AddItem(refpart, 2)
  1581. end
  1582. do
  1583. if num <= 0 then
  1584. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1585. refpart.Anchored = true
  1586. refpart.CFrame = CFrame.new(pos)
  1587. if hit ~= nil then
  1588. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
  1589. BlockEffect(BrickColor.new("White"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
  1590. BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1591.  
  1592.  
  1593. MagniDamage(refpart, 6, dmg, dmg, 0, "Slowness")
  1594.  
  1595. end
  1596. game:GetService("Debris"):AddItem(refpart, 0)
  1597. end
  1598. end
  1599. until num <= 0
  1600. end
  1601. ))
  1602. end
  1603.  
  1604. shoottraildd4 = function(mouse, partt, SpreadAmount, dmg)
  1605.  
  1606. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1607. local MainPos = partt.Position
  1608. local MainPos2 = mouse + SpreadVectors
  1609. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1610. local speed = 150
  1611. local num = 1
  1612. coroutine.resume(coroutine.create(function()
  1613.  
  1614. repeat
  1615. swait()
  1616. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1617. local mag = (MainPos - pos).magnitude
  1618. Laser(BrickColor.new("Gold"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -1.175, 0, -1.175, 0.15)
  1619. MainPos = MainPos + MouseLook.lookVector * speed
  1620. num = num - 1
  1621. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1622. if hit ~= nil then
  1623. num = 0
  1624. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1625. refpart.Anchored = true
  1626. refpart.CFrame = CFrame.new(pos)
  1627. game:GetService("Debris"):AddItem(refpart, 2)
  1628. end
  1629. do
  1630. if num <= 0 then
  1631. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1632. refpart.Anchored = true
  1633. refpart.CFrame = CFrame.new(pos)
  1634. if hit ~= nil then
  1635. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
  1636. BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
  1637. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1638. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1639. MagniDamage(refpart, 6, dmg, dmg, 0, "Normal")
  1640. end
  1641. game:GetService("Debris"):AddItem(refpart, 0)
  1642. end
  1643. end
  1644. until num <= 0
  1645. end
  1646. ))
  1647. end
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655. HitpartFunk3 = function(HPart3,Xv,Yv,Zv)
  1656.  
  1657. Hitpart3 = Instance.new("Part",HPart3)
  1658. RemoveOutlines(Hitpart3)
  1659. Hitpart3.Size = Vector3.new(1,1,1)
  1660. Hitpart3.CanCollide = false
  1661. HuW3 = Instance.new("Weld")
  1662. HuW3.Name = "GuW"
  1663. HuW3.Part0 = HPart3
  1664. HuW3.C0 = cn(Xv, Yv, Zv)
  1665. HuW3.C1 = cn(0, 0, 0)
  1666. HuW3.Part1 = Hitpart3
  1667. HuW3.Parent = HPart3
  1668. Hitpart3.Transparency = 1
  1669. game:GetService("Debris"):AddItem(Hitpart3, 20)
  1670. end
  1671.  
  1672. HitpartFunk2 = function(HPart2,Xv,Yv,Zv)
  1673.  
  1674. Hitpart2 = Instance.new("Part",HPart2)
  1675. RemoveOutlines(Hitpart2)
  1676. Hitpart2.Size = Vector3.new(1,1,1)
  1677. Hitpart2.CanCollide = false
  1678. HuW2 = Instance.new("Weld")
  1679. HuW2.Name = "GuW"
  1680. HuW2.Part0 = HPart2
  1681. HuW2.C0 = cn(Xv, Yv, Zv)
  1682. HuW2.C1 = cn(0, 0, 0)
  1683. HuW2.Part1 = Hitpart2
  1684. HuW2.Parent = HPart2
  1685. Hitpart2.Transparency = 1
  1686. game:GetService("Debris"):AddItem(Hitpart2, 20)
  1687. end
  1688.  
  1689.  
  1690. HitpartFunk = function(HPart,Min,Max,Xv,Yv,Zv,atype,kb)
  1691.  
  1692. Hitpart = Instance.new("Part",HPart)
  1693. RemoveOutlines(Hitpart)
  1694. Hitpart.Size = Vector3.new(1,1,1)
  1695. Hitpart.CanCollide = false
  1696. HuW = Instance.new("Weld")
  1697. HuW.Name = "GuW"
  1698. HuW.Part0 = HPart
  1699. HuW.C0 = cn(Xv, Yv, Zv)
  1700. HuW.C1 = cn(0, 0, 0)
  1701. HuW.Part1 = Hitpart
  1702. HuW.Parent = HPart
  1703. Hitpart.Transparency = 1
  1704. game:GetService("Debris"):AddItem(Hitpart2, 20)
  1705. MagniDamage(Hitpart, 4.5, Min, Max, kb, atype)
  1706.  
  1707. end
  1708. HitpartFunk4 = function(HPart,Min,Max,Xv,Yv,Zv,atype,kb)
  1709.  
  1710. Hitpart4 = Instance.new("Part",HPart)
  1711. RemoveOutlines(Hitpart4)
  1712. Hitpart4.Size = Vector3.new(1,1,1)
  1713. Hitpart4.CanCollide = false
  1714. HuW4 = Instance.new("Weld")
  1715. HuW4.Name = "HuW4"
  1716. HuW4.Part0 = HPart
  1717. HuW4.C0 = cn(Xv, Yv, Zv)
  1718. HuW4.C1 = cn(0, 0, 0)
  1719. HuW4.Part1 = Hitpart4
  1720. HuW4.Parent = HPart
  1721. Hitpart4.Transparency = 1
  1722. game:GetService("Debris"):AddItem(Hitpart4, 1.5)
  1723. MagniDamage(Hitpart4, 6.5, Min, Max, kb, atype)
  1724.  
  1725. end
  1726.  
  1727.  
  1728. HitboxFunction = function(Pose,lifetime,siz1,siz2,siz3,Radie,Min,Max,kb,atype)
  1729.  
  1730. Hitboxpart = Instance.new("Part",Character)
  1731. RemoveOutlines(Hitboxpart)
  1732. Hitboxpart.Size = Vector3.new(siz1,siz2,siz3)
  1733. Hitboxpart.CanCollide = false
  1734. Hitboxpart.Transparency = 1
  1735. Hitboxpart.Anchored = true
  1736. Hitboxpart.CFrame = Pose
  1737. game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
  1738. MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
  1739.  
  1740. end
  1741.  
  1742.  
  1743. wait2 = false
  1744.  
  1745.  
  1746. combo = 1
  1747.  
  1748.  
  1749.  
  1750.  
  1751. duljump = false
  1752. duljump2 = false
  1753. jumpatck = false
  1754. mouse.KeyDown:connect(function(k)
  1755. if k == "0" then
  1756. CFuncs['Sound'].Create("rbxassetid://891338458",Character,6,1)
  1757. Runkey = true
  1758. end
  1759. if k == "x" then
  1760. airtime:play()
  1761. end
  1762. if k == "c" then
  1763. CFuncs['Sound'].Create("rbxassetid://892075913",Character,6,1)
  1764. end
  1765. if k == "q" and attack == false then
  1766. attack = true
  1767. Humanoid.WalkSpeed = 0
  1768. IKM = true
  1769. body.BrickColor = BrickColor.new("New Yeller")
  1770. body.Color = Color3.new(1,1,0)
  1771. body.Reflectance = 0
  1772. particle.LightEmission = 0.3
  1773. particle.Texture = "rbxassetid://241629053"
  1774. particle.Color = ColorSequence.new(Color3.new(1,1,0))
  1775. particle.Enabled = true
  1776. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  1777. wait(0.1)
  1778. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  1779. wait(1)
  1780. particle.Enabled = false
  1781. wait(2)
  1782. Humanoid.WalkSpeed = 30
  1783. attack = false
  1784. end
  1785.  
  1786. if k == "t" and attack == false then
  1787. attack = true
  1788. IKM = false
  1789. Humanoid.WalkSpeed = 0
  1790. body.BrickColor = BrickColor.new("Really red")
  1791. body.Color = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
  1792. body.Reflectance = 0.5
  1793. particle.LightEmission = 0.3
  1794. particle.Texture = "rbxassetid://241629053"
  1795. particle.Color = ColorSequence.new(Color3.new(math.random(0,1),math.random(0,1),math.random(0,1)))
  1796. particle.Enabled = true
  1797. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  1798. wait(0.1)
  1799. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  1800. wait(1)
  1801. particle.Enabled = false
  1802. wait(2)
  1803. Humanoid.WalkSpeed = 30
  1804. attack = false
  1805. end
  1806.  
  1807. if k == "y" and attack == false then
  1808. attack = true
  1809. IKM = true
  1810. Humanoid.WalkSpeed = 0
  1811. body.BrickColor = BrickColor.new("Really red")
  1812. body.Color = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
  1813. body.Reflectance = 0.5
  1814. particle.LightEmission = 0.9
  1815. particle.Texture = "rbxassetid://280516525"
  1816. particle.Color = ColorSequence.new(ColorsArray)
  1817. particle.Enabled = true
  1818. CFuncs['Sound'].Create("rbxassetid://168615093",Character,5,1)
  1819. wait(0.1)
  1820. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  1821. wait(1)
  1822. particle.Enabled = false
  1823. wait(2)
  1824. Humanoid.WalkSpeed = 30
  1825. attack = false
  1826. end
  1827.  
  1828. if k == "r" and attack == false then
  1829. attack = true
  1830. Humanoid.WalkSpeed = 0
  1831. IKM = false
  1832. body.BrickColor = BrickColor.new("Really Blue")
  1833. body.Color = Color3.new(0,0,1)
  1834. body.Reflectance = 0
  1835. particle.LightEmission = 0.3
  1836. particle.Texture = "rbxassetid://241629053"
  1837. particle.Color = ColorSequence.new(Color3.new(0,0,1))
  1838. particle.Enabled = true
  1839. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  1840. wait(0.1)
  1841. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  1842. wait(1)
  1843. particle.Enabled = false
  1844. wait(2)
  1845. Humanoid.WalkSpeed = 30
  1846. attack = false
  1847. end
  1848.  
  1849. if k == "e" and attack == false then
  1850. attack = true
  1851.  
  1852. Humanoid.WalkSpeed = 0
  1853.  
  1854. CreateSound("http://www.roblox.com/asset/?id=135305162", Torso, 5, 1)
  1855.  
  1856. for i = 0, 2, 0.1 do
  1857. swait()
  1858.  
  1859. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1860. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  1861. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(135 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
  1862. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(135 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
  1863. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  1864. LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  1865. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  1866.  
  1867.  
  1868.  
  1869. end
  1870.  
  1871. for i = 0, 4, 0.1 do
  1872. swait()
  1873.  
  1874. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1875. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-0 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  1876. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(25)), 0.05)
  1877. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-25)), 0.05)
  1878. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  1879. LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  1880. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  1881.  
  1882.  
  1883.  
  1884. end
  1885. for i = 0, 1 do
  1886. for i = 0, 1, 0.1 do
  1887. swait()
  1888.  
  1889. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1890. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  1891. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  1892. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  1893. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  1894. LH.C0 = clerp(LH.C0, cn(-1, -1 ,0)* LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  1895. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  1896.  
  1897.  
  1898.  
  1899. end
  1900. for i = 0, 1, 0.1 do
  1901. swait()
  1902.  
  1903. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1904. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-15 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  1905. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  1906. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  1907. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  1908. LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  1909. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  1910.  
  1911.  
  1912.  
  1913. end
  1914. end
  1915.  
  1916. Humanoid.WalkSpeed = 30
  1917.  
  1918. attack = false
  1919.  
  1920.  
  1921.  
  1922.  
  1923. end
  1924.  
  1925.  
  1926.  
  1927.  
  1928.  
  1929.  
  1930.  
  1931.  
  1932.  
  1933.  
  1934.  
  1935.  
  1936.  
  1937.  
  1938.  
  1939.  
  1940.  
  1941. end)
  1942. hitwait = false
  1943. function onTouch(part)
  1944.  
  1945. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  1946. local model = part.Parent
  1947. local torso = part.Parent:FindFirstChild("Torso")
  1948. local head = part.Parent:findFirstChild("Head")
  1949. local leftleg = part.Parent:findFirstChild("Left Leg")
  1950. local rightleg = part.Parent:findFirstChild("Right Leg")
  1951. local leftarm = part.Parent:findFirstChild("Left Arm")
  1952. local rightarm = part.Parent:findFirstChild("Right Arm")
  1953.  
  1954. if hitwait == false and attack == false and model.Name == "Effects" == false and Runkey == true then
  1955.  
  1956. hitwait = true
  1957.  
  1958.  
  1959.  
  1960.  
  1961. if (humanoid ~=nil) and humanoid.Health >0.01 and Torsovelocity > 1 then
  1962.  
  1963. if IKM == true then
  1964. Effects.Sphere.Create(BrickColor.new("Really black"), FrontPart.CFrame * cn(0, -0, 0), 50, 50, 50, 40,40,40, 0.1)
  1965. Effects.Sphere.Create(BrickColor.new("Really red"), FrontPart.CFrame * cn(0, -0, 0), 50, 50, 50, 20,20,20, 0.05)
  1966. model:BreakJoints()
  1967. CFuncs['Sound'].Create("rbxassetid://247264335",Character,4,1)
  1968. local sel = math.random(3)
  1969. if sel == 1 then
  1970. CFuncs['Sound'].Create("rbxassetid://247264308",Character,4,1)
  1971. end
  1972. if sel == 2 then
  1973. CFuncs['Sound'].Create("rbxassetid://247264326",Character,4,1)
  1974. end
  1975. if sel == 3 then
  1976. CFuncs['Sound'].Create("rbxassetid://247264316",Character,4,1)
  1977. end
  1978.  
  1979. else
  1980. Effects.Sphere.Create(BrickColor.new("White"), FrontPart.CFrame * cn(0, -0, 2), 100, 100, .1, 12,12,0, 0.1)
  1981. Effects.Sphere.Create(BrickColor.new("White"), FrontPart.CFrame * cn(0, -0, 2), 100, 100, 20, 1,1,1, 0.08)
  1982. MagniDamage(FrontPart, 6.5, 30, 35, .3, "Knockdown")
  1983. CFuncs['Sound'].Create("rbxassetid://247264335",Character,4,1)
  1984. local sel = math.random(3)
  1985. if sel == 1 then
  1986. CFuncs['Sound'].Create("rbxassetid://247264308",Character,4,1)
  1987. end
  1988. if sel == 2 then
  1989. CFuncs['Sound'].Create("rbxassetid://247264326",Character,4,1)
  1990. end
  1991. if sel == 3 then
  1992. CFuncs['Sound'].Create("rbxassetid://247264316",Character,4,1)
  1993. end
  1994. end
  1995.  
  1996. attack = true
  1997. Humanoid.WalkSpeed = 0
  1998. local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 1, 0)-RootPart.CFrame.lookVector*1500, P = 50000, maxForce = Vector3.new(80000, 80000, 80000), Parent = Torso})
  1999.  
  2000. game:GetService("Debris"):AddItem(bodyVelocity2, 0.11)
  2001.  
  2002. for i = 0, .5, 0.1 do
  2003. swait()
  2004.  
  2005. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -0.5) * angles(math.rad(1), math.rad(0), math.rad(0)), .2)
  2006. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  2007. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
  2008. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
  2009. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  2010. LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  2011. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.3) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.3)
  2012.  
  2013.  
  2014.  
  2015. end
  2016.  
  2017.  
  2018. Humanoid.WalkSpeed = 30
  2019. end
  2020. attack = false
  2021. wait(.08)
  2022. hitwait = false
  2023. end
  2024.  
  2025. end
  2026. FrontPart.Touched:connect(onTouch)
  2027.  
  2028.  
  2029.  
  2030. mouse.KeyUp:connect(function(k)
  2031. if k == "0"then
  2032. Runkey = false
  2033.  
  2034. end
  2035.  
  2036.  
  2037.  
  2038.  
  2039.  
  2040.  
  2041. end)
  2042.  
  2043. humHsave = Humanoid.Health
  2044. function GainCharge(Humanoid)
  2045. if Humanoid.Health == 0 then
  2046. equipped = false
  2047. end
  2048. if blocking == true then
  2049.  
  2050. humDsave = Humanoid.Health
  2051. humDsave = humHsave - humDsave
  2052. if humDsave >0.01 then
  2053.  
  2054. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260433850", Torso, 1, .5)
  2055. BlockEffect( BrickColor.new("Really red"), Torso.CFrame, 42, 42, 22, 0.1,0.1,0.1, 0.02,2)
  2056. BlockEffect( BrickColor.new("Really red"), RightArm.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
  2057. BlockEffect( BrickColor.new("Really red"), LeftArm.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
  2058. BlockEffect( BrickColor.new("Really red"), RightLeg.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
  2059. BlockEffect( BrickColor.new("Really red"), LeftLeg.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
  2060. humDsave = humDsave/3
  2061. end
  2062. if humDsave <0 then
  2063.  
  2064.  
  2065. Effects.Sphere.Create(BrickColor.new("Lime green"), RootPart.CFrame * cn(0, -2.97, 0), 10, 5, 10, 15,-.1,15, 0.05)
  2066. --[[
  2067. BlockEffect( BrickColor.new("Lime green"), Torso.CFrame, 41, 41, 21, 0,0,0, 0.1,2)
  2068. BlockEffect( BrickColor.new("Lime green"), RightArm.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
  2069. BlockEffect( BrickColor.new("Lime green"), LeftArm.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
  2070. BlockEffect( BrickColor.new("Lime green"), RightLeg.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
  2071. BlockEffect( BrickColor.new("Lime green"), LeftLeg.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
  2072. --]]
  2073. humDsave = humDsave*2.5
  2074. end
  2075.  
  2076. humHsave = humHsave - humDsave
  2077.  
  2078.  
  2079.  
  2080.  
  2081. end
  2082.  
  2083. end
  2084.  
  2085. Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end)
  2086.  
  2087.  
  2088. OnDeath = function()
  2089.  
  2090. equipped = false
  2091.  
  2092.  
  2093.  
  2094. end
  2095.  
  2096. Humanoid.Died:connect(function()OnDeath(Character)end)
  2097.  
  2098.  
  2099.  
  2100. print('This fucking masterpiece was totally not created by xiaxiaokid.')
  2101. local music=Instance.new('Sound',inside)
  2102. music.Name='ok music'
  2103. music.Volume=7
  2104. music.Pitch=1
  2105. music.Looped=true
  2106. music.SoundId = "rbxassetid://737286463"
  2107. local gui=Instance.new('ScreenGui',Player.PlayerGui)
  2108. gui.Name='you make me cri'
  2109. local topFrame=Instance.new('Frame',gui)
  2110. topFrame.Name='TopFrame'
  2111. topFrame.Size=UDim2.new(1,0,1,0)
  2112. topFrame.BorderSizePixel=0
  2113. topFrame.BackgroundTransparency=1
  2114. local choiceFrame=Instance.new('Frame',topFrame)
  2115. choiceFrame.Size=UDim2.new(.4,0,.05,0)
  2116. choiceFrame.Draggable=true
  2117. choiceFrame.BackgroundTransparency=.7
  2118. choiceFrame.Position=UDim2.new(.5,0,.775,0)
  2119. choiceFrame.BackgroundColor3=Color3.new(0,0,0)
  2120. choiceFrame.BorderColor3=Color3.new(0,0,0)
  2121. local innerFrame3=Instance.new('Frame',choiceFrame)
  2122. innerFrame3.Size=UDim2.new(.5,0,1,0)
  2123. innerFrame3.Position=UDim2.new(.5,0,0,0)
  2124. innerFrame3.Draggable=true
  2125. innerFrame3.BackgroundTransparency=.9
  2126. innerFrame3.BackgroundColor3=Color3.new(0,0,0)
  2127. innerFrame3.BorderColor3=Color3.new(0,0,0)
  2128. local innerFrame4=Instance.new('Frame',choiceFrame)
  2129. innerFrame4.Size=UDim2.new(.5,0,1,0)
  2130. innerFrame4.Draggable=false
  2131. innerFrame4.BackgroundTransparency=.5
  2132. innerFrame4.Position=UDim2.new(.5,0,1,1)
  2133. innerFrame4.BackgroundColor3=Color3.new(0,0,0)
  2134. innerFrame4.BorderColor3=Color3.new(0,0,0)
  2135. local musicID=Instance.new('TextBox',innerFrame4)
  2136. musicID.Size=UDim2.new(.8,0,.7,0)
  2137. musicID.Position=UDim2.new(.1,0,.15,0)
  2138. musicID.BackgroundTransparency=.7
  2139. musicID.Visible=true
  2140. musicID.Text="Music ID (press enter to use the audio)"
  2141. musicID.TextScaled=true
  2142. musicID.TextStrokeTransparency=0
  2143. musicID.TextColor3=Color3.new(0,255,255)
  2144. musicID.BackgroundColor3=Color3.new(0,0,0)
  2145. musicID.BorderColor3=Color3.new(0,0,0)
  2146. musicID.FocusLost:connect(function(ent)
  2147. if ent then
  2148. music.SoundId="http://www.roblox.com/asset?id="..musicID.Text
  2149. end
  2150. end)
  2151. local bt3=Instance.new('TextButton',innerFrame3)
  2152. bt3.Draggable=false
  2153. bt3.BackgroundTransparency=.9
  2154. bt3.BackgroundColor3=Color3.new(0,0,0)
  2155. bt3.Size=UDim2.new(.5,0,1,0)
  2156. bt3.Text="Play"
  2157. bt3.TextStrokeTransparency=0
  2158. bt3.TextColor3=Color3.new(0,255,255)
  2159. bt3.TextScaled=true
  2160. bt3.Font="SciFi"
  2161. bt3.MouseButton1Click:connect(function()
  2162. if not music.IsPlaying then
  2163. musicID.Visible=false
  2164. music:play''
  2165. innerFrame4.Visible=false
  2166. end
  2167. end)
  2168. local bt4=Instance.new('TextButton',innerFrame3)
  2169. bt4.Draggable=false
  2170. bt4.BackgroundTransparency=.9
  2171. bt4.BackgroundColor3=Color3.new(0,0,0)
  2172. bt4.Size=UDim2.new(.5,0,1,0)
  2173. bt4.Position=UDim2.new(.5,0,0,0)
  2174. bt4.Text="Stop"
  2175. bt4.TextStrokeTransparency=0
  2176. bt4.TextColor3=Color3.new(0,255,255)
  2177. bt4.TextScaled=true
  2178. bt4.Font="SciFi"
  2179. bt4.MouseButton1Click:connect(function()
  2180. if music.IsPlaying then
  2181. music:stop''
  2182. musicID.Visible=true
  2183. innerFrame4.Visible=true
  2184. end
  2185. end)
  2186. while true do
  2187. swait()
  2188. Humanoid.Name = "fnwihjfbewuhgbewjhgbrjhge"
  2189. Humanoid.MaxHealth = math.huge
  2190. Humanoid.Health = math.huge
  2191. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement