Advertisement
StarzoZero

Roblox Bendy v4

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