Advertisement
StarzoZero

Roblox Fe Bendy v2.3

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