Advertisement
AOM-GU-PRO

The Killer Dragon

Jul 12th, 2018
506
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 79.06 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.  
  231.  
  232. --//=================================\\
  233. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  234. --\\=================================//
  235.  
  236. ArtificialHB = Instance.new("BindableEvent", script)
  237. ArtificialHB.Name = "ArtificialHB"
  238.  
  239. script:WaitForChild("ArtificialHB")
  240.  
  241. frame = Frame_Speed
  242. tf = 0
  243. allowframeloss = false
  244. tossremainder = false
  245. lastframe = tick()
  246. script.ArtificialHB:Fire()
  247.  
  248. game:GetService("RunService").Heartbeat:connect(function(s, p)
  249. tf = tf + s
  250. if tf >= frame then
  251. if allowframeloss then
  252. script.ArtificialHB:Fire()
  253. lastframe = tick()
  254. else
  255. for i = 1, math.floor(tf / frame) do
  256. script.ArtificialHB:Fire()
  257. end
  258. lastframe = tick()
  259. end
  260. if tossremainder then
  261. tf = 0
  262. else
  263. tf = tf - frame * math.floor(tf / frame)
  264. end
  265. end
  266. end)
  267.  
  268. --//=================================\\
  269. --\\=================================//
  270.  
  271. local plr = game:service'Players'.LocalPlayer
  272. print('Local User is '..plr.Name)
  273. print('The Killer Dragon Loaded')
  274. print('Q Speed')
  275. print('E')
  276. print('R')
  277. print('T')
  278. print('F')
  279. print('G')
  280. local char = plr.Character
  281. local hum = char.Humanoid
  282. local hed = char.Head
  283. local root = char.HumanoidRootPart
  284. local rootj = root.RootJoint
  285. local tors = char.Torso
  286. local ra = char["Right Arm"]
  287. local la = char["Left Arm"]
  288. local rl = char["Right Leg"]
  289. local ll = char["Left Leg"]
  290. local neck = tors["Neck"]
  291. local mouse = plr:GetMouse()
  292. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  293. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  294. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  295. local maincolor = BrickColor.new("Institutional white")
  296.  
  297. local sky = Instance.new('Sky', game:GetService'Lighting')
  298. sky.SkyboxBk = "rbxassetid://159454299"
  299. sky.SkyboxDn = "rbxassetid://159454296"
  300. sky.SkyboxFt = "rbxassetid://159454293"
  301. sky.SkyboxLf = "rbxassetid://159454286"
  302. sky.SkyboxRt = "rbxassetid://159454300"
  303. sky.SkyboxUp = "rbxassetid://166574066"
  304. game.Lighting.OutdoorAmbient = Color3.new(0,0,0)
  305. game.Lighting.FogColor = Color3.new(255,0,0)
  306. game.Lighting.FogEnd = 500000
  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.  
  391. -------------------------------------------------------
  392. --Start Important Functions--
  393. -------------------------------------------------------
  394. function swait(num)
  395. if num == 0 or num == nil then
  396. game:service("RunService").Stepped:wait(0)
  397. else
  398. for i = 0, num do
  399. game:service("RunService").Stepped:wait(0)
  400. end
  401. end
  402. end
  403. function thread(f)
  404. coroutine.resume(coroutine.create(f))
  405. end
  406. function clerp(a, b, t)
  407. local qa = {
  408. QuaternionFromCFrame(a)
  409. }
  410. local qb = {
  411. QuaternionFromCFrame(b)
  412. }
  413. local ax, ay, az = a.x, a.y, a.z
  414. local bx, by, bz = b.x, b.y, b.z
  415. local _t = 1 - t
  416. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  417. end
  418. function QuaternionFromCFrame(cf)
  419. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  420. local trace = m00 + m11 + m22
  421. if trace > 0 then
  422. local s = math.sqrt(1 + trace)
  423. local recip = 0.5 / s
  424. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  425. else
  426. local i = 0
  427. if m00 < m11 then
  428. i = 1
  429. end
  430. if m22 > (i == 0 and m00 or m11) then
  431. i = 2
  432. end
  433. if i == 0 then
  434. local s = math.sqrt(m00 - m11 - m22 + 1)
  435. local recip = 0.5 / s
  436. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  437. elseif i == 1 then
  438. local s = math.sqrt(m11 - m22 - m00 + 1)
  439. local recip = 0.5 / s
  440. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  441. elseif i == 2 then
  442. local s = math.sqrt(m22 - m00 - m11 + 1)
  443. local recip = 0.5 / s
  444. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  445. end
  446. end
  447. end
  448. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  449. local xs, ys, zs = x + x, y + y, z + z
  450. local wx, wy, wz = w * xs, w * ys, w * zs
  451. local xx = x * xs
  452. local xy = x * ys
  453. local xz = x * zs
  454. local yy = y * ys
  455. local yz = y * zs
  456. local zz = z * zs
  457. 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))
  458. end
  459. function QuaternionSlerp(a, b, t)
  460. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  461. local startInterp, finishInterp
  462. if cosTheta >= 1.0E-4 then
  463. if 1 - cosTheta > 1.0E-4 then
  464. local theta = math.acos(cosTheta)
  465. local invSinTheta = 1 / Sin(theta)
  466. startInterp = Sin((1 - t) * theta) * invSinTheta
  467. finishInterp = Sin(t * theta) * invSinTheta
  468. else
  469. startInterp = 1 - t
  470. finishInterp = t
  471. end
  472. elseif 1 + cosTheta > 1.0E-4 then
  473. local theta = math.acos(-cosTheta)
  474. local invSinTheta = 1 / Sin(theta)
  475. startInterp = Sin((t - 1) * theta) * invSinTheta
  476. finishInterp = Sin(t * theta) * invSinTheta
  477. else
  478. startInterp = t - 1
  479. finishInterp = t
  480. end
  481. 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
  482. end
  483. function rayCast(Position, Direction, Range, Ignore)
  484. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  485. end
  486. local RbxUtility = LoadLibrary("RbxUtility")
  487. local Create = RbxUtility.Create
  488.  
  489. -------------------------------------------------------
  490. --Start Damage Function--
  491. -------------------------------------------------------
  492. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  493. if hit.Parent == nil then
  494. return
  495. end
  496. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  497. for _, v in pairs(hit.Parent:children()) do
  498. if v:IsA("Humanoid") then
  499. h = v
  500. end
  501. end
  502. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  503.  
  504. hit.Parent:FindFirstChild("Head"):BreakJoints()
  505. end
  506.  
  507. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  508. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  509. if hit.Parent.DebounceHit.Value == true then
  510. return
  511. end
  512. end
  513. if insta == true then
  514. hit.Parent:FindFirstChild("Head"):BreakJoints()
  515. end
  516. local c = Create("ObjectValue"){
  517. Name = "creator",
  518. Value = game:service("Players").LocalPlayer,
  519. Parent = h,
  520. }
  521. game:GetService("Debris"):AddItem(c, .5)
  522. if HitSound ~= nil and HitPitch ~= nil then
  523. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  524. end
  525. local Damage = math.random(minim, maxim)
  526. local blocked = false
  527. local block = hit.Parent:findFirstChild("Block")
  528. if block ~= nil then
  529. if block.className == "IntValue" then
  530. if block.Value > 0 then
  531. blocked = true
  532. block.Value = block.Value - 1
  533. print(block.Value)
  534. end
  535. end
  536. end
  537. if blocked == false then
  538. h.Health = h.Health - Damage
  539. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  540. else
  541. h.Health = h.Health - (Damage / 2)
  542. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  543. end
  544. if Type == "Knockdown" then
  545. local hum = hit.Parent.Humanoid
  546. hum.PlatformStand = true
  547. coroutine.resume(coroutine.create(function(HHumanoid)
  548. swait(1)
  549. HHumanoid.PlatformStand = false
  550. end), hum)
  551. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  552. local bodvol = Create("BodyVelocity"){
  553. velocity = angle * knockback,
  554. P = 5000,
  555. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  556. Parent = hit,
  557. }
  558. local rl = Create("BodyAngularVelocity"){
  559. P = 3000,
  560. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  561. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  562. Parent = hit,
  563. }
  564. game:GetService("Debris"):AddItem(bodvol, .5)
  565. game:GetService("Debris"):AddItem(rl, .5)
  566. elseif Type == "Normal" then
  567. local vp = Create("BodyVelocity"){
  568. P = 500,
  569. maxForce = Vector3.new(math.huge, 0, math.huge),
  570. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  571. }
  572. if knockback > 0 then
  573. vp.Parent = hit.Parent.Torso
  574. end
  575. game:GetService("Debris"):AddItem(vp, .5)
  576. elseif Type == "Up" then
  577. local bodyVelocity = Create("BodyVelocity"){
  578. velocity = Vector3.new(0, 20, 0),
  579. P = 5000,
  580. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  581. Parent = hit,
  582. }
  583. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  584. elseif Type == "DarkUp" then
  585. coroutine.resume(coroutine.create(function()
  586. for i = 0, 1, 0.1 do
  587. swait()
  588. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  589. end
  590. end))
  591. local bodyVelocity = Create("BodyVelocity"){
  592. velocity = Vector3.new(0, 20, 0),
  593. P = 5000,
  594. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  595. Parent = hit,
  596. }
  597. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  598. elseif Type == "Snare" then
  599. local bp = Create("BodyPosition"){
  600. P = 2000,
  601. D = 100,
  602. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  603. position = hit.Parent.Torso.Position,
  604. Parent = hit.Parent.Torso,
  605. }
  606. game:GetService("Debris"):AddItem(bp, 1)
  607. elseif Type == "Freeze" then
  608. local BodPos = Create("BodyPosition"){
  609. P = 50000,
  610. D = 1000,
  611. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  612. position = hit.Parent.Torso.Position,
  613. Parent = hit.Parent.Torso,
  614. }
  615. local BodGy = Create("BodyGyro") {
  616. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  617. P = 20e+003,
  618. Parent = hit.Parent.Torso,
  619. cframe = hit.Parent.Torso.CFrame,
  620. }
  621. hit.Parent.Torso.Anchored = true
  622. coroutine.resume(coroutine.create(function(Part)
  623. swait(1.5)
  624. Part.Anchored = false
  625. end), hit.Parent.Torso)
  626. game:GetService("Debris"):AddItem(BodPos, 3)
  627. game:GetService("Debris"):AddItem(BodGy, 3)
  628. end
  629. local debounce = Create("BoolValue"){
  630. Name = "DebounceHit",
  631. Parent = hit.Parent,
  632. Value = true,
  633. }
  634. game:GetService("Debris"):AddItem(debounce, Delay)
  635. c = Create("ObjectValue"){
  636. Name = "creator",
  637. Value = Player,
  638. Parent = h,
  639. }
  640. game:GetService("Debris"):AddItem(c, .5)
  641. end
  642. end
  643. -------------------------------------------------------
  644. --End Damage Function--
  645. -------------------------------------------------------
  646.  
  647. -------------------------------------------------------
  648. --Start Damage Function Customization--
  649. -------------------------------------------------------
  650. function ShowDamage(Pos, Text, Time, Color)
  651. local Rate = (1 / 30)
  652. local Pos = (Pos or Vector3.new(0, 0, 0))
  653. local Text = (Text or "")
  654. local Time = (Time or 2)
  655. local Color = (Color or Color3.new(1, 0, 1))
  656. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  657. EffectPart.Anchored = true
  658. local BillboardGui = Create("BillboardGui"){
  659. Size = UDim2.new(3, 0, 3, 0),
  660. Adornee = EffectPart,
  661. Parent = EffectPart,
  662. }
  663. local TextLabel = Create("TextLabel"){
  664. BackgroundTransparency = 1,
  665. Size = UDim2.new(1, 0, 1, 0),
  666. Text = Text,
  667. Font = "Bodoni",
  668. TextColor3 = Color,
  669. TextScaled = true,
  670. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  671. Parent = BillboardGui,
  672. }
  673. game.Debris:AddItem(EffectPart, (Time))
  674. EffectPart.Parent = game:GetService("Workspace")
  675. delay(0, function()
  676. local Frames = (Time / Rate)
  677. for Frame = 1, Frames do
  678. wait(Rate)
  679. local Percent = (Frame / Frames)
  680. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  681. TextLabel.TextTransparency = Percent
  682. end
  683. if EffectPart and EffectPart.Parent then
  684. EffectPart:Destroy()
  685. end
  686. end)
  687. end
  688. -------------------------------------------------------
  689. --End Damage Function Customization--
  690. -------------------------------------------------------
  691.  
  692. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  693. for _, c in pairs(workspace:children()) do
  694. local hum = c:findFirstChild("Humanoid")
  695. if hum ~= nil then
  696. local head = c:findFirstChild("Head")
  697. if head ~= nil then
  698. local targ = head.Position - Part.Position
  699. local mag = targ.magnitude
  700. if magni >= mag and c.Name ~= plr.Name then
  701. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  702. end
  703. end
  704. end
  705. end
  706. end
  707.  
  708.  
  709. CFuncs = {
  710. Part = {
  711. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  712. local Part = Create("Part")({
  713. Parent = Parent,
  714. Reflectance = Reflectance,
  715. Transparency = Transparency,
  716. CanCollide = false,
  717. Locked = true,
  718. BrickColor = BrickColor.new(tostring(BColor)),
  719. Name = Name,
  720. Size = Size,
  721. Material = Material
  722. })
  723. RemoveOutlines(Part)
  724. return Part
  725. end
  726. },
  727. Mesh = {
  728. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  729. local Msh = Create(Mesh)({
  730. Parent = Part,
  731. Offset = OffSet,
  732. Scale = Scale
  733. })
  734. if Mesh == "SpecialMesh" then
  735. Msh.MeshType = MeshType
  736. Msh.MeshId = MeshId
  737. end
  738. return Msh
  739. end
  740. },
  741. Mesh = {
  742. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  743. local Msh = Create(Mesh)({
  744. Parent = Part,
  745. Offset = OffSet,
  746. Scale = Scale
  747. })
  748. if Mesh == "SpecialMesh" then
  749. Msh.MeshType = MeshType
  750. Msh.MeshId = MeshId
  751. end
  752. return Msh
  753. end
  754. },
  755. Weld = {
  756. Create = function(Parent, Part0, Part1, C0, C1)
  757. local Weld = Create("Weld")({
  758. Parent = Parent,
  759. Part0 = Part0,
  760. Part1 = Part1,
  761. C0 = C0,
  762. C1 = C1
  763. })
  764. return Weld
  765. end
  766. },
  767. Sound = {
  768. Create = function(id, par, vol, pit)
  769. coroutine.resume(coroutine.create(function()
  770. local S = Create("Sound")({
  771. Volume = vol,
  772. Pitch = pit or 1,
  773. SoundId = id,
  774. Parent = par or workspace
  775. })
  776. wait()
  777. S:play()
  778. game:GetService("Debris"):AddItem(S, 6)
  779. end))
  780. end
  781. },
  782. ParticleEmitter = {
  783. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  784. local fp = Create("ParticleEmitter")({
  785. Parent = Parent,
  786. Color = ColorSequence.new(Color1, Color2),
  787. LightEmission = LightEmission,
  788. Size = Size,
  789. Texture = Texture,
  790. Transparency = Transparency,
  791. ZOffset = ZOffset,
  792. Acceleration = Accel,
  793. Drag = Drag,
  794. LockedToPart = LockedToPart,
  795. VelocityInheritance = VelocityInheritance,
  796. EmissionDirection = EmissionDirection,
  797. Enabled = Enabled,
  798. Lifetime = LifeTime,
  799. Rate = Rate,
  800. Rotation = Rotation,
  801. RotSpeed = RotSpeed,
  802. Speed = Speed,
  803. VelocitySpread = VelocitySpread
  804. })
  805. return fp
  806. end
  807. }
  808. }
  809. function RemoveOutlines(part)
  810. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  811. end
  812. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  813. local Part = Create("Part")({
  814. formFactor = FormFactor,
  815. Parent = Parent,
  816. Reflectance = Reflectance,
  817. Transparency = Transparency,
  818. CanCollide = false,
  819. Locked = true,
  820. BrickColor = BrickColor.new(tostring(BColor)),
  821. Name = Name,
  822. Size = Size,
  823. Material = Material
  824. })
  825. RemoveOutlines(Part)
  826. return Part
  827. end
  828. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  829. local Msh = Create(Mesh)({
  830. Parent = Part,
  831. Offset = OffSet,
  832. Scale = Scale
  833. })
  834. if Mesh == "SpecialMesh" then
  835. Msh.MeshType = MeshType
  836. Msh.MeshId = MeshId
  837. end
  838. return Msh
  839. end
  840. function CreateWeld(Parent, Part0, Part1, C0, C1)
  841. local Weld = Create("Weld")({
  842. Parent = Parent,
  843. Part0 = Part0,
  844. Part1 = Part1,
  845. C0 = C0,
  846. C1 = C1
  847. })
  848. return Weld
  849. end
  850.  
  851.  
  852. -------------------------------------------------------
  853. --Start Effect Function--
  854. -------------------------------------------------------
  855. EffectModel = Instance.new("Model", char)
  856. Effects = {
  857. Block = {
  858. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  859. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  860. prt.Anchored = true
  861. prt.CFrame = cframe
  862. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  863. game:GetService("Debris"):AddItem(prt, 10)
  864. if Type == 1 or Type == nil then
  865. table.insert(Effects, {
  866. prt,
  867. "Block1",
  868. delay,
  869. x3,
  870. y3,
  871. z3,
  872. msh
  873. })
  874. elseif Type == 2 then
  875. table.insert(Effects, {
  876. prt,
  877. "Block2",
  878. delay,
  879. x3,
  880. y3,
  881. z3,
  882. msh
  883. })
  884. else
  885. table.insert(Effects, {
  886. prt,
  887. "Block3",
  888. delay,
  889. x3,
  890. y3,
  891. z3,
  892. msh
  893. })
  894. end
  895. end
  896. },
  897. Sphere = {
  898. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  899. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  900. prt.Anchored = true
  901. prt.CFrame = cframe
  902. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  903. game:GetService("Debris"):AddItem(prt, 10)
  904. table.insert(Effects, {
  905. prt,
  906. "Cylinder",
  907. delay,
  908. x3,
  909. y3,
  910. z3,
  911. msh
  912. })
  913. end
  914. },
  915. Cylinder = {
  916. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  917. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  918. prt.Anchored = true
  919. prt.CFrame = cframe
  920. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  921. game:GetService("Debris"):AddItem(prt, 10)
  922. table.insert(Effects, {
  923. prt,
  924. "Cylinder",
  925. delay,
  926. x3,
  927. y3,
  928. z3,
  929. msh
  930. })
  931. end
  932. },
  933. Wave = {
  934. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  935. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  936. prt.Anchored = true
  937. prt.CFrame = cframe
  938. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  939. game:GetService("Debris"):AddItem(prt, 10)
  940. table.insert(Effects, {
  941. prt,
  942. "Cylinder",
  943. delay,
  944. x3 / 60,
  945. y3 / 60,
  946. z3 / 60,
  947. msh
  948. })
  949. end
  950. },
  951. Ring = {
  952. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  953. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  954. prt.Anchored = true
  955. prt.CFrame = cframe
  956. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  957. game:GetService("Debris"):AddItem(prt, 10)
  958. table.insert(Effects, {
  959. prt,
  960. "Cylinder",
  961. delay,
  962. x3,
  963. y3,
  964. z3,
  965. msh
  966. })
  967. end
  968. },
  969. Break = {
  970. Create = function(brickcolor, cframe, x1, y1, z1)
  971. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  972. prt.Anchored = true
  973. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  974. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  975. local num = math.random(10, 50) / 1000
  976. game:GetService("Debris"):AddItem(prt, 10)
  977. table.insert(Effects, {
  978. prt,
  979. "Shatter",
  980. num,
  981. prt.CFrame,
  982. math.random() - math.random(),
  983. 0,
  984. math.random(50, 100) / 100
  985. })
  986. end
  987. },
  988. Spiral = {
  989. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  990. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  991. prt.Anchored = true
  992. prt.CFrame = cframe
  993. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  994. game:GetService("Debris"):AddItem(prt, 10)
  995. table.insert(Effects, {
  996. prt,
  997. "Cylinder",
  998. delay,
  999. x3,
  1000. y3,
  1001. z3,
  1002. msh
  1003. })
  1004. end
  1005. },
  1006. Push = {
  1007. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1008. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1009. prt.Anchored = true
  1010. prt.CFrame = cframe
  1011. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1012. game:GetService("Debris"):AddItem(prt, 10)
  1013. table.insert(Effects, {
  1014. prt,
  1015. "Cylinder",
  1016. delay,
  1017. x3,
  1018. y3,
  1019. z3,
  1020. msh
  1021. })
  1022. end
  1023. }
  1024. }
  1025. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  1026. local fp = IT("Part")
  1027. fp.formFactor = formfactor
  1028. fp.Parent = parent
  1029. fp.Reflectance = reflectance
  1030. fp.Transparency = transparency
  1031. fp.CanCollide = false
  1032. fp.Locked = true
  1033. fp.BrickColor = brickcolor
  1034. fp.Name = name
  1035. fp.Size = size
  1036. fp.Position = tors.Position
  1037. RemoveOutlines(fp)
  1038. fp.Material = "SmoothPlastic"
  1039. fp:BreakJoints()
  1040. return fp
  1041. end
  1042.  
  1043. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1044. local mesh = IT(Mesh)
  1045. mesh.Parent = part
  1046. if Mesh == "SpecialMesh" then
  1047. mesh.MeshType = meshtype
  1048. if meshid ~= "nil" then
  1049. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  1050. end
  1051. end
  1052. mesh.Offset = offset
  1053. mesh.Scale = scale
  1054. return mesh
  1055. end
  1056.  
  1057. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  1058. local type = type
  1059. local rng = Instance.new("Part", char)
  1060. rng.Anchored = true
  1061. rng.BrickColor = color
  1062. rng.CanCollide = false
  1063. rng.FormFactor = 3
  1064. rng.Name = "Ring"
  1065. rng.Material = "Neon"
  1066. rng.Size = Vector3.new(1, 1, 1)
  1067. rng.Transparency = 0
  1068. rng.TopSurface = 0
  1069. rng.BottomSurface = 0
  1070. rng.CFrame = pos
  1071. local rngm = Instance.new("SpecialMesh", rng)
  1072. rngm.MeshType = MType
  1073. rngm.Scale = scale
  1074. local scaler2 = 1
  1075. if type == "Add" then
  1076. scaler2 = 1 * value
  1077. elseif type == "Divide" then
  1078. scaler2 = 1 / value
  1079. end
  1080. coroutine.resume(coroutine.create(function()
  1081. for i = 0, 10 / bonuspeed, 0.1 do
  1082. swait()
  1083. if type == "Add" then
  1084. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1085. elseif type == "Divide" then
  1086. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1087. end
  1088. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1089. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  1090. end
  1091. rng:Destroy()
  1092. end))
  1093. end
  1094.  
  1095. function Eviscerate(dude)
  1096. if dude.Name ~= char then
  1097. local bgf = IT("BodyGyro", dude.Head)
  1098. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1099. local val = IT("BoolValue", dude)
  1100. val.Name = "IsHit"
  1101. local ds = coroutine.wrap(function()
  1102. dude:WaitForChild("Head"):BreakJoints()
  1103. wait(0.5)
  1104. target = nil
  1105. coroutine.resume(coroutine.create(function()
  1106. for i, v in pairs(dude:GetChildren()) do
  1107. if v:IsA("Accessory") then
  1108. v:Destroy()
  1109. end
  1110. if v:IsA("Humanoid") then
  1111. v:Destroy()
  1112. end
  1113. if v:IsA("CharacterMesh") then
  1114. v:Destroy()
  1115. end
  1116. if v:IsA("Model") then
  1117. v:Destroy()
  1118. end
  1119. if v:IsA("Part") or v:IsA("MeshPart") then
  1120. for x, o in pairs(v:GetChildren()) do
  1121. if o:IsA("Decal") then
  1122. o:Destroy()
  1123. end
  1124. end
  1125. coroutine.resume(coroutine.create(function()
  1126. v.Material = "Neon"
  1127. v.CanCollide = false
  1128. local PartEmmit1 = IT("ParticleEmitter", v)
  1129. PartEmmit1.LightEmission = 1
  1130. PartEmmit1.Texture = "rbxassetid://284205403"
  1131. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1132. PartEmmit1.Rate = 150
  1133. PartEmmit1.Lifetime = NumberRange.new(1)
  1134. PartEmmit1.Size = NumberSequence.new({
  1135. NumberSequenceKeypoint.new(0, 0.75, 0),
  1136. NumberSequenceKeypoint.new(1, 0, 0)
  1137. })
  1138. PartEmmit1.Transparency = NumberSequence.new({
  1139. NumberSequenceKeypoint.new(0, 0, 0),
  1140. NumberSequenceKeypoint.new(1, 1, 0)
  1141. })
  1142. PartEmmit1.Speed = NumberRange.new(0, 0)
  1143. PartEmmit1.VelocitySpread = 30000
  1144. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  1145. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  1146. local BodPoss = IT("BodyPosition", v)
  1147. BodPoss.P = 3000
  1148. BodPoss.D = 1000
  1149. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1150. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1151. v.Color = maincolor.Color
  1152. coroutine.resume(coroutine.create(function()
  1153. for i = 0, 49 do
  1154. swait(1)
  1155. v.Transparency = v.Transparency + 0.08
  1156. end
  1157. wait(0.5)
  1158. PartEmmit1.Enabled = false
  1159. wait(3)
  1160. v:Destroy()
  1161. dude:Destroy()
  1162. end))
  1163. end))
  1164. end
  1165. end
  1166. end))
  1167. end)
  1168. ds()
  1169. end
  1170. end
  1171.  
  1172. function FindNearestHead(Position, Distance, SinglePlayer)
  1173. if SinglePlayer then
  1174. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1175. end
  1176. local List = {}
  1177. for i, v in pairs(workspace:GetChildren()) do
  1178. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  1179. table.insert(List, v)
  1180. end
  1181. end
  1182. return List
  1183. end
  1184.  
  1185. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  1186. local type = type
  1187. local rng = Instance.new("Part", char)
  1188. rng.Anchored = true
  1189. rng.BrickColor = color
  1190. rng.CanCollide = false
  1191. rng.FormFactor = 3
  1192. rng.Name = "Ring"
  1193. rng.Material = "Neon"
  1194. rng.Size = Vector3.new(1, 1, 1)
  1195. rng.Transparency = 0
  1196. rng.TopSurface = 0
  1197. rng.BottomSurface = 0
  1198. rng.CFrame = pos
  1199. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1200. local rngm = Instance.new("SpecialMesh", rng)
  1201. rngm.MeshType = MType
  1202. rngm.Scale = Vector3.new(x1, y1, z1)
  1203. local scaler2 = 1
  1204. local speeder = FastSpeed
  1205. if type == "Add" then
  1206. scaler2 = 1 * value
  1207. elseif type == "Divide" then
  1208. scaler2 = 1 / value
  1209. end
  1210. coroutine.resume(coroutine.create(function()
  1211. for i = 0, 10 / bonuspeed, 0.1 do
  1212. swait()
  1213. if type == "Add" then
  1214. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1215. elseif type == "Divide" then
  1216. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1217. end
  1218. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1219. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1220. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1221. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1222. end
  1223. rng:Destroy()
  1224. end))
  1225. end
  1226.  
  1227. function SoulSteal(dude)
  1228. if dude.Name ~= char then
  1229. local bgf = IT("BodyGyro", dude.Head)
  1230. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1231. local val = IT("BoolValue", dude)
  1232. val.Name = "IsHit"
  1233. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1234. local soulst = coroutine.wrap(function()
  1235. local soul = Instance.new("Part",dude)
  1236. soul.Size = Vector3.new(1,1,1)
  1237. soul.CanCollide = false
  1238. soul.Anchored = false
  1239. soul.Position = torso.Position
  1240. soul.Transparency = 1
  1241. local PartEmmit1 = IT("ParticleEmitter", soul)
  1242. PartEmmit1.LightEmission = 1
  1243. PartEmmit1.Texture = "rbxassetid://569507414"
  1244. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1245. PartEmmit1.Rate = 250
  1246. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1247. PartEmmit1.Size = NumberSequence.new({
  1248. NumberSequenceKeypoint.new(0, 1, 0),
  1249. NumberSequenceKeypoint.new(1, 0, 0)
  1250. })
  1251. PartEmmit1.Transparency = NumberSequence.new({
  1252. NumberSequenceKeypoint.new(0, 0, 0),
  1253. NumberSequenceKeypoint.new(1, 1, 0)
  1254. })
  1255. PartEmmit1.Speed = NumberRange.new(0, 0)
  1256. PartEmmit1.VelocitySpread = 30000
  1257. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1258. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1259. local BodPoss = IT("BodyPosition", soul)
  1260. BodPoss.P = 3000
  1261. BodPoss.D = 1000
  1262. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1263. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1264. wait(1.6)
  1265. soul.Touched:connect(function(hit)
  1266. if hit.Parent == char then
  1267. soul:Destroy()
  1268. end
  1269. end)
  1270. wait(1.2)
  1271. while soul do
  1272. swait()
  1273. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1274. BodPoss.Position = tors.Position
  1275. end
  1276. end)
  1277. soulst()
  1278. end
  1279. end
  1280. function FaceMouse()
  1281. local Cam = workspace.CurrentCamera
  1282. return {
  1283. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1284. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1285. }
  1286. end
  1287. -------------------------------------------------------
  1288. --End Effect Function--
  1289. -------------------------------------------------------
  1290. function Cso(ID, PARENT, VOLUME, PITCH)
  1291. local NSound = nil
  1292. coroutine.resume(coroutine.create(function()
  1293. NSound = IT("Sound", PARENT)
  1294. NSound.Volume = VOLUME
  1295. NSound.Pitch = PITCH
  1296. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1297. swait()
  1298. NSound:play()
  1299. game:GetService("Debris"):AddItem(NSound, 10)
  1300. end))
  1301. return NSound
  1302. end
  1303. function CameraEnshaking(Length, Intensity)
  1304. coroutine.resume(coroutine.create(function()
  1305. local intensity = 1 * Intensity
  1306. local rotM = 0.01 * Intensity
  1307. for i = 0, Length, 0.1 do
  1308. swait()
  1309. intensity = intensity - 0.05 * Intensity / Length
  1310. rotM = rotM - 5.0E-4 * Intensity / Length
  1311. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1312. 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)
  1313. end
  1314. hum.CameraOffset = Vector3.new(0, 0, 0)
  1315. end))
  1316. end
  1317. function chatfunc(text, color)
  1318. local chat = coroutine.wrap(function()
  1319. if char:FindFirstChild("TalkingBillBoard") ~= nil then
  1320. char:FindFirstChild("TalkingBillBoard"):destroy()
  1321. end
  1322. local naeeym2 = Instance.new("BillboardGui", char)
  1323. naeeym2.Size = UDim2.new(0, 100, 0, 40)
  1324. naeeym2.StudsOffset = Vector3.new(0, 5, 0)
  1325. naeeym2.Adornee = hed
  1326. naeeym2.Name = "TalkingBillBoard"
  1327. local tecks2 = Instance.new("TextLabel", naeeym2)
  1328. tecks2.BackgroundTransparency = 1
  1329. tecks2.BorderSizePixel = 0
  1330. tecks2.Text = ""
  1331. tecks2.Font = "SciFi"
  1332. tecks2.TextSize = 30
  1333. tecks2.TextStrokeTransparency = 0
  1334. tecks2.TextColor3 = color
  1335. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  1336. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  1337. coroutine.resume(coroutine.create(function()
  1338. while true do
  1339. swait(1)
  1340. tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  1341. tecks2.Rotation = math.random(-5, 5)
  1342. end
  1343. end))
  1344. for i = 1, string.len(text) do
  1345. CFuncs.Sound.Create("rbxassetid://274118116", hed, 5.25, 0.115)
  1346. tecks2.Text = string.sub(text, 1, i)
  1347. swait(1)
  1348. end
  1349. wait(1)
  1350. naeeym2:Destroy()
  1351. end)
  1352. chat()
  1353. end
  1354. -------------------------------------------------------
  1355. --End Important Functions--
  1356. -------------------------------------------------------
  1357.  
  1358.  
  1359. -------------------------------------------------------
  1360. --Start Customization--
  1361. -------------------------------------------------------
  1362. local Player_Size = 1
  1363. if Player_Size ~= 1 then
  1364. root.Size = root.Size * Player_Size
  1365. tors.Size = tors.Size * Player_Size
  1366. hed.Size = hed.Size * Player_Size
  1367. ra.Size = ra.Size * Player_Size
  1368. la.Size = la.Size * Player_Size
  1369. rl.Size = rl.Size * Player_Size
  1370. ll.Size = ll.Size * Player_Size
  1371. ----------------------------------------------------------------------------------
  1372. rootj.Parent = root
  1373. neck.Parent = tors
  1374. RW.Parent = tors
  1375. LW.Parent = tors
  1376. RH.Parent = tors
  1377. LH.Parent = tors
  1378. ----------------------------------------------------------------------------------
  1379. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1380. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1381. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1382. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1383. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1384. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1385. ----------------------------------------------------------------------------------
  1386. 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))
  1387. 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))
  1388. 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))
  1389. 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))
  1390. --hat.Parent = Character
  1391. end
  1392. ----------------------------------------------------------------------------------
  1393. local equipped = false
  1394. local idle = 0
  1395. local change = 1
  1396. local val = 0
  1397. local toim = 0
  1398. local idleanim = 0.4
  1399. local sine = 0
  1400. local Sit = 1
  1401. ----------------------------------------------------------------------------------
  1402. local SONG = 1092048938
  1403. local SONG2 = 0
  1404. local Music = Instance.new("Sound",tors)
  1405. Music.Volume = 2.5
  1406. Music.Looped = true
  1407. Music.Pitch = 1 --Pitcher
  1408. ----------------------------------------------------------------------------------
  1409. local Orin = "http://www.roblox.com/asset/?id=236455674"
  1410. Head.face.Texture = Orin
  1411. function weld(a, b, acf)
  1412. local w = Instance.new("Weld", a)
  1413. w.Part0 = a
  1414. w.Part1 = b
  1415. w.C0 = acf
  1416. end
  1417. for i,v in pairs(char:GetChildren()) do
  1418. if v.ClassName == "Accessory" or v.ClassName == "Hat" then
  1419. v:destroy()
  1420. end
  1421. end
  1422.  
  1423. local Hair = Instance.new("Part")
  1424. Hair.Parent = char
  1425. Hair.Name = "Hair"
  1426. Hair.Size = Vector3.new(0.1, 0.1, 0.1)
  1427. Hair.CFrame = char.Head.CFrame
  1428. Hair:BreakJoints()
  1429. Hair.CanCollide = false
  1430. Hair.BrickColor = BrickColor.new("New Yeller")
  1431. Hair.TopSurface = "Smooth"
  1432. Hair.BottomSurface = "Smooth"
  1433. Weld = Instance.new("Weld")
  1434. Weld.Name = "Weld"
  1435. Weld.Part0 = char.Torso
  1436. Weld.Part1 = Hair
  1437. Weld.Parent = char.Torso
  1438. Weld.C0 = CFrame.new(0, 0.3, 0.6)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1439. Mesh = Instance.new("SpecialMesh")
  1440. Mesh.Parent = Hair
  1441. Mesh.MeshId = "rbxassetid://67993325"
  1442. Mesh.TextureId = "http://www.roblox.com/asset/?id=106676672"
  1443. Mesh.Scale = Vector3.new(0.7, 0.7, 0.7)
  1444. ----------------------------------------------------------------------------------
  1445. local Hair = Instance.new("Part")
  1446. Hair.Parent = char
  1447. Hair.Name = "Hair"
  1448. Hair.Size = Vector3.new(1, 0.4, 1)
  1449. Hair.CFrame = char.Head.CFrame
  1450. Hair:BreakJoints()
  1451. Hair.CanCollide = false
  1452. Hair.BrickColor = BrickColor.new("New Yeller")
  1453. Hair.TopSurface = "Smooth"
  1454. Hair.BottomSurface = "Smooth"
  1455. Weld = Instance.new("Weld")
  1456. Weld.Name = "Weld"
  1457. Weld.Part0 = char.Head
  1458. Weld.Part1 = Hair
  1459. Weld.Parent = char.Head
  1460. Weld.C0 = CFrame.new(0, 0.2, -0.2)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1461. Mesh = Instance.new("SpecialMesh")
  1462. Mesh.Parent = Hair
  1463. Mesh.MeshId = "rbxassetid://11419729"
  1464. Mesh.TextureId = "http://www.roblox.com/asset/?id=112346956"
  1465. Mesh.Scale = Vector3.new(1, 1, 1)
  1466. ----------------------------------------------------------------------------------
  1467. local Hair = Instance.new("Part")
  1468. Hair.Parent = char
  1469. Hair.Name = "Hair"
  1470. Hair.Size = Vector3.new(1, 0.4, 1)
  1471. Hair.CFrame = char.Head.CFrame
  1472. Hair:BreakJoints()
  1473. Hair.CanCollide = false
  1474. Hair.BrickColor = BrickColor.new("New Yeller")
  1475. Hair.TopSurface = "Smooth"
  1476. Hair.BottomSurface = "Smooth"
  1477. Weld = Instance.new("Weld")
  1478. Weld.Name = "Weld"
  1479. Weld.Part0 = char.Head
  1480. Weld.Part1 = Hair
  1481. Weld.Parent = char.Head
  1482. Weld.C0 = CFrame.new(0, 0.5, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1483. Mesh = Instance.new("SpecialMesh")
  1484. Mesh.Parent = Hair
  1485. Mesh.MeshId = "rbxassetid://16627529"
  1486. Mesh.TextureId = "http://www.roblox.com/asset/?id=16627494"
  1487. Mesh.Scale = Vector3.new(1.1, 1.1, 1.1)
  1488. ----------------------------------------------------------------------------------
  1489. local Hair = Instance.new("Part")
  1490. Hair.Parent = char
  1491. Hair.Name = "Hair"
  1492. Hair.Size = Vector3.new(0.99, 2.03, 2.45)
  1493. Hair.CFrame = char.Head.CFrame
  1494. Hair:BreakJoints()
  1495. Hair.CanCollide = false
  1496. Hair.BrickColor = BrickColor.new("New Yeller")
  1497. Hair.TopSurface = "Smooth"
  1498. Hair.BottomSurface = "Smooth"
  1499. Weld = Instance.new("Weld")
  1500. Weld.Name = "Weld"
  1501. Weld.Part0 = char.Torso
  1502. Weld.Part1 = Hair
  1503. Weld.Parent = char.Torso
  1504. Weld.C0 = CFrame.new(0.3, 0.1, 1.8)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1505. Mesh = Instance.new("SpecialMesh")
  1506. Mesh.Parent = Hair
  1507. Mesh.MeshId = "rbxassetid://170939831"
  1508. Mesh.TextureId = "http://www.roblox.com/asset/?id=170939093"
  1509. Mesh.Scale = Vector3.new(1, 1, 1)
  1510. ----------------------------------------------------------------------------------
  1511. local Shirt = "rbxassetid://1328938028"
  1512. local Pants = "rbxassetid://1033898637"
  1513.  
  1514. ypcall(function()
  1515. shirt = Instance.new("Shirt", char)
  1516. shirt.Name = "Shirt"
  1517. pants = Instance.new("Pants", char)
  1518. pants.Name = "Pants"
  1519. char.Shirt.ShirtTemplate = Shirt
  1520. char.Pants.PantsTemplate = Pants
  1521. end)
  1522.  
  1523. shirt.Name = "aomFetty"
  1524. pants.Name = "aomFetty"
  1525. hum.WalkSpeed = 16
  1526. hum.JumpPower = 70
  1527. hum.MaxHealth = 999999999999999999999999999999999999999999999999999999999999999999
  1528. hum.Health = 999999999999999999999999999999999999999999999999999999999999999999
  1529. hum.Animator.Parent = nil
  1530. ----------------------------------------------------------------------------------
  1531. local naeeym2 = Instance.new("BillboardGui",char)
  1532. naeeym2.AlwaysOnTop = true
  1533. naeeym2.Size = UDim2.new(5,35,2,15)
  1534. naeeym2.StudsOffset = Vector3.new(0, 3.5, 0)
  1535. naeeym2.Adornee = hed
  1536. naeeym2.Name = "Name"
  1537. --naeeym2.PlayerToHideFrom = Player
  1538. local tecks2 = Instance.new("TextLabel",naeeym2)
  1539. tecks2.BackgroundTransparency = 1
  1540. tecks2.TextScaled = true
  1541. tecks2.BorderSizePixel = 0
  1542. tecks2.Text = "The Killer Dragon"
  1543. tecks2.Font = Enum.Font.Antique
  1544. tecks2.TextSize = 30
  1545. tecks2.TextStrokeTransparency = 0
  1546. tecks2.TextColor3 = Color3.new(255, 0, 0)
  1547. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  1548. tecks2.Size = UDim2.new(1,0,0.5,0)
  1549. tecks2.Parent = naeeym2
  1550. --------------------------------------------------------
  1551. local EyeSizes={
  1552. NumberSequenceKeypoint.new(0,0.65,0),
  1553. NumberSequenceKeypoint.new(0.5,0.7,0),
  1554. NumberSequenceKeypoint.new(1,0,0)
  1555. }
  1556. local EyeTrans={
  1557. NumberSequenceKeypoint.new(0,0,0),
  1558. NumberSequenceKeypoint.new(0.5,0,0),
  1559. NumberSequenceKeypoint.new(1,1,0)
  1560. }
  1561. local PE2=Instance.new("ParticleEmitter", ra)
  1562. PE2.LightEmission=.9
  1563. PE2.Color = ColorSequence.new(BrickC("Really red").Color,BrickC("Really blue").Color)
  1564. PE2.Transparency=NumberSequence.new(EyeTrans)
  1565. PE2.Lifetime=NumberRange.new(0.35)
  1566. PE2.Rotation=NumberRange.new(0,360)
  1567. PE2.Rate=999
  1568. PE2.VelocitySpread = 10000
  1569. PE2.Acceleration = Vector3.new(0,25,0)
  1570. PE2.ZOffset = 0.5
  1571. PE2.Drag = 0
  1572. PE2.Speed = NumberRange.new(0,0,0)
  1573. PE2.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
  1574. PE2.Name = "PE2"
  1575. PE2.Enabled = true
  1576. PE2.LockedToPart = true
  1577. local EyeSizes={
  1578. NumberSequenceKeypoint.new(0,0.65,0),
  1579. NumberSequenceKeypoint.new(0.5,0.7,0),
  1580. NumberSequenceKeypoint.new(1,0,0)
  1581. }
  1582. local EyeTrans={
  1583. NumberSequenceKeypoint.new(0,0,0),
  1584. NumberSequenceKeypoint.new(0.5,0,0),
  1585. NumberSequenceKeypoint.new(1,1,0)
  1586. }
  1587. local PE3=Instance.new("ParticleEmitter", ra)
  1588. PE3.LightEmission=.9
  1589. PE3.Color = ColorSequence.new(BrickC("Lime green").Color,BrickC("Really blue").Color)
  1590. PE3.Transparency=NumberSequence.new(EyeTrans)
  1591. PE3.Lifetime=NumberRange.new(0.35)
  1592. PE3.Rotation=NumberRange.new(0,360)
  1593. PE3.Rate=999
  1594. PE3.VelocitySpread = 10000
  1595. PE3.Acceleration = Vector3.new(0,25,0)
  1596. PE3.ZOffset = 0.5
  1597. PE3.Drag = 0
  1598. PE3.Speed = NumberRange.new(0,0,0)
  1599. PE3.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
  1600. PE3.Name = "PE3"
  1601. PE3.Enabled = true
  1602. PE3.LockedToPart = true
  1603.  
  1604. local EyeSizes={
  1605. NumberSequenceKeypoint.new(0,0.65,0),
  1606. NumberSequenceKeypoint.new(0.5,0.7,0),
  1607. NumberSequenceKeypoint.new(1,0,0)
  1608. }
  1609. local EyeTrans={
  1610. NumberSequenceKeypoint.new(0,0,0),
  1611. NumberSequenceKeypoint.new(0.5,0,0),
  1612. NumberSequenceKeypoint.new(1,1,0)
  1613. }
  1614. local PE4=Instance.new("ParticleEmitter", ll)
  1615. PE4.LightEmission=.9
  1616. PE4.Color = ColorSequence.new(BrickC("Really red").Color,BrickC("Really blue").Color)
  1617. PE4.Transparency=NumberSequence.new(EyeTrans)
  1618. PE4.Lifetime=NumberRange.new(0.35)
  1619. PE4.Rotation=NumberRange.new(0,360)
  1620. PE4.Rate=999
  1621. PE4.VelocitySpread = 10000
  1622. PE4.Acceleration = Vector3.new(0,25,0)
  1623. PE4.ZOffset = 0.5
  1624. PE4.Drag = 0
  1625. PE4.Speed = NumberRange.new(0,0,0)
  1626. PE4.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
  1627. PE4.Name = "PE4"
  1628. PE4.Enabled = true
  1629. PE4.LockedToPart = true
  1630. local EyeSizes={
  1631. NumberSequenceKeypoint.new(0,0.65,0),
  1632. NumberSequenceKeypoint.new(0.5,0.7,0),
  1633. NumberSequenceKeypoint.new(1,0,0)
  1634. }
  1635. local EyeTrans={
  1636. NumberSequenceKeypoint.new(0,0,0),
  1637. NumberSequenceKeypoint.new(0.5,0,0),
  1638. NumberSequenceKeypoint.new(1,1,0)
  1639. }
  1640. local PE5=Instance.new("ParticleEmitter", ll)
  1641. PE5.LightEmission=.9
  1642. PE5.Color = ColorSequence.new(BrickC("Lime green").Color,BrickC("Really blue").Color)
  1643. PE5.Transparency=NumberSequence.new(EyeTrans)
  1644. PE5.Lifetime=NumberRange.new(0.35)
  1645. PE5.Rotation=NumberRange.new(0,360)
  1646. PE5.Rate=999
  1647. PE5.VelocitySpread = 10000
  1648. PE5.Acceleration = Vector3.new(0,25,0)
  1649. PE5.ZOffset = 0.5
  1650. PE5.Drag = 0
  1651. PE5.Speed = NumberRange.new(0,0,0)
  1652. PE5.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
  1653. PE5.Name = "PE5"
  1654. PE5.Enabled = true
  1655. PE5.LockedToPart = true
  1656. -------------------------------------------------------
  1657. --End Customization--
  1658. -------------------------------------------------------
  1659.  
  1660.  
  1661. -------------------------------------------------------
  1662. --Start Attacks N Stuff--
  1663. -------------------------------------------------------
  1664. function attackone()
  1665. attack = true
  1666. hum.WalkSpeed = 3.01
  1667. for i = 0, 1.7, 0.1 do
  1668. swait()
  1669. 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)
  1670. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(40)), 0.3)
  1671. 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)
  1672. 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)
  1673. 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)
  1674. 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)
  1675. end
  1676. Cso("203426541", ra, 10, 1)
  1677. for i = 0, 1.4, 0.1 do
  1678. swait()
  1679. 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)
  1680. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(-55)), 0.3)
  1681. 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)
  1682. 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)
  1683. 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)
  1684. 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)
  1685. end
  1686. for i = 0, 1.4, 0.1 do
  1687. swait()
  1688. 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)
  1689. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(-55)), 0.3)
  1690. 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)
  1691. 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)
  1692. 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)
  1693. 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)
  1694. for i, v in pairs(FindNearestHead(tors.CFrame.p, 4)) do
  1695. if v:FindFirstChild("Head") then
  1696. Eviscerate(v)
  1697. end
  1698. end
  1699. end
  1700. attack = false
  1701. hum.WalkSpeed = 16
  1702. end
  1703. function attacktwo()
  1704. attack = true
  1705. hum.WalkSpeed = 3.01
  1706. for i = 0, 1.7, 0.1 do
  1707. swait()
  1708. 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)
  1709. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5), Rad(0), Rad(0)), 0.3)
  1710. 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)
  1711. 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)
  1712. 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)
  1713. 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)
  1714. end
  1715. Cso("203426541", rl, 10, 1)
  1716. CameraEnshaking(2, 3)
  1717. for i = 0, 1.4, 0.1 do
  1718. swait()
  1719. 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)
  1720. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(5), Rad(0), Rad(0)), 0.3)
  1721. 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)
  1722. 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)
  1723. 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)
  1724. 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)
  1725. for i, v in pairs(FindNearestHead(tors.CFrame.p, 5)) do
  1726. if v:FindFirstChild("Head") then
  1727. Eviscerate(v)
  1728. end
  1729. end
  1730. end
  1731. attack = false
  1732. hum.WalkSpeed = 16
  1733. end
  1734. function attackthree()
  1735. attack = true
  1736. hum.WalkSpeed = 3.01
  1737. for i = 0, 1.4, 0.1 do
  1738. swait()
  1739. 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)
  1740. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1741. 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)
  1742. 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)
  1743. 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)
  1744. 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)
  1745. end
  1746. Cso("203426541", hed, 10, 1)
  1747. for i = 0, 1.7, 0.1 do
  1748. swait()
  1749. 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)
  1750. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1751. 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)
  1752. 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)
  1753. 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)
  1754. 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)
  1755. for i, v in pairs(FindNearestHead(tors.CFrame.p, 6)) do
  1756. if v:FindFirstChild("Head") then
  1757. Eviscerate(v)
  1758. end
  1759. end
  1760. end
  1761. attack = false
  1762. hum.WalkSpeed = 16
  1763. end
  1764.  
  1765. function Distort()
  1766. attack = true
  1767. hum.WalkSpeed = 0
  1768. local pos = root.Position
  1769. root.CFrame = CF(mouse.Hit.p+Vector3.new(0,3,0),pos)
  1770. Cso("261227592", tors, 10, 0.85)
  1771. for i = 1,2.5,0.1 do
  1772. swait()
  1773. 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)
  1774. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3)
  1775. 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)
  1776. 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)
  1777. 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)
  1778. 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)
  1779. end
  1780. attack = false
  1781. hum.WalkSpeed = 8
  1782. end
  1783. function Ancient_Rage()
  1784. attack = true
  1785. hum.WalkSpeed = 0
  1786. Cso("135017578", tors, 10, 1.05)
  1787. for i = 1,14,0.1 do
  1788. swait()
  1789. 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)
  1790. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3)
  1791. 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)
  1792. 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)
  1793. 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)
  1794. 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)
  1795. for i, v in pairs(FindNearestHead(tors.CFrame.p, 20)) do
  1796. if v:FindFirstChild("Head") then
  1797. Eviscerate(v)
  1798. end
  1799. end
  1800. end
  1801. attack = false
  1802. hum.WalkSpeed = 16
  1803. end
  1804. function Technobeam()
  1805. attack = true
  1806. hum.WalkSpeed = 3.01
  1807. for i = 0, 4, 0.1 do
  1808. swait()
  1809. hum.CameraOffset = Vector3.new(0, -0.1 + 0.1 * Cos(sine / 20), 0)
  1810. 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)
  1811. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2)
  1812. 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)
  1813. 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)
  1814. 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)
  1815. 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)
  1816. end
  1817. for i = 0, 2, 0.1 do
  1818. swait()
  1819. hum.CameraOffset = Vector3.new(0, 0.3 + 0.1 * Cos(sine / 20), 0)
  1820. 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)
  1821. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20), Rad(0), Rad(-40)), 0.2)
  1822. 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)
  1823. 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)
  1824. 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)
  1825. 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)
  1826. end
  1827. Magic(5, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, maincolor, "Sphere")
  1828. Magic(10, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, maincolor, "Sphere")
  1829. Magic(1, "Add", mouse.Hit, Vector3.new(1, 100000, 1), 0.5, maincolor, "Sphere")
  1830. Magic(1, "Add", mouse.Hit, Vector3.new(1, 1, 1), 0.75, maincolor, "Sphere")
  1831. CameraEnshaking(4, 5)
  1832. Cso("206049428", char, 10, 1)
  1833. for i, v in pairs(FindNearestHead(mouse.Hit.p, 14.5)) do
  1834. if v:FindFirstChild("Head") then
  1835. Eviscerate(v)
  1836. end
  1837. end
  1838. for i = 0, 2, 0.1 do
  1839. swait()
  1840. hum.CameraOffset = Vector3.new(0, -0.2 + 0.1 * Cos(sine / 20), 0)
  1841. 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)
  1842. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2)
  1843. 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)
  1844. 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)
  1845. 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)
  1846. 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)
  1847. end
  1848. hum.WalkSpeed = 16
  1849. attack = false
  1850. end
  1851. function Taunt10000()
  1852. attack = true
  1853. Cso("649634100", hed, 10, 0.5)
  1854. for i = 0, 6, 0.1 do
  1855. swait()
  1856. 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)
  1857. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 3.5)), Rad(0), Rad(-30)), 0.1)
  1858. 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)
  1859. 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)
  1860. 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)
  1861. 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)
  1862. end
  1863. attack = false
  1864. end
  1865. function OP9999()
  1866. attack = true
  1867. hum.WalkSpeed = 3.01
  1868. for i = 0,5.2,0.1 do
  1869. swait()
  1870. 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)
  1871. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
  1872. 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)
  1873. 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)
  1874. 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)
  1875. 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)
  1876. end
  1877. Cso("331666100", hed, 10, 1)
  1878. for i = 0,3.7,0.1 do
  1879. swait()
  1880. 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)
  1881. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
  1882. 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)
  1883. 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)
  1884. 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)
  1885. 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)
  1886. CameraEnshaking(2, 8)
  1887. Effects.Sphere.Create(BrickColor.new("Really red"), root.CFrame * CF(0, -3, 0), 10, 4, 10, 9999999, -0.1, 9999999, 0.01)
  1888. for i, v in pairs(FindNearestHead(tors.CFrame.p, 9999999)) do
  1889. if v:FindFirstChild("Head") then
  1890. Eviscerate(v)
  1891. end
  1892. end
  1893. end
  1894. attack = false
  1895. hum.WalkSpeed = 16
  1896. end
  1897. -------------------------------------------------------
  1898. --End Attacks N Stuff--
  1899. -------------------------------------------------------
  1900. mouse.KeyDown:connect(function(key)
  1901. if key == 'q' then
  1902. Swing = 2
  1903. hum.WalkSpeed = 40
  1904. end
  1905. end)
  1906. mouse.KeyUp:connect(function(key)
  1907. if key == 'q' then
  1908. Swing = 1
  1909. hum.WalkSpeed = 16
  1910. end
  1911. end)
  1912.  
  1913. mouse.KeyDown:connect(function(key)
  1914. if attack == false then
  1915. if key == 'e' then
  1916. Ancient_Rage()
  1917. elseif key == 'r' then
  1918. Distort()
  1919. elseif key == 't' then
  1920. Taunt10000()
  1921. elseif key == 'f' then
  1922. Technobeam()
  1923. elseif key == 'g' then
  1924. OP9999()
  1925. elseif key == 'h' then
  1926.  
  1927. end
  1928. end
  1929. end)
  1930. local Combo = 1
  1931. mouse.Button1Down:connect(function(key)
  1932. if attack == false then
  1933. if Combo == 1 then
  1934. Combo = 2
  1935. attackone()
  1936. elseif Combo == 2 then
  1937. Combo = 3
  1938. attacktwo()
  1939. elseif Combo == 3 then
  1940. Combo = 1
  1941. attackthree()
  1942. end
  1943. end
  1944. end)
  1945. -------------------------------------------------------
  1946. --Start Animations--
  1947. -------------------------------------------------------
  1948. while true do
  1949. swait()
  1950. sine = sine + change
  1951. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1952. local velderp = root.Velocity.y
  1953. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  1954. if equipped == true or equipped == false then
  1955. if attack == false then
  1956. idle = idle + 1
  1957. else
  1958. idle = 0
  1959. end
  1960. --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")
  1961. if 1 < root.Velocity.y and hitfloor == nil then
  1962. Anim = "Jump"
  1963. if attack == false then
  1964. 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)
  1965. 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)
  1966. 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)
  1967. 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)
  1968. 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)
  1969. 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)
  1970. end
  1971. elseif -1 > root.Velocity.y and hitfloor == nil then
  1972. Anim = "Fall"
  1973. if attack == false then
  1974. 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)
  1975. 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)
  1976. 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)
  1977. 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)
  1978. 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)
  1979. 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)
  1980. end
  1981. elseif torvel < 1 and hitfloor ~= nil then
  1982. Anim = "Idle"
  1983. change = 1
  1984. if attack == false then
  1985. 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)
  1986. 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)
  1987. 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)
  1988. 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)
  1989. 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)
  1990. 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)
  1991. end
  1992. elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
  1993. Anim = "Walk"
  1994. change = 1
  1995. if attack == false then
  1996. 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)
  1997. 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)
  1998. 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)
  1999. 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)
  2000. 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)
  2001. 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)
  2002. end
  2003. elseif torvel >= 25 and hitfloor ~= nil then
  2004. Anim = "Sprint"
  2005. change = 1.35
  2006. if attack == false then
  2007. 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)
  2008. 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)
  2009. 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)
  2010. 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)
  2011. 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)
  2012. 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)
  2013. end
  2014. end
  2015. end
  2016. Music.SoundId = "rbxassetid://"..SONG
  2017. Music.Looped = true
  2018. Music.Pitch = 1
  2019. Music.Volume = 9999999
  2020. Music.Parent = tors
  2021. Music:Resume()
  2022. if 0 < #Effects then
  2023. for e = 1, #Effects do
  2024. if Effects[e] ~= nil then
  2025. local Thing = Effects[e]
  2026. if Thing ~= nil then
  2027. local Part = Thing[1]
  2028. local Mode = Thing[2]
  2029. local Delay = Thing[3]
  2030. local IncX = Thing[4]
  2031. local IncY = Thing[5]
  2032. local IncZ = Thing[6]
  2033. if 1 >= Thing[1].Transparency then
  2034. if Thing[2] == "Block1" then
  2035. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2036. local Mesh = Thing[1].Mesh
  2037. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2038. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2039. elseif Thing[2] == "Block2" then
  2040. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  2041. local Mesh = Thing[7]
  2042. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2043. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2044. elseif Thing[2] == "Block3" then
  2045. 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)
  2046. local Mesh = Thing[7]
  2047. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2048. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2049. elseif Thing[2] == "Cylinder" then
  2050. local Mesh = Thing[1].Mesh
  2051. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2052. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2053. elseif Thing[2] == "Blood" then
  2054. local Mesh = Thing[7]
  2055. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  2056. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2057. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2058. elseif Thing[2] == "Elec" then
  2059. local Mesh = Thing[1].Mesh
  2060. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  2061. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2062. elseif Thing[2] == "Disappear" then
  2063. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2064. elseif Thing[2] == "Shatter" then
  2065. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2066. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2067. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2068. Thing[6] = Thing[6] + Thing[5]
  2069. end
  2070. else
  2071. Part.Parent = nil
  2072. table.remove(Effects, e)
  2073. end
  2074. end
  2075. end
  2076. end
  2077. end
  2078. end
  2079. -------------------------------------------------------
  2080. --End Animations And Script--
  2081. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement