Advertisement
Zebula_The_Scripter

Untitled

May 9th, 2018
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 52.76 KB | None | 0 0
  1. -------------------------------------------------------
  2. --Start HeartBeat--
  3. -------------------------------------------------------
  4. ArtificialHB = Instance.new("BindableEvent", script)
  5. ArtificialHB.Name = "Heartbeat"
  6. script:WaitForChild("Heartbeat")
  7.  
  8. frame = 1 / 60
  9. tf = 0
  10. allowframeloss = false
  11. tossremainder = false
  12.  
  13.  
  14. lastframe = tick()
  15. script.Heartbeat:Fire()
  16.  
  17.  
  18. game:GetService("RunService").Heartbeat:connect(function(s, p)
  19. tf = tf + s
  20. if tf >= frame then
  21. if allowframeloss then
  22. script.Heartbeat:Fire()
  23. lastframe = tick()
  24. else
  25. for i = 1, math.floor(tf / frame) do
  26. script.Heartbeat:Fire()
  27. end
  28. lastframe = tick()
  29. end
  30. if tossremainder then
  31. tf = 0
  32. else
  33. tf = tf - frame * math.floor(tf / frame)
  34. end
  35. end
  36. end)
  37. -------------------------------------------------------
  38. --End HeartBeat--
  39. -------------------------------------------------------
  40.  
  41. -------------------------------------------------------
  42. --Start Important Functions--
  43. -------------------------------------------------------
  44. function swait(num)
  45. if num == 0 or num == nil then
  46. game:service("RunService").Stepped:wait(0)
  47. else
  48. for i = 0, num do
  49. game:service("RunService").Stepped:wait(0)
  50. end
  51. end
  52. end
  53. function thread(f)
  54. coroutine.resume(coroutine.create(f))
  55. end
  56. function clerp(a, b, t)
  57. local qa = {
  58. QuaternionFromCFrame(a)
  59. }
  60. local qb = {
  61. QuaternionFromCFrame(b)
  62. }
  63. local ax, ay, az = a.x, a.y, a.z
  64. local bx, by, bz = b.x, b.y, b.z
  65. local _t = 1 - t
  66. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  67. end
  68. function QuaternionFromCFrame(cf)
  69. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  70. local trace = m00 + m11 + m22
  71. if trace > 0 then
  72. local s = math.sqrt(1 + trace)
  73. local recip = 0.5 / s
  74. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  75. else
  76. local i = 0
  77. if m00 < m11 then
  78. i = 1
  79. end
  80. if m22 > (i == 0 and m00 or m11) then
  81. i = 2
  82. end
  83. if i == 0 then
  84. local s = math.sqrt(m00 - m11 - m22 + 1)
  85. local recip = 0.5 / s
  86. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  87. elseif i == 1 then
  88. local s = math.sqrt(m11 - m22 - m00 + 1)
  89. local recip = 0.5 / s
  90. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  91. elseif i == 2 then
  92. local s = math.sqrt(m22 - m00 - m11 + 1)
  93. local recip = 0.5 / s
  94. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  95. end
  96. end
  97. end
  98. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  99. local xs, ys, zs = x + x, y + y, z + z
  100. local wx, wy, wz = w * xs, w * ys, w * zs
  101. local xx = x * xs
  102. local xy = x * ys
  103. local xz = x * zs
  104. local yy = y * ys
  105. local yz = y * zs
  106. local zz = z * zs
  107. 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))
  108. end
  109. function QuaternionSlerp(a, b, t)
  110. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  111. local startInterp, finishInterp
  112. if cosTheta >= 1.0E-4 then
  113. if 1 - cosTheta > 1.0E-4 then
  114. local theta = math.acos(cosTheta)
  115. local invSinTheta = 1 / Sin(theta)
  116. startInterp = Sin((1 - t) * theta) * invSinTheta
  117. finishInterp = Sin(t * theta) * invSinTheta
  118. else
  119. startInterp = 1 - t
  120. finishInterp = t
  121. end
  122. elseif 1 + cosTheta > 1.0E-4 then
  123. local theta = math.acos(-cosTheta)
  124. local invSinTheta = 1 / Sin(theta)
  125. startInterp = Sin((t - 1) * theta) * invSinTheta
  126. finishInterp = Sin(t * theta) * invSinTheta
  127. else
  128. startInterp = t - 1
  129. finishInterp = t
  130. end
  131. 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
  132. end
  133. function rayCast(Position, Direction, Range, Ignore)
  134. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  135. end
  136. local RbxUtility = LoadLibrary("RbxUtility")
  137. local Create = RbxUtility.Create
  138.  
  139. -------------------------------------------------------
  140. --Start Damage Function--
  141. -------------------------------------------------------
  142. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  143. if hit.Parent == nil then
  144. return
  145. end
  146. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  147. for _, v in pairs(hit.Parent:children()) do
  148. if v:IsA("Humanoid") then
  149. h = v
  150. end
  151. end
  152. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  153.  
  154. hit.Parent:FindFirstChild("Head"):BreakJoints()
  155. end
  156.  
  157. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  158. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  159. if hit.Parent.DebounceHit.Value == true then
  160. return
  161. end
  162. end
  163. if insta == true then
  164. hit.Parent:FindFirstChild("Head"):BreakJoints()
  165. end
  166. local c = Create("ObjectValue"){
  167. Name = "creator",
  168. Value = game:service("Players").LocalPlayer,
  169. Parent = h,
  170. }
  171. game:GetService("Debris"):AddItem(c, .5)
  172. if HitSound ~= nil and HitPitch ~= nil then
  173. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  174. end
  175. local Damage = math.random(minim, maxim)
  176. local blocked = false
  177. local block = hit.Parent:findFirstChild("Block")
  178. if block ~= nil then
  179. if block.className == "IntValue" then
  180. if block.Value > 0 then
  181. blocked = true
  182. block.Value = block.Value - 1
  183. print(block.Value)
  184. end
  185. end
  186. end
  187. if blocked == false then
  188. h.Health = h.Health - Damage
  189. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  190. else
  191. h.Health = h.Health - (Damage / 2)
  192. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  193. end
  194. if Type == "Knockdown" then
  195. local hum = hit.Parent.Humanoid
  196. hum.PlatformStand = true
  197. coroutine.resume(coroutine.create(function(HHumanoid)
  198. swait(1)
  199. HHumanoid.PlatformStand = false
  200. end), hum)
  201. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  202. local bodvol = Create("BodyVelocity"){
  203. velocity = angle * knockback,
  204. P = 5000,
  205. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  206. Parent = hit,
  207. }
  208. local rl = Create("BodyAngularVelocity"){
  209. P = 3000,
  210. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  211. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  212. Parent = hit,
  213. }
  214. game:GetService("Debris"):AddItem(bodvol, .5)
  215. game:GetService("Debris"):AddItem(rl, .5)
  216. elseif Type == "Normal" then
  217. local vp = Create("BodyVelocity"){
  218. P = 500,
  219. maxForce = Vector3.new(math.huge, 0, math.huge),
  220. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  221. }
  222. if knockback > 0 then
  223. vp.Parent = hit.Parent.Torso
  224. end
  225. game:GetService("Debris"):AddItem(vp, .5)
  226. elseif Type == "Up" then
  227. local bodyVelocity = Create("BodyVelocity"){
  228. velocity = Vector3.new(0, 20, 0),
  229. P = 5000,
  230. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  231. Parent = hit,
  232. }
  233. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  234. elseif Type == "DarkUp" then
  235. coroutine.resume(coroutine.create(function()
  236. for i = 0, 1, 0.1 do
  237. swait()
  238. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  239. end
  240. end))
  241. local bodyVelocity = Create("BodyVelocity"){
  242. velocity = Vector3.new(0, 20, 0),
  243. P = 5000,
  244. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  245. Parent = hit,
  246. }
  247. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  248. elseif Type == "Snare" then
  249. local bp = Create("BodyPosition"){
  250. P = 2000,
  251. D = 100,
  252. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  253. position = hit.Parent.Torso.Position,
  254. Parent = hit.Parent.Torso,
  255. }
  256. game:GetService("Debris"):AddItem(bp, 1)
  257. elseif Type == "Freeze" then
  258. local BodPos = Create("BodyPosition"){
  259. P = 50000,
  260. D = 1000,
  261. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  262. position = hit.Parent.Torso.Position,
  263. Parent = hit.Parent.Torso,
  264. }
  265. local BodGy = Create("BodyGyro") {
  266. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  267. P = 20e+003,
  268. Parent = hit.Parent.Torso,
  269. cframe = hit.Parent.Torso.CFrame,
  270. }
  271. hit.Parent.Torso.Anchored = true
  272. coroutine.resume(coroutine.create(function(Part)
  273. swait(1.5)
  274. Part.Anchored = false
  275. end), hit.Parent.Torso)
  276. game:GetService("Debris"):AddItem(BodPos, 3)
  277. game:GetService("Debris"):AddItem(BodGy, 3)
  278. end
  279. local debounce = Create("BoolValue"){
  280. Name = "DebounceHit",
  281. Parent = hit.Parent,
  282. Value = true,
  283. }
  284. game:GetService("Debris"):AddItem(debounce, Delay)
  285. c = Create("ObjectValue"){
  286. Name = "creator",
  287. Value = Player,
  288. Parent = h,
  289. }
  290. game:GetService("Debris"):AddItem(c, .5)
  291. end
  292. end
  293. -------------------------------------------------------
  294. --End Damage Function--
  295. -------------------------------------------------------
  296.  
  297. -------------------------------------------------------
  298. --Start Damage Function Customization--
  299. -------------------------------------------------------
  300. function ShowDamage(Pos, Text, Time, Color)
  301. local Rate = (1 / 30)
  302. local Pos = (Pos or Vector3.new(0, 0, 0))
  303. local Text = (Text or "")
  304. local Time = (Time or 2)
  305. local Color = (Color or Color3.new(1, 0, 1))
  306. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  307. EffectPart.Anchored = true
  308. local BillboardGui = Create("BillboardGui"){
  309. Size = UDim2.new(3, 0, 3, 0),
  310. Adornee = EffectPart,
  311. Parent = EffectPart,
  312. }
  313. local TextLabel = Create("TextLabel"){
  314. BackgroundTransparency = 1,
  315. Size = UDim2.new(1, 0, 1, 0),
  316. Text = Text,
  317. Font = "Bodoni",
  318. TextColor3 = Color,
  319. TextScaled = true,
  320. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  321. Parent = BillboardGui,
  322. }
  323. game.Debris:AddItem(EffectPart, (Time))
  324. EffectPart.Parent = game:GetService("Workspace")
  325. delay(0, function()
  326. local Frames = (Time / Rate)
  327. for Frame = 1, Frames do
  328. wait(Rate)
  329. local Percent = (Frame / Frames)
  330. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  331. TextLabel.TextTransparency = Percent
  332. end
  333. if EffectPart and EffectPart.Parent then
  334. EffectPart:Destroy()
  335. end
  336. end)
  337. end
  338. -------------------------------------------------------
  339. --End Damage Function Customization--
  340. -------------------------------------------------------
  341.  
  342. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  343. for _, c in pairs(workspace:children()) do
  344. local hum = c:findFirstChild("Humanoid")
  345. if hum ~= nil then
  346. local head = c:findFirstChild("Head")
  347. if head ~= nil then
  348. local targ = head.Position - Part.Position
  349. local mag = targ.magnitude
  350. if magni >= mag and c.Name ~= plr.Name then
  351. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  352. end
  353. end
  354. end
  355. end
  356. end
  357.  
  358.  
  359. CFuncs = {
  360. Part = {
  361. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  362. local Part = Create("Part")({
  363. Parent = Parent,
  364. Reflectance = Reflectance,
  365. Transparency = Transparency,
  366. CanCollide = false,
  367. Locked = true,
  368. BrickColor = BrickColor.new(tostring(BColor)),
  369. Name = Name,
  370. Size = Size,
  371. Material = Material
  372. })
  373. RemoveOutlines(Part)
  374. return Part
  375. end
  376. },
  377. Mesh = {
  378. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  379. local Msh = Create(Mesh)({
  380. Parent = Part,
  381. Offset = OffSet,
  382. Scale = Scale
  383. })
  384. if Mesh == "SpecialMesh" then
  385. Msh.MeshType = MeshType
  386. Msh.MeshId = MeshId
  387. end
  388. return Msh
  389. end
  390. },
  391. Mesh = {
  392. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  393. local Msh = Create(Mesh)({
  394. Parent = Part,
  395. Offset = OffSet,
  396. Scale = Scale
  397. })
  398. if Mesh == "SpecialMesh" then
  399. Msh.MeshType = MeshType
  400. Msh.MeshId = MeshId
  401. end
  402. return Msh
  403. end
  404. },
  405. Weld = {
  406. Create = function(Parent, Part0, Part1, C0, C1)
  407. local Weld = Create("Weld")({
  408. Parent = Parent,
  409. Part0 = Part0,
  410. Part1 = Part1,
  411. C0 = C0,
  412. C1 = C1
  413. })
  414. return Weld
  415. end
  416. },
  417. Sound = {
  418. Create = function(id, par, vol, pit)
  419. coroutine.resume(coroutine.create(function()
  420. local S = Create("Sound")({
  421. Volume = vol,
  422. Pitch = pit or 1,
  423. SoundId = id,
  424. Parent = par or workspace
  425. })
  426. wait()
  427. S:play()
  428. game:GetService("Debris"):AddItem(S, 6)
  429. end))
  430. end
  431. },
  432. ParticleEmitter = {
  433. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  434. local fp = Create("ParticleEmitter")({
  435. Parent = Parent,
  436. Color = ColorSequence.new(Color1, Color2),
  437. LightEmission = LightEmission,
  438. Size = Size,
  439. Texture = Texture,
  440. Transparency = Transparency,
  441. ZOffset = ZOffset,
  442. Acceleration = Accel,
  443. Drag = Drag,
  444. LockedToPart = LockedToPart,
  445. VelocityInheritance = VelocityInheritance,
  446. EmissionDirection = EmissionDirection,
  447. Enabled = Enabled,
  448. Lifetime = LifeTime,
  449. Rate = Rate,
  450. Rotation = Rotation,
  451. RotSpeed = RotSpeed,
  452. Speed = Speed,
  453. VelocitySpread = VelocitySpread
  454. })
  455. return fp
  456. end
  457. }
  458. }
  459. function RemoveOutlines(part)
  460. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  461. end
  462. function CreatePart1(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  463. local Part = Create("Part")({
  464. formFactor = FormFactor,
  465. Parent = Parent,
  466. Reflectance = Reflectance,
  467. Transparency = Transparency,
  468. CanCollide = false,
  469. Locked = true,
  470. BrickColor = BrickColor.new(tostring(BColor)),
  471. Name = Name,
  472. Size = Size,
  473. Material = Material
  474. })
  475. RemoveOutlines(Part)
  476. return Part
  477. end
  478. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  479. local NEWPART = IT("Part")
  480. NEWPART.formFactor = FORMFACTOR
  481. NEWPART.Reflectance = REFLECTANCE
  482. NEWPART.Transparency = TRANSPARENCY
  483. NEWPART.CanCollide = false
  484. NEWPART.Locked = true
  485. NEWPART.Anchored = true
  486. if ANCHOR == false then
  487. NEWPART.Anchored = false
  488. end
  489. NEWPART.BrickColor = BrickC(tostring(BRICKCOLOR))
  490. NEWPART.Name = NAME
  491. NEWPART.Size = SIZE
  492. NEWPART.Position = tors.Position
  493. NEWPART.Material = MATERIAL
  494. NEWPART:BreakJoints()
  495. NEWPART.Parent = PARENT
  496. return NEWPART
  497. end
  498. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  499. local Msh = Create(Mesh)({
  500. Parent = Part,
  501. Offset = OffSet,
  502. Scale = Scale
  503. })
  504. if Mesh == "SpecialMesh" then
  505. Msh.MeshType = MeshType
  506. Msh.MeshId = MeshId
  507. end
  508. return Msh
  509. end
  510. function CreateWeld(Parent, Part0, Part1, C0, C1)
  511. local Weld = Create("Weld")({
  512. Parent = Parent,
  513. Part0 = Part0,
  514. Part1 = Part1,
  515. C0 = C0,
  516. C1 = C1
  517. })
  518. return Weld
  519. end
  520.  
  521.  
  522. -------------------------------------------------------
  523. --Start Effect Function--
  524. -------------------------------------------------------
  525. EffectModel = Instance.new("Model", char)
  526. Effects = {
  527. Block = {
  528. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  529. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  530. prt.Anchored = true
  531. prt.CFrame = cframe
  532. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  533. game:GetService("Debris"):AddItem(prt, 10)
  534. if Type == 1 or Type == nil then
  535. table.insert(Effects, {
  536. prt,
  537. "Block1",
  538. delay,
  539. x3,
  540. y3,
  541. z3,
  542. msh
  543. })
  544. elseif Type == 2 then
  545. table.insert(Effects, {
  546. prt,
  547. "Block2",
  548. delay,
  549. x3,
  550. y3,
  551. z3,
  552. msh
  553. })
  554. else
  555. table.insert(Effects, {
  556. prt,
  557. "Block3",
  558. delay,
  559. x3,
  560. y3,
  561. z3,
  562. msh
  563. })
  564. end
  565. end
  566. },
  567. Sphere = {
  568. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  569. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  570. prt.Anchored = true
  571. prt.CFrame = cframe
  572. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  573. game:GetService("Debris"):AddItem(prt, 10)
  574. table.insert(Effects, {
  575. prt,
  576. "Cylinder",
  577. delay,
  578. x3,
  579. y3,
  580. z3,
  581. msh
  582. })
  583. end
  584. },
  585. Cylinder = {
  586. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  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("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  591. game:GetService("Debris"):AddItem(prt, 10)
  592. table.insert(Effects, {
  593. prt,
  594. "Cylinder",
  595. delay,
  596. x3,
  597. y3,
  598. z3,
  599. msh
  600. })
  601. end
  602. },
  603. Wave = {
  604. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  605. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  606. prt.Anchored = true
  607. prt.CFrame = cframe
  608. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  609. game:GetService("Debris"):AddItem(prt, 10)
  610. table.insert(Effects, {
  611. prt,
  612. "Cylinder",
  613. delay,
  614. x3 / 60,
  615. y3 / 60,
  616. z3 / 60,
  617. msh
  618. })
  619. end
  620. },
  621. Ring = {
  622. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  623. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  624. prt.Anchored = true
  625. prt.CFrame = cframe
  626. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  627. game:GetService("Debris"):AddItem(prt, 10)
  628. table.insert(Effects, {
  629. prt,
  630. "Cylinder",
  631. delay,
  632. x3,
  633. y3,
  634. z3,
  635. msh
  636. })
  637. end
  638. },
  639. Break = {
  640. Create = function(brickcolor, cframe, x1, y1, z1)
  641. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  642. prt.Anchored = true
  643. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  644. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  645. local num = math.random(10, 50) / 1000
  646. game:GetService("Debris"):AddItem(prt, 10)
  647. table.insert(Effects, {
  648. prt,
  649. "Shatter",
  650. num,
  651. prt.CFrame,
  652. math.random() - math.random(),
  653. 0,
  654. math.random(50, 100) / 100
  655. })
  656. end
  657. },
  658. Spiral = {
  659. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  660. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  661. prt.Anchored = true
  662. prt.CFrame = cframe
  663. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  664. game:GetService("Debris"):AddItem(prt, 10)
  665. table.insert(Effects, {
  666. prt,
  667. "Cylinder",
  668. delay,
  669. x3,
  670. y3,
  671. z3,
  672. msh
  673. })
  674. end
  675. },
  676. Push = {
  677. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  678. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  679. prt.Anchored = true
  680. prt.CFrame = cframe
  681. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  682. game:GetService("Debris"):AddItem(prt, 10)
  683. table.insert(Effects, {
  684. prt,
  685. "Cylinder",
  686. delay,
  687. x3,
  688. y3,
  689. z3,
  690. msh
  691. })
  692. end
  693. }
  694. }
  695. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  696. local fp = IT("Part")
  697. fp.formFactor = formfactor
  698. fp.Parent = parent
  699. fp.Reflectance = reflectance
  700. fp.Transparency = transparency
  701. fp.CanCollide = false
  702. fp.Locked = true
  703. fp.BrickColor = brickcolor
  704. fp.Name = name
  705. fp.Size = size
  706. fp.Position = tors.Position
  707. RemoveOutlines(fp)
  708. fp.Material = "SmoothPlastic"
  709. fp:BreakJoints()
  710. return fp
  711. end
  712.  
  713. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  714. local mesh = IT(Mesh)
  715. mesh.Parent = part
  716. if Mesh == "SpecialMesh" then
  717. mesh.MeshType = meshtype
  718. if meshid ~= "nil" then
  719. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  720. end
  721. end
  722. mesh.Offset = offset
  723. mesh.Scale = scale
  724. return mesh
  725. end
  726.  
  727. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  728. local type = type
  729. local rng = Instance.new("Part", char)
  730. rng.Anchored = true
  731. rng.BrickColor = color
  732. rng.CanCollide = false
  733. rng.FormFactor = 3
  734. rng.Name = "Ring"
  735. rng.Material = "Neon"
  736. rng.Size = Vector3.new(1, 1, 1)
  737. rng.Transparency = 0
  738. rng.TopSurface = 0
  739. rng.BottomSurface = 0
  740. rng.CFrame = pos
  741. local rngm = Instance.new("SpecialMesh", rng)
  742. rngm.MeshType = MType
  743. rngm.Scale = scale
  744. local scaler2 = 1
  745. if type == "Add" then
  746. scaler2 = 1 * value
  747. elseif type == "Divide" then
  748. scaler2 = 1 / value
  749. end
  750. coroutine.resume(coroutine.create(function()
  751. for i = 0, 10 / bonuspeed, 0.1 do
  752. swait()
  753. if type == "Add" then
  754. scaler2 = scaler2 - 0.01 * value / bonuspeed
  755. elseif type == "Divide" then
  756. scaler2 = scaler2 - 0.01 / value * bonuspeed
  757. end
  758. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  759. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  760. end
  761. rng:Destroy()
  762. end))
  763. end
  764.  
  765. function Eviscerate(dude)
  766. if dude.Name ~= char then
  767. local bgf = IT("BodyGyro", dude.Head)
  768. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  769. local val = IT("BoolValue", dude)
  770. val.Name = "IsHit"
  771. local ds = coroutine.wrap(function()
  772. dude:WaitForChild("Head"):BreakJoints()
  773. wait(0.5)
  774. target = nil
  775. coroutine.resume(coroutine.create(function()
  776. for i, v in pairs(dude:GetChildren()) do
  777. if v:IsA("Accessory") then
  778. v:Destroy()
  779. end
  780. if v:IsA("Humanoid") then
  781. v:Destroy()
  782. end
  783. if v:IsA("CharacterMesh") then
  784. v:Destroy()
  785. end
  786. if v:IsA("Model") then
  787. v:Destroy()
  788. end
  789. if v:IsA("Part") or v:IsA("MeshPart") then
  790. for x, o in pairs(v:GetChildren()) do
  791. if o:IsA("Decal") then
  792. o:Destroy()
  793. end
  794. end
  795. coroutine.resume(coroutine.create(function()
  796. v.Material = "Neon"
  797. v.CanCollide = false
  798. local PartEmmit1 = IT("ParticleEmitter", v)
  799. PartEmmit1.LightEmission = 1
  800. PartEmmit1.Texture = "rbxassetid://284205403"
  801. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  802. PartEmmit1.Rate = 150
  803. PartEmmit1.Lifetime = NumberRange.new(1)
  804. PartEmmit1.Size = NumberSequence.new({
  805. NumberSequenceKeypoint.new(0, 0.75, 0),
  806. NumberSequenceKeypoint.new(1, 0, 0)
  807. })
  808. PartEmmit1.Transparency = NumberSequence.new({
  809. NumberSequenceKeypoint.new(0, 0, 0),
  810. NumberSequenceKeypoint.new(1, 1, 0)
  811. })
  812. PartEmmit1.Speed = NumberRange.new(0, 0)
  813. PartEmmit1.VelocitySpread = 30000
  814. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  815. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  816. local BodPoss = IT("BodyPosition", v)
  817. BodPoss.P = 3000
  818. BodPoss.D = 1000
  819. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  820. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  821. v.Color = maincolor.Color
  822. coroutine.resume(coroutine.create(function()
  823. for i = 0, 49 do
  824. swait(1)
  825. v.Transparency = v.Transparency + 0.08
  826. end
  827. wait(0.5)
  828. PartEmmit1.Enabled = false
  829. wait(3)
  830. v:Destroy()
  831. dude:Destroy()
  832. end))
  833. end))
  834. end
  835. end
  836. end))
  837. end)
  838. ds()
  839. end
  840. end
  841.  
  842. function FindNearestHead(Position, Distance, SinglePlayer)
  843. if SinglePlayer then
  844. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  845. end
  846. local List = {}
  847. for i, v in pairs(workspace:GetChildren()) do
  848. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  849. table.insert(List, v)
  850. end
  851. end
  852. return List
  853. end
  854.  
  855. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  856. local type = type
  857. local rng = Instance.new("Part", char)
  858. rng.Anchored = true
  859. rng.BrickColor = color
  860. rng.CanCollide = false
  861. rng.FormFactor = 3
  862. rng.Name = "Ring"
  863. rng.Material = "Neon"
  864. rng.Size = Vector3.new(1, 1, 1)
  865. rng.Transparency = 0
  866. rng.TopSurface = 0
  867. rng.BottomSurface = 0
  868. rng.CFrame = pos
  869. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  870. local rngm = Instance.new("SpecialMesh", rng)
  871. rngm.MeshType = MType
  872. rngm.Scale = Vector3.new(x1, y1, z1)
  873. local scaler2 = 1
  874. local speeder = FastSpeed
  875. if type == "Add" then
  876. scaler2 = 1 * value
  877. elseif type == "Divide" then
  878. scaler2 = 1 / value
  879. end
  880. coroutine.resume(coroutine.create(function()
  881. for i = 0, 10 / bonuspeed, 0.1 do
  882. swait()
  883. if type == "Add" then
  884. scaler2 = scaler2 - 0.01 * value / bonuspeed
  885. elseif type == "Divide" then
  886. scaler2 = scaler2 - 0.01 / value * bonuspeed
  887. end
  888. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  889. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  890. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  891. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  892. end
  893. rng:Destroy()
  894. end))
  895. end
  896.  
  897. function SoulSteal(dude)
  898. if dude.Name ~= char then
  899. local bgf = IT("BodyGyro", dude.Head)
  900. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  901. local val = IT("BoolValue", dude)
  902. val.Name = "IsHit"
  903. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  904. local soulst = coroutine.wrap(function()
  905. local soul = Instance.new("Part",dude)
  906. soul.Size = Vector3.new(1,1,1)
  907. soul.CanCollide = false
  908. soul.Anchored = false
  909. soul.Position = torso.Position
  910. soul.Transparency = 1
  911. local PartEmmit1 = IT("ParticleEmitter", soul)
  912. PartEmmit1.LightEmission = 1
  913. PartEmmit1.Texture = "rbxassetid://569507414"
  914. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  915. PartEmmit1.Rate = 250
  916. PartEmmit1.Lifetime = NumberRange.new(1.6)
  917. PartEmmit1.Size = NumberSequence.new({
  918. NumberSequenceKeypoint.new(0, 1, 0),
  919. NumberSequenceKeypoint.new(1, 0, 0)
  920. })
  921. PartEmmit1.Transparency = NumberSequence.new({
  922. NumberSequenceKeypoint.new(0, 0, 0),
  923. NumberSequenceKeypoint.new(1, 1, 0)
  924. })
  925. PartEmmit1.Speed = NumberRange.new(0, 0)
  926. PartEmmit1.VelocitySpread = 30000
  927. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  928. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  929. local BodPoss = IT("BodyPosition", soul)
  930. BodPoss.P = 3000
  931. BodPoss.D = 1000
  932. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  933. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  934. wait(1.6)
  935. soul.Touched:connect(function(hit)
  936. if hit.Parent == char then
  937. soul:Destroy()
  938. end
  939. end)
  940. wait(1.2)
  941. while soul do
  942. swait()
  943. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  944. BodPoss.Position = tors.Position
  945. end
  946. end)
  947. soulst()
  948. end
  949. end
  950. function FaceMouse()
  951. local Cam = workspace.CurrentCamera
  952. return {
  953. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  954. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  955. }
  956. end
  957. -------------------------------------------------------
  958. --End Effect Function--
  959. -------------------------------------------------------
  960. function Cso(ID, PARENT, VOLUME, PITCH)
  961. local NSound = nil
  962. coroutine.resume(coroutine.create(function()
  963. NSound = IT("Sound", PARENT)
  964. NSound.Volume = VOLUME
  965. NSound.Pitch = PITCH
  966. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  967. swait()
  968. NSound:play()
  969. game:GetService("Debris"):AddItem(NSound, 10)
  970. end))
  971. return NSound
  972. end
  973. function CameraEnshaking(Length, Intensity)
  974. coroutine.resume(coroutine.create(function()
  975. local intensity = 1 * Intensity
  976. local rotM = 0.01 * Intensity
  977. for i = 0, Length, 0.1 do
  978. swait()
  979. intensity = intensity - 0.05 * Intensity / Length
  980. rotM = rotM - 5.0E-4 * Intensity / Length
  981. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  982. cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
  983. end
  984. hum.CameraOffset = Vector3.new(0, 0, 0)
  985. end))
  986. end
  987.  
  988. local Particle = IT("ParticleEmitter",nil)
  989. Particle.Enabled = false
  990. --Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  991. Particle.LightEmission = 0.5
  992. Particle.Rate = 150
  993. Particle.ZOffset = 1
  994. function Sink(position,radius)
  995. for i,v in ipairs(workspace:GetChildren()) do
  996. if v:FindFirstChild("Hit2By"..plr.Name) == nil then
  997. local body = v:GetChildren()
  998. for part = 1, #body do
  999. if(v:FindFirstChild("Hit2By"..plr.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= char) then
  1000. if(body[part].Position - position).Magnitude < radius then
  1001. if v.ClassName == "Model" then
  1002. v:FindFirstChildOfClass("Humanoid").Name = "Humanoid"
  1003. if v:FindFirstChild("Humanoid") then
  1004. local defence = Instance.new("BoolValue",v)
  1005. defence.Name = ("Hit2By"..plr.Name)
  1006. if v.Humanoid.Health ~= 0 then
  1007. local TORS = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  1008. if TORS ~= nil then
  1009. local HITFLOOR2, HITPOS2 = Raycast(TORS.Position, (CF(TORS.Position, TORS.Position + Vector3.new(0, -1, 0))).lookVector, 25 * TORS.Size.Y/2, v)
  1010. coroutine.resume(coroutine.create(function()
  1011. if HITFLOOR2 ~= nil then
  1012. TORS.Anchored = true
  1013. local Hole2 = CreatePart(3, EffectModel, "Neon", 0, 0, "Really black", "Hole", Vector3.new(TORS.Size.X*4,0,TORS.Size.X*4))
  1014. Hole2.Color = Color3.new(0,0,0)
  1015. local MESH = MakeForm(Hole2,"Cyl")
  1016. MESH.Scale = Vector3.new(0,1,0)
  1017. Hole2.CFrame = CF(HITPOS2)
  1018. for i = 1, 10 do
  1019. swait()
  1020. MESH.Scale = MESH.Scale + Vector3.new(0.1,0,0.1)
  1021. end
  1022. --Cso("160440683", v:FindFirstChild("Head"), 10, .8)
  1023. Cso("154955269", v:FindFirstChild("Head"), 10, 1)
  1024. repeat
  1025. swait()
  1026. TORS.CFrame = TORS.CFrame * CF(0,-0.1,0)
  1027. --MESH.Scale = MESH.Scale + Vector3.new(0,1.6,0)
  1028. until TORS.Position.Y<position.Y-4
  1029. v:remove()
  1030. for i = 1, 10 do
  1031. swait()
  1032. MESH.Scale = MESH.Scale - Vector3.new(0.1,0,0.1)
  1033. end
  1034. Hole2:remove()
  1035. end
  1036. end))
  1037. end
  1038. end
  1039. end
  1040. end
  1041. --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1042. end
  1043. end
  1044. end
  1045. end
  1046. end
  1047. end
  1048. function Trail(Part)
  1049. local TRAIL = Part:Clone()
  1050. TRAIL.CanCollide = false
  1051. TRAIL.Anchored = true
  1052. TRAIL.Parent = EffectModel
  1053. TRAIL.Name = "Trail"
  1054. local TRANS = Part.Transparency
  1055. coroutine.resume(coroutine.create(function()
  1056. for i = 1, 20 do
  1057. swait()
  1058. TRAIL.Transparency = TRAIL.Transparency + ((1-TRANS)/20)
  1059. end
  1060. TRAIL:remove()
  1061. end))
  1062. end
  1063. function getRegion(point,range,ignore)
  1064. return workspace:FindPartsInRegion3WithIgnoreList(Region3.new(point-Vector3.new(1,1,1)*range/2,point+Vector3.new(1,1,1)*range/2),ignore,100)
  1065. end
  1066.  
  1067. function GetTorso(char)
  1068. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  1069. end
  1070.  
  1071. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  1072.  
  1073. NewInstance = function(instance,parent,properties)
  1074. local inst = Instance.new(instance)
  1075. inst.Parent = parent
  1076. if(properties)then
  1077. for i,v in next, properties do
  1078. pcall(function() inst[i] = v end)
  1079. end
  1080. end
  1081. return inst;
  1082. end
  1083.  
  1084. function Part(parent,color,material,size,cframe,anchored,cancollide)
  1085. local part = Instance.new("Part")
  1086. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or Color3.new(0,0,0)
  1087. part.Material = material or Enum.Material.SmoothPlastic
  1088. part.TopSurface,part.BottomSurface=10,10
  1089. part.Size = size or Vector3.new(1,1,1)
  1090. part.CFrame = cframe or CF(0,0,0)
  1091. part.Anchored = anchored or true
  1092. part.CanCollide = cancollide or false
  1093. part.Parent = parent or char
  1094. return part
  1095. end
  1096. -------------------------------------------------------
  1097. --End Important Functions--
  1098. -------------------------------------------------------
  1099. local SONG = 660140936
  1100. local SONG2 = 0
  1101. local Music = Instance.new("Sound",tors)
  1102. Music.Volume = 2.5
  1103. Music.Looped = true
  1104. Music.Pitch = 1 --Pitcher
  1105. ----------------------------------------------------------------------------------
  1106. local equipped = false
  1107. local idle = 0
  1108. local change = 1
  1109. local val = 0
  1110. local toim = 0
  1111. local idleanim = 0.4
  1112. local sine = 0
  1113. local Sit = 1
  1114. local Mode = "Normal"
  1115. ----------------------------------------------------------------------------------
  1116. hum.WalkSpeed = 16
  1117. hum.JumpPower = 57
  1118. --hum.Animator.Parent = nil
  1119. ----------------------------------------------------------------------------------
  1120. local Hole = CreatePart(3, EffectModel, "Neon", 0, 0, "Really black", "Hole", Vector3.new(5,0,5))
  1121. local MESH = MakeForm(Hole,"Cyl")
  1122. local ROBLOXIDLEANIMATION = IT("Animation")
  1123. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  1124. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1125. local ANIMATOR = hum.Animator
  1126. local ANIMATE = char.Animate
  1127. -------------------------------------------------------
  1128. --End Customization--
  1129. -------------------------------------------------------
  1130.  
  1131.  
  1132. -------------------------------------------------------
  1133. --Start Attacks N Stuff--
  1134. -------------------------------------------------------
  1135. function InkyWarp()
  1136. attack = true
  1137. attack = true
  1138. hum.WalkSpeed = 0
  1139. root.Anchored = true
  1140. for i = 0, 4, 0.1 do
  1141. swait()
  1142. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.15)
  1143. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 6.5 * Cos(sine / 12)), Rad(0), Rad(20 * Cos(sine / 12))), 0.3)
  1144. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size + 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(84), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1145. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-84), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1146. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-6 + 4.5 * Sin(sine / 12)), Rad(25 + 2.5 * Sin(sine / 12)), Rad(25 + 4.5 * Sin(sine / 12))), 0.1)
  1147. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(7 + 4.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-13 - 4.5 * Sin(sine / 12))), 0.1)
  1148. end
  1149. for i = 0, 2, 0.1 do
  1150. swait()
  1151. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, -15 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.15)
  1152. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 6.5 * Cos(sine / 12)), Rad(0), Rad(20 * Cos(sine / 12))), 0.3)
  1153. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size + 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(84), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1154. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-84), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1155. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-6 + 4.5 * Sin(sine / 12)), Rad(25 + 2.5 * Sin(sine / 12)), Rad(25 + 4.5 * Sin(sine / 12))), 0.1)
  1156. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(7 + 4.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-13 - 4.5 * Sin(sine / 12))), 0.1)
  1157. end
  1158. for i = 1, 50 do
  1159. swait()
  1160. Trail(Hole)
  1161. MESH.Scale = MESH.Scale - Vector3.new(0.02,0,0.02)
  1162. end
  1163. local ORIGINPOS = root.Position
  1164. root.CFrame = CF(Vector3.new(mouse.Hit.p.X,root.Position.Y,mouse.Hit.p.Z),ORIGINPOS)
  1165. Cso("154955269", tors, 10, .8)
  1166. for i = 1, 50 do
  1167. swait()
  1168. MESH.Scale = MESH.Scale + Vector3.new(0.02,0,0.02)
  1169. end
  1170. for i = 0, 4, 0.1 do
  1171. swait()
  1172. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.15)
  1173. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 6.5 * Cos(sine / 12)), Rad(0), Rad(20 * Cos(sine / 12))), 0.3)
  1174. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size + 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(84), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1175. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-84), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1176. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-6 + 4.5 * Sin(sine / 12)), Rad(25 + 2.5 * Sin(sine / 12)), Rad(25 + 4.5 * Sin(sine / 12))), 0.1)
  1177. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(7 + 4.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-13 - 4.5 * Sin(sine / 12))), 0.1)
  1178. end
  1179. attack = false
  1180. hum.WalkSpeed = 16
  1181. root.Anchored = false
  1182. end
  1183.  
  1184. -------------------------------------------------------
  1185. --End Attacks N Stuff--
  1186. -------------------------------------------------------
  1187. mouse.KeyDown:connect(function(key)
  1188. if attack == false then
  1189. if key == 'z' then
  1190. InkyWarp()
  1191. elseif key == 'p' and Mode == "Normal" then
  1192. Mode = "Chase"
  1193. SONG = 1634663187
  1194. hum.WalkSpeed = 28
  1195. elseif key == 'p' and Mode == "Chase" then
  1196. Mode = "Normal"
  1197. SONG = 660140936
  1198. hum.WalkSpeed = 16
  1199. end
  1200. end
  1201. end)
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209.  
  1210. -------------------------------------------------------
  1211. --Start Animations--
  1212. -------------------------------------------------------
  1213. print("By Makhail07")
  1214. coroutine.resume(coroutine.create(function()
  1215. while wait() do
  1216. if hitfloor ~= nil then
  1217. Hole.CFrame = CF(posfloor)
  1218. end
  1219. Sink(Hole.Position, Hole.Size.X/2.2 * MESH.Scale.X)
  1220. Hole.Color = Color3.new(0,0,0)
  1221. Trail(Hole)
  1222. end
  1223. end))
  1224. while true do
  1225. swait()
  1226. sine = sine + change
  1227. ANIMATE.Parent = nil
  1228. local IDLEANIMATION = hum:LoadAnimation(ROBLOXIDLEANIMATION)
  1229. IDLEANIMATION:Play()
  1230. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1231. local velderp = root.Velocity.y
  1232. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4 * Player_Size, char)
  1233. if equipped == true or equipped == false then
  1234. if attack == false then
  1235. idle = idle + 1
  1236. else
  1237. idle = 0
  1238. end
  1239. if 1 < root.Velocity.y and hitfloor == nil then
  1240. Anim = "Jump"
  1241. if attack == false then
  1242. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
  1243. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1244. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  1245. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  1246. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
  1247. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1248. end
  1249. elseif -1 > root.Velocity.y and hitfloor == nil then
  1250. Anim = "Fall"
  1251. if attack == false then
  1252. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(15), Rad(0), Rad(0)), 0.15)
  1253. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1254. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-9.5), Rad(0), Rad(20)), 0.15)
  1255. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.4 - 0.1 * Cos(sine / 20)* Player_Size, -.5* Player_Size) * LHCF * angles(Rad(-9.5), Rad(0), Rad(20)), 0.15)
  1256. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(75 + 4.5 * Sin(sine / 20))), 0.1)
  1257. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-75 - 4.5 * Sin(sine / 20))), 0.1)
  1258. end
  1259. elseif torvel < 1 and hitfloor ~= nil then
  1260. Anim = "Idle"
  1261. change = 1
  1262. if attack == false then
  1263. if Mode == "Normal" then
  1264. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.15)
  1265. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 6.5 * Cos(sine / 12)), Rad(0), Rad(20 * Cos(sine / 12))), 0.3)
  1266. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size + 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(84), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1267. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-84), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1268. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-6 + 4.5 * Sin(sine / 12)), Rad(25 + 2.5 * Sin(sine / 12)), Rad(25 + 4.5 * Sin(sine / 12))), 0.1)
  1269. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(7 + 4.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-13 - 4.5 * Sin(sine / 12))), 0.1)
  1270. elseif Mode == "Chase" then
  1271. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.15)
  1272. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-6.5 * Cos(sine / 12)), Rad(10), Rad(0)), 0.3)
  1273. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size + 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(84), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1274. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-84), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1275. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-6 + 4.5 * Sin(sine / 12)), Rad(25 + 2.5 * Sin(sine / 12)), Rad(5)), 0.1)
  1276. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(7 + 4.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-5)), 0.1)
  1277. end
  1278. end
  1279. elseif (tors.Velocity).magnitude < 200 and hitfloor ~= nil then
  1280. Anim = "Walk"
  1281. change = 1.1
  1282. if attack == false then
  1283. if Mode == "Normal" then
  1284. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.13 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(10 * Cos(sine / 7))), 0.15)
  1285. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1286. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 - 25 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 15 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1287. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 + 25 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 15 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1288. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(57) * Cos(sine / 7) , Rad(10 * Cos(sine / 7)), Rad(10) - ra.RotVelocity.Y / 75), 0.1)
  1289. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-57) * Cos(sine / 7) , Rad(10 * Cos(sine / 7)) , Rad(-10) + la.RotVelocity.Y / 75), 0.1)
  1290. elseif Mode == "Chase" then
  1291. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.13 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(17 + 8 * Cos(sine / 7))), 0.15)
  1292. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(-17) - hed.RotVelocity.Y / 15), 0.3)
  1293. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 15 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1294. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 15 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1295. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(90) , Rad(10 * Cos(sine / 7)), Rad(28) - ra.RotVelocity.Y / 75), 0.1)
  1296. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-57) * Cos(sine / 7) , Rad(10 * Cos(sine / 7)) , Rad(-10) + la.RotVelocity.Y / 75), 0.1)
  1297. end
  1298. end
  1299. end
  1300. end
  1301. for _, c in pairs(char:GetDescendants()) do
  1302. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1303. c.Material = "Neon"
  1304. c.Color = Color3.new(0,0,0)
  1305. if c:FindFirstChildOfClass("SpecialMesh") then
  1306. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1307. end
  1308. if c == hed then
  1309. if c:FindFirstChild("face") then
  1310. c.face:remove()
  1311. end
  1312. end
  1313. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1314. c.Color = Color3.new(1,0,0)
  1315. c.Material = "Neon"
  1316. elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then
  1317. c:remove()
  1318. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1319. c:remove()
  1320. end
  1321. end
  1322. Music.SoundId = "rbxassetid://"..SONG
  1323. Music.Looped = true
  1324. Music.Pitch = 1
  1325. Music.Volume = 5
  1326. Music.Parent = tors
  1327. Music:Resume()
  1328. if 0 < #Effects then
  1329. for e = 1, #Effects do
  1330. if Effects[e] ~= nil then
  1331. local Thing = Effects[e]
  1332. if Thing ~= nil then
  1333. local Part = Thing[1]
  1334. local Mode = Thing[2]
  1335. local Delay = Thing[3]
  1336. local IncX = Thing[4]
  1337. local IncY = Thing[5]
  1338. local IncZ = Thing[6]
  1339. if 1 >= Thing[1].Transparency then
  1340. if Thing[2] == "Block1" then
  1341. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1342. local Mesh = Thing[1].Mesh
  1343. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1344. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1345. elseif Thing[2] == "Block2" then
  1346. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1347. local Mesh = Thing[7]
  1348. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1349. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1350. elseif Thing[2] == "Block3" then
  1351. 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)
  1352. local Mesh = Thing[7]
  1353. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1354. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1355. elseif Thing[2] == "Cylinder" then
  1356. local Mesh = Thing[1].Mesh
  1357. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1358. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1359. elseif Thing[2] == "Blood" then
  1360. local Mesh = Thing[7]
  1361. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1362. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1363. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1364. elseif Thing[2] == "Elec" then
  1365. local Mesh = Thing[1].Mesh
  1366. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1367. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1368. elseif Thing[2] == "Disappear" then
  1369. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1370. elseif Thing[2] == "Shatter" then
  1371. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1372. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1373. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1374. Thing[6] = Thing[6] + Thing[5]
  1375. end
  1376. else
  1377. Part.Parent = nil
  1378. table.remove(Effects, e)
  1379. end
  1380. end
  1381. end
  1382. end
  1383. end
  1384. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement