Advertisement
firasj082

Ink script

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