wormybag9035

Cracker FE

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