Advertisement
CerealK

Untitled

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