Advertisement
XSleepyDemonX_17

Love Eater (Ink monster edit)

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