Advertisement
AxilEdits

Roblox // FE Ink Monster

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