Advertisement
PixelDerpIsUber2

Untitled

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