Advertisement
firasj082

The destroyer script

May 14th, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.17 KB | None | 0 0
  1. local FavIDs = {
  2. 340106355, --Nefl Crystals
  3. 927529620, --Dimension
  4. 876981900, --Fantasy
  5. 398987889, --Ordinary Days
  6. 1117396305, --Oh wait, it's you.
  7. 885996042, --Action Winter Journey
  8. 919231299, --Sprawling Idiot Effigy
  9. 743466274, --Good Day Sunshine
  10. 727411183 --Knife Fight
  11. }
  12.  
  13.  
  14.  
  15. --The reality of my life isn't real but a Universe -makhail07
  16. wait()
  17. local plr = game:service'Players'.LocalPlayer
  18. print('Local User is '..plr.Name)
  19. local char = plr.Character
  20. local hum = char.Humanoid
  21. local ra = char["Right Arm"]
  22. local la= char["Left Arm"]
  23. local rl= char["Right Leg"]
  24. local ll = char["Left Leg"]
  25. local hed = char.Head
  26. local root = char.HumanoidRootPart
  27. local rootj = root.RootJoint
  28. local tors = char.Torso
  29. local mouse = plr:GetMouse()
  30. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  31. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  32. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  33. local RbxUtility = LoadLibrary("RbxUtility")
  34. local Create = RbxUtility.Create
  35. local CanUse = true
  36. -------------------------------------------------------
  37. --Start Good Stuff--
  38. -------------------------------------------------------
  39. CF = CFrame.new
  40. angles = CFrame.Angles
  41. attack = false
  42. Euler = CFrame.fromEulerAnglesXYZ
  43. Rad = math.rad
  44. IT = Instance.new
  45. BrickC = BrickColor.new
  46. Cos = math.cos
  47. Acos = math.acos
  48. Sin = math.sin
  49. Asin = math.asin
  50. Abs = math.abs
  51. Mrandom = math.random
  52. Floor = math.floor
  53. -------------------------------------------------------
  54. --End Good Stuff--
  55. -------------------------------------------------------
  56.  
  57. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  58. RSH, LSH = nil, nil
  59. RW = Instance.new("Weld")
  60. LW = Instance.new("Weld")
  61. RH = tors["Right Hip"]
  62. LH = tors["Left Hip"]
  63. RSH = tors["Right Shoulder"]
  64. LSH = tors["Left Shoulder"]
  65. RSH.Parent = nil
  66. LSH.Parent = nil
  67. RW.Name = "RW"
  68. RW.Part0 = tors
  69. RW.C0 = CF(1.5, 0.5, 0)
  70. RW.C1 = CF(0, 0.5, 0)
  71. RW.Part1 = ra
  72. RW.Parent = tors
  73. LW.Name = "LW"
  74. LW.Part0 = tors
  75. LW.C0 = CF(-1.5, 0.5, 0)
  76. LW.C1 = CF(0, 0.5, 0)
  77. LW.Part1 = la
  78. LW.Parent = tors
  79. Effects = {}
  80.  
  81. -------------------------------------------------------
  82. --Start HeartBeat--
  83. -------------------------------------------------------
  84. ArtificialHB = Instance.new("BindableEvent", script)
  85. ArtificialHB.Name = "Heartbeat"
  86. script:WaitForChild("Heartbeat")
  87.  
  88. frame = 1 / 60
  89. tf = 0
  90. allowframeloss = false
  91. tossremainder = false
  92.  
  93.  
  94. lastframe = tick()
  95. script.Heartbeat:Fire()
  96.  
  97.  
  98. game:GetService("RunService").Heartbeat:connect(function(s, p)
  99. tf = tf + s
  100. if tf >= frame then
  101. if allowframeloss then
  102. script.Heartbeat:Fire()
  103. lastframe = tick()
  104. else
  105. for i = 1, math.floor(tf / frame) do
  106. script.Heartbeat:Fire()
  107. end
  108. lastframe = tick()
  109. end
  110. if tossremainder then
  111. tf = 0
  112. else
  113. tf = tf - frame * math.floor(tf / frame)
  114. end
  115. end
  116. end)
  117. -------------------------------------------------------
  118. --End HeartBeat--
  119. -------------------------------------------------------
  120.  
  121. -------------------------------------------------------
  122. --Start Important Functions--
  123. -------------------------------------------------------
  124. function swait(num)
  125. if num == 0 or num == nil then
  126. game:service("RunService").Stepped:wait(0)
  127. else
  128. for i = 0, num do
  129. game:service("RunService").Stepped:wait(0)
  130. end
  131. end
  132. end
  133. function thread(f)
  134. coroutine.resume(coroutine.create(f))
  135. end
  136. function clerp(a, b, t)
  137. local qa = {
  138. QuaternionFromCFrame(a)
  139. }
  140. local qb = {
  141. QuaternionFromCFrame(b)
  142. }
  143. local ax, ay, az = a.x, a.y, a.z
  144. local bx, by, bz = b.x, b.y, b.z
  145. local _t = 1 - t
  146. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  147. end
  148. function QuaternionFromCFrame(cf)
  149. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  150. local trace = m00 + m11 + m22
  151. if trace > 0 then
  152. local s = math.sqrt(1 + trace)
  153. local recip = 0.5 / s
  154. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  155. else
  156. local i = 0
  157. if m00 < m11 then
  158. i = 1
  159. end
  160. if m22 > (i == 0 and m00 or m11) then
  161. i = 2
  162. end
  163. if i == 0 then
  164. local s = math.sqrt(m00 - m11 - m22 + 1)
  165. local recip = 0.5 / s
  166. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  167. elseif i == 1 then
  168. local s = math.sqrt(m11 - m22 - m00 + 1)
  169. local recip = 0.5 / s
  170. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  171. elseif i == 2 then
  172. local s = math.sqrt(m22 - m00 - m11 + 1)
  173. local recip = 0.5 / s
  174. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  175. end
  176. end
  177. end
  178. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  179. local xs, ys, zs = x + x, y + y, z + z
  180. local wx, wy, wz = w * xs, w * ys, w * zs
  181. local xx = x * xs
  182. local xy = x * ys
  183. local xz = x * zs
  184. local yy = y * ys
  185. local yz = y * zs
  186. local zz = z * zs
  187. 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))
  188. end
  189. function QuaternionSlerp(a, b, t)
  190. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  191. local startInterp, finishInterp
  192. if cosTheta >= 1.0E-4 then
  193. if 1 - cosTheta > 1.0E-4 then
  194. local theta = math.acos(cosTheta)
  195. local invSinTheta = 1 / Sin(theta)
  196. startInterp = Sin((1 - t) * theta) * invSinTheta
  197. finishInterp = Sin(t * theta) * invSinTheta
  198. else
  199. startInterp = 1 - t
  200. finishInterp = t
  201. end
  202. elseif 1 + cosTheta > 1.0E-4 then
  203. local theta = math.acos(-cosTheta)
  204. local invSinTheta = 1 / Sin(theta)
  205. startInterp = Sin((t - 1) * theta) * invSinTheta
  206. finishInterp = Sin(t * theta) * invSinTheta
  207. else
  208. startInterp = t - 1
  209. finishInterp = t
  210. end
  211. 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
  212. end
  213. function rayCast(Position, Direction, Range, Ignore)
  214. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  215. end
  216.  
  217.  
  218. -------------------------------------------------------
  219. --Start Damage Function--
  220. -------------------------------------------------------
  221. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  222. if hit.Parent == nil then
  223. return
  224. end
  225. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  226. for _, v in pairs(hit.Parent:children()) do
  227. if v:IsA("Humanoid") then
  228. h = v
  229. end
  230. end
  231. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  232. warn'No R15 allowed'
  233. hit.Parent:FindFirstChild("Head"):BreakJoints()
  234. end
  235.  
  236. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  237. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  238. if hit.Parent.DebounceHit.Value == true then
  239. return
  240. end
  241. end
  242. if insta == true then
  243. hit.Parent:FindFirstChild("Head"):BreakJoints()
  244. end
  245. local c = Create("ObjectValue"){
  246. Name = "creator",
  247. Value = game:service("Players").LocalPlayer,
  248. Parent = h,
  249. }
  250. game:GetService("Debris"):AddItem(c, .5)
  251. if HitSound ~= nil and HitPitch ~= nil then
  252. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  253. end
  254. local Damage = math.random(minim, maxim)
  255. local blocked = false
  256. local block = hit.Parent:findFirstChild("Block")
  257. if block ~= nil then
  258. if block.className == "IntValue" then
  259. if block.Value > 0 then
  260. blocked = true
  261. block.Value = block.Value - 1
  262. print(block.Value)
  263. end
  264. end
  265. end
  266. if blocked == false then
  267. h.Health = h.Health - Damage
  268. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  269. else
  270. h.Health = h.Health - (Damage / 2)
  271. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  272. end
  273. if Type == "Knockdown" then
  274. local hum = hit.Parent.Humanoid
  275. hum.PlatformStand = true
  276. coroutine.resume(coroutine.create(function(HHumanoid)
  277. swait(1)
  278. HHumanoid.PlatformStand = false
  279. end), hum)
  280. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  281. local bodvol = Create("BodyVelocity"){
  282. velocity = angle * knockback,
  283. P = 5000,
  284. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  285. Parent = hit,
  286. }
  287. local rl = Create("BodyAngularVelocity"){
  288. P = 3000,
  289. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  290. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  291. Parent = hit,
  292. }
  293. game:GetService("Debris"):AddItem(bodvol, .5)
  294. game:GetService("Debris"):AddItem(rl, .5)
  295. elseif Type == "Normal" then
  296. local vp = Create("BodyVelocity"){
  297. P = 500,
  298. maxForce = Vector3.new(math.huge, 0, math.huge),
  299. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  300. }
  301. if knockback > 0 then
  302. vp.Parent = hit.Parent.Torso
  303. end
  304. game:GetService("Debris"):AddItem(vp, .5)
  305. elseif Type == "Up" then
  306. local bodyVelocity = Create("BodyVelocity"){
  307. velocity = Vector3.new(0, 20, 0),
  308. P = 5000,
  309. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  310. Parent = hit,
  311. }
  312. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  313. elseif Type == "DarkUp" then
  314. coroutine.resume(coroutine.create(function()
  315. for i = 0, 1, 0.1 do
  316. swait()
  317. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  318. end
  319. end))
  320. local bodyVelocity = Create("BodyVelocity"){
  321. velocity = Vector3.new(0, 20, 0),
  322. P = 5000,
  323. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  324. Parent = hit,
  325. }
  326. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  327. elseif Type == "Snare" then
  328. local bp = Create("BodyPosition"){
  329. P = 2000,
  330. D = 100,
  331. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  332. position = hit.Parent.Torso.Position,
  333. Parent = hit.Parent.Torso,
  334. }
  335. game:GetService("Debris"):AddItem(bp, 1)
  336. elseif Type == "Freeze" then
  337. local BodPos = Create("BodyPosition"){
  338. P = 50000,
  339. D = 1000,
  340. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  341. position = hit.Parent.Torso.Position,
  342. Parent = hit.Parent.Torso,
  343. }
  344. local BodGy = Create("BodyGyro") {
  345. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  346. P = 20e+003,
  347. Parent = hit.Parent.Torso,
  348. cframe = hit.Parent.Torso.CFrame,
  349. }
  350. hit.Parent.Torso.Anchored = true
  351. coroutine.resume(coroutine.create(function(Part)
  352. swait(1.5)
  353. Part.Anchored = false
  354. end), hit.Parent.Torso)
  355. game:GetService("Debris"):AddItem(BodPos, 3)
  356. game:GetService("Debris"):AddItem(BodGy, 3)
  357. end
  358. local debounce = Create("BoolValue"){
  359. Name = "DebounceHit",
  360. Parent = hit.Parent,
  361. Value = true,
  362. }
  363. game:GetService("Debris"):AddItem(debounce, Delay)
  364. c = Create("ObjectValue"){
  365. Name = "creator",
  366. Value = Player,
  367. Parent = h,
  368. }
  369. game:GetService("Debris"):AddItem(c, .5)
  370. end
  371. end
  372. -------------------------------------------------------
  373. --End Damage Function--
  374. -------------------------------------------------------
  375.  
  376. -------------------------------------------------------
  377. --Start Damage Function Customization--
  378. -------------------------------------------------------
  379. function ShowDamage(Pos, Text, Time, Color)
  380. local Rate = (1 / 30)
  381. local Pos = (Pos or Vector3.new(0, 0, 0))
  382. local Text = (Text or "")
  383. local Time = (Time or 2)
  384. local Color = (Color or Color3.new(1, 0, 1))
  385. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  386. EffectPart.Anchored = true
  387. local BillboardGui = Create("BillboardGui"){
  388. Size = UDim2.new(3, 0, 3, 0),
  389. Adornee = EffectPart,
  390. Parent = EffectPart,
  391. }
  392. local TextLabel = Create("TextLabel"){
  393. BackgroundTransparency = 1,
  394. Size = UDim2.new(1, 0, 1, 0),
  395. Text = Text,
  396. Font = "Highway",
  397. TextColor3 = Color,
  398. TextScaled = true,
  399. Parent = BillboardGui,
  400. }
  401. game.Debris:AddItem(EffectPart, (Time))
  402. EffectPart.Parent = game:GetService("Workspace")
  403. delay(0, function()
  404. local Frames = (Time / Rate)
  405. for Frame = 1, Frames do
  406. wait(Rate)
  407. local Percent = (Frame / Frames)
  408. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  409. TextLabel.TextTransparency = Percent
  410. end
  411. if EffectPart and EffectPart.Parent then
  412. EffectPart:Destroy()
  413. end
  414. end)
  415. end
  416. -------------------------------------------------------
  417. --End Damage Function Customization--
  418. -------------------------------------------------------
  419.  
  420. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  421. for _, c in pairs(workspace:children()) do
  422. local hum = c:findFirstChild("Humanoid")
  423. if hum ~= nil then
  424. local head = c:findFirstChild("Head")
  425. if head ~= nil then
  426. local targ = head.Position - Part.Position
  427. local mag = targ.magnitude
  428. if magni >= mag and c.Name ~= plr.Name then
  429. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=", 1.2)
  430. end
  431. end
  432. end
  433. end
  434. end
  435.  
  436.  
  437. CFuncs = {
  438. Part = {
  439. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  440. local Part = Create("Part")({
  441. Parent = Parent,
  442. Reflectance = Reflectance,
  443. Transparency = Transparency,
  444. CanCollide = false,
  445. Locked = true,
  446. BrickColor = BrickColor.new(tostring(BColor)),
  447. Name = Name,
  448. Size = Size,
  449. Material = Material
  450. })
  451. RemoveOutlines(Part)
  452. return Part
  453. end
  454. },
  455. Mesh = {
  456. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  457. local Msh = Create(Mesh)({
  458. Parent = Part,
  459. Offset = OffSet,
  460. Scale = Scale
  461. })
  462. if Mesh == "SpecialMesh" then
  463. Msh.MeshType = MeshType
  464. Msh.MeshId = MeshId
  465. end
  466. return Msh
  467. end
  468. },
  469. Mesh = {
  470. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  471. local Msh = Create(Mesh)({
  472. Parent = Part,
  473. Offset = OffSet,
  474. Scale = Scale
  475. })
  476. if Mesh == "SpecialMesh" then
  477. Msh.MeshType = MeshType
  478. Msh.MeshId = MeshId
  479. end
  480. return Msh
  481. end
  482. },
  483. Weld = {
  484. Create = function(Parent, Part0, Part1, C0, C1)
  485. local Weld = Create("Weld")({
  486. Parent = Parent,
  487. Part0 = Part0,
  488. Part1 = Part1,
  489. C0 = C0,
  490. C1 = C1
  491. })
  492. return Weld
  493. end
  494. },
  495. Sound = {
  496. Create = function(id, par, vol, pit)
  497. coroutine.resume(coroutine.create(function()
  498. local S = Create("Sound")({
  499. Volume = vol,
  500. Pitch = pit or 1,
  501. SoundId = id,
  502. Parent = par or workspace
  503. })
  504. wait()
  505. S:play()
  506. game:GetService("Debris"):AddItem(S, 6)
  507. end))
  508. end
  509. },
  510. ParticleEmitter = {
  511. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  512. local fp = Create("ParticleEmitter")({
  513. Parent = Parent,
  514. Color = ColorSequence.new(Color1, Color2),
  515. LightEmission = LightEmission,
  516. Size = Size,
  517. Texture = Texture,
  518. Transparency = Transparency,
  519. ZOffset = ZOffset,
  520. Acceleration = Accel,
  521. Drag = Drag,
  522. LockedToPart = LockedToPart,
  523. VelocityInheritance = VelocityInheritance,
  524. EmissionDirection = EmissionDirection,
  525. Enabled = Enabled,
  526. Lifetime = LifeTime,
  527. Rate = Rate,
  528. Rotation = Rotation,
  529. RotSpeed = RotSpeed,
  530. Speed = Speed,
  531. VelocitySpread = VelocitySpread
  532. })
  533. return fp
  534. end
  535. }
  536. }
  537. function RemoveOutlines(part)
  538. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  539. end
  540. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  541. local Part = Create("Part")({
  542. formFactor = FormFactor,
  543. Parent = Parent,
  544. Reflectance = Reflectance,
  545. Transparency = Transparency,
  546. CanCollide = false,
  547. Locked = true,
  548. BrickColor = BrickColor.new(tostring(BColor)),
  549. Name = Name,
  550. Size = Size,
  551. Material = Material
  552. })
  553. RemoveOutlines(Part)
  554. return Part
  555. end
  556. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  557. local Msh = Create(Mesh)({
  558. Parent = Part,
  559. Offset = OffSet,
  560. Scale = Scale
  561. })
  562. if Mesh == "SpecialMesh" then
  563. Msh.MeshType = MeshType
  564. Msh.MeshId = MeshId
  565. end
  566. return Msh
  567. end
  568. function CreateWeld(Parent, Part0, Part1, C0, C1)
  569. local Weld = Create("Weld")({
  570. Parent = Parent,
  571. Part0 = Part0,
  572. Part1 = Part1,
  573. C0 = C0,
  574. C1 = C1
  575. })
  576. return Weld
  577. end
  578.  
  579.  
  580. -------------------------------------------------------
  581. --Start Effect Function--
  582. -------------------------------------------------------
  583. EffectModel = Instance.new("Model", char)
  584. Effects = {
  585. Block = {
  586. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  587. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  588. prt.Anchored = true
  589. prt.CFrame = cframe
  590. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  591. game:GetService("Debris"):AddItem(prt, 10)
  592. if Type == 1 or Type == nil then
  593. table.insert(Effects, {
  594. prt,
  595. "Block1",
  596. delay,
  597. x3,
  598. y3,
  599. z3,
  600. msh
  601. })
  602. elseif Type == 2 then
  603. table.insert(Effects, {
  604. prt,
  605. "Block2",
  606. delay,
  607. x3,
  608. y3,
  609. z3,
  610. msh
  611. })
  612. else
  613. table.insert(Effects, {
  614. prt,
  615. "Block3",
  616. delay,
  617. x3,
  618. y3,
  619. z3,
  620. msh
  621. })
  622. end
  623. end
  624. },
  625. Sphere = {
  626. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  627. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  628. prt.Anchored = true
  629. prt.CFrame = cframe
  630. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  631. game:GetService("Debris"):AddItem(prt, 10)
  632. table.insert(Effects, {
  633. prt,
  634. "Cylinder",
  635. delay,
  636. x3,
  637. y3,
  638. z3,
  639. msh
  640. })
  641. end
  642. },
  643. Cylinder = {
  644. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  645. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  646. prt.Anchored = true
  647. prt.CFrame = cframe
  648. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  649. game:GetService("Debris"):AddItem(prt, 10)
  650. table.insert(Effects, {
  651. prt,
  652. "Cylinder",
  653. delay,
  654. x3,
  655. y3,
  656. z3,
  657. msh
  658. })
  659. end
  660. },
  661. Wave = {
  662. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  663. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  664. prt.Anchored = true
  665. prt.CFrame = cframe
  666. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  667. game:GetService("Debris"):AddItem(prt, 10)
  668. table.insert(Effects, {
  669. prt,
  670. "Cylinder",
  671. delay,
  672. x3 / 60,
  673. y3 / 60,
  674. z3 / 60,
  675. msh
  676. })
  677. end
  678. },
  679. Ring = {
  680. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  681. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  682. prt.Anchored = true
  683. prt.CFrame = cframe
  684. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  685. game:GetService("Debris"):AddItem(prt, 10)
  686. table.insert(Effects, {
  687. prt,
  688. "Cylinder",
  689. delay,
  690. x3,
  691. y3,
  692. z3,
  693. msh
  694. })
  695. end
  696. },
  697. Break = {
  698. Create = function(brickcolor, cframe, x1, y1, z1)
  699. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  700. prt.Anchored = true
  701. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  702. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  703. local num = math.random(10, 50) / 1000
  704. game:GetService("Debris"):AddItem(prt, 10)
  705. table.insert(Effects, {
  706. prt,
  707. "Shatter",
  708. num,
  709. prt.CFrame,
  710. math.random() - math.random(),
  711. 0,
  712. math.random(50, 100) / 100
  713. })
  714. end
  715. },
  716. Spiral = {
  717. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  718. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  719. prt.Anchored = true
  720. prt.CFrame = cframe
  721. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  722. game:GetService("Debris"):AddItem(prt, 10)
  723. table.insert(Effects, {
  724. prt,
  725. "Cylinder",
  726. delay,
  727. x3,
  728. y3,
  729. z3,
  730. msh
  731. })
  732. end
  733. },
  734. Push = {
  735. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  736. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  737. prt.Anchored = true
  738. prt.CFrame = cframe
  739. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  740. game:GetService("Debris"):AddItem(prt, 10)
  741. table.insert(Effects, {
  742. prt,
  743. "Cylinder",
  744. delay,
  745. x3,
  746. y3,
  747. z3,
  748. msh
  749. })
  750. end
  751. }
  752. }
  753. -------------------------------------------------------
  754. --End Effect Function--
  755. -------------------------------------------------------
  756. local asd = Instance.new("ParticleEmitter")
  757. asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  758. asd.LightEmission = .1
  759. asd.Size = NumberSequence.new(0.2)
  760. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  761. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  762. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  763. asd.Transparency = bbb
  764. asd.Size = aaa
  765. asd.ZOffset = .9
  766. asd.Acceleration = Vector3.new(0, -5, 0)
  767. asd.LockedToPart = false
  768. asd.EmissionDirection = "Back"
  769. asd.Lifetime = NumberRange.new(1, 2)
  770. asd.Rotation = NumberRange.new(-100, 100)
  771. asd.RotSpeed = NumberRange.new(-100, 100)
  772. asd.Speed = NumberRange.new(2)
  773. asd.Enabled = false
  774. asd.VelocitySpread = 10000
  775.  
  776. function bleed(victim,amount)
  777. local prtcl = asd:Clone()
  778. prtcl.Parent = victim
  779. prtcl:Emit(amount)
  780. end
  781.  
  782.  
  783.  
  784. function CreateSound(ID, PARENT, VOLUME, PITCH)
  785. local NSound = nil
  786. coroutine.resume(coroutine.create(function()
  787. NSound = Instance.new("Sound", PARENT)
  788. NSound.Volume = VOLUME
  789. NSound.Pitch = PITCH
  790. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  791. swait()
  792. NSound:play()
  793. game:GetService("Debris"):AddItem(NSound, 10)
  794. end))
  795. return NSound
  796. end
  797.  
  798.  
  799. local Weapon = Instance.new("Model")
  800. function Kill(Target)
  801. if Target.Parent ~= Weapon and Target:FindFirstChildOfClass("Humanoid") then
  802. local DummyHead = nil
  803. local q = Target:GetChildren()
  804. for i = 1,#q do
  805. if q[i].ClassName ~= "LocalScript" and q[i].ClassName ~= "Script" and q[i].ClassName ~= "Accessory" and q[i].ClassName ~= "Hat" and q[i].ClassName ~= "Gear" and q[i].ClassName ~= "Sound" then
  806. if q[i].ClassName == "Humanoid" then
  807. q[i].PlatformStand = true
  808. q[i]:ClearAllChildren()
  809. q[i].Name = "Corpse"
  810. q[i].MaxHealth = "inf"
  811. q[i].Health = "inf"
  812. end
  813. if q[i].Name == "Head" then
  814. q[i]:ClearAllChildren()
  815. q[i]:Remove()
  816. end
  817. else
  818. q[i]:remove()
  819. end
  820. end
  821. end
  822. end
  823.  
  824.  
  825. function CreateMagicCircle()
  826. local sinkhole = IT("Part")
  827. sinkhole.Size = Vector3.new(0,0,0)
  828. sinkhole.Parent = EffectModel
  829. sinkhole.Material = "Neon"
  830. sinkhole.Color = Color3.new(0,0,0)
  831. sinkhole.Anchored = true
  832. sinkhole.CanCollide = false
  833. sinkhole.Transparency = 1
  834. local decal = IT("Decal",sinkhole)
  835. decal.Face = "Top"
  836. decal.Texture = "http://www.roblox.com/asset/?id=124339738"
  837. local decal2 = IT("Decal",sinkhole)
  838. decal2.Face = "Bottom"
  839. decal2.Texture = "http://www.roblox.com/asset/?id=124339738"
  840. return sinkhole
  841. end
  842.  
  843. function AoEKill(position,radius)
  844. for i,v in ipairs(workspace:GetChildren()) do
  845. if v:FindFirstChild("HitBy"..plr.Name) == nil then
  846. local body = v:GetChildren()
  847. for part = 1, #body do
  848. if(v:FindFirstChild("HitBy"..plr.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= char) then
  849. if(body[part].Position - position).Magnitude < radius then
  850. if v.ClassName == "Model" then
  851. if v:FindFirstChild("Humanoid") then
  852. if v.Humanoid.Health ~= 0 then
  853. if body[part].Position.Y < position.Y+12 then
  854. print("Got "..v.Name)
  855. local defence = Instance.new("BoolValue",v)
  856. defence.Name = ("HitBy"..plr.Name)
  857. game:GetService("Debris"):AddItem(defence, 0.01)
  858. local TORSO = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  859. local HEAD = v:FindFirstChild("Head")
  860. HEAD:Remove()
  861. end
  862. end
  863. end
  864. end
  865. --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  866. end
  867. end
  868. end
  869. end
  870. end
  871. end
  872. -------------------------------------------------------
  873. --End Important Functions--
  874. -------------------------------------------------------
  875.  
  876.  
  877. -------------------------------------------------------
  878. --Start Music Option--
  879. -------------------------------------------------------
  880. local Music = Instance.new("Sound",tors)
  881. Music.Volume = 5.5
  882. Music.SoundId = "rbxassetid://919231299"
  883. Music.Looped = true
  884. Music.Pitch = 1 --Pitcher
  885. Music:Play()
  886. -------------------------------------------------------
  887. --End Music Option--
  888. -------------------------------------------------------
  889.  
  890. local PlayerSize = 1
  891. local FT,RA,LA,RL,LL = Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh")
  892. FT.MeshId,FT.Scale = "rbxasset://fonts/torso.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  893. RA.MeshId,RA.Scale = "rbxasset://fonts/rightarm.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  894. LA.MeshId,LA.Scale = "rbxasset://fonts/leftarm.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  895. RL.MeshId,RL.Scale = "rbxasset://fonts/rightleg.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  896. LL.MeshId,LL.Scale = "rbxasset://fonts/leftleg.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  897.  
  898. -------------------------------------------------------
  899. --Start Attacks N Stuff--
  900. -------------------------------------------------------
  901. local sine=0
  902. function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype)
  903. local Hitboxpart = Instance.new("Part", EffectModel)
  904. RemoveOutlines(Hitboxpart)
  905. Hitboxpart.Size = Vector3.new(siz1, siz2, siz3)
  906. Hitboxpart.CanCollide = false
  907. Hitboxpart.Transparency = 1
  908. Hitboxpart.Anchored = true
  909. Hitboxpart.CFrame = Pose
  910. game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
  911. MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
  912. end
  913. wait2 = false
  914. combo = 1
  915. mouse.Button1Down:connect(function(key)
  916. if attack == false then
  917. attack = true
  918. hum.WalkSpeed = 3.01
  919. if combo == 1 and wait2 == false then
  920. wait2 = true
  921. for i = 0, 1.2, 0.1 do
  922. swait()
  923. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-35)), 0.3)
  924. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
  925. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1)
  926. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  927. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(-2.5), math.rad(0), math.rad(-0)), 0.3)
  928. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(15), math.rad(-20)), 0.3)
  929. end
  930. for i = 0, .1, 0.1 do
  931. swait()
  932. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(55)), 0.3)
  933. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  934. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(95), math.rad(0), math.rad(40)), 0.1)
  935. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  936. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-65)), 0.3)
  937. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3)
  938. end
  939. CreateSound("1209871551", hed, 5, 1)
  940. for i = 1, 30 do
  941. swait()
  942. RA.Parent = ra
  943. LA.Parent = la
  944. FT.Parent = tors
  945. RL.Parent = rl
  946. LL.Parent = ll
  947. for _,v in next, char:GetDescendants() do
  948. if(v:IsA'DataModelMesh')then
  949. v.Offset = Vector3.new(math.random(-300,300)/100,math.random(-300,300)/100,math.random(-300,300)/100)
  950. end
  951. end
  952. end
  953. FT.Parent = nil
  954. RA.Parent = nil
  955. LA.Parent = nil
  956. RL.Parent = nil
  957. LL.Parent = nil
  958. for _,v in next, char:GetDescendants() do
  959. if(v:IsA'DataModelMesh')then
  960. v.Offset = Vector3.new(0,0,0)
  961. end
  962. end
  963. wait(1.5)
  964. for i = 0, 1.2, 0.1 do
  965. swait()
  966. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-35)), 0.3)
  967. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
  968. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1)
  969. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  970. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(-2.5), math.rad(0), math.rad(-0)), 0.3)
  971. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(15), math.rad(-20)), 0.3)
  972. end
  973. HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 7, 6, 9, 3, "Normal")
  974. for i = 0, 1.2, 0.1 do
  975. swait()
  976. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(55)), 0.3)
  977. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  978. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(95), math.rad(0), math.rad(40)), 0.1)
  979. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  980. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-65)), 0.3)
  981. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3)
  982. end
  983. combo = 2
  984. end
  985. if combo == 2 and wait2 == false then
  986. wait2 = true
  987. for i = 0, 1.2, 0.1 do
  988. swait()
  989. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-25), math.rad(10), math.rad(-65)), 0.3)
  990. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  991. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1)
  992. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  993. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-25)), 0.3)
  994. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(-20)), 0.3)
  995. end
  996. HitboxFunction(ll.CFrame, 0.01, 1, 1, 1, 7, 5, 10, 3, "Normal")
  997. for i = 0, 1.6, 0.1 do
  998. swait()
  999. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(65+255.45*i)), 0.3)
  1000. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1001. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(54), math.rad(0), math.rad(35)), 0.1)
  1002. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-34), math.rad(0), math.rad(-35)), 0.3)
  1003. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(95)), 0.3)
  1004. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-4.5), math.rad(-30), math.rad(0)), 0.3)
  1005. end
  1006. combo = 3
  1007. end
  1008. if combo == 3 and wait2 == false then
  1009. for i = 0, 1.2, 0.1 do
  1010. swait()
  1011. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-35)), 0.3)
  1012. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
  1013. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1)
  1014. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  1015. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(-2.5), math.rad(0), math.rad(-0)), 0.3)
  1016. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(15), math.rad(-20)), 0.3)
  1017. end
  1018. HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 7, 6, 9, 3, "Normal")
  1019. for i = 0, 1.2, 0.1 do
  1020. swait()
  1021. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(55)), 0.3)
  1022. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1023. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(95), math.rad(0), math.rad(40)), 0.1)
  1024. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  1025. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-65)), 0.3)
  1026. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3)
  1027. end
  1028. combo = 1
  1029. end
  1030. hum.WalkSpeed = 16
  1031. wait2 = false
  1032. attack = false
  1033. end
  1034. end)
  1035.  
  1036. function GlitchedTeleport()
  1037. CanUse = false
  1038. CreateSound("333430981", hed, 5, 1)
  1039. for i = 1, 25 do
  1040. swait()
  1041. RA.Parent = ra
  1042. LA.Parent = la
  1043. FT.Parent = tors
  1044. RL.Parent = rl
  1045. LL.Parent = ll
  1046. for _,v in next, char:GetDescendants() do
  1047. if(v:IsA'DataModelMesh')then
  1048. v.Offset = Vector3.new(math.random(-500,500)/200,math.random(-500,500)/200,math.random(-500,500)/200)
  1049. end
  1050. end
  1051. end
  1052. FT.Parent = nil
  1053. RA.Parent = nil
  1054. LA.Parent = nil
  1055. RL.Parent = nil
  1056. LL.Parent = nil
  1057. for _,v in next, char:GetDescendants() do
  1058. if(v:IsA'DataModelMesh')then
  1059. v.Offset = Vector3.new(0,0,0)
  1060. end
  1061. end
  1062. wait(.5)
  1063. root.CFrame = CFrame.new(CFrame.new(mouse.Hit.p)*CFrame.new(0,2.8,0).p,root.Position)
  1064. CreateSound("289556450", hed, 10, 1)
  1065. for i = 1, 60 do
  1066. swait()
  1067. RA.Parent = ra
  1068. LA.Parent = la
  1069. FT.Parent = tors
  1070. RL.Parent = rl
  1071. LL.Parent = ll
  1072. for _,v in next, char:GetDescendants() do
  1073. if(v:IsA'DataModelMesh')then
  1074. v.Offset = Vector3.new(math.random(-500,500)/200,math.random(-500,500)/200,math.random(-500,500)/200)
  1075. end
  1076. end
  1077. end
  1078. FT.Parent = nil
  1079. RA.Parent = nil
  1080. LA.Parent = nil
  1081. RL.Parent = nil
  1082. LL.Parent = nil
  1083. for _,v in next, char:GetDescendants() do
  1084. if(v:IsA'DataModelMesh')then
  1085. v.Offset = Vector3.new(0,0,0)
  1086. end
  1087. end
  1088. wait(1)
  1089. CanUse = true
  1090. end
  1091.  
  1092. function GlitchedHell()
  1093. if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1094. local HITBODY = mouse.Target.Parent
  1095. local TORS = HITBODY:FindFirstChild("Torso") or HITBODY:FindFirstChild("UpperTorso")
  1096. local HEAD = HITBODY:FindFirstChild("Head")
  1097. local HUMAN = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1098. if TORS ~= nil and HUMAN ~= nil then
  1099. attack = true
  1100. hum.WalkSpeed = 0
  1101. root.CFrame = TORS.CFrame * CFrame.new(-1,0,3)
  1102. TORS.Anchored = true
  1103. CreateSound("333430981", hed, 5, 1)
  1104. for i = 1, 25 do
  1105. swait()
  1106. RA.Parent = ra
  1107. LA.Parent = la
  1108. FT.Parent = tors
  1109. RL.Parent = rl
  1110. LL.Parent = ll
  1111. for _,v in next, char:GetDescendants() do
  1112. if(v:IsA'DataModelMesh')then
  1113. v.Offset = Vector3.new(math.random(-500,500)/200,math.random(-500,500)/200,math.random(-500,500)/200)
  1114. end
  1115. end
  1116. end
  1117. FT.Parent = nil
  1118. RA.Parent = nil
  1119. LA.Parent = nil
  1120. RL.Parent = nil
  1121. LL.Parent = nil
  1122. for _,v in next, char:GetDescendants() do
  1123. if(v:IsA'DataModelMesh')then
  1124. v.Offset = Vector3.new(0,0,0)
  1125. end
  1126. end
  1127. for i = 0, 1.2, 0.1 do
  1128. swait()
  1129. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-35)), 0.3)
  1130. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
  1131. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1)
  1132. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  1133. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(-2.5), math.rad(0), math.rad(-0)), 0.3)
  1134. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(15), math.rad(-20)), 0.3)
  1135. end
  1136. wait(.5)
  1137. for i = 0, 2.2, 0.1 do
  1138. swait()
  1139. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(35)), 0.3)
  1140. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1141. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(96), math.rad(0), math.rad(10)), 0.1)
  1142. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  1143. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-0)), 0.3)
  1144. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3)
  1145. end
  1146.  
  1147. for i = 0, 1.2, 0.1 do
  1148. swait()
  1149. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(-35)), 0.3)
  1150. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1151. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(25), math.rad(0), math.rad(10)), 0.1)
  1152. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  1153. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-0)), 0.3)
  1154. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3)
  1155. end
  1156. end
  1157. CreateSound("180083298", hed, 10, 1)
  1158. attack = false
  1159. HITBODY:BreakJoints()
  1160. TORS:Remove()
  1161. TORS.Anchored = false
  1162. attack = false
  1163. hum.WalkSpeed = 16
  1164. bleed(HEAD,25)
  1165. end
  1166. end
  1167.  
  1168.  
  1169. function DistortThem()
  1170. CanUse = false
  1171. local HIT = tors.Touched:Connect(function(hit)
  1172. Kill(hit.Parent)
  1173. end)
  1174. for i = 1, 350 do
  1175. swait()
  1176. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(125), math.rad(0), math.rad(10)), 0.1)
  1177. CreateSound("333430981", hed, 1.5, 1)
  1178. RA.Parent = ra
  1179. LA.Parent = la
  1180. FT.Parent = tors
  1181. RL.Parent = rl
  1182. LL.Parent = ll
  1183. for _,v in next, char:GetDescendants() do
  1184. if(v:IsA'DataModelMesh')then
  1185. v.Offset = Vector3.new(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
  1186. end
  1187. end
  1188. end
  1189. FT.Parent = nil
  1190. RA.Parent = nil
  1191. LA.Parent = nil
  1192. RL.Parent = nil
  1193. LL.Parent = nil
  1194. for _,v in next, char:GetDescendants() do
  1195. if(v:IsA'DataModelMesh')then
  1196. v.Offset = Vector3.new(0,0,0)
  1197. end
  1198. end
  1199. HIT:Disconnect()
  1200. wait(3.5)
  1201. CanUse = true
  1202. end
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208. function DistortHellItSelf()
  1209. attack = true
  1210. CreateSound("907329532", char, 10, 1)
  1211. for i = 1, 45 do
  1212. swait()
  1213. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(165), math.rad(0), math.rad(10)), 0.1)
  1214. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-165), math.rad(0), math.rad(-10)), 0.3)
  1215. rootj.C0=clerp(rootj.C0,RootCF*CF(0,0,-1.25+0.45*i)*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  1216. RA.Parent = ra
  1217. LA.Parent = la
  1218. FT.Parent = tors
  1219. RL.Parent = rl
  1220. LL.Parent = ll
  1221. for _,v in next, char:GetDescendants() do
  1222. if(v:IsA'DataModelMesh')then
  1223. v.Offset = Vector3.new(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
  1224. end
  1225. end
  1226. end
  1227. FT.Parent = nil
  1228. RA.Parent = nil
  1229. LA.Parent = nil
  1230. RL.Parent = nil
  1231. LL.Parent = nil
  1232. for _,v in next, char:GetDescendants() do
  1233. if(v:IsA'DataModelMesh')then
  1234. v.Offset = Vector3.new(0,0,0)
  1235. end
  1236. end
  1237. for i = 1, 15 do
  1238. swait()
  1239. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.1)
  1240. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-0), math.rad(0), math.rad(-90)), 0.3)
  1241.  
  1242. end
  1243. local RING = CreateMagicCircle()
  1244. RING.CFrame = CF(root.Position)*CF(0,-2.8,0)
  1245. for i = 1, 200 do
  1246. swait()
  1247. RING.CFrame = RING.CFrame * angles(Rad(0),Rad(i/15),Rad(0))
  1248. RING.Size = RING.Size + Vector3.new(.6,0,.6)
  1249. end
  1250. AoEKill(RING.Position,RING.Size.X/2)
  1251. coroutine.resume(coroutine.create(function()
  1252. swait(75)
  1253. for i = 1, 50 do
  1254. swait()
  1255. RING.CFrame = RING.CFrame * angles(Rad(0),Rad(-i/2),Rad(0))
  1256. RING.Size = RING.Size - Vector3.new(4,0,4)
  1257. end
  1258. RING:remove()
  1259. end))
  1260. attack = false
  1261. end
  1262.  
  1263.  
  1264. function FearMe()
  1265. CreateSound("449394892", hed, 10, 1)
  1266. for i = 1, 250 do
  1267. swait()
  1268. RA.Parent = ra
  1269. LA.Parent = la
  1270. FT.Parent = tors
  1271. RL.Parent = rl
  1272. LL.Parent = ll
  1273. for _,v in next, char:GetDescendants() do
  1274. if(v:IsA'DataModelMesh')then
  1275. v.Offset = Vector3.new(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
  1276. end
  1277. end
  1278. end
  1279. FT.Parent = nil
  1280. RA.Parent = nil
  1281. LA.Parent = nil
  1282. RL.Parent = nil
  1283. LL.Parent = nil
  1284. for _,v in next, char:GetDescendants() do
  1285. if(v:IsA'DataModelMesh')then
  1286. v.Offset = Vector3.new(0,0,0)
  1287. end
  1288. end
  1289. end
  1290.  
  1291.  
  1292. function Glitchicide()
  1293. hum.WalkSpeed = 0
  1294. CreateSound("549075092", char, 10, 1)
  1295. CreateSound("549075092", char, 10, 1)
  1296. CreateSound("549075092", char, 10, 1)
  1297. for i = 1, 150 do
  1298. swait()
  1299. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.1)
  1300. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-0), math.rad(0), math.rad(-90)), 0.3)
  1301. RA.Parent = ra
  1302. LA.Parent = la
  1303. FT.Parent = tors
  1304. RL.Parent = rl
  1305. LL.Parent = ll
  1306. for _,v in next, char:GetDescendants() do
  1307. if(v:IsA'DataModelMesh')then
  1308. v.Offset = Vector3.new(math.random(-1000,1000)/100,math.random(-1000,1000)/100,math.random(-1000,1000)/100)
  1309. end
  1310. end
  1311. end
  1312. FT.Parent = nil
  1313. RA.Parent = nil
  1314. LA.Parent = nil
  1315. RL.Parent = nil
  1316. LL.Parent = nil
  1317. for _,v in next, char:GetDescendants() do
  1318. if(v:IsA'DataModelMesh')then
  1319. v.Offset = Vector3.new(0,0,0)
  1320. end
  1321. end
  1322. char:Remove()
  1323. end
  1324.  
  1325. -------------------------------------------------------
  1326. --End Attacks N Stuff--
  1327. -------------------------------------------------------
  1328.  
  1329.  
  1330.  
  1331. mouse.KeyDown:connect(function(key)
  1332. if attack == false then
  1333. if key == 'c' and CanUse == true then
  1334. GlitchedTeleport()
  1335. elseif key == 'q' then
  1336. GlitchedHell()
  1337. elseif key == 't' then
  1338. FearMe()
  1339. elseif key == 'e' then
  1340. CreateSound("907333294", hed, 10, 1)
  1341. elseif key == 'f' and CanUse == true then
  1342. DistortThem()
  1343. elseif key == 'x' then
  1344. DistortHellItSelf()
  1345. elseif key == 'p' then
  1346. Glitchicide()
  1347. end
  1348. end
  1349. end)
  1350.  
  1351.  
  1352.  
  1353.  
  1354.  
  1355. -------------------------------------------------------
  1356. --Start Whitelist and God Mode--
  1357. -------------------------------------------------------
  1358. ff = Instance.new("ForceField",char)
  1359. ff.Visible = false
  1360. hum.Name = "TTTTTThe Distorted"
  1361. hum.MaxHealth = 1.0E298
  1362. hum.Health = 1.0E298
  1363. game:GetService("RunService"):BindToRenderStep("hONK", 0, function()
  1364. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  1365. hum.MaxHealth = 1.0E298
  1366. hum.Health = 1.0E298
  1367. end
  1368. end)
  1369. -------------------------------------------------------
  1370. --End Whitelist and God Mode--
  1371. -------------------------------------------------------
  1372.  
  1373. -------------------------------------------------------
  1374. --Start Animations--
  1375. -------------------------------------------------------
  1376. local VALUE1 = false
  1377. local equipped = false
  1378. local idle = 0
  1379. local change = 1
  1380. local val = 0
  1381. local toim = 0
  1382. local idleanim = 0.4
  1383. hum.Animator.Parent = nil
  1384. while true do
  1385. swait()
  1386. sine = sine + change
  1387. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1388. local velderp = root.Velocity.y
  1389. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  1390. if equipped == true or equipped == false then
  1391. if attack == false then
  1392. idle = idle + 1
  1393. else
  1394. idle = 0
  1395. end
  1396. if 1 < root.Velocity.y and hitfloor == nil then
  1397. Anim = "Jump"
  1398. if attack == false then
  1399. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.3)
  1400. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3)
  1401. RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3)
  1402. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3)
  1403. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -0.3) * LHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15)
  1404. RH.C0 = clerp(RH.C0, CF(1, -1, 0.3) * angles(Rad(0), Rad(90), Rad(-20)), 0.3)
  1405. end
  1406. elseif -1 > root.Velocity.y and hitfloor == nil then
  1407. Anim = "Fall"
  1408. if attack == false then
  1409. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-5), Rad(0), Rad(0)), 0.3)
  1410. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.3)
  1411. RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3)
  1412. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3)
  1413. LH.C0=clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
  1414. RH.C0=clerp(RH.C0, CF(1,-.3-0.1 * Cos(sine / 20), -.6) * angles(Rad(0), Rad(90), Rad(-20)), .3)
  1415. end
  1416. elseif torvel < 1 and hitfloor ~= nil then
  1417. Anim = "Idle"
  1418. change = 1.6
  1419. if attack == false then
  1420. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(4), Rad(0), Rad(0)), 0.15)
  1421. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3)
  1422. if Mrandom(1,15) == 1 then
  1423. tors.Neck.C0 = clerp(tors.Neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(Mrandom(-15,15)), Rad(Mrandom(-15,15)), Rad(Mrandom(-15,15))), 1)
  1424. end
  1425. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-1.5), Rad(0), Rad(10)), 0.15)
  1426. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-1.5), Rad(0), Rad(10)), 0.15)
  1427. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(15 - 4 * Cos(sine / 20)), Rad(0), Rad(5)), 0.1)
  1428. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(15 - 4 * Cos(sine / 20)), Rad(0), Rad(-5)), 0.1)
  1429. end
  1430. if VALUE1 == false and math.random(1,55) == 1 then
  1431. coroutine.resume(coroutine.create(function()
  1432. VALUE1 = true
  1433. for i = 1, 25 do
  1434. swait()
  1435. RA.Parent = ra
  1436. LA.Parent = la
  1437. FT.Parent = tors
  1438. RL.Parent = rl
  1439. LL.Parent = ll
  1440. for _,v in next, char:GetDescendants() do
  1441. if(v:IsA'DataModelMesh')then
  1442. v.Offset = Vector3.new(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
  1443. end
  1444. end
  1445. end
  1446. VALUE1 = false
  1447. FT.Parent = nil
  1448. RA.Parent = nil
  1449. LA.Parent = nil
  1450. RL.Parent = nil
  1451. LL.Parent = nil
  1452. for _,v in next, char:GetDescendants() do
  1453. if(v:IsA'DataModelMesh')then
  1454. v.Offset = Vector3.new(0,0,0)
  1455. end
  1456. end
  1457. end))
  1458. end
  1459. elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then
  1460. Anim = "Walk"
  1461. change = 1
  1462. if attack == false then
  1463. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(7-2.5 * Cos(sine / 3.5)), Rad(0), Rad(10 * Cos(sine / 7))), 0.15)
  1464. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1465. RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.1 * Cos(sine / 3.5), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-1.5), Rad(0), Rad(70) * Cos(sine / 7) ), 0.15)
  1466. LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.1 * Cos(sine / 3.5), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-1.5), Rad(0), Rad(70) * Cos(sine / 7) ), 0.15)
  1467. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(70) * Cos(sine / 7) , Rad(0), Rad(15)), 0.1)
  1468. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-70) * Cos(sine / 7) , Rad(0), Rad(-15)), 0.1)
  1469. end
  1470. if VALUE1 == false and math.random(1,55) == 1 then
  1471. coroutine.resume(coroutine.create(function()
  1472. VALUE1 = true
  1473. for i = 1, 25 do
  1474. swait()
  1475. RA.Parent = ra
  1476. LA.Parent = la
  1477. FT.Parent = tors
  1478. RL.Parent = rl
  1479. LL.Parent = ll
  1480. for _,v in next, char:GetDescendants() do
  1481. if(v:IsA'DataModelMesh')then
  1482. v.Offset = Vector3.new(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
  1483. end
  1484. end
  1485. end
  1486. VALUE1 = false
  1487. FT.Parent = nil
  1488. RA.Parent = nil
  1489. LA.Parent = nil
  1490. RL.Parent = nil
  1491. LL.Parent = nil
  1492. for _,v in next, char:GetDescendants() do
  1493. if(v:IsA'DataModelMesh')then
  1494. v.Offset = Vector3.new(0,0,0)
  1495. end
  1496. end
  1497. end))
  1498. end
  1499. end
  1500. end
  1501. if 0 < #Effects then
  1502. for e = 1, #Effects do
  1503. if Effects[e] ~= nil then
  1504. local Thing = Effects[e]
  1505. if Thing ~= nil then
  1506. local Part = Thing[1]
  1507. local Mode = Thing[2]
  1508. local Delay = Thing[3]
  1509. local IncX = Thing[4]
  1510. local IncY = Thing[5]
  1511. local IncZ = Thing[6]
  1512. if 1 >= Thing[1].Transparency then
  1513. if Thing[2] == "Block1" then
  1514. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1515. local Mesh = Thing[1].Mesh
  1516. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1517. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1518. elseif Thing[2] == "Block2" then
  1519. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1520. local Mesh = Thing[7]
  1521. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1522. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1523. elseif Thing[2] == "Block3" then
  1524. 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)
  1525. local Mesh = Thing[7]
  1526. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1527. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1528. elseif Thing[2] == "Cylinder" then
  1529. local Mesh = Thing[1].Mesh
  1530. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1531. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1532. elseif Thing[2] == "Blood" then
  1533. local Mesh = Thing[7]
  1534. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1535. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1536. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1537. elseif Thing[2] == "Elec" then
  1538. local Mesh = Thing[1].Mesh
  1539. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1540. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1541. elseif Thing[2] == "Disappear" then
  1542. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1543. elseif Thing[2] == "Shatter" then
  1544. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1545. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1546. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1547. Thing[6] = Thing[6] + Thing[5]
  1548. end
  1549. else
  1550. Part.Parent = nil
  1551. table.remove(Effects, e)
  1552. end
  1553. end
  1554. end
  1555. end
  1556. end
  1557. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement