Advertisement
DarkScriptZEditors

Inked

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