Advertisement
Vzurxy

Untitled

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