Advertisement
Flamingo123

Roblox script ink monster

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