Advertisement
Basykung7845

Test

Jan 10th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 81.17 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 AomFetty')
  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. --Start Customization--
  1360. -------------------------------------------------------
  1361. local Player_Size = 1
  1362. if Player_Size ~= 1 then
  1363. root.Size = root.Size * Player_Size
  1364. tors.Size = tors.Size * Player_Size
  1365. hed.Size = hed.Size * Player_Size
  1366. ra.Size = ra.Size * Player_Size
  1367. la.Size = la.Size * Player_Size
  1368. rl.Size = rl.Size * Player_Size
  1369. ll.Size = ll.Size * Player_Size
  1370. ----------------------------------------------------------------------------------
  1371. rootj.Parent = root
  1372. neck.Parent = tors
  1373. RW.Parent = tors
  1374. LW.Parent = tors
  1375. RH.Parent = tors
  1376. LH.Parent = tors
  1377. ----------------------------------------------------------------------------------
  1378. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1379. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1380. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1381. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1382. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1383. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1384. ----------------------------------------------------------------------------------
  1385. 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))
  1386. 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))
  1387. 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))
  1388. 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))
  1389. --hat.Parent = Character
  1390. end
  1391. ----------------------------------------------------------------------------------
  1392. local equipped = false
  1393. local idle = 0
  1394. local change = 1
  1395. local val = 0
  1396. local toim = 0
  1397. local idleanim = 0.4
  1398. local sine = 0
  1399. local Sit = 1
  1400. ----------------------------------------------------------------------------------
  1401. local SONG = 1092048938
  1402. local SONG2 = 0
  1403. local Music = Instance.new("Sound",tors)
  1404. Music.Volume = 2.5
  1405. Music.Looped = true
  1406. Music.Pitch = 1 --Pitcher
  1407. ----------------------------------------------------------------------------------
  1408. local Orin = "http://www.roblox.com/asset/?id=236455674"
  1409. Head.face.Texture = Orin
  1410. function weld(a, b, acf)
  1411. local w = Instance.new("Weld", a)
  1412. w.Part0 = a
  1413. w.Part1 = b
  1414. w.C0 = acf
  1415. end
  1416. for i,v in pairs(char:GetChildren()) do
  1417. if v.ClassName == "Accessory" or v.ClassName == "Hat" then
  1418. v:destroy()
  1419. end
  1420. end
  1421.  
  1422. local Hair = Instance.new("Part")
  1423. Hair.Parent = char
  1424. Hair.Name = "Hair"
  1425. Hair.Size = Vector3.new(0.1, 0.1, 0.1)
  1426. Hair.CFrame = char.Head.CFrame
  1427. Hair:BreakJoints()
  1428. Hair.CanCollide = false
  1429. Hair.BrickColor = BrickColor.new("New Yeller")
  1430. Hair.TopSurface = "Smooth"
  1431. Hair.BottomSurface = "Smooth"
  1432. Weld = Instance.new("Weld")
  1433. Weld.Name = "Weld"
  1434. Weld.Part0 = char.Torso
  1435. Weld.Part1 = Hair
  1436. Weld.Parent = char.Torso
  1437. Weld.C0 = CFrame.new(0, 0.3, 0.6)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1438. Mesh = Instance.new("SpecialMesh")
  1439. Mesh.Parent = Hair
  1440. Mesh.MeshId = "rbxassetid://67993325"
  1441. Mesh.TextureId = "http://www.roblox.com/asset/?id=106676672"
  1442. Mesh.Scale = Vector3.new(0.7, 0.7, 0.7)
  1443. ----------------------------------------------------------------------------------
  1444. local Hair = Instance.new("Part")
  1445. Hair.Parent = char
  1446. Hair.Name = "Hair"
  1447. Hair.Size = Vector3.new(1, 0.4, 1)
  1448. Hair.CFrame = char.Head.CFrame
  1449. Hair:BreakJoints()
  1450. Hair.CanCollide = false
  1451. Hair.BrickColor = BrickColor.new("New Yeller")
  1452. Hair.TopSurface = "Smooth"
  1453. Hair.BottomSurface = "Smooth"
  1454. Weld = Instance.new("Weld")
  1455. Weld.Name = "Weld"
  1456. Weld.Part0 = char.Head
  1457. Weld.Part1 = Hair
  1458. Weld.Parent = char.Head
  1459. Weld.C0 = CFrame.new(0, 0.2, -0.2)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1460. Mesh = Instance.new("SpecialMesh")
  1461. Mesh.Parent = Hair
  1462. Mesh.MeshId = "rbxassetid://11419729"
  1463. Mesh.TextureId = "http://www.roblox.com/asset/?id=112346956"
  1464. Mesh.Scale = Vector3.new(1, 1, 1)
  1465. ----------------------------------------------------------------------------------
  1466. local Hair = Instance.new("Part")
  1467. Hair.Parent = char
  1468. Hair.Name = "Hair"
  1469. Hair.Size = Vector3.new(1, 0.4, 1)
  1470. Hair.CFrame = char.Head.CFrame
  1471. Hair:BreakJoints()
  1472. Hair.CanCollide = false
  1473. Hair.BrickColor = BrickColor.new("New Yeller")
  1474. Hair.TopSurface = "Smooth"
  1475. Hair.BottomSurface = "Smooth"
  1476. Weld = Instance.new("Weld")
  1477. Weld.Name = "Weld"
  1478. Weld.Part0 = char.Head
  1479. Weld.Part1 = Hair
  1480. Weld.Parent = char.Head
  1481. Weld.C0 = CFrame.new(0, 0.5, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1482. Mesh = Instance.new("SpecialMesh")
  1483. Mesh.Parent = Hair
  1484. Mesh.MeshId = "rbxassetid://16627529"
  1485. Mesh.TextureId = "http://www.roblox.com/asset/?id=16627494"
  1486. Mesh.Scale = Vector3.new(1.1, 1.1, 1.1)
  1487. ----------------------------------------------------------------------------------
  1488. local Hair = Instance.new("Part")
  1489. Hair.Parent = char
  1490. Hair.Name = "Hair"
  1491. Hair.Size = Vector3.new(0.99, 2.03, 2.45)
  1492. Hair.CFrame = char.Head.CFrame
  1493. Hair:BreakJoints()
  1494. Hair.CanCollide = false
  1495. Hair.BrickColor = BrickColor.new("New Yeller")
  1496. Hair.TopSurface = "Smooth"
  1497. Hair.BottomSurface = "Smooth"
  1498. Weld = Instance.new("Weld")
  1499. Weld.Name = "Weld"
  1500. Weld.Part0 = char.Torso
  1501. Weld.Part1 = Hair
  1502. Weld.Parent = char.Torso
  1503. Weld.C0 = CFrame.new(0.3, 0.1, 1.8)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1504. Mesh = Instance.new("SpecialMesh")
  1505. Mesh.Parent = Hair
  1506. Mesh.MeshId = "rbxassetid://170939831"
  1507. Mesh.TextureId = "http://www.roblox.com/asset/?id=170939093"
  1508. Mesh.Scale = Vector3.new(1, 1, 1)
  1509. ----------------------------------------------------------------------------------
  1510. local Shirt = "rbxassetid://1328938028"
  1511. local Pants = "rbxassetid://1033898637"
  1512.  
  1513. ypcall(function()
  1514. shirt = Instance.new("Shirt", char)
  1515. shirt.Name = "Shirt"
  1516. pants = Instance.new("Pants", char)
  1517. pants.Name = "Pants"
  1518. char.Shirt.ShirtTemplate = Shirt
  1519. char.Pants.PantsTemplate = Pants
  1520. end)
  1521.  
  1522. shirt.Name = "aomFetty"
  1523. pants.Name = "aomFetty"
  1524. hum.WalkSpeed = 16
  1525. hum.JumpPower = 70
  1526. hum.MaxHealth = 999999999999999999999999999999999999999999999999999999999999999999
  1527. hum.Health = 999999999999999999999999999999999999999999999999999999999999999999
  1528. hum.Animator.Parent = nil
  1529. ----------------------------------------------------------------------------------
  1530. local naeeym2 = Instance.new("BillboardGui",char)
  1531. naeeym2.AlwaysOnTop = true
  1532. naeeym2.Size = UDim2.new(5,35,2,15)
  1533. naeeym2.StudsOffset = Vector3.new(0, 3.5, 0)
  1534. naeeym2.Adornee = hed
  1535. naeeym2.Name = "Name"
  1536. --naeeym2.PlayerToHideFrom = Player
  1537. local tecks2 = Instance.new("TextLabel",naeeym2)
  1538. tecks2.BackgroundTransparency = 1
  1539. tecks2.TextScaled = true
  1540. tecks2.BorderSizePixel = 0
  1541. tecks2.Text = "The AomFetty"
  1542. tecks2.Font = Enum.Font.Antique
  1543. tecks2.TextSize = 30
  1544. tecks2.TextStrokeTransparency = 0
  1545. tecks2.TextColor3 = Color3.new(255, 0, 0)
  1546. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  1547. tecks2.Size = UDim2.new(1,0,0.5,0)
  1548. tecks2.Parent = naeeym2
  1549. wait(1)
  1550. tecks2.Text = "BY:Fetty"
  1551. wait(2)
  1552. tecks2.Text = "Upload"
  1553. wait(3)
  1554. tecks2.Text = "The AomFetty"
  1555. --------------------------------------------------------
  1556. local EyeSizes={
  1557. NumberSequenceKeypoint.new(0,0.65,0),
  1558. NumberSequenceKeypoint.new(0.5,0.7,0),
  1559. NumberSequenceKeypoint.new(1,0,0)
  1560. }
  1561. local EyeTrans={
  1562. NumberSequenceKeypoint.new(0,0,0),
  1563. NumberSequenceKeypoint.new(0.5,0,0),
  1564. NumberSequenceKeypoint.new(1,1,0)
  1565. }
  1566. local PE2=Instance.new("ParticleEmitter", ra)
  1567. PE2.LightEmission=.9
  1568. PE2.Color = ColorSequence.new(BrickC("Really red").Color,BrickC("Really blue").Color)
  1569. PE2.Transparency=NumberSequence.new(EyeTrans)
  1570. PE2.Lifetime=NumberRange.new(0.35)
  1571. PE2.Rotation=NumberRange.new(0,360)
  1572. PE2.Rate=999
  1573. PE2.VelocitySpread = 10000
  1574. PE2.Acceleration = Vector3.new(0,25,0)
  1575. PE2.ZOffset = 0.5
  1576. PE2.Drag = 0
  1577. PE2.Speed = NumberRange.new(0,0,0)
  1578. PE2.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
  1579. PE2.Name = "PE2"
  1580. PE2.Enabled = true
  1581. PE2.LockedToPart = true
  1582. local EyeSizes={
  1583. NumberSequenceKeypoint.new(0,0.65,0),
  1584. NumberSequenceKeypoint.new(0.5,0.7,0),
  1585. NumberSequenceKeypoint.new(1,0,0)
  1586. }
  1587. local EyeTrans={
  1588. NumberSequenceKeypoint.new(0,0,0),
  1589. NumberSequenceKeypoint.new(0.5,0,0),
  1590. NumberSequenceKeypoint.new(1,1,0)
  1591. }
  1592. local PE3=Instance.new("ParticleEmitter", ra)
  1593. PE3.LightEmission=.9
  1594. PE3.Color = ColorSequence.new(BrickC("Lime green").Color,BrickC("Really blue").Color)
  1595. PE3.Transparency=NumberSequence.new(EyeTrans)
  1596. PE3.Lifetime=NumberRange.new(0.35)
  1597. PE3.Rotation=NumberRange.new(0,360)
  1598. PE3.Rate=999
  1599. PE3.VelocitySpread = 10000
  1600. PE3.Acceleration = Vector3.new(0,25,0)
  1601. PE3.ZOffset = 0.5
  1602. PE3.Drag = 0
  1603. PE3.Speed = NumberRange.new(0,0,0)
  1604. PE3.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
  1605. PE3.Name = "PE3"
  1606. PE3.Enabled = true
  1607. PE3.LockedToPart = true
  1608.  
  1609. local EyeSizes={
  1610. NumberSequenceKeypoint.new(0,0.65,0),
  1611. NumberSequenceKeypoint.new(0.5,0.7,0),
  1612. NumberSequenceKeypoint.new(1,0,0)
  1613. }
  1614. local EyeTrans={
  1615. NumberSequenceKeypoint.new(0,0,0),
  1616. NumberSequenceKeypoint.new(0.5,0,0),
  1617. NumberSequenceKeypoint.new(1,1,0)
  1618. }
  1619. local PE4=Instance.new("ParticleEmitter", ll)
  1620. PE4.LightEmission=.9
  1621. PE4.Color = ColorSequence.new(BrickC("Really red").Color,BrickC("Really blue").Color)
  1622. PE4.Transparency=NumberSequence.new(EyeTrans)
  1623. PE4.Lifetime=NumberRange.new(0.35)
  1624. PE4.Rotation=NumberRange.new(0,360)
  1625. PE4.Rate=999
  1626. PE4.VelocitySpread = 10000
  1627. PE4.Acceleration = Vector3.new(0,25,0)
  1628. PE4.ZOffset = 0.5
  1629. PE4.Drag = 0
  1630. PE4.Speed = NumberRange.new(0,0,0)
  1631. PE4.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
  1632. PE4.Name = "PE4"
  1633. PE4.Enabled = true
  1634. PE4.LockedToPart = true
  1635. local EyeSizes={
  1636. NumberSequenceKeypoint.new(0,0.65,0),
  1637. NumberSequenceKeypoint.new(0.5,0.7,0),
  1638. NumberSequenceKeypoint.new(1,0,0)
  1639. }
  1640. local EyeTrans={
  1641. NumberSequenceKeypoint.new(0,0,0),
  1642. NumberSequenceKeypoint.new(0.5,0,0),
  1643. NumberSequenceKeypoint.new(1,1,0)
  1644. }
  1645. local PE5=Instance.new("ParticleEmitter", ll)
  1646. PE5.LightEmission=.9
  1647. PE5.Color = ColorSequence.new(BrickC("Lime green").Color,BrickC("Really blue").Color)
  1648. PE5.Transparency=NumberSequence.new(EyeTrans)
  1649. PE5.Lifetime=NumberRange.new(0.35)
  1650. PE5.Rotation=NumberRange.new(0,360)
  1651. PE5.Rate=999
  1652. PE5.VelocitySpread = 10000
  1653. PE5.Acceleration = Vector3.new(0,25,0)
  1654. PE5.ZOffset = 0.5
  1655. PE5.Drag = 0
  1656. PE5.Speed = NumberRange.new(0,0,0)
  1657. PE5.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
  1658. PE5.Name = "PE5"
  1659. PE5.Enabled = true
  1660. PE5.LockedToPart = true
  1661. -------------------------------------------------------
  1662. --End Customization--
  1663. -------------------------------------------------------
  1664.  
  1665.  
  1666. -------------------------------------------------------
  1667. --Start Attacks N Stuff--
  1668. -------------------------------------------------------
  1669. function attackone()
  1670. attack = true
  1671. hum.WalkSpeed = 3.01
  1672. for i = 0, 1.7, 0.1 do
  1673. swait()
  1674. 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)
  1675. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(40)), 0.3)
  1676. 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)
  1677. 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)
  1678. 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)
  1679. 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)
  1680. end
  1681. Cso("203426541", ra, 10, 1)
  1682. for i = 0, 1.4, 0.1 do
  1683. swait()
  1684. 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)
  1685. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(-55)), 0.3)
  1686. 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)
  1687. 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)
  1688. 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)
  1689. 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)
  1690. end
  1691. for i = 0, 1.4, 0.1 do
  1692. swait()
  1693. 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)
  1694. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(-55)), 0.3)
  1695. 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)
  1696. 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)
  1697. 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)
  1698. 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)
  1699. for i, v in pairs(FindNearestHead(tors.CFrame.p, 4)) do
  1700. if v:FindFirstChild("Head") then
  1701. Eviscerate(v)
  1702. end
  1703. end
  1704. end
  1705. attack = false
  1706. hum.WalkSpeed = 16
  1707. end
  1708. function attacktwo()
  1709. attack = true
  1710. hum.WalkSpeed = 3.01
  1711. for i = 0, 1.7, 0.1 do
  1712. swait()
  1713. 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)
  1714. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5), Rad(0), Rad(0)), 0.3)
  1715. 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)
  1716. 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)
  1717. 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)
  1718. 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)
  1719. end
  1720. Cso("203426541", rl, 10, 1)
  1721. CameraEnshaking(2, 3)
  1722. for i = 0, 1.4, 0.1 do
  1723. swait()
  1724. 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)
  1725. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(5), Rad(0), Rad(0)), 0.3)
  1726. 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)
  1727. 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)
  1728. 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)
  1729. 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)
  1730. for i, v in pairs(FindNearestHead(tors.CFrame.p, 5)) do
  1731. if v:FindFirstChild("Head") then
  1732. Eviscerate(v)
  1733. end
  1734. end
  1735. end
  1736. attack = false
  1737. hum.WalkSpeed = 16
  1738. end
  1739. function attackthree()
  1740. attack = true
  1741. hum.WalkSpeed = 3.01
  1742. for i = 0, 1.4, 0.1 do
  1743. swait()
  1744. 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)
  1745. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1746. 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)
  1747. 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)
  1748. 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)
  1749. 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)
  1750. end
  1751. Cso("203426541", hed, 10, 1)
  1752. for i = 0, 1.7, 0.1 do
  1753. swait()
  1754. 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)
  1755. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1756. 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)
  1757. 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)
  1758. 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)
  1759. 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)
  1760. for i, v in pairs(FindNearestHead(tors.CFrame.p, 6)) do
  1761. if v:FindFirstChild("Head") then
  1762. Eviscerate(v)
  1763. end
  1764. end
  1765. end
  1766. attack = false
  1767. hum.WalkSpeed = 16
  1768. end
  1769.  
  1770. function Distort()
  1771. attack = true
  1772. hum.WalkSpeed = 0
  1773. local pos = root.Position
  1774. root.CFrame = CF(mouse.Hit.p+Vector3.new(0,3,0),pos)
  1775. Cso("847061203", char, 10, 0.85)
  1776. for i = 1,2.5,0.1 do
  1777. swait()
  1778. 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)
  1779. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3)
  1780. 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)
  1781. 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)
  1782. 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)
  1783. 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)
  1784. end
  1785. attack = false
  1786. hum.WalkSpeed = 8
  1787. end
  1788. function Ancient_Rage()
  1789. attack = true
  1790. hum.WalkSpeed = 0
  1791. Cso("135017578", tors, 10, 1.05)
  1792. for i = 1,14,0.1 do
  1793. swait()
  1794. 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)
  1795. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3)
  1796. 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)
  1797. 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)
  1798. 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)
  1799. 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)
  1800. for i, v in pairs(FindNearestHead(tors.CFrame.p, 20)) 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. function Technobeam()
  1810. attack = true
  1811. hum.WalkSpeed = 3.01
  1812. for i = 0, 4, 0.1 do
  1813. swait()
  1814. hum.CameraOffset = Vector3.new(0, -0.1 + 0.1 * Cos(sine / 20), 0)
  1815. 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)
  1816. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2)
  1817. 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)
  1818. 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)
  1819. 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)
  1820. 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)
  1821. end
  1822. for i = 0, 2, 0.1 do
  1823. swait()
  1824. hum.CameraOffset = Vector3.new(0, 0.3 + 0.1 * Cos(sine / 20), 0)
  1825. 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)
  1826. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20), Rad(0), Rad(-40)), 0.2)
  1827. 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)
  1828. 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)
  1829. 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)
  1830. 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)
  1831. end
  1832. Magic(5, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, maincolor, "Sphere")
  1833. Magic(10, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, maincolor, "Sphere")
  1834. Magic(1, "Add", mouse.Hit, Vector3.new(1, 100000, 1), 0.5, maincolor, "Sphere")
  1835. Magic(1, "Add", mouse.Hit, Vector3.new(1, 1, 1), 0.75, maincolor, "Sphere")
  1836. CameraEnshaking(4, 5)
  1837. Cso("206049428", char, 10, 1)
  1838. for i, v in pairs(FindNearestHead(mouse.Hit.p, 14.5)) do
  1839. if v:FindFirstChild("Head") then
  1840. Eviscerate(v)
  1841. end
  1842. end
  1843. for i = 0, 2, 0.1 do
  1844. swait()
  1845. hum.CameraOffset = Vector3.new(0, -0.2 + 0.1 * Cos(sine / 20), 0)
  1846. 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)
  1847. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2)
  1848. 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)
  1849. 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)
  1850. 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)
  1851. 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)
  1852. end
  1853. hum.WalkSpeed = 16
  1854. attack = false
  1855. end
  1856. function Taunt10000()
  1857. attack = true
  1858. Cso("333446256", char, 10, 1)
  1859. for i = 0, 15, 0.1 do
  1860. swait()
  1861. 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)
  1862. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 3.5)), Rad(0), Rad(-30)), 0.1)
  1863. 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)
  1864. 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)
  1865. 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)
  1866. 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)
  1867. end
  1868. for i = 0, 15, 0.1 do
  1869. swait()
  1870. 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)
  1871. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 3.5)), Rad(0), Rad(-30)), 0.1)
  1872. 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)
  1873. 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)
  1874. 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)
  1875. 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)
  1876. end
  1877. for i = 0, 20, 0.1 do
  1878. swait()
  1879. 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)
  1880. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 3.5)), Rad(0), Rad(-30)), 0.1)
  1881. 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)
  1882. 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)
  1883. 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)
  1884. 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)
  1885. end
  1886. attack = false
  1887. end
  1888. function OP9999()
  1889. attack = true
  1890. hum.WalkSpeed = 3.01
  1891. Cso("1690476035",char, 10, 1)
  1892. for i = 0,5.2,0.1 do
  1893. swait()
  1894. Effects.Block.Create(BrickC("Really red"), ll.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05)
  1895. 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)
  1896. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
  1897. 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)
  1898. 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)
  1899. 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)
  1900. 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)
  1901. end
  1902. Cso("824687369", char, 10, 1)
  1903. for i = 0,3.7,0.1 do
  1904. swait()
  1905. 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)
  1906. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
  1907. 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)
  1908. 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)
  1909. 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)
  1910. 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)
  1911. CameraEnshaking(2, 8)
  1912. Effects.Sphere.Create(BrickColor.new("Really red"), root.CFrame * CF(0, -3, 0), 10, 4, 10, 9999999, -0.1, 9999999, 0.01)
  1913. for i, v in pairs(FindNearestHead(tors.CFrame.p, 9999999)) do
  1914. if v:FindFirstChild("Head") then
  1915. Eviscerate(v)
  1916. end
  1917. end
  1918. end
  1919. attack = false
  1920. hum.WalkSpeed = 16
  1921. end
  1922. -------------------------------------------------------
  1923. --End Attacks N Stuff--
  1924. -------------------------------------------------------
  1925. mouse.KeyDown:connect(function(key)
  1926. if key == 'q' then
  1927. Swing = 2
  1928. hum.WalkSpeed = 40
  1929. end
  1930. end)
  1931. mouse.KeyUp:connect(function(key)
  1932. if key == 'q' then
  1933. Swing = 1
  1934. hum.WalkSpeed = 16
  1935. end
  1936. end)
  1937.  
  1938. mouse.KeyDown:connect(function(key)
  1939. if attack == false then
  1940. if key == 'e' then
  1941. Ancient_Rage()
  1942. elseif key == 'r' then
  1943. Distort()
  1944. elseif key == 't' then
  1945. Taunt10000()
  1946. elseif key == 'f' then
  1947. Technobeam()
  1948. elseif key == 'g' then
  1949. OP9999()
  1950. elseif key == 'h' then
  1951.  
  1952. end
  1953. end
  1954. end)
  1955. local Combo = 1
  1956. mouse.Button1Down:connect(function(key)
  1957. if attack == false then
  1958. if Combo == 1 then
  1959. Combo = 2
  1960. attackone()
  1961. elseif Combo == 2 then
  1962. Combo = 3
  1963. attacktwo()
  1964. elseif Combo == 3 then
  1965. Combo = 1
  1966. attackthree()
  1967. end
  1968. end
  1969. end)
  1970. -------------------------------------------------------
  1971. --Start Animations--
  1972. -------------------------------------------------------
  1973. while true do
  1974. swait()
  1975. sine = sine + change
  1976. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1977. local velderp = root.Velocity.y
  1978. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  1979. if equipped == true or equipped == false then
  1980. if attack == false then
  1981. idle = idle + 1
  1982. else
  1983. idle = 0
  1984. end
  1985. --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")
  1986. if 1 < root.Velocity.y and hitfloor == nil then
  1987. Anim = "Jump"
  1988. if attack == false then
  1989. 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)
  1990. 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)
  1991. 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)
  1992. 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)
  1993. 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)
  1994. 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)
  1995. end
  1996. elseif -1 > root.Velocity.y and hitfloor == nil then
  1997. Anim = "Fall"
  1998. if attack == false then
  1999. 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)
  2000. 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)
  2001. 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)
  2002. 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)
  2003. 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)
  2004. 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)
  2005. end
  2006. elseif torvel < 1 and hitfloor ~= nil then
  2007. Anim = "Idle"
  2008. change = 1
  2009. if attack == false then
  2010. 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)
  2011. 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)
  2012. 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)
  2013. 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)
  2014. 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)
  2015. 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)
  2016. end
  2017. elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
  2018. Anim = "Walk"
  2019. change = 1
  2020. if attack == false then
  2021. 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)
  2022. 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)
  2023. 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)
  2024. 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)
  2025. 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)
  2026. 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)
  2027. end
  2028. elseif torvel >= 25 and hitfloor ~= nil then
  2029. Anim = "Sprint"
  2030. change = 1.35
  2031. if attack == false then
  2032. 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)
  2033. 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)
  2034. 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)
  2035. 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)
  2036. 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)
  2037. 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)
  2038. end
  2039. end
  2040. end
  2041. Music.SoundId = "rbxassetid://"..SONG
  2042. Music.Looped = true
  2043. Music.Pitch = 1
  2044. Music.Volume = 1
  2045. Music.Parent = tors
  2046. Music:Resume()
  2047. if 0 < #Effects then
  2048. for e = 1, #Effects do
  2049. if Effects[e] ~= nil then
  2050. local Thing = Effects[e]
  2051. if Thing ~= nil then
  2052. local Part = Thing[1]
  2053. local Mode = Thing[2]
  2054. local Delay = Thing[3]
  2055. local IncX = Thing[4]
  2056. local IncY = Thing[5]
  2057. local IncZ = Thing[6]
  2058. if 1 >= Thing[1].Transparency then
  2059. if Thing[2] == "Block1" then
  2060. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2061. local Mesh = Thing[1].Mesh
  2062. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2063. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2064. elseif Thing[2] == "Block2" then
  2065. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  2066. local Mesh = Thing[7]
  2067. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2068. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2069. elseif Thing[2] == "Block3" then
  2070. 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)
  2071. local Mesh = Thing[7]
  2072. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2073. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2074. elseif Thing[2] == "Cylinder" then
  2075. local Mesh = Thing[1].Mesh
  2076. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2077. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2078. elseif Thing[2] == "Blood" then
  2079. local Mesh = Thing[7]
  2080. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  2081. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2082. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2083. elseif Thing[2] == "Elec" then
  2084. local Mesh = Thing[1].Mesh
  2085. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  2086. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2087. elseif Thing[2] == "Disappear" then
  2088. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2089. elseif Thing[2] == "Shatter" then
  2090. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2091. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2092. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2093. Thing[6] = Thing[6] + Thing[5]
  2094. end
  2095. else
  2096. Part.Parent = nil
  2097. table.remove(Effects, e)
  2098. end
  2099. end
  2100. end
  2101. end
  2102. end
  2103. end
  2104. -------------------------------------------------------
  2105. --End Animations And Script--
  2106. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement