Advertisement
CerealK

Untitled

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