Advertisement
RobloxScriptzzz

Roblox Car Script

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