Advertisement
iiZade

Untitled

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