Advertisement
DenisPitu06_YT

Bendy Ink machine Script 2019

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