Advertisement
CerealK

Untitled

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