bryanesfeo

Untitled

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