Advertisement
PlanetTheo

ROBLOX Ink Monster Script FE

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