Advertisement
subaru112g

Ink monster edit

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