Advertisement
Digitally_Neon

Untitled

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