Advertisement
Limesy

Kris Script

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