Advertisement
yoyo74456

Ink Monster

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