Advertisement
AOM-GU-PRO

THE BIG BLACK

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