Advertisement
XSleepyDemonX_17

Dying Demon V3 Reworked UwU

May 22nd, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 77.75 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| Templates BY Aom[WCR]
  3. --\\====================================================//--
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,game,owner = owner,game
  6. local RealPlayer = Player
  7. do
  8. print("FE Compatibility code by Mokiros")
  9. local rp = RealPlayer
  10. script.Parent = rp.Character
  11.  
  12. --RemoteEvent for communicating
  13. local Event = Instance.new("RemoteEvent")
  14. Event.Name = "UserInput_Event"
  15.  
  16. --Fake event to make stuff like Mouse.KeyDown work
  17. local function fakeEvent()
  18. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  19. t.connect = t.Connect
  20. return t
  21. end
  22.  
  23. --Creating fake input objects with fake variables
  24. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  25. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  26. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  27. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  28. end}
  29. --Merged 2 functions into one by checking amount of arguments
  30. CAS.UnbindAction = CAS.BindAction
  31.  
  32. --This function will trigger the events that have been :Connect()'ed
  33. local function te(self,ev,...)
  34. local t = m[ev]
  35. if t and t._fakeEvent then
  36. for _,f in pairs(t.Functions) do
  37. f(...)
  38. end
  39. end
  40. end
  41. m.TrigEvent = te
  42. UIS.TrigEvent = te
  43.  
  44. Event.OnServerEvent:Connect(function(plr,io)
  45. if plr~=rp then return end
  46. m.Target = io.Target
  47. m.Hit = io.Hit
  48. if not io.isMouse then
  49. local b = io.UserInputState == Enum.UserInputState.Begin
  50. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  51. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67.  
  68. local Mouse = Player:GetMouse()
  69. local UIS = game:GetService("UserInputService")
  70. local input = function(io,a)
  71. if a then return end
  72. --Since InputObject is a client-side instance, we create and pass table instead
  73. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  74. end
  75. UIS.InputBegan:Connect(input)
  76. UIS.InputEnded:Connect(input)
  77.  
  78. local h,t
  79. --Give the server mouse data 30 times every second, but only if the values changed
  80. --If player is not moving their mouse, client won't fire events
  81. while wait(1/30) do
  82. if h~=Mouse.Hit or t~=Mouse.Target then
  83. h,t=Mouse.Hit,Mouse.Target
  84. Event:FireServer({isMouse=true,Target=t,Hit=h})
  85. end
  86. end]==],Player.Character)
  87.  
  88. ----Sandboxed game object that allows the usage of client-side methods and services
  89. --Real game object
  90. local _rg = game
  91.  
  92. --Metatable for fake service
  93. local fsmt = {
  94. __index = function(self,k)
  95. local s = rawget(self,"_RealService")
  96. if s then return s[k] end
  97. end,
  98. __newindex = function(self,k,v)
  99. local s = rawget(self,"_RealService")
  100. if s then s[k]=v end
  101. end,
  102. __call = function(self,...)
  103. local s = rawget(self,"_RealService")
  104. if s then return s(...) end
  105. end
  106. }
  107. local function FakeService(t,RealService)
  108. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109. return setmetatable(t,fsmt)
  110. end
  111.  
  112. --Fake game object
  113. local g = {
  114. GetService = function(self,s)
  115. return self[s]
  116. end,
  117. Players = FakeService({
  118. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119. },"Players"),
  120. UserInputService = FakeService(UIS,"UserInputService"),
  121. ContextActionService = FakeService(CAS,"ContextActionService"),
  122. }
  123. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  124. g.service = g.GetService
  125.  
  126. g.RunService = FakeService({
  127. RenderStepped = _rg:GetService("RunService").Heartbeat,
  128. BindToRenderStep = function(self,name,_,fun)
  129.  
  130. end,
  131. UnbindFromRenderStep = function(self,name)
  132. self._btrs[name]:Disconnect()
  133. end,
  134. },"RunService")
  135.  
  136. setmetatable(g,{
  137. __index=function(self,s)
  138. return _rg:GetService(s) or typeof(_rg[s])=="function"
  139. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  140. end,
  141. __newindex = fsmt.__newindex,
  142. __call = fsmt.__call
  143. })
  144. --Changing owner to fake player object to support owner:GetMouse()
  145. game,owner = g,g.Players.LocalPlayer
  146. end
  147. Player = game:GetService("Players").LocalPlayer
  148. PlayerGui = Player.PlayerGui
  149. Cam = workspace.CurrentCamera
  150. Backpack = Player.Backpack
  151. Character = Player.Character
  152. Humanoid = Character.Humanoid
  153. Mouse = Player:GetMouse()
  154. RootPart = Character["HumanoidRootPart"]
  155. Torso = Character["Torso"]
  156. Head = Character["Head"]
  157. RightArm = Character["Right Arm"]
  158. LeftArm = Character["Left Arm"]
  159. RightLeg = Character["Right Leg"]
  160. LeftLeg = Character["Left Leg"]
  161. RootJoint = RootPart["RootJoint"]
  162. Neck = Torso["Neck"]
  163. RightShoulder = Torso["Right Shoulder"]
  164. LeftShoulder = Torso["Left Shoulder"]
  165. RightHip = Torso["Right Hip"]
  166. LeftHip = Torso["Left Hip"]
  167. local TIME = 0
  168. local sick = Instance.new("Sound",Torso)
  169.  
  170. IT = Instance.new
  171. CF = CFrame.new
  172. VT = Vector3.new
  173. RAD = math.rad
  174. C3 = Color3.new
  175. UD2 = UDim2.new
  176. BRICKC = BrickColor.new
  177. ANGLES = CFrame.Angles
  178. EULER = CFrame.fromEulerAnglesXYZ
  179. COS = math.cos
  180. ACOS = math.acos
  181. SIN = math.sin
  182. ASIN = math.asin
  183. ABS = math.abs
  184. MRANDOM = math.random
  185. FLOOR = math.floor
  186.  
  187. --//=================================\\
  188. --|| USEFUL VALUES
  189. --\\=================================//
  190.  
  191. Animation_Speed = 3
  192. local FORCERESET = false
  193. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  194. local Speed = 16
  195. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  196. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  197. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  198. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  199. local DAMAGEMULTIPLIER = 1
  200. local ANIM = "Idle"
  201. local ATTACK = false
  202. local EQUIPPED = false
  203. local HOLD = false
  204. local COMBO = 1
  205. local Rooted = false
  206. local SINE = 0
  207. local KEYHOLD = false
  208. local CHANGE = 2 / Animation_Speed
  209. local WALKINGANIM = false
  210. local VALUE1 = false
  211. local VALUE2 = false
  212. local ROBLOXIDLEANIMATION = IT("Animation")
  213. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  214. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  215. --ROBLOXIDLEANIMATION.Parent = Humanoid
  216. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  217. WEAPONGUI.Name = "BanishV3Gui"
  218. local Weapon = IT("Model")
  219. Weapon.Name = "Adds"
  220. local Effects = IT("Folder", Weapon)
  221. Effects.Name = "Effects"
  222. local ANIMATOR = Humanoid.Animator
  223. local ANIMATE = Character:FindFirstChild("Animate")
  224. local UNANCHOR = true
  225. local TOBANISH = {}
  226. script.Parent = PlayerGui
  227.  
  228. --//=================================\\
  229. --\\=================================//
  230. skull = Instance.new("Part",Character)
  231. skull.Size = Vector3.new(2,2,2)
  232. skull.CFrame = Head.CFrame
  233. skull.CanCollide = false
  234. skullweld = Instance.new("Weld",skull)
  235. skullweld.Part0 = skull
  236. skullweld.Part1 = Head
  237. skullweld.C0 = skull.CFrame:inverse() * Head.CFrame * CFrame.new(0,-1.5,0)
  238. mskull = Instance.new("SpecialMesh", skull)
  239. mskull.MeshType = "FileMesh"
  240. mskull.Scale = Vector3.new(1,1,1)
  241. mskull.VertexColor = Vector3.new(14,77,146)
  242. mskull.MeshId,mskull.TextureId = 'http://www.roblox.com/asset/?id=3932351803','http://www.roblox.com/asset/?id=3932288520'
  243. --//=================================\\
  244. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  245. --\\=================================//
  246.  
  247. ArtificialHB = Instance.new("BindableEvent", script)
  248. ArtificialHB.Name = "ArtificialHB"
  249.  
  250. script:WaitForChild("ArtificialHB")
  251.  
  252. frame = Frame_Speed
  253. tf = 0
  254. allowframeloss = false
  255. tossremainder = false
  256. lastframe = tick()
  257. script.ArtificialHB:Fire()
  258.  
  259. game:GetService("RunService").Heartbeat:connect(function(s, p)
  260. tf = tf + s
  261. if tf >= frame then
  262. if allowframeloss then
  263. script.ArtificialHB:Fire()
  264. lastframe = tick()
  265. else
  266. for i = 1, math.floor(tf / frame) do
  267. script.ArtificialHB:Fire()
  268. end
  269. lastframe = tick()
  270. end
  271. if tossremainder then
  272. tf = 0
  273. else
  274. tf = tf - frame * math.floor(tf / frame)
  275. end
  276. end
  277. end)
  278.  
  279. --//=================================\\
  280. --\\=================================//
  281.  
  282. local plr = game:service'Players'.LocalPlayer
  283. print('Local User is '..plr.Name)
  284. print('Depression Loaded')
  285. print('Q Speed')
  286. print('E')
  287. print('R')
  288. print('T')
  289. print('F')
  290. print('G')
  291. local char = plr.Character
  292. local hum = char.Humanoid
  293. local hed = char.Head
  294. local root = char.HumanoidRootPart
  295. local rootj = root.RootJoint
  296. local tors = char.Torso
  297. local ra = char["Right Arm"]
  298. local la = char["Left Arm"]
  299. local rl = char["Right Leg"]
  300. local ll = char["Left Leg"]
  301. local neck = tors["Neck"]
  302. local mouse = plr:GetMouse()
  303. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  304. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  305. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  306. local maincolor = BrickColor.new("Institutional white")
  307. -------------------------------------------------------
  308. --Start Good Stuff--
  309. -------------------------------------------------------
  310. cam = game.Workspace.CurrentCamera
  311. CF = CFrame.new
  312. angles = CFrame.Angles
  313. attack = false
  314. Euler = CFrame.fromEulerAnglesXYZ
  315. Rad = math.rad
  316. IT = Instance.new
  317. BrickC = BrickColor.new
  318. Cos = math.cos
  319. Acos = math.acos
  320. Sin = math.sin
  321. Asin = math.asin
  322. Abs = math.abs
  323. Mrandom = math.random
  324. Floor = math.floor
  325. -------------------------------------------------------
  326. --End Good Stuff--
  327. -------------------------------------------------------
  328. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  329. RSH, LSH = nil, nil
  330. RW = Instance.new("Weld")
  331. LW = Instance.new("Weld")
  332. RH = tors["Right Hip"]
  333. LH = tors["Left Hip"]
  334. RSH = tors["Right Shoulder"]
  335. LSH = tors["Left Shoulder"]
  336. RSH.Parent = nil
  337. LSH.Parent = nil
  338. RW.Name = "RW"
  339. RW.Part0 = tors
  340. RW.C0 = CF(1.5, 0.5, 0)
  341. RW.C1 = CF(0, 0.5, 0)
  342. RW.Part1 = ra
  343. RW.Parent = tors
  344. LW.Name = "LW"
  345. LW.Part0 = tors
  346. LW.C0 = CF(-1.5, 0.5, 0)
  347. LW.C1 = CF(0, 0.5, 0)
  348. LW.Part1 = la
  349. LW.Parent = tors
  350. Effects = {}
  351. -------------------------------------------------------
  352. --Start HeartBeat--
  353. -------------------------------------------------------
  354. ArtificialHB = Instance.new("BindableEvent", script)
  355. ArtificialHB.Name = "Heartbeat"
  356. script:WaitForChild("Heartbeat")
  357.  
  358. frame = 1 / 60
  359. tf = 0
  360. allowframeloss = false
  361. tossremainder = false
  362.  
  363.  
  364. lastframe = tick()
  365. script.Heartbeat:Fire()
  366.  
  367.  
  368. game:GetService("RunService").Heartbeat:connect(function(s, p)
  369. tf = tf + s
  370. if tf >= frame then
  371. if allowframeloss then
  372. script.Heartbeat:Fire()
  373. lastframe = tick()
  374. else
  375. for i = 1, math.floor(tf / frame) do
  376. script.Heartbeat:Fire()
  377. end
  378. lastframe = tick()
  379. end
  380. if tossremainder then
  381. tf = 0
  382. else
  383. tf = tf - frame * math.floor(tf / frame)
  384. end
  385. end
  386. end)
  387. -------------------------------------------------------
  388. --End HeartBeat--
  389. -------------------------------------------------------
  390. ypcall(function()
  391. char.Head.face.Texture = "rbxassetid://7699115"
  392. end)
  393. -------------------------------------------------------
  394. --Start Important Functions--
  395. -------------------------------------------------------
  396. function swait(num)
  397. if num == 0 or num == nil then
  398. game:service("RunService").Stepped:wait(0)
  399. else
  400. for i = 0, num do
  401. game:service("RunService").Stepped:wait(0)
  402. end
  403. end
  404. end
  405. function thread(f)
  406. coroutine.resume(coroutine.create(f))
  407. end
  408. function clerp(a, b, t)
  409. local qa = {
  410. QuaternionFromCFrame(a)
  411. }
  412. local qb = {
  413. QuaternionFromCFrame(b)
  414. }
  415. local ax, ay, az = a.x, a.y, a.z
  416. local bx, by, bz = b.x, b.y, b.z
  417. local _t = 1 - t
  418. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  419. end
  420. function QuaternionFromCFrame(cf)
  421. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  422. local trace = m00 + m11 + m22
  423. if trace > 0 then
  424. local s = math.sqrt(1 + trace)
  425. local recip = 0.5 / s
  426. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  427. else
  428. local i = 0
  429. if m00 < m11 then
  430. i = 1
  431. end
  432. if m22 > (i == 0 and m00 or m11) then
  433. i = 2
  434. end
  435. if i == 0 then
  436. local s = math.sqrt(m00 - m11 - m22 + 1)
  437. local recip = 0.5 / s
  438. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  439. elseif i == 1 then
  440. local s = math.sqrt(m11 - m22 - m00 + 1)
  441. local recip = 0.5 / s
  442. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  443. elseif i == 2 then
  444. local s = math.sqrt(m22 - m00 - m11 + 1)
  445. local recip = 0.5 / s
  446. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  447. end
  448. end
  449. end
  450. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  451. local xs, ys, zs = x + x, y + y, z + z
  452. local wx, wy, wz = w * xs, w * ys, w * zs
  453. local xx = x * xs
  454. local xy = x * ys
  455. local xz = x * zs
  456. local yy = y * ys
  457. local yz = y * zs
  458. local zz = z * zs
  459. 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))
  460. end
  461. function QuaternionSlerp(a, b, t)
  462. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  463. local startInterp, finishInterp
  464. if cosTheta >= 1.0E-4 then
  465. if 1 - cosTheta > 1.0E-4 then
  466. local theta = math.acos(cosTheta)
  467. local invSinTheta = 1 / Sin(theta)
  468. startInterp = Sin((1 - t) * theta) * invSinTheta
  469. finishInterp = Sin(t * theta) * invSinTheta
  470. else
  471. startInterp = 1 - t
  472. finishInterp = t
  473. end
  474. elseif 1 + cosTheta > 1.0E-4 then
  475. local theta = math.acos(-cosTheta)
  476. local invSinTheta = 1 / Sin(theta)
  477. startInterp = Sin((t - 1) * theta) * invSinTheta
  478. finishInterp = Sin(t * theta) * invSinTheta
  479. else
  480. startInterp = t - 1
  481. finishInterp = t
  482. end
  483. 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
  484. end
  485. function rayCast(Position, Direction, Range, Ignore)
  486. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  487. end
  488. local RbxUtility = LoadLibrary("RbxUtility")
  489. local Create = RbxUtility.Create
  490.  
  491. -------------------------------------------------------
  492. --Start Damage Function--
  493. -------------------------------------------------------
  494. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  495. if hit.Parent == nil then
  496. return
  497. end
  498. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  499. for _, v in pairs(hit.Parent:children()) do
  500. if v:IsA("Humanoid") then
  501. h = v
  502. end
  503. end
  504. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  505.  
  506. hit.Parent:FindFirstChild("Head"):BreakJoints()
  507. end
  508.  
  509. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  510. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  511. if hit.Parent.DebounceHit.Value == true then
  512. return
  513. end
  514. end
  515. if insta == true then
  516. hit.Parent:FindFirstChild("Head"):BreakJoints()
  517. end
  518. local c = Create("ObjectValue"){
  519. Name = "creator",
  520. Value = game:service("Players").LocalPlayer,
  521. Parent = h,
  522. }
  523. game:GetService("Debris"):AddItem(c, .5)
  524. if HitSound ~= nil and HitPitch ~= nil then
  525. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  526. end
  527. local Damage = math.random(minim, maxim)
  528. local blocked = false
  529. local block = hit.Parent:findFirstChild("Block")
  530. if block ~= nil then
  531. if block.className == "IntValue" then
  532. if block.Value > 0 then
  533. blocked = true
  534. block.Value = block.Value - 1
  535. print(block.Value)
  536. end
  537. end
  538. end
  539. if blocked == false then
  540. h.Health = h.Health - Damage
  541. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  542. else
  543. h.Health = h.Health - (Damage / 2)
  544. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  545. end
  546. if Type == "Knockdown" then
  547. local hum = hit.Parent.Humanoid
  548. hum.PlatformStand = true
  549. coroutine.resume(coroutine.create(function(HHumanoid)
  550. swait(1)
  551. HHumanoid.PlatformStand = false
  552. end), hum)
  553. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  554. local bodvol = Create("BodyVelocity"){
  555. velocity = angle * knockback,
  556. P = 5000,
  557. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  558. Parent = hit,
  559. }
  560. local rl = Create("BodyAngularVelocity"){
  561. P = 3000,
  562. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  563. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  564. Parent = hit,
  565. }
  566. game:GetService("Debris"):AddItem(bodvol, .5)
  567. game:GetService("Debris"):AddItem(rl, .5)
  568. elseif Type == "Normal" then
  569. local vp = Create("BodyVelocity"){
  570. P = 500,
  571. maxForce = Vector3.new(math.huge, 0, math.huge),
  572. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  573. }
  574. if knockback > 0 then
  575. vp.Parent = hit.Parent.Torso
  576. end
  577. game:GetService("Debris"):AddItem(vp, .5)
  578. elseif Type == "Up" then
  579. local bodyVelocity = Create("BodyVelocity"){
  580. velocity = Vector3.new(0, 20, 0),
  581. P = 5000,
  582. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  583. Parent = hit,
  584. }
  585. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  586. elseif Type == "DarkUp" then
  587. coroutine.resume(coroutine.create(function()
  588. for i = 0, 1, 0.1 do
  589. swait()
  590. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  591. end
  592. end))
  593. local bodyVelocity = Create("BodyVelocity"){
  594. velocity = Vector3.new(0, 20, 0),
  595. P = 5000,
  596. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  597. Parent = hit,
  598. }
  599. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  600. elseif Type == "Snare" then
  601. local bp = Create("BodyPosition"){
  602. P = 2000,
  603. D = 100,
  604. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  605. position = hit.Parent.Torso.Position,
  606. Parent = hit.Parent.Torso,
  607. }
  608. game:GetService("Debris"):AddItem(bp, 1)
  609. elseif Type == "Freeze" then
  610. local BodPos = Create("BodyPosition"){
  611. P = 50000,
  612. D = 1000,
  613. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  614. position = hit.Parent.Torso.Position,
  615. Parent = hit.Parent.Torso,
  616. }
  617. local BodGy = Create("BodyGyro") {
  618. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  619. P = 20e+003,
  620. Parent = hit.Parent.Torso,
  621. cframe = hit.Parent.Torso.CFrame,
  622. }
  623. hit.Parent.Torso.Anchored = true
  624. coroutine.resume(coroutine.create(function(Part)
  625. swait(1.5)
  626. Part.Anchored = false
  627. end), hit.Parent.Torso)
  628. game:GetService("Debris"):AddItem(BodPos, 3)
  629. game:GetService("Debris"):AddItem(BodGy, 3)
  630. end
  631. local debounce = Create("BoolValue"){
  632. Name = "DebounceHit",
  633. Parent = hit.Parent,
  634. Value = true,
  635. }
  636. game:GetService("Debris"):AddItem(debounce, Delay)
  637. c = Create("ObjectValue"){
  638. Name = "creator",
  639. Value = Player,
  640. Parent = h,
  641. }
  642. game:GetService("Debris"):AddItem(c, .5)
  643. end
  644. end
  645. -------------------------------------------------------
  646. --End Damage Function--
  647. -------------------------------------------------------
  648.  
  649. -------------------------------------------------------
  650. --Start Damage Function Customization--
  651. -------------------------------------------------------
  652. function ShowDamage(Pos, Text, Time, Color)
  653. local Rate = (1 / 30)
  654. local Pos = (Pos or Vector3.new(0, 0, 0))
  655. local Text = (Text or "")
  656. local Time = (Time or 2)
  657. local Color = (Color or Color3.new(1, 0, 1))
  658. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  659. EffectPart.Anchored = true
  660. local BillboardGui = Create("BillboardGui"){
  661. Size = UDim2.new(3, 0, 3, 0),
  662. Adornee = EffectPart,
  663. Parent = EffectPart,
  664. }
  665. local TextLabel = Create("TextLabel"){
  666. BackgroundTransparency = 1,
  667. Size = UDim2.new(1, 0, 1, 0),
  668. Text = Text,
  669. Font = "Bodoni",
  670. TextColor3 = Color,
  671. TextScaled = true,
  672. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  673. Parent = BillboardGui,
  674. }
  675. game.Debris:AddItem(EffectPart, (Time))
  676. EffectPart.Parent = game:GetService("Workspace")
  677. delay(0, function()
  678. local Frames = (Time / Rate)
  679. for Frame = 1, Frames do
  680. wait(Rate)
  681. local Percent = (Frame / Frames)
  682. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  683. TextLabel.TextTransparency = Percent
  684. end
  685. if EffectPart and EffectPart.Parent then
  686. EffectPart:Destroy()
  687. end
  688. end)
  689. end
  690. -------------------------------------------------------
  691. --End Damage Function Customization--
  692. -------------------------------------------------------
  693.  
  694. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  695. for _, c in pairs(workspace:children()) do
  696. local hum = c:findFirstChild("Humanoid")
  697. if hum ~= nil then
  698. local head = c:findFirstChild("Head")
  699. if head ~= nil then
  700. local targ = head.Position - Part.Position
  701. local mag = targ.magnitude
  702. if magni >= mag and c.Name ~= plr.Name then
  703. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  704. end
  705. end
  706. end
  707. end
  708. end
  709.  
  710.  
  711. CFuncs = {
  712. Part = {
  713. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  714. local Part = Create("Part")({
  715. Parent = Parent,
  716. Reflectance = Reflectance,
  717. Transparency = Transparency,
  718. CanCollide = false,
  719. Locked = true,
  720. BrickColor = BrickColor.new(tostring(BColor)),
  721. Name = Name,
  722. Size = Size,
  723. Material = Material
  724. })
  725. RemoveOutlines(Part)
  726. return Part
  727. end
  728. },
  729. Mesh = {
  730. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  731. local Msh = Create(Mesh)({
  732. Parent = Part,
  733. Offset = OffSet,
  734. Scale = Scale
  735. })
  736. if Mesh == "SpecialMesh" then
  737. Msh.MeshType = MeshType
  738. Msh.MeshId = MeshId
  739. end
  740. return Msh
  741. end
  742. },
  743. Mesh = {
  744. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  745. local Msh = Create(Mesh)({
  746. Parent = Part,
  747. Offset = OffSet,
  748. Scale = Scale
  749. })
  750. if Mesh == "SpecialMesh" then
  751. Msh.MeshType = MeshType
  752. Msh.MeshId = MeshId
  753. end
  754. return Msh
  755. end
  756. },
  757. Weld = {
  758. Create = function(Parent, Part0, Part1, C0, C1)
  759. local Weld = Create("Weld")({
  760. Parent = Parent,
  761. Part0 = Part0,
  762. Part1 = Part1,
  763. C0 = C0,
  764. C1 = C1
  765. })
  766. return Weld
  767. end
  768. },
  769. Sound = {
  770. Create = function(id, par, vol, pit)
  771. coroutine.resume(coroutine.create(function()
  772. local S = Create("Sound")({
  773. Volume = vol,
  774. Pitch = pit or 1,
  775. SoundId = id,
  776. Parent = par or workspace
  777. })
  778. wait()
  779. S:play()
  780. game:GetService("Debris"):AddItem(S, 6)
  781. end))
  782. end
  783. },
  784. ParticleEmitter = {
  785. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  786. local fp = Create("ParticleEmitter")({
  787. Parent = Parent,
  788. Color = ColorSequence.new(Color1, Color2),
  789. LightEmission = LightEmission,
  790. Size = Size,
  791. Texture = Texture,
  792. Transparency = Transparency,
  793. ZOffset = ZOffset,
  794. Acceleration = Accel,
  795. Drag = Drag,
  796. LockedToPart = LockedToPart,
  797. VelocityInheritance = VelocityInheritance,
  798. EmissionDirection = EmissionDirection,
  799. Enabled = Enabled,
  800. Lifetime = LifeTime,
  801. Rate = Rate,
  802. Rotation = Rotation,
  803. RotSpeed = RotSpeed,
  804. Speed = Speed,
  805. VelocitySpread = VelocitySpread
  806. })
  807. return fp
  808. end
  809. }
  810. }
  811. function RemoveOutlines(part)
  812. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  813. end
  814. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  815. local Part = Create("Part")({
  816. formFactor = FormFactor,
  817. Parent = Parent,
  818. Reflectance = Reflectance,
  819. Transparency = Transparency,
  820. CanCollide = false,
  821. Locked = true,
  822. BrickColor = BrickColor.new(tostring(BColor)),
  823. Name = Name,
  824. Size = Size,
  825. Material = Material
  826. })
  827. RemoveOutlines(Part)
  828. return Part
  829. end
  830. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  831. local Msh = Create(Mesh)({
  832. Parent = Part,
  833. Offset = OffSet,
  834. Scale = Scale
  835. })
  836. if Mesh == "SpecialMesh" then
  837. Msh.MeshType = MeshType
  838. Msh.MeshId = MeshId
  839. end
  840. return Msh
  841. end
  842. function CreateWeld(Parent, Part0, Part1, C0, C1)
  843. local Weld = Create("Weld")({
  844. Parent = Parent,
  845. Part0 = Part0,
  846. Part1 = Part1,
  847. C0 = C0,
  848. C1 = C1
  849. })
  850. return Weld
  851. end
  852.  
  853.  
  854. -------------------------------------------------------
  855. --Start Effect Function--
  856. -------------------------------------------------------
  857. EffectModel = Instance.new("Model", char)
  858. Effects = {
  859. Block = {
  860. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  861. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  862. prt.Anchored = true
  863. prt.CFrame = cframe
  864. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  865. game:GetService("Debris"):AddItem(prt, 10)
  866. if Type == 1 or Type == nil then
  867. table.insert(Effects, {
  868. prt,
  869. "Block1",
  870. delay,
  871. x3,
  872. y3,
  873. z3,
  874. msh
  875. })
  876. elseif Type == 2 then
  877. table.insert(Effects, {
  878. prt,
  879. "Block2",
  880. delay,
  881. x3,
  882. y3,
  883. z3,
  884. msh
  885. })
  886. else
  887. table.insert(Effects, {
  888. prt,
  889. "Block3",
  890. delay,
  891. x3,
  892. y3,
  893. z3,
  894. msh
  895. })
  896. end
  897. end
  898. },
  899. Sphere = {
  900. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  901. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  902. prt.Anchored = true
  903. prt.CFrame = cframe
  904. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  905. game:GetService("Debris"):AddItem(prt, 10)
  906. table.insert(Effects, {
  907. prt,
  908. "Cylinder",
  909. delay,
  910. x3,
  911. y3,
  912. z3,
  913. msh
  914. })
  915. end
  916. },
  917. Cylinder = {
  918. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  919. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  920. prt.Anchored = true
  921. prt.CFrame = cframe
  922. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  923. game:GetService("Debris"):AddItem(prt, 10)
  924. table.insert(Effects, {
  925. prt,
  926. "Cylinder",
  927. delay,
  928. x3,
  929. y3,
  930. z3,
  931. msh
  932. })
  933. end
  934. },
  935. Wave = {
  936. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  937. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  938. prt.Anchored = true
  939. prt.CFrame = cframe
  940. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  941. game:GetService("Debris"):AddItem(prt, 10)
  942. table.insert(Effects, {
  943. prt,
  944. "Cylinder",
  945. delay,
  946. x3 / 60,
  947. y3 / 60,
  948. z3 / 60,
  949. msh
  950. })
  951. end
  952. },
  953. Ring = {
  954. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  955. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  956. prt.Anchored = true
  957. prt.CFrame = cframe
  958. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  959. game:GetService("Debris"):AddItem(prt, 10)
  960. table.insert(Effects, {
  961. prt,
  962. "Cylinder",
  963. delay,
  964. x3,
  965. y3,
  966. z3,
  967. msh
  968. })
  969. end
  970. },
  971. Break = {
  972. Create = function(brickcolor, cframe, x1, y1, z1)
  973. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  974. prt.Anchored = true
  975. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  976. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  977. local num = math.random(10, 50) / 1000
  978. game:GetService("Debris"):AddItem(prt, 10)
  979. table.insert(Effects, {
  980. prt,
  981. "Shatter",
  982. num,
  983. prt.CFrame,
  984. math.random() - math.random(),
  985. 0,
  986. math.random(50, 100) / 100
  987. })
  988. end
  989. },
  990. Spiral = {
  991. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  992. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  993. prt.Anchored = true
  994. prt.CFrame = cframe
  995. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  996. game:GetService("Debris"):AddItem(prt, 10)
  997. table.insert(Effects, {
  998. prt,
  999. "Cylinder",
  1000. delay,
  1001. x3,
  1002. y3,
  1003. z3,
  1004. msh
  1005. })
  1006. end
  1007. },
  1008. Push = {
  1009. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1010. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1011. prt.Anchored = true
  1012. prt.CFrame = cframe
  1013. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1014. game:GetService("Debris"):AddItem(prt, 10)
  1015. table.insert(Effects, {
  1016. prt,
  1017. "Cylinder",
  1018. delay,
  1019. x3,
  1020. y3,
  1021. z3,
  1022. msh
  1023. })
  1024. end
  1025. }
  1026. }
  1027. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  1028. local fp = IT("Part")
  1029. fp.formFactor = formfactor
  1030. fp.Parent = parent
  1031. fp.Reflectance = reflectance
  1032. fp.Transparency = transparency
  1033. fp.CanCollide = false
  1034. fp.Locked = true
  1035. fp.BrickColor = brickcolor
  1036. fp.Name = name
  1037. fp.Size = size
  1038. fp.Position = tors.Position
  1039. RemoveOutlines(fp)
  1040. fp.Material = "SmoothPlastic"
  1041. fp:BreakJoints()
  1042. return fp
  1043. end
  1044.  
  1045. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1046. local mesh = IT(Mesh)
  1047. mesh.Parent = part
  1048. if Mesh == "SpecialMesh" then
  1049. mesh.MeshType = meshtype
  1050. if meshid ~= "nil" then
  1051. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  1052. end
  1053. end
  1054. mesh.Offset = offset
  1055. mesh.Scale = scale
  1056. return mesh
  1057. end
  1058.  
  1059. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  1060. local type = type
  1061. local rng = Instance.new("Part", char)
  1062. rng.Anchored = true
  1063. rng.BrickColor = color
  1064. rng.CanCollide = false
  1065. rng.FormFactor = 3
  1066. rng.Name = "Ring"
  1067. rng.Material = "Neon"
  1068. rng.Size = Vector3.new(1, 1, 1)
  1069. rng.Transparency = 0
  1070. rng.TopSurface = 0
  1071. rng.BottomSurface = 0
  1072. rng.CFrame = pos
  1073. local rngm = Instance.new("SpecialMesh", rng)
  1074. rngm.MeshType = MType
  1075. rngm.Scale = scale
  1076. local scaler2 = 1
  1077. if type == "Add" then
  1078. scaler2 = 1 * value
  1079. elseif type == "Divide" then
  1080. scaler2 = 1 / value
  1081. end
  1082. coroutine.resume(coroutine.create(function()
  1083. for i = 0, 10 / bonuspeed, 0.1 do
  1084. swait()
  1085. if type == "Add" then
  1086. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1087. elseif type == "Divide" then
  1088. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1089. end
  1090. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1091. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  1092. end
  1093. rng:Destroy()
  1094. end))
  1095. end
  1096.  
  1097. function Eviscerate(dude)
  1098. if dude.Name ~= char then
  1099. local bgf = IT("BodyGyro", dude.Head)
  1100. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1101. local val = IT("BoolValue", dude)
  1102. val.Name = "IsHit"
  1103. local ds = coroutine.wrap(function()
  1104. dude:WaitForChild("Head"):BreakJoints()
  1105. wait(0.5)
  1106. target = nil
  1107. coroutine.resume(coroutine.create(function()
  1108. for i, v in pairs(dude:GetChildren()) do
  1109. if v:IsA("Accessory") then
  1110. v:Destroy()
  1111. end
  1112. if v:IsA("Humanoid") then
  1113. v:Destroy()
  1114. end
  1115. if v:IsA("CharacterMesh") then
  1116. v:Destroy()
  1117. end
  1118. if v:IsA("Model") then
  1119. v:Destroy()
  1120. end
  1121. if v:IsA("Part") or v:IsA("MeshPart") then
  1122. for x, o in pairs(v:GetChildren()) do
  1123. if o:IsA("Decal") then
  1124. o:Destroy()
  1125. end
  1126. end
  1127. coroutine.resume(coroutine.create(function()
  1128. v.Material = "Neon"
  1129. v.CanCollide = false
  1130. local PartEmmit1 = IT("ParticleEmitter", v)
  1131. PartEmmit1.LightEmission = 1
  1132. PartEmmit1.Texture = "rbxassetid://284205403"
  1133. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1134. PartEmmit1.Rate = 150
  1135. PartEmmit1.Lifetime = NumberRange.new(1)
  1136. PartEmmit1.Size = NumberSequence.new({
  1137. NumberSequenceKeypoint.new(0, 0.75, 0),
  1138. NumberSequenceKeypoint.new(1, 0, 0)
  1139. })
  1140. PartEmmit1.Transparency = NumberSequence.new({
  1141. NumberSequenceKeypoint.new(0, 0, 0),
  1142. NumberSequenceKeypoint.new(1, 1, 0)
  1143. })
  1144. PartEmmit1.Speed = NumberRange.new(0, 0)
  1145. PartEmmit1.VelocitySpread = 30000
  1146. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  1147. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  1148. local BodPoss = IT("BodyPosition", v)
  1149. BodPoss.P = 3000
  1150. BodPoss.D = 1000
  1151. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1152. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1153. v.Color = maincolor.Color
  1154. coroutine.resume(coroutine.create(function()
  1155. for i = 0, 49 do
  1156. swait(1)
  1157. v.Transparency = v.Transparency + 0.08
  1158. end
  1159. wait(0.5)
  1160. PartEmmit1.Enabled = false
  1161. wait(3)
  1162. v:Destroy()
  1163. dude:Destroy()
  1164. end))
  1165. end))
  1166. end
  1167. end
  1168. end))
  1169. end)
  1170. ds()
  1171. end
  1172. end
  1173.  
  1174. function FindNearestHead(Position, Distance, SinglePlayer)
  1175. if SinglePlayer then
  1176. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1177. end
  1178. local List = {}
  1179. for i, v in pairs(workspace:GetChildren()) do
  1180. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  1181. table.insert(List, v)
  1182. end
  1183. end
  1184. return List
  1185. end
  1186.  
  1187. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  1188. local type = type
  1189. local rng = Instance.new("Part", char)
  1190. rng.Anchored = true
  1191. rng.BrickColor = color
  1192. rng.CanCollide = false
  1193. rng.FormFactor = 3
  1194. rng.Name = "Ring"
  1195. rng.Material = "Neon"
  1196. rng.Size = Vector3.new(1, 1, 1)
  1197. rng.Transparency = 0
  1198. rng.TopSurface = 0
  1199. rng.BottomSurface = 0
  1200. rng.CFrame = pos
  1201. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1202. local rngm = Instance.new("SpecialMesh", rng)
  1203. rngm.MeshType = MType
  1204. rngm.Scale = Vector3.new(x1, y1, z1)
  1205. local scaler2 = 1
  1206. local speeder = FastSpeed
  1207. if type == "Add" then
  1208. scaler2 = 1 * value
  1209. elseif type == "Divide" then
  1210. scaler2 = 1 / value
  1211. end
  1212. coroutine.resume(coroutine.create(function()
  1213. for i = 0, 10 / bonuspeed, 0.1 do
  1214. swait()
  1215. if type == "Add" then
  1216. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1217. elseif type == "Divide" then
  1218. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1219. end
  1220. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1221. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1222. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1223. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1224. end
  1225. rng:Destroy()
  1226. end))
  1227. end
  1228.  
  1229. function SoulSteal(dude)
  1230. if dude.Name ~= char then
  1231. local bgf = IT("BodyGyro", dude.Head)
  1232. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1233. local val = IT("BoolValue", dude)
  1234. val.Name = "IsHit"
  1235. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1236. local soulst = coroutine.wrap(function()
  1237. local soul = Instance.new("Part",dude)
  1238. soul.Size = Vector3.new(1,1,1)
  1239. soul.CanCollide = false
  1240. soul.Anchored = false
  1241. soul.Position = torso.Position
  1242. soul.Transparency = 1
  1243. local PartEmmit1 = IT("ParticleEmitter", soul)
  1244. PartEmmit1.LightEmission = 1
  1245. PartEmmit1.Texture = "rbxassetid://569507414"
  1246. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1247. PartEmmit1.Rate = 250
  1248. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1249. PartEmmit1.Size = NumberSequence.new({
  1250. NumberSequenceKeypoint.new(0, 1, 0),
  1251. NumberSequenceKeypoint.new(1, 0, 0)
  1252. })
  1253. PartEmmit1.Transparency = NumberSequence.new({
  1254. NumberSequenceKeypoint.new(0, 0, 0),
  1255. NumberSequenceKeypoint.new(1, 1, 0)
  1256. })
  1257. PartEmmit1.Speed = NumberRange.new(0, 0)
  1258. PartEmmit1.VelocitySpread = 30000
  1259. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1260. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1261. local BodPoss = IT("BodyPosition", soul)
  1262. BodPoss.P = 3000
  1263. BodPoss.D = 1000
  1264. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1265. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1266. wait(1.6)
  1267. soul.Touched:connect(function(hit)
  1268. if hit.Parent == char then
  1269. soul:Destroy()
  1270. end
  1271. end)
  1272. wait(1.2)
  1273. while soul do
  1274. swait()
  1275. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1276. BodPoss.Position = tors.Position
  1277. end
  1278. end)
  1279. soulst()
  1280. end
  1281. end
  1282. function FaceMouse()
  1283. local Cam = workspace.CurrentCamera
  1284. return {
  1285. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1286. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1287. }
  1288. end
  1289. -------------------------------------------------------
  1290. --End Effect Function--
  1291. -------------------------------------------------------
  1292. function Cso(ID, PARENT, VOLUME, PITCH)
  1293. local NSound = nil
  1294. coroutine.resume(coroutine.create(function()
  1295. NSound = IT("Sound", PARENT)
  1296. NSound.Volume = VOLUME
  1297. NSound.Pitch = PITCH
  1298. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1299. swait()
  1300. NSound:play()
  1301. game:GetService("Debris"):AddItem(NSound, 10)
  1302. end))
  1303. return NSound
  1304. end
  1305. function CameraEnshaking(Length, Intensity)
  1306. coroutine.resume(coroutine.create(function()
  1307. local intensity = 1 * Intensity
  1308. local rotM = 0.01 * Intensity
  1309. for i = 0, Length, 0.1 do
  1310. swait()
  1311. intensity = intensity - 0.05 * Intensity / Length
  1312. rotM = rotM - 5.0E-4 * Intensity / Length
  1313. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1314. 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)
  1315. end
  1316. hum.CameraOffset = Vector3.new(0, 0, 0)
  1317. end))
  1318. end
  1319. function chatfunc(text, color)
  1320. local chat = coroutine.wrap(function()
  1321. if char:FindFirstChild("TalkingBillBoard") ~= nil then
  1322. char:FindFirstChild("TalkingBillBoard"):destroy()
  1323. end
  1324. local naeeym2 = Instance.new("BillboardGui", char)
  1325. naeeym2.Size = UDim2.new(0, 100, 0, 40)
  1326. naeeym2.StudsOffset = Vector3.new(0, 5, 0)
  1327. naeeym2.Adornee = hed
  1328. naeeym2.Name = "TalkingBillBoard"
  1329. local tecks2 = Instance.new("TextLabel", naeeym2)
  1330. tecks2.BackgroundTransparency = 1
  1331. tecks2.BorderSizePixel = 0
  1332. tecks2.Text = ""
  1333. tecks2.Font = "SciFi"
  1334. tecks2.TextSize = 30
  1335. tecks2.TextStrokeTransparency = 0
  1336. tecks2.TextColor3 = color
  1337. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  1338. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  1339. coroutine.resume(coroutine.create(function()
  1340. while true do
  1341. swait(1)
  1342. tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  1343. tecks2.Rotation = math.random(-5, 5)
  1344. end
  1345. end))
  1346. for i = 1, string.len(text) do
  1347. CFuncs.Sound.Create("rbxassetid://274118116", hed, 5.25, 0.115)
  1348. tecks2.Text = string.sub(text, 1, i)
  1349. swait(1)
  1350. end
  1351. wait(1)
  1352. naeeym2:Destroy()
  1353. end)
  1354. chat()
  1355. end
  1356. -------------------------------------------------------
  1357. --End Important Functions--
  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. local equipped = false
  1395. local idle = 0
  1396. local change = 1
  1397. local val = 0
  1398. local toim = 0
  1399. local idleanim = 0.4
  1400. local sine = 0
  1401. local Sit = 1
  1402. ----------------------------------------------------------------------------------
  1403. local SONG = 426952615
  1404. local SONG2 = 0
  1405. local Music = Instance.new("Sound",tors)
  1406. Music.Volume = 2.5
  1407. Music.Looped = true
  1408. Music.Pitch = .75 --Pitcher
  1409. ----------------------------------------------------------------------------------
  1410.  
  1411. hum.WalkSpeed = 16
  1412. hum.JumpPower = 70
  1413. hum.MaxHealth = 999999999999999999999999999999999999999999999999999999999999999999
  1414. hum.Health = 999999999999999999999999999999999999999999999999999999999999999999
  1415. hum.Animator.Parent = nil
  1416. ----------------------------------------------------------------------------------
  1417. local naeeym2 = Instance.new("BillboardGui",char)
  1418. naeeym2.AlwaysOnTop = true
  1419. naeeym2.Size = UDim2.new(5,35,2,15)
  1420. naeeym2.StudsOffset = Vector3.new(0, 3.5, 0)
  1421. naeeym2.Adornee = hed
  1422. naeeym2.Name = "Name"
  1423. --naeeym2.PlayerToHideFrom = Player
  1424. local tecks2 = Instance.new("TextLabel",naeeym2)
  1425. tecks2.BackgroundTransparency = 1
  1426. tecks2.TextScaled = true
  1427. tecks2.BorderSizePixel = 0
  1428. tecks2.Text = "Dying Demon :C"
  1429. tecks2.Font = Enum.Font.Antique
  1430. tecks2.TextSize = 30
  1431. tecks2.TextStrokeTransparency = 0
  1432. tecks2.TextColor3 = Color3.new(0, 0, 14)
  1433. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  1434. tecks2.Size = UDim2.new(1,0,0.5,0)
  1435. tecks2.Parent = naeeym2
  1436. wait(1)
  1437. tecks2.Text = "By Nekuwo"
  1438. wait(2)
  1439. tecks2.Text = "Enjoy!"
  1440. wait(3)
  1441. tecks2.Text = "Dying Demon"
  1442. --------------------------------------------------------
  1443. local EyeSizes={
  1444. NumberSequenceKeypoint.new(0,0.65,0),
  1445. NumberSequenceKeypoint.new(0.5,0.7,0),
  1446. NumberSequenceKeypoint.new(1,0,0)
  1447. }
  1448. local EyeTrans={
  1449. NumberSequenceKeypoint.new(0,0,0),
  1450. NumberSequenceKeypoint.new(0.5,0,0),
  1451. NumberSequenceKeypoint.new(1,1,0)
  1452. }
  1453. local PE2=Instance.new("ParticleEmitter", ra)
  1454. PE2.LightEmission=.9
  1455. PE2.Color = ColorSequence.new(BrickC("Really blue").Color,BrickC("Really blue").Color)
  1456. PE2.Transparency=NumberSequence.new(EyeTrans)
  1457. PE2.Lifetime=NumberRange.new(0.35)
  1458. PE2.Rotation=NumberRange.new(0,360)
  1459. PE2.Rate=999
  1460. PE2.VelocitySpread = 10000
  1461. PE2.Acceleration = Vector3.new(0,25,0)
  1462. PE2.ZOffset = 0.5
  1463. PE2.Drag = 0
  1464. PE2.Speed = NumberRange.new(0,0,0)
  1465. PE2.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
  1466. PE2.Name = "PE2"
  1467. PE2.Enabled = true
  1468. PE2.LockedToPart = true
  1469. local EyeSizes={
  1470. NumberSequenceKeypoint.new(0,0.65,0),
  1471. NumberSequenceKeypoint.new(0.5,0.7,0),
  1472. NumberSequenceKeypoint.new(1,0,0)
  1473. }
  1474. local EyeTrans={
  1475. NumberSequenceKeypoint.new(0,0,0),
  1476. NumberSequenceKeypoint.new(0.5,0,0),
  1477. NumberSequenceKeypoint.new(1,1,0)
  1478. }
  1479. local PE3=Instance.new("ParticleEmitter", ra)
  1480. PE3.LightEmission=.9
  1481. PE3.Color = ColorSequence.new(BrickC("Industrial white").Color,BrickC("Really blue").Color)
  1482. PE3.Transparency=NumberSequence.new(EyeTrans)
  1483. PE3.Lifetime=NumberRange.new(0.35)
  1484. PE3.Rotation=NumberRange.new(0,360)
  1485. PE3.Rate=999
  1486. PE3.VelocitySpread = 10000
  1487. PE3.Acceleration = Vector3.new(0,25,0)
  1488. PE3.ZOffset = 0.5
  1489. PE3.Drag = 0
  1490. PE3.Speed = NumberRange.new(0,0,0)
  1491. PE3.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
  1492. PE3.Name = "PE3"
  1493. PE3.Enabled = true
  1494. PE3.LockedToPart = true
  1495.  
  1496. local EyeSizes={
  1497. NumberSequenceKeypoint.new(0,0.65,0),
  1498. NumberSequenceKeypoint.new(0.5,0.7,0),
  1499. NumberSequenceKeypoint.new(1,0,0)
  1500. }
  1501. local EyeTrans={
  1502. NumberSequenceKeypoint.new(0,0,0),
  1503. NumberSequenceKeypoint.new(0.5,0,0),
  1504. NumberSequenceKeypoint.new(1,1,0)
  1505. }
  1506. local PE4=Instance.new("ParticleEmitter", ll)
  1507. PE4.LightEmission=.9
  1508. PE4.Color = ColorSequence.new(BrickC("Really blue").Color,BrickC("Industrial white").Color)
  1509. PE4.Transparency=NumberSequence.new(EyeTrans)
  1510. PE4.Lifetime=NumberRange.new(0.35)
  1511. PE4.Rotation=NumberRange.new(0,360)
  1512. PE4.Rate=999
  1513. PE4.VelocitySpread = 10000
  1514. PE4.Acceleration = Vector3.new(0,25,0)
  1515. PE4.ZOffset = 0.5
  1516. PE4.Drag = 0
  1517. PE4.Speed = NumberRange.new(0,0,0)
  1518. PE4.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
  1519. PE4.Name = "PE4"
  1520. PE4.Enabled = true
  1521. PE4.LockedToPart = true
  1522. local EyeSizes={
  1523. NumberSequenceKeypoint.new(0,0.65,0),
  1524. NumberSequenceKeypoint.new(0.5,0.7,0),
  1525. NumberSequenceKeypoint.new(1,0,0)
  1526. }
  1527. local EyeTrans={
  1528. NumberSequenceKeypoint.new(0,0,0),
  1529. NumberSequenceKeypoint.new(0.5,0,0),
  1530. NumberSequenceKeypoint.new(1,1,0)
  1531. }
  1532. local PE5=Instance.new("ParticleEmitter", ll)
  1533. PE5.LightEmission=.9
  1534. PE5.Color = ColorSequence.new(BrickC("Really blue").Color,BrickC("Navy blue").Color)
  1535. PE5.Transparency=NumberSequence.new(EyeTrans)
  1536. PE5.Lifetime=NumberRange.new(0.35)
  1537. PE5.Rotation=NumberRange.new(0,360)
  1538. PE5.Rate=999
  1539. PE5.VelocitySpread = 10000
  1540. PE5.Acceleration = Vector3.new(0,25,0)
  1541. PE5.ZOffset = 0.5
  1542. PE5.Drag = 0
  1543. PE5.Speed = NumberRange.new(0,0,0)
  1544. PE5.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
  1545. PE5.Name = "PE5"
  1546. PE5.Enabled = true
  1547. PE5.LockedToPart = true
  1548. -------------------------------------------------------
  1549. --End Customization--
  1550. -------------------------------------------------------
  1551.  
  1552.  
  1553. -------------------------------------------------------
  1554. --Start Attacks N Stuff--
  1555. -------------------------------------------------------
  1556. function attackone()
  1557. attack = true
  1558. hum.WalkSpeed = 3.01
  1559. for i = 0, 1.7, 0.1 do
  1560. swait()
  1561. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(-40)), 0.3)
  1562. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(40)), 0.3)
  1563. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-7), Rad(0), Rad(-7)), 0.3)
  1564. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-65), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-25)), 0.3)
  1565. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, .3* Player_Size) * angles(Rad(90), Rad(-7.5 * Sin(sine / 20)), Rad(45)), 0.3)
  1566. 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(7.5 * Sin(sine / 20)), Rad(-25)), 0.3)
  1567. end
  1568. Cso("203426541", ra, 10, 1)
  1569. for i = 0, 1.4, 0.1 do
  1570. swait()
  1571. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -.5, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(5), Rad(0), Rad(55)), 0.3)
  1572. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(-55)), 0.3)
  1573. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(87), Rad(0)) * angles(Rad(-30), Rad(0), Rad(15)), 0.3)
  1574. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.1* Player_Size) * angles(Rad(0), Rad(-87), Rad(0)) * angles(Rad(-5), Rad(0), Rad(9)), 0.3)
  1575. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.4* Player_Size) * angles(Rad(90), Rad(-7.5 * Sin(sine / 20)), Rad(35)), 0.3)
  1576. 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(7.5 * Sin(sine / 20)), Rad(-25)), 0.3)
  1577. end
  1578. for i = 0, 1.4, 0.1 do
  1579. swait()
  1580. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -.5, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(5), Rad(0), Rad(55)), 0.3)
  1581. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(-55)), 0.3)
  1582. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(87), Rad(0)) * angles(Rad(-30), Rad(0), Rad(15)), 0.3)
  1583. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.1* Player_Size) * angles(Rad(0), Rad(-87), Rad(0)) * angles(Rad(-5), Rad(0), Rad(9)), 0.3)
  1584. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.4* Player_Size) * angles(Rad(90), Rad(-7.5 * Sin(sine / 20)), Rad(35)), 0.3)
  1585. 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(7.5 * Sin(sine / 20)), Rad(-25)), 0.3)
  1586. for i, v in pairs(FindNearestHead(tors.CFrame.p, 4)) do
  1587. if v:FindFirstChild("Head") then
  1588. Eviscerate(v)
  1589. end
  1590. end
  1591. end
  1592. attack = false
  1593. hum.WalkSpeed = 16
  1594. end
  1595. function attacktwo()
  1596. attack = true
  1597. hum.WalkSpeed = 3.01
  1598. for i = 0, 1.7, 0.1 do
  1599. swait()
  1600. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(0)), 0.3)
  1601. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5), Rad(0), Rad(0)), 0.3)
  1602. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-7), Rad(0), Rad(-45)), 0.3)
  1603. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-25)), 0.3)
  1604. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(10), Rad(-7.5 * Sin(sine / 20)), Rad(8)), 0.3)
  1605. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(35), Rad(7.5 * Sin(sine / 20)), Rad(-8)), 0.3)
  1606. end
  1607. Cso("203426541", rl, 10, 1)
  1608. CameraEnshaking(2, 3)
  1609. for i = 0, 1.4, 0.1 do
  1610. swait()
  1611. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -.5, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-25), Rad(0), Rad(0)), 0.3)
  1612. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(5), Rad(0), Rad(0)), 0.3)
  1613. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-7), Rad(0), Rad(65)), 0.3)
  1614. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1.1 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-10), Rad(0), Rad(35)), 0.3)
  1615. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(-7.5 * Sin(sine / 20)), Rad(8)), 0.3)
  1616. 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(7.5 * Sin(sine / 20)), Rad(-8)), 0.3)
  1617. for i, v in pairs(FindNearestHead(tors.CFrame.p, 5)) do
  1618. if v:FindFirstChild("Head") then
  1619. Eviscerate(v)
  1620. end
  1621. end
  1622. end
  1623. attack = false
  1624. hum.WalkSpeed = 16
  1625. end
  1626. function attackthree()
  1627. attack = true
  1628. hum.WalkSpeed = 3.01
  1629. for i = 0, 1.4, 0.1 do
  1630. swait()
  1631. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-25), Rad(0), Rad(0)), 0.3)
  1632. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1633. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-15), Rad(0), Rad(-30)), 0.3)
  1634. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-15), Rad(0), Rad(30)), 0.3)
  1635. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(90), Rad(0), Rad(35)), 0.3)
  1636. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(90), Rad(0), Rad(-35)), 0.3)
  1637. end
  1638. Cso("203426541", hed, 10, 1)
  1639. for i = 0, 1.7, 0.1 do
  1640. swait()
  1641. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(0)), 0.3)
  1642. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1643. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.1* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-5), Rad(0), Rad(30)), 0.3)
  1644. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.1* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-5), Rad(0), Rad(-30)), 0.3)
  1645. RW.C0 = clerp(RW.C0, CF(1.3* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(90), Rad(0), Rad(-35)), 0.3)
  1646. LW.C0 = clerp(LW.C0, CF(-1.3* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(90), Rad(0), Rad(35)), 0.3)
  1647. for i, v in pairs(FindNearestHead(tors.CFrame.p, 6)) do
  1648. if v:FindFirstChild("Head") then
  1649. Eviscerate(v)
  1650. end
  1651. end
  1652. end
  1653. attack = false
  1654. hum.WalkSpeed = 16
  1655. end
  1656.  
  1657. function Distort()
  1658. attack = true
  1659. hum.WalkSpeed = 0
  1660. local pos = root.Position
  1661. root.CFrame = CF(mouse.Hit.p+Vector3.new(0,3,0),pos)
  1662. Cso("847061203", char, 10, 0.85)
  1663. for i = 1,2.5,0.1 do
  1664. swait()
  1665. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15)
  1666. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3)
  1667. RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15)
  1668. LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1669. RW.C0 = clerp(RW.C0, CF(1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(25)), 0.1)
  1670. LW.C0 = clerp(LW.C0, CF(-1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(-25)), 0.1)
  1671. end
  1672. attack = false
  1673. hum.WalkSpeed = 8
  1674. end
  1675. function Ancient_Rage()
  1676. attack = true
  1677. hum.WalkSpeed = 0
  1678. Cso("135017578", tors, 10, 1.05)
  1679. for i = 1,14,0.1 do
  1680. swait()
  1681. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15)
  1682. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3)
  1683. RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15)
  1684. LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1685. RW.C0 = clerp(RW.C0, CF(1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(25)), 0.1)
  1686. LW.C0 = clerp(LW.C0, CF(-1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(-25)), 0.1)
  1687. for i, v in pairs(FindNearestHead(tors.CFrame.p, 20)) do
  1688. if v:FindFirstChild("Head") then
  1689. Eviscerate(v)
  1690. end
  1691. end
  1692. end
  1693. attack = false
  1694. hum.WalkSpeed = 16
  1695. end
  1696. function Technobeam()
  1697. attack = true
  1698. hum.WalkSpeed = 3.01
  1699. for i = 0, 4, 0.1 do
  1700. swait()
  1701. hum.CameraOffset = Vector3.new(0, -0.1 + 0.1 * Cos(sine / 20), 0)
  1702. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-10), Rad(0), Rad(40)), 0.2)
  1703. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2)
  1704. 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(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2)
  1705. 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(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2)
  1706. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2)
  1707. 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(7.5 * Sin(sine / 20)), Rad(-25)), 0.2)
  1708. end
  1709. for i = 0, 2, 0.1 do
  1710. swait()
  1711. hum.CameraOffset = Vector3.new(0, 0.3 + 0.1 * Cos(sine / 20), 0)
  1712. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-25), Rad(0), Rad(40)), 0.2)
  1713. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20), Rad(0), Rad(-40)), 0.2)
  1714. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1.2 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(-25)), 0.2)
  1715. 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(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(25)), 0.2)
  1716. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(145), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2)
  1717. 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(7.5 * Sin(sine / 20)), Rad(-25)), 0.2)
  1718. end
  1719. Magic(5, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, maincolor, "Sphere")
  1720. Magic(10, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, maincolor, "Sphere")
  1721. Magic(1, "Add", mouse.Hit, Vector3.new(1, 100000, 1), 0.5, maincolor, "Sphere")
  1722. Magic(1, "Add", mouse.Hit, Vector3.new(1, 1, 1), 0.75, maincolor, "Sphere")
  1723. CameraEnshaking(4, 5)
  1724. Cso("206049428", char, 10, 1)
  1725. for i, v in pairs(FindNearestHead(mouse.Hit.p, 14.5)) do
  1726. if v:FindFirstChild("Head") then
  1727. Eviscerate(v)
  1728. end
  1729. end
  1730. for i = 0, 2, 0.1 do
  1731. swait()
  1732. hum.CameraOffset = Vector3.new(0, -0.2 + 0.1 * Cos(sine / 20), 0)
  1733. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-5), Rad(0), Rad(40)), 0.2)
  1734. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2)
  1735. 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(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2)
  1736. 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(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2)
  1737. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(45), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2)
  1738. 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(7.5 * Sin(sine / 20)), Rad(-25)), 0.2)
  1739. end
  1740. hum.WalkSpeed = 16
  1741. attack = false
  1742. end
  1743. function Taunt10000()
  1744. attack = true
  1745. Cso("333446256", char, 10, 1)
  1746. for i = 0, 15, 0.1 do
  1747. swait()
  1748. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(30)), 0.1)
  1749. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 3.5)), Rad(0), Rad(-30)), 0.1)
  1750. 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(86), Rad(0)) * angles(Rad(-5), Rad(0), Rad(0)), 0.1)
  1751. 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(-86), Rad(0)) * angles(Rad(-5), Rad(0), Rad(0)), 0.1)
  1752. RW.C0 = clerp(RW.C0, CF(.7* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-135)), 0.2)
  1753. LW.C0 = clerp(LW.C0, CF(-1 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(43)), 0.08)
  1754. end
  1755. for i = 0, 15, 0.1 do
  1756. swait()
  1757. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(30)), 0.1)
  1758. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 3.5)), Rad(0), Rad(-30)), 0.1)
  1759. 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(86), Rad(0)) * angles(Rad(-5), Rad(0), Rad(0)), 0.1)
  1760. 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(-86), Rad(0)) * angles(Rad(-5), Rad(0), Rad(0)), 0.1)
  1761. RW.C0 = clerp(RW.C0, CF(.7* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-135)), 0.2)
  1762. LW.C0 = clerp(LW.C0, CF(-1 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(43)), 0.08)
  1763. end
  1764. for i = 0, 20, 0.1 do
  1765. swait()
  1766. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(30)), 0.1)
  1767. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 3.5)), Rad(0), Rad(-30)), 0.1)
  1768. 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(86), Rad(0)) * angles(Rad(-5), Rad(0), Rad(0)), 0.1)
  1769. 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(-86), Rad(0)) * angles(Rad(-5), Rad(0), Rad(0)), 0.1)
  1770. RW.C0 = clerp(RW.C0, CF(.7* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-135)), 0.2)
  1771. LW.C0 = clerp(LW.C0, CF(-1 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(43)), 0.08)
  1772. end
  1773. attack = false
  1774. end
  1775. function OP9999()
  1776. attack = true
  1777. hum.WalkSpeed = 3.01
  1778. Cso("1690476035",char, 10, 1)
  1779. for i = 0,5.2,0.1 do
  1780. swait()
  1781. Effects.Block.Create(BrickC("Cyan"), ll.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05)
  1782. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15)
  1783. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
  1784. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-20)), 0.15)
  1785. LH.C0 = clerp(LH.C0, CF(-1, -0.3 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(25)), 0.15)
  1786. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(135), Rad(0), Rad(-45 - 2.5 * Sin(sine / 20))), 0.1)
  1787. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(135), Rad(0), Rad(45 + 2.5 * Sin(sine / 20))), 0.1)
  1788. end
  1789. Cso("824687369", char, 10, 1)
  1790. for i = 0,3.7,0.1 do
  1791. swait()
  1792. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15)
  1793. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
  1794. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(20)), 0.15)
  1795. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(-25)), 0.15)
  1796. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1)
  1797. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1)
  1798. CameraEnshaking(2, 8)
  1799. Effects.Sphere.Create(BrickColor.new("Navy blue"), root.CFrame * CF(0, -3, 0), 10, 4, 10, 9999999, -0.1, 9999999, 0.01)
  1800. for i, v in pairs(FindNearestHead(tors.CFrame.p, 9999999)) do
  1801. if v:FindFirstChild("Head") then
  1802. Eviscerate(v)
  1803. end
  1804. end
  1805. end
  1806. attack = false
  1807. hum.WalkSpeed = 16
  1808. end
  1809. -------------------------------------------------------
  1810. --End Attacks N Stuff--
  1811. -------------------------------------------------------
  1812. mouse.KeyDown:connect(function(key)
  1813. if key == 'q' then
  1814. Swing = 2
  1815. hum.WalkSpeed = 40
  1816. end
  1817. end)
  1818. mouse.KeyUp:connect(function(key)
  1819. if key == 'q' then
  1820. Swing = 1
  1821. hum.WalkSpeed = 16
  1822. end
  1823. end)
  1824.  
  1825. mouse.KeyDown:connect(function(key)
  1826. if attack == false then
  1827. if key == 'e' then
  1828. Ancient_Rage()
  1829. elseif key == 'r' then
  1830. Distort()
  1831. elseif key == 't' then
  1832. Taunt10000()
  1833. elseif key == 'f' then
  1834. Technobeam()
  1835. elseif key == 'g' then
  1836. OP9999()
  1837. elseif key == 'h' then
  1838.  
  1839. end
  1840. end
  1841. end)
  1842. local Combo = 1
  1843. mouse.Button1Down:connect(function(key)
  1844. if attack == false then
  1845. if Combo == 1 then
  1846. Combo = 2
  1847. attackone()
  1848. elseif Combo == 2 then
  1849. Combo = 3
  1850. attacktwo()
  1851. elseif Combo == 3 then
  1852. Combo = 1
  1853. attackthree()
  1854. end
  1855. end
  1856. end)
  1857. -------------------------------------------------------
  1858. --Start Animations--
  1859. -------------------------------------------------------
  1860. while true do
  1861. swait()
  1862. sine = sine + change
  1863. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1864. local velderp = root.Velocity.y
  1865. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  1866. if equipped == true or equipped == false then
  1867. if attack == false then
  1868. idle = idle + 1
  1869. else
  1870. idle = 0
  1871. end
  1872. --Aura(5, 0.15, "Add", root.CFrame * CFrame.new(math.random(-5, 5), -10, math.random(-5, 5)) * CFrame.Angles(math.rad(90), 0, 0), 1.5, 1.5, 10, -0.015, maincolor, 0, "Sphere")
  1873. if 1 < root.Velocity.y and hitfloor == nil then
  1874. Anim = "Jump"
  1875. if attack == false then
  1876. 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)
  1877. 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)
  1878. 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)
  1879. 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)
  1880. 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)
  1881. 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)
  1882. end
  1883. elseif -1 > root.Velocity.y and hitfloor == nil then
  1884. Anim = "Fall"
  1885. if attack == false then
  1886. 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)
  1887. 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)
  1888. 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)
  1889. 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)
  1890. 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)
  1891. 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)
  1892. end
  1893. elseif torvel < 1 and hitfloor ~= nil then
  1894. Anim = "Idle"
  1895. change = 1
  1896. if attack == false then
  1897. 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.08)
  1898. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 2.5 * Sin(sine / 12)), Rad(0), Rad(0)), 0.08)
  1899. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.08)
  1900. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.08)
  1901. RW.C0 = clerp(RW.C0, CF(1 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(-43)), 0.08)
  1902. LW.C0 = clerp(LW.C0, CF(-1 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(43)), 0.08)
  1903. end
  1904. elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
  1905. Anim = "Walk"
  1906. change = 1
  1907. if attack == false then
  1908. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
  1909. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1910. RH.C0 = clerp(RH.C0, CF(1, -0.8 - 0.5 * Cos(sine / 7) / 2, 0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1911. LH.C0 = clerp(LH.C0, CF(-1, -0.8 + 0.5 * Cos(sine / 7) / 2, -0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1912. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(37) * Cos(sine / 7) , Rad(0), Rad(-.6) - ra.RotVelocity.Y / 75), 0.1)
  1913. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(-37) * Cos(sine / 7) , Rad(0) , Rad(.6) + la.RotVelocity.Y / 75), 0.1)
  1914. end
  1915. elseif torvel >= 25 and hitfloor ~= nil then
  1916. Anim = "Sprint"
  1917. change = 1.35
  1918. if attack == false then
  1919. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 2 + 0.25* Player_Size * Cos(sine / 12)) * angles(Rad(25), Rad(0), Rad(0)), 0.1)
  1920. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-15 - 6.5 * Sin(sine / 12)), Rad(20), Rad(0)), 0.1)
  1921. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.15 * Cos(sine / 20)* Player_Size, -0.1* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-18.5 - 6.5 * Sin(sine / 12)), Rad(0), Rad(-35)), 0.1)
  1922. LH.C0 = clerp(LH.C0, CF(-1.1* Player_Size, -0.6 - 0.15 * Cos(sine / 20)* Player_Size, -0.2* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-18.5 - 6.5 * Sin(sine / 12)), Rad(15), Rad(35)), 0.1)
  1923. RW.C0 = clerp(RW.C0, CF(1.4* Player_Size, 0.4 + 0.08 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-45 - 6.5 * Cos(sine / 12)), Rad(-.6), Rad(25 + 6.5 * Sin(sine / 12))), 0.1)
  1924. LW.C0 = clerp(LW.C0, CF(-1.4* Player_Size, 0.4 + 0.08 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-45 - 6.5 * Cos(sine / 12)), Rad(-.6), Rad(-25 - 6.5 * Sin(sine / 12))), 0.1)
  1925. end
  1926. end
  1927. end
  1928. Music.SoundId = "rbxassetid://"..SONG
  1929. Music.Looped = true
  1930. Music.Pitch = 1
  1931. Music.Volume = 1
  1932. Music.Parent = tors
  1933. Music:Resume()
  1934. if 0 < #Effects then
  1935. for e = 1, #Effects do
  1936. if Effects[e] ~= nil then
  1937. local Thing = Effects[e]
  1938. if Thing ~= nil then
  1939. local Part = Thing[1]
  1940. local Mode = Thing[2]
  1941. local Delay = Thing[3]
  1942. local IncX = Thing[4]
  1943. local IncY = Thing[5]
  1944. local IncZ = Thing[6]
  1945. if 1 >= Thing[1].Transparency then
  1946. if Thing[2] == "Block1" then
  1947. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1948. local Mesh = Thing[1].Mesh
  1949. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1950. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1951. elseif Thing[2] == "Block2" then
  1952. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1953. local Mesh = Thing[7]
  1954. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1955. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1956. elseif Thing[2] == "Block3" then
  1957. 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)
  1958. local Mesh = Thing[7]
  1959. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1960. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1961. elseif Thing[2] == "Cylinder" then
  1962. local Mesh = Thing[1].Mesh
  1963. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1964. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1965. elseif Thing[2] == "Blood" then
  1966. local Mesh = Thing[7]
  1967. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1968. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1969. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1970. elseif Thing[2] == "Elec" then
  1971. local Mesh = Thing[1].Mesh
  1972. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1973. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1974. elseif Thing[2] == "Disappear" then
  1975. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1976. elseif Thing[2] == "Shatter" then
  1977. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1978. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1979. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1980. Thing[6] = Thing[6] + Thing[5]
  1981. end
  1982. else
  1983. Part.Parent = nil
  1984. table.remove(Effects, e)
  1985. end
  1986. end
  1987. end
  1988. end
  1989. end
  1990. end
  1991. -------------------------------------------------------
  1992. --End Animations And Script--
  1993. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement