SomeRandomD00D

SMite..

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