Advertisement
AOM-GU-PRO

Karma BY:aomFetty

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