TheYoutuber_Pro

qweqwe

Jan 13th, 2022 (edited)
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 82.59 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. local rp = RealPlayer
  6. script.Parent = rp.Character
  7.  
  8. --RemoteEvent for communicating
  9. local Event = Instance.new("RemoteEvent")
  10. Event.Name = "UserInput_Event"
  11.  
  12. --Fake event to make stuff like Mouse.KeyDown work
  13. local function fakeEvent()
  14. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  15. t.connect = t.Connect
  16. return t
  17. end
  18.  
  19. --Creating fake input objects with fake variables
  20. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  21. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  22. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  23. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  24. end}
  25. --Merged 2 functions into one by checking amount of arguments
  26. CAS.UnbindAction = CAS.BindAction
  27.  
  28. --This function will trigger the events that have been :Connect()'ed
  29. local function te(self,ev,...)
  30. local t = m[ev]
  31. if t and t._fakeEvent then
  32. for _,f in pairs(t.Functions) do
  33. f(...)
  34. end
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=rp then return end
  42. m.Target = io.Target
  43. m.Hit = io.Hit
  44. if not io.isMouse then
  45. local b = io.UserInputState == Enum.UserInputState.Begin
  46. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  47. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  48. end
  49. for _,t in pairs(CAS.Actions) do
  50. for _,k in pairs(t.Keys) do
  51. if k==io.KeyCode then
  52. t.Function(t.Name,io.UserInputState,io)
  53. end
  54. end
  55. end
  56. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  58. end
  59. end)
  60. Event.Parent = NLS([==[
  61. local Player = game:GetService("Players").LocalPlayer
  62. local Event = script:WaitForChild("UserInput_Event")
  63.  
  64. local Mouse = Player:GetMouse()
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83.  
  84. ----Sandboxed game object that allows the usage of client-side methods and services
  85. --Real game object
  86. local _rg = game
  87.  
  88. --Metatable for fake service
  89. local fsmt = {
  90. __index = function(self,k)
  91. local s = rawget(self,"_RealService")
  92. if s then return s[k] end
  93. end,
  94. __newindex = function(self,k,v)
  95. local s = rawget(self,"_RealService")
  96. if s then s[k]=v end
  97. end,
  98. __call = function(self,...)
  99. local s = rawget(self,"_RealService")
  100. if s then return s(...) end
  101. end
  102. }
  103. local function FakeService(t,RealService)
  104. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  105. return setmetatable(t,fsmt)
  106. end
  107.  
  108. --Fake game object
  109. local g = {
  110. GetService = function(self,s)
  111. return self[s]
  112. end,
  113. Players = FakeService({
  114. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  115. },"Players"),
  116. UserInputService = FakeService(UIS,"UserInputService"),
  117. ContextActionService = FakeService(CAS,"ContextActionService"),
  118. }
  119. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  120. g.service = g.GetService
  121.  
  122. g.RunService = FakeService({
  123. RenderStepped = _rg:GetService("RunService").Heartbeat,
  124. BindToRenderStep = function(self,name,_,fun)
  125. self._btrs[name] = self.Heartbeat:Connect(fun)
  126. end,
  127. UnbindFromRenderStep = function(self,name)
  128. self._btrs[name]:Disconnect()
  129. end,
  130. },"RunService")
  131.  
  132. setmetatable(g,{
  133. __index=function(self,s)
  134. return _rg:GetService(s) or typeof(_rg[s])=="function"
  135. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  136. end,
  137. __newindex = fsmt.__newindex,
  138. __call = fsmt.__call
  139. })
  140. --Changing owner to fake player object to support owner:GetMouse()
  141. game,owner = g,g.Players.LocalPlayer
  142. end
  143.  
  144. Player = owner
  145. PlayerGui = Player.PlayerGui
  146. Cam = workspace.CurrentCamera
  147. Backpack = Player.Backpack
  148. Character = Player.Character
  149. Humanoid = Character.Humanoid
  150. Mouse = Player:GetMouse()
  151. RootPart = Character["HumanoidRootPart"]
  152. Torso = Character["Torso"]
  153. Head = Character["Head"]
  154. RightArm = Character["Right Arm"]
  155. LeftArm = Character["Left Arm"]
  156. RightLeg = Character["Right Leg"]
  157. LeftLeg = Character["Left Leg"]
  158. RootJoint = RootPart["RootJoint"]
  159. Neck = Torso["Neck"]
  160. RightHip = Torso["Right Hip"]
  161. LeftHip = Torso["Left Hip"]
  162.  
  163. KEYHOLD = false
  164. IT = Instance.new
  165. CF = CFrame.new
  166. VT = Vector3.new
  167. RAD = math.rad
  168. C3 = Color3.new
  169. UD2 = UDim2.new
  170. BRICKC = BrickColor.new
  171. ANGLES = CFrame.Angles
  172. EULER = CFrame.fromEulerAnglesXYZ
  173. COS = math.cos
  174. ACOS = math.acos
  175. SIN = math.sin
  176. ASIN = math.asin
  177. ABS = math.abs
  178. MRANDOM = math.random
  179. FLOOR = math.floor
  180.  
  181. Character = Player.Character
  182. Humanoid = Character.Humanoid
  183. ---------
  184. plr = game.Players.LocalPlayer
  185. chara = plr.Character
  186. mouse = plr:GetMouse()
  187. Create = Instance.new
  188. Huge = math.huge
  189.  
  190.  
  191. Player = game:GetService("Players").LocalPlayer
  192. PlayerGui = Player.PlayerGui
  193. Cam = workspace.CurrentCamera
  194. Backpack = Player.Backpack
  195. Character = Player.Character
  196. char = Player.Character
  197. Humanoid = Character.Humanoid
  198. Mouse = Player:GetMouse()
  199. RootPart = Character["HumanoidRootPart"]
  200. Torso = Character["Torso"]
  201. Head = Character["Head"]
  202. RightArm = Character["Right Arm"]
  203. LeftArm = Character["Left Arm"]
  204. RightLeg = Character["Right Leg"]
  205. LeftLeg = Character["Left Leg"]
  206. RootJoint = RootPart["RootJoint"]
  207. Neck = Torso["Neck"]
  208. RightHip = Torso["Right Hip"]
  209. LeftHip = Torso["Left Hip"]
  210.  
  211.  
  212.  
  213.  
  214. function weld(a, b, acf)
  215. local w = Instance.new("Weld", a)
  216. w.Part0 = a
  217. w.Part1 = b
  218. w.C0 = acf
  219. end
  220. --------------------------------
  221.  
  222. --------------------------------
  223.  
  224. -------------------------------------------------------
  225.  
  226. local FavIDs = {
  227. 340106355, --Nefl Crystals
  228. 927529620, --Dimension
  229. 876981900, --Fantasy
  230. 398987889, --Ordinary Days
  231. 1117396305, --Oh wait, it's you.
  232. 885996042, --Action Winter Journey
  233. 919231299, --Sprawling Idiot Effigy
  234. 743466274, --Good Day Sunshine
  235. 727411183, --Knife Fight
  236. 1402748531, --The Earth Is Counting On You!
  237. 595230126 --Robot Language
  238. }
  239.  
  240.  
  241.  
  242. --The reality of my life isn't real but a Universe -makhail07
  243. wait(0.2)
  244. local plr = game:service'Players'.LocalPlayer
  245. local char = plr.Character
  246. local hum = char.Humanoid
  247. local hed = char.Head
  248. local root = char.HumanoidRootPart
  249. local rootj = root.RootJoint
  250. local tors = char.Torso
  251. local ra = char["Right Arm"]
  252. local la = char["Left Arm"]
  253. local rl = char["Right Leg"]
  254. local ll = char["Left Leg"]
  255. local neck = tors["Neck"]
  256. local mouse = plr:GetMouse()
  257. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  258. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  259. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  260. local maincolor = BrickColor.new("Really black")
  261.  
  262. -------------------------------------------------------
  263. --Start Good Stuff--
  264. -------------------------------------------------------
  265. cam = game.Workspace.CurrentCamera
  266. CF = CFrame.new
  267. angles = CFrame.Angles
  268. attack = false
  269. Euler = CFrame.fromEulerAnglesXYZ
  270. Rad = math.rad
  271. IT = Instance.new
  272. BrickC = BrickColor.new
  273. Cos = math.cos
  274. Acos = math.acos
  275. Sin = math.sin
  276. Asin = math.asin
  277. Abs = math.abs
  278. Mrandom = math.random
  279. Floor = math.floor
  280. -------------------------------------------------------
  281. --End Good Stuff--
  282. -------------------------------------------------------
  283. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  284. RW = Instance.new("Weld")
  285. LW = Instance.new("Weld")
  286. RH = Instance.new("Weld")
  287. LH = Instance.new("Weld")
  288. RW.Name = "RW"
  289. RW.Part0 = tors
  290. RW.C0 = CF(1.5, 0.5, 0)
  291. RW.C1 = CF(0, 0.5, 0)
  292. RW.Part1 = ra
  293. RW.Parent = tors
  294. LW.Name = "LW"
  295. LW.Part0 = tors
  296. LW.C0 = CF(-1.5, 0.5, 0)
  297. LW.C1 = CF(0, 0.5, 0)
  298. LW.Part1 = la
  299. LW.Parent = tors
  300. RH.Name = "RH"
  301. RH.Part0 = root
  302. RH.C0 = CF(1, 1, 0)
  303. RH.C1 = CF(0, 1, 0)
  304. RH.Part1 = rl
  305. RH.Parent = tors
  306. LH.Name = "LH"
  307. LH.Part0 = root
  308. LH.C0 = CF(-1, 1, 0)
  309. LH.C1 = CF(0, 1, 0)
  310. LH.Part1 = ll
  311. LH.Parent = tors
  312. Effects = {}
  313. -------------------------------------------------------
  314. --Start HeartBeat--
  315. -------------------------------------------------------
  316. ArtificialHB = Instance.new("BindableEvent", script)
  317. ArtificialHB.Name = "Heartbeat"
  318. script:WaitForChild("Heartbeat")
  319.  
  320. frame = 1 / 60
  321. tf = 0
  322. allowframeloss = false
  323. tossremainder = false
  324.  
  325.  
  326. lastframe = tick()
  327. script.Heartbeat:Fire()
  328.  
  329.  
  330. game:GetService("RunService").Heartbeat:connect(function(s, p)
  331. tf = tf + s
  332. if tf >= frame then
  333. if allowframeloss then
  334. script.Heartbeat:Fire()
  335. lastframe = tick()
  336. else
  337. for i = 1, math.floor(tf / frame) do
  338. script.Heartbeat:Fire()
  339. end
  340. lastframe = tick()
  341. end
  342. if tossremainder then
  343. tf = 0
  344. else
  345. tf = tf - frame * math.floor(tf / frame)
  346. end
  347. end
  348. end)
  349. -------------------------------------------------------
  350. --End HeartBeat--
  351. -------------------------------------------------------
  352. local joyemoji = Instance.new('ParticleEmitter', tors)
  353. joyemoji.VelocitySpread = 2000
  354. joyemoji.Lifetime = NumberRange.new(1)
  355. joyemoji.Speed = NumberRange.new(40)
  356. joy= {}
  357. for i=0, 19 do
  358. joy[#joy+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  359. end
  360. joyemoji.Size = NumberSequence.new(joy)
  361. joyemoji.Rate = 0
  362. joyemoji.LockedToPart = false
  363. joyemoji.LightEmission = 0
  364. joyemoji.Texture = "rbxassetid://73623723"
  365. joyemoji.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  366.  
  367. -------------------------------------------------------
  368. --Start Important Functions--
  369. -------------------------------------------------------
  370. char.Head.face.Texture = "rbxassetid://146007570"
  371.  
  372. function swait(num)
  373. if num == 0 or num == nil then
  374. game:service("RunService").Stepped:wait(0)
  375. else
  376. for i = 0, num do
  377. game:service("RunService").Stepped:wait(0)
  378. end
  379. end
  380. end
  381. function thread(f)
  382. coroutine.resume(coroutine.create(f))
  383. end
  384. function clerp(a, b, t)
  385. local qa = {
  386. QuaternionFromCFrame(a)
  387. }
  388. local qb = {
  389. QuaternionFromCFrame(b)
  390. }
  391. local ax, ay, az = a.x, a.y, a.z
  392. local bx, by, bz = b.x, b.y, b.z
  393. local _t = 1 - t
  394. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  395. end
  396. function QuaternionFromCFrame(cf)
  397. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  398. local trace = m00 + m11 + m22
  399. if trace > 0 then
  400. local s = math.sqrt(1 + trace)
  401. local recip = 0.5 / s
  402. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  403. else
  404. local i = 0
  405. if m00 < m11 then
  406. i = 1
  407. end
  408. if m22 > (i == 0 and m00 or m11) then
  409. i = 2
  410. end
  411. if i == 0 then
  412. local s = math.sqrt(m00 - m11 - m22 + 1)
  413. local recip = 0.5 / s
  414. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  415. elseif i == 1 then
  416. local s = math.sqrt(m11 - m22 - m00 + 1)
  417. local recip = 0.5 / s
  418. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  419. elseif i == 2 then
  420. local s = math.sqrt(m22 - m00 - m11 + 1)
  421. local recip = 0.5 / s
  422. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  423. end
  424. end
  425. end
  426. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  427. local xs, ys, zs = x + x, y + y, z + z
  428. local wx, wy, wz = w * xs, w * ys, w * zs
  429. local xx = x * xs
  430. local xy = x * ys
  431. local xz = x * zs
  432. local yy = y * ys
  433. local yz = y * zs
  434. local zz = z * zs
  435. 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))
  436. end
  437. function QuaternionSlerp(a, b, t)
  438. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  439. local startInterp, finishInterp
  440. if cosTheta >= 1.0E-4 then
  441. if 1 - cosTheta > 1.0E-4 then
  442. local theta = math.acos(cosTheta)
  443. local invSinTheta = 1 / Sin(theta)
  444. startInterp = Sin((1 - t) * theta) * invSinTheta
  445. finishInterp = Sin(t * theta) * invSinTheta
  446. else
  447. startInterp = 1 - t
  448. finishInterp = t
  449. end
  450. elseif 1 + cosTheta > 1.0E-4 then
  451. local theta = math.acos(-cosTheta)
  452. local invSinTheta = 1 / Sin(theta)
  453. startInterp = Sin((t - 1) * theta) * invSinTheta
  454. finishInterp = Sin(t * theta) * invSinTheta
  455. else
  456. startInterp = t - 1
  457. finishInterp = t
  458. end
  459. 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
  460. end
  461. function rayCast(Position, Direction, Range, Ignore)
  462. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  463. end
  464. local RbxUtility = LoadLibrary("RbxUtility")
  465. local Create = RbxUtility.Create
  466.  
  467. function getRegion(point,range,ignore)
  468. return workspace:FindPartsInRegion3WithIgnoreList(Region3.new(point-Vector3.new(1,1,1)*range/2,point+Vector3.new(1,1,1)*range/2),ignore,100)
  469. end
  470.  
  471. function GetTorso(char)
  472. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  473. end
  474.  
  475. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  476. -------------------------------------------------------
  477. --Start Damage Function--
  478. -------------------------------------------------------
  479. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  480. if hit.Parent == nil then
  481. return
  482. end
  483. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  484. for _, v in pairs(hit.Parent:children()) do
  485. if v:IsA("Humanoid") then
  486. h = v
  487. end
  488. end
  489. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  490.  
  491. hit.Parent:FindFirstChild("Head"):BreakJoints()
  492. end
  493.  
  494. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  495. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  496. if hit.Parent.DebounceHit.Value == true then
  497. return
  498. end
  499. end
  500. if insta == true then
  501. hit.Parent:FindFirstChild("Head"):BreakJoints()
  502. end
  503. local c = Create("ObjectValue"){
  504. Name = "creator",
  505. Value = game:service("Players").LocalPlayer,
  506. Parent = h,
  507. }
  508. game:GetService("Debris"):AddItem(c, .5)
  509. if HitSound ~= nil and HitPitch ~= nil then
  510. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  511. end
  512. local Damage = math.random(minim, maxim)
  513. local blocked = false
  514. local block = hit.Parent:findFirstChild("Block")
  515. if block ~= nil then
  516. if block.className == "IntValue" then
  517. if block.Value > 0 then
  518. blocked = true
  519. block.Value = block.Value - 1
  520. print(block.Value)
  521. end
  522. end
  523. end
  524. if blocked == false then
  525. h.Health = h.Health - Damage
  526. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  527. else
  528. h.Health = h.Health - (Damage / 2)
  529. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  530. end
  531. if Type == "Knockdown" then
  532. local hum = hit.Parent.Humanoid
  533. hum.PlatformStand = true
  534. coroutine.resume(coroutine.create(function(HHumanoid)
  535. swait(1)
  536. HHumanoid.PlatformStand = false
  537. end), hum)
  538. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  539. local bodvol = Create("BodyVelocity"){
  540. velocity = angle * knockback,
  541. P = 5000,
  542. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  543. Parent = hit,
  544. }
  545. local rl = Create("BodyAngularVelocity"){
  546. P = 3000,
  547. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  548. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  549. Parent = hit,
  550. }
  551. game:GetService("Debris"):AddItem(bodvol, .5)
  552. game:GetService("Debris"):AddItem(rl, .5)
  553. elseif Type == "Normal" then
  554. local vp = Create("BodyVelocity"){
  555. P = 500,
  556. maxForce = Vector3.new(math.huge, 0, math.huge),
  557. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  558. }
  559. if knockback > 0 then
  560. vp.Parent = hit.Parent.Torso
  561. end
  562. game:GetService("Debris"):AddItem(vp, .5)
  563. elseif Type == "Up" then
  564. local bodyVelocity = Create("BodyVelocity"){
  565. velocity = Vector3.new(0, 20, 0),
  566. P = 5000,
  567. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  568. Parent = hit,
  569. }
  570. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  571. elseif Type == "DarkUp" then
  572. coroutine.resume(coroutine.create(function()
  573. for i = 0, 1, 0.1 do
  574. swait()
  575. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  576. end
  577. end))
  578. local bodyVelocity = Create("BodyVelocity"){
  579. velocity = Vector3.new(0, 20, 0),
  580. P = 5000,
  581. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  582. Parent = hit,
  583. }
  584. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  585. elseif Type == "Snare" then
  586. local bp = Create("BodyPosition"){
  587. P = 2000,
  588. D = 100,
  589. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  590. position = hit.Parent.Torso.Position,
  591. Parent = hit.Parent.Torso,
  592. }
  593. game:GetService("Debris"):AddItem(bp, 1)
  594. elseif Type == "Freeze" then
  595. local BodPos = Create("BodyPosition"){
  596. P = 50000,
  597. D = 1000,
  598. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  599. position = hit.Parent.Torso.Position,
  600. Parent = hit.Parent.Torso,
  601. }
  602. local BodGy = Create("BodyGyro") {
  603. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  604. P = 20e+003,
  605. Parent = hit.Parent.Torso,
  606. cframe = hit.Parent.Torso.CFrame,
  607. }
  608. hit.Parent.Torso.Anchored = true
  609. coroutine.resume(coroutine.create(function(Part)
  610. swait(1.5)
  611. Part.Anchored = false
  612. end), hit.Parent.Torso)
  613. game:GetService("Debris"):AddItem(BodPos, 3)
  614. game:GetService("Debris"):AddItem(BodGy, 3)
  615. end
  616. local debounce = Create("BoolValue"){
  617. Name = "DebounceHit",
  618. Parent = hit.Parent,
  619. Value = true,
  620. }
  621. game:GetService("Debris"):AddItem(debounce, Delay)
  622. c = Create("ObjectValue"){
  623. Name = "creator",
  624. Value = Player,
  625. Parent = h,
  626. }
  627. game:GetService("Debris"):AddItem(c, .5)
  628. end
  629. end
  630. -------------------------------------------------------
  631. --End Damage Function--
  632. -------------------------------------------------------
  633.  
  634. -------------------------------------------------------
  635. --Start Damage Function Customization--
  636. -------------------------------------------------------
  637. function ShowDamage(Pos, Text, Time, Color)
  638. local Rate = (1 / 30)
  639. local Pos = (Pos or Vector3.new(0, 0, 0))
  640. local Text = (Text or "")
  641. local Time = (Time or 2)
  642. local Color = (Color or Color3.new(255, 255, 1))
  643. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  644. EffectPart.Anchored = true
  645. local BillboardGui = Create("BillboardGui"){
  646. Size = UDim2.new(3, 0, 3, 0),
  647. Adornee = EffectPart,
  648. Parent = EffectPart,
  649. }
  650. local TextLabel = Create("TextLabel"){
  651. BackgroundTransparency = 1,
  652. Size = UDim2.new(1, 0, 1, 0),
  653. Text = Text,
  654. Font = "Bodoni",
  655. TextColor3 = Color,
  656. TextScaled = true,
  657. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  658. Parent = BillboardGui,
  659. }
  660. game.Debris:AddItem(EffectPart, (Time))
  661. EffectPart.Parent = game:GetService("Workspace")
  662. delay(0, function()
  663. local Frames = (Time / Rate)
  664. for Frame = 1, Frames do
  665. wait(Rate)
  666. local Percent = (Frame / Frames)
  667. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  668. TextLabel.TextTransparency = Percent
  669. end
  670. if EffectPart and EffectPart.Parent then
  671. EffectPart:Destroy()
  672. end
  673. end)
  674. end
  675. -------------------------------------------------------
  676. --End Damage Function Customization--
  677. -------------------------------------------------------
  678.  
  679. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  680. for _, c in pairs(workspace:children()) do
  681. local hum = c:findFirstChild("Humanoid")
  682. if hum ~= nil then
  683. local head = c:findFirstChild("Head")
  684. if head ~= nil then
  685. local targ = head.Position - Part.Position
  686. local mag = targ.magnitude
  687. if magni >= mag and c.Name ~= plr.Name then
  688. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  689. end
  690. end
  691. end
  692. end
  693. end
  694.  
  695.  
  696. CFuncs = {
  697. Part = {
  698. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  699. local Part = Create("Part")({
  700. Parent = Parent,
  701. Reflectance = Reflectance,
  702. Transparency = Transparency,
  703. CanCollide = false,
  704. Locked = true,
  705. BrickColor = BrickColor.new(tostring(BColor)),
  706. Name = Name,
  707. Size = Size,
  708. Material = Material
  709. })
  710. RemoveOutlines(Part)
  711. return Part
  712. end
  713. },
  714. Mesh = {
  715. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  716. local Msh = Create(Mesh)({
  717. Parent = Part,
  718. Offset = OffSet,
  719. Scale = Scale
  720. })
  721. if Mesh == "SpecialMesh" then
  722. Msh.MeshType = MeshType
  723. Msh.MeshId = MeshId
  724. end
  725. return Msh
  726. end
  727. },
  728. Mesh = {
  729. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  730. local Msh = Create(Mesh)({
  731. Parent = Part,
  732. Offset = OffSet,
  733. Scale = Scale
  734. })
  735. if Mesh == "SpecialMesh" then
  736. Msh.MeshType = MeshType
  737. Msh.MeshId = MeshId
  738. end
  739. return Msh
  740. end
  741. },
  742. Weld = {
  743. Create = function(Parent, Part0, Part1, C0, C1)
  744. local Weld = Create("Weld")({
  745. Parent = Parent,
  746. Part0 = Part0,
  747. Part1 = Part1,
  748. C0 = C0,
  749. C1 = C1
  750. })
  751. return Weld
  752. end
  753. },
  754. Sound = {
  755. Create = function(id, par, vol, pit)
  756. coroutine.resume(coroutine.create(function()
  757. local S = Create("Sound")({
  758. Volume = vol,
  759. Pitch = pit or 1,
  760. SoundId = id,
  761. Parent = par or workspace
  762. })
  763. wait()
  764. S:play()
  765. game:GetService("Debris"):AddItem(S, 6)
  766. end))
  767. end
  768. },
  769. ParticleEmitter = {
  770. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  771. local fp = Create("ParticleEmitter")({
  772. Parent = Parent,
  773. Color = ColorSequence.new(Color1, Color2),
  774. LightEmission = LightEmission,
  775. Size = Size,
  776. Texture = Texture,
  777. Transparency = Transparency,
  778. ZOffset = ZOffset,
  779. Acceleration = Accel,
  780. Drag = Drag,
  781. LockedToPart = LockedToPart,
  782. VelocityInheritance = VelocityInheritance,
  783. EmissionDirection = EmissionDirection,
  784. Enabled = Enabled,
  785. Lifetime = LifeTime,
  786. Rate = Rate,
  787. Rotation = Rotation,
  788. RotSpeed = RotSpeed,
  789. Speed = Speed,
  790. VelocitySpread = VelocitySpread
  791. })
  792. return fp
  793. end
  794. }
  795. }
  796. function RemoveOutlines(part)
  797. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  798. end
  799. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  800. local Part = Create("Part")({
  801. formFactor = FormFactor,
  802. Parent = Parent,
  803. Reflectance = Reflectance,
  804. Transparency = Transparency,
  805. CanCollide = false,
  806. Locked = true,
  807. BrickColor = BrickColor.new(tostring(BColor)),
  808. Name = Name,
  809. Size = Size,
  810. Material = Material
  811. })
  812. RemoveOutlines(Part)
  813. return Part
  814. end
  815. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  816. local Msh = Create(Mesh)({
  817. Parent = Part,
  818. Offset = OffSet,
  819. Scale = Scale
  820. })
  821. if Mesh == "SpecialMesh" then
  822. Msh.MeshType = MeshType
  823. Msh.MeshId = MeshId
  824. end
  825. return Msh
  826. end
  827. function CreateWeld(Parent, Part0, Part1, C0, C1)
  828. local Weld = Create("Weld")({
  829. Parent = Parent,
  830. Part0 = Part0,
  831. Part1 = Part1,
  832. C0 = C0,
  833. C1 = C1
  834. })
  835. return Weld
  836. end
  837.  
  838.  
  839. -------------------------------------------------------
  840. --Start Effect Function--
  841. -------------------------------------------------------
  842. EffectModel = Instance.new("Model", char)
  843. Effects = {
  844. Block = {
  845. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  846. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  847. prt.Anchored = true
  848. prt.CFrame = cframe
  849. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  850. game:GetService("Debris"):AddItem(prt, 10)
  851. if Type == 1 or Type == nil then
  852. table.insert(Effects, {
  853. prt,
  854. "Block1",
  855. delay,
  856. x3,
  857. y3,
  858. z3,
  859. msh
  860. })
  861. elseif Type == 2 then
  862. table.insert(Effects, {
  863. prt,
  864. "Block2",
  865. delay,
  866. x3,
  867. y3,
  868. z3,
  869. msh
  870. })
  871. else
  872. table.insert(Effects, {
  873. prt,
  874. "Block3",
  875. delay,
  876. x3,
  877. y3,
  878. z3,
  879. msh
  880. })
  881. end
  882. end
  883. },
  884. Sphere = {
  885. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  886. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  887. prt.Anchored = true
  888. prt.CFrame = cframe
  889. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  890. game:GetService("Debris"):AddItem(prt, 10)
  891. table.insert(Effects, {
  892. prt,
  893. "Cylinder",
  894. delay,
  895. x3,
  896. y3,
  897. z3,
  898. msh
  899. })
  900. end
  901. },
  902. Cylinder = {
  903. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  904. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  905. prt.Anchored = true
  906. prt.CFrame = cframe
  907. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  908. game:GetService("Debris"):AddItem(prt, 10)
  909. table.insert(Effects, {
  910. prt,
  911. "Cylinder",
  912. delay,
  913. x3,
  914. y3,
  915. z3,
  916. msh
  917. })
  918. end
  919. },
  920. Wave = {
  921. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  922. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  923. prt.Anchored = true
  924. prt.CFrame = cframe
  925. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  926. game:GetService("Debris"):AddItem(prt, 10)
  927. table.insert(Effects, {
  928. prt,
  929. "Cylinder",
  930. delay,
  931. x3 / 60,
  932. y3 / 60,
  933. z3 / 60,
  934. msh
  935. })
  936. end
  937. },
  938. Ring = {
  939. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  940. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  941. prt.Anchored = true
  942. prt.CFrame = cframe
  943. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  944. game:GetService("Debris"):AddItem(prt, 10)
  945. table.insert(Effects, {
  946. prt,
  947. "Cylinder",
  948. delay,
  949. x3,
  950. y3,
  951. z3,
  952. msh
  953. })
  954. end
  955. },
  956. Break = {
  957. Create = function(brickcolor, cframe, x1, y1, z1)
  958. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  959. prt.Anchored = true
  960. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  961. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  962. local num = math.random(10, 50) / 1000
  963. game:GetService("Debris"):AddItem(prt, 10)
  964. table.insert(Effects, {
  965. prt,
  966. "Shatter",
  967. num,
  968. prt.CFrame,
  969. math.random() - math.random(),
  970. 0,
  971. math.random(50, 100) / 100
  972. })
  973. end
  974. },
  975. Spiral = {
  976. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  977. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  978. prt.Anchored = true
  979. prt.CFrame = cframe
  980. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  981. game:GetService("Debris"):AddItem(prt, 10)
  982. table.insert(Effects, {
  983. prt,
  984. "Cylinder",
  985. delay,
  986. x3,
  987. y3,
  988. z3,
  989. msh
  990. })
  991. end
  992. },
  993. Push = {
  994. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  995. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  996. prt.Anchored = true
  997. prt.CFrame = cframe
  998. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  999. game:GetService("Debris"):AddItem(prt, 10)
  1000. table.insert(Effects, {
  1001. prt,
  1002. "Cylinder",
  1003. delay,
  1004. x3,
  1005. y3,
  1006. z3,
  1007. msh
  1008. })
  1009. end
  1010. }
  1011. }
  1012. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  1013. local fp = IT("Part")
  1014. fp.formFactor = formfactor
  1015. fp.Parent = parent
  1016. fp.Reflectance = reflectance
  1017. fp.Transparency = transparency
  1018. fp.CanCollide = false
  1019. fp.Locked = true
  1020. fp.BrickColor = brickcolor
  1021. fp.Name = name
  1022. fp.Size = size
  1023. fp.Position = tors.Position
  1024. RemoveOutlines(fp)
  1025. fp.Material = "SmoothPlastic"
  1026. fp:BreakJoints()
  1027. return fp
  1028. end
  1029.  
  1030. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1031. local mesh = IT(Mesh)
  1032. mesh.Parent = part
  1033. if Mesh == "SpecialMesh" then
  1034. mesh.MeshType = meshtype
  1035. if meshid ~= "nil" then
  1036. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  1037. end
  1038. end
  1039. mesh.Offset = offset
  1040. mesh.Scale = scale
  1041. return mesh
  1042. end
  1043.  
  1044. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  1045. local type = type
  1046. local rng = Instance.new("Part", char)
  1047. rng.Anchored = true
  1048. rng.BrickColor = color
  1049. rng.CanCollide = false
  1050. rng.FormFactor = 3
  1051. rng.Name = "Ring"
  1052. rng.Material = "Neon"
  1053. rng.Size = Vector3.new(1, 1, 1)
  1054. rng.Transparency = 0
  1055. rng.TopSurface = 0
  1056. rng.BottomSurface = 0
  1057. rng.CFrame = pos
  1058. local rngm = Instance.new("SpecialMesh", rng)
  1059. rngm.MeshType = MType
  1060. rngm.Scale = scale
  1061. local scaler2 = 1
  1062. if type == "Add" then
  1063. scaler2 = 1 * value
  1064. elseif type == "Divide" then
  1065. scaler2 = 1 / value
  1066. end
  1067. coroutine.resume(coroutine.create(function()
  1068. for i = 0, 10 / bonuspeed, 0.1 do
  1069. swait()
  1070. if type == "Add" then
  1071. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1072. elseif type == "Divide" then
  1073. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1074. end
  1075. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1076. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  1077. end
  1078. rng:Destroy()
  1079. end))
  1080. end
  1081.  
  1082. function Eviscerate(dude)
  1083. if dude.Name ~= char then
  1084. local bgf = IT("BodyGyro", dude.Head)
  1085. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1086. local val = IT("BoolValue", dude)
  1087. val.Name = "IsHit"
  1088. local ds = coroutine.wrap(function()
  1089. dude:WaitForChild("Head"):BreakJoints()
  1090. wait(0.5)
  1091. target = nil
  1092. coroutine.resume(coroutine.create(function()
  1093. for i, v in pairs(dude:GetChildren()) do
  1094. if v:IsA("Accessory") then
  1095. v:Destroy()
  1096. end
  1097. if v:IsA("Humanoid") then
  1098. v:Destroy()
  1099. end
  1100. if v:IsA("CharacterMesh") then
  1101. v:Destroy()
  1102. end
  1103. if v:IsA("Model") then
  1104. v:Destroy()
  1105. end
  1106. if v:IsA("Part") or v:IsA("MeshPart") then
  1107. for x, o in pairs(v:GetChildren()) do
  1108. if o:IsA("Decal") then
  1109. o:Destroy()
  1110. end
  1111. end
  1112. coroutine.resume(coroutine.create(function()
  1113. v.Material = "Neon"
  1114. v.CanCollide = false
  1115. local PartEmmit1 = IT("ParticleEmitter", reye)
  1116. PartEmmit1.LightEmission = 1
  1117. PartEmmit1.Texture = "rbxassetid://284205403"
  1118. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1119. PartEmmit1.Rate = 150
  1120. PartEmmit1.Lifetime = NumberRange.new(1)
  1121. PartEmmit1.Size = NumberSequence.new({
  1122. NumberSequenceKeypoint.new(0, 0.75, 0),
  1123. NumberSequenceKeypoint.new(1, 0, 0)
  1124. })
  1125. PartEmmit1.Transparency = NumberSequence.new({
  1126. NumberSequenceKeypoint.new(0, 0, 0),
  1127. NumberSequenceKeypoint.new(1, 1, 0)
  1128. })
  1129. PartEmmit1.Speed = NumberRange.new(0, 0)
  1130. PartEmmit1.VelocitySpread = 30000
  1131. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  1132. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  1133. local BodPoss = IT("BodyPosition", v)
  1134. BodPoss.P = 3000
  1135. BodPoss.D = 1000
  1136. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1137. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1138. v.Color = maincolor.Color
  1139. coroutine.resume(coroutine.create(function()
  1140. for i = 0, 49 do
  1141. swait(1)
  1142. v.Transparency = v.Transparency + 0.08
  1143. end
  1144. wait(0.5)
  1145. PartEmmit1.Enabled = false
  1146. wait(3)
  1147. v:Destroy()
  1148. dude:Destroy()
  1149. end))
  1150. end))
  1151. end
  1152. end
  1153. end))
  1154. end)
  1155. ds()
  1156. end
  1157. end
  1158.  
  1159. function FindNearestHead(Position, Distance, SinglePlayer)
  1160. if SinglePlayer then
  1161. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1162. end
  1163. local List = {}
  1164. for i, v in pairs(workspace:GetChildren()) do
  1165. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  1166. table.insert(List, v)
  1167. end
  1168. end
  1169. return List
  1170. end
  1171.  
  1172. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  1173. local type = type
  1174. local rng = Instance.new("Part", char)
  1175. rng.Anchored = true
  1176. rng.BrickColor = color
  1177. rng.CanCollide = false
  1178. rng.FormFactor = 3
  1179. rng.Name = "Ring"
  1180. rng.Material = "Neon"
  1181. rng.Size = Vector3.new(1, 1, 1)
  1182. rng.Transparency = 0
  1183. rng.TopSurface = 0
  1184. rng.BottomSurface = 0
  1185. rng.CFrame = pos
  1186. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1187. local rngm = Instance.new("SpecialMesh", rng)
  1188. rngm.MeshType = MType
  1189. rngm.Scale = Vector3.new(x1, y1, z1)
  1190. local scaler2 = 1
  1191. local speeder = FastSpeed
  1192. if type == "Add" then
  1193. scaler2 = 1 * value
  1194. elseif type == "Divide" then
  1195. scaler2 = 1 / value
  1196. end
  1197. coroutine.resume(coroutine.create(function()
  1198. for i = 0, 10 / bonuspeed, 0.1 do
  1199. swait()
  1200. if type == "Add" then
  1201. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1202. elseif type == "Divide" then
  1203. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1204. end
  1205. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1206. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1207. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1208. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1209. end
  1210. rng:Destroy()
  1211. end))
  1212. end
  1213.  
  1214. function SoulSteal(dude)
  1215. if dude.Name ~= char then
  1216. local bgf = IT("BodyGyro", dude.Head)
  1217. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1218. local val = IT("BoolValue", dude)
  1219. val.Name = "IsHit"
  1220. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1221. local soulst = coroutine.wrap(function()
  1222. local soul = Instance.new("Part",dude)
  1223. soul.Size = Vector3.new(1,1,1)
  1224. soul.CanCollide = false
  1225. soul.Anchored = false
  1226. soul.Position = torso.Position
  1227. soul.Transparency = 1
  1228. local PartEmmit1 = IT("ParticleEmitter", soul)
  1229. PartEmmit1.LightEmission = 1
  1230. PartEmmit1.Texture = "rbxassetid://569507414"
  1231. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1232. PartEmmit1.Rate = 250
  1233. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1234. PartEmmit1.Size = NumberSequence.new({
  1235. NumberSequenceKeypoint.new(0, 1, 0),
  1236. NumberSequenceKeypoint.new(1, 0, 0)
  1237. })
  1238. PartEmmit1.Transparency = NumberSequence.new({
  1239. NumberSequenceKeypoint.new(0, 0, 0),
  1240. NumberSequenceKeypoint.new(1, 1, 0)
  1241. })
  1242. PartEmmit1.Speed = NumberRange.new(0, 0)
  1243. PartEmmit1.VelocitySpread = 30000
  1244. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1245. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1246. local BodPoss = IT("BodyPosition", soul)
  1247. BodPoss.P = 3000
  1248. BodPoss.D = 1000
  1249. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1250. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1251. wait(1.6)
  1252. soul.Touched:connect(function(hit)
  1253. if hit.Parent == char then
  1254. soul:Destroy()
  1255. end
  1256. end)
  1257. wait(1.2)
  1258. while soul do
  1259. swait()
  1260. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1261. BodPoss.Position = tors.Position
  1262. end
  1263. end)
  1264. soulst()
  1265. end
  1266. end
  1267. function FaceMouse()
  1268. local Cam = workspace.CurrentCamera
  1269. return {
  1270. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1271. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1272. }
  1273. end
  1274.  
  1275. BTAUNT = Instance.new("Sound", Head)
  1276. BTAUNT.SoundId = "http://www.roblox.com/asset/?id=6027340180"
  1277. BTAUNT.Volume = 2
  1278. BTAUNT.Pitch = 1
  1279. BTAUNT.Looped = true
  1280. BTAUNT:Play()
  1281.  
  1282. BTAUNT2 = Instance.new("Sound", char)
  1283. BTAUNT2.SoundId = "http://www.roblox.com/asset/?id=0"
  1284. BTAUNT2.Volume = 20
  1285. BTAUNT2.Pitch = 1
  1286. BTAUNT2.Looped = true
  1287.  
  1288. BTAUNT3 = Instance.new("Sound", char)
  1289. BTAUNT3.SoundId = "http://www.roblox.com/asset/?id=1090127517"
  1290. BTAUNT3.Volume = 2
  1291. BTAUNT3.Pitch = 1
  1292. BTAUNT3.Looped = true
  1293.  
  1294. BTAUNT4 = Instance.new("Sound", char.Torso)
  1295. BTAUNT4.SoundId = "http://www.roblox.com/asset/?id=1470848774"
  1296. BTAUNT4.Volume = 5
  1297. BTAUNT4.Pitch = 3
  1298. BTAUNT4.Looped = true
  1299.  
  1300. BTAUNT5 = Instance.new("Sound", char.Torso)
  1301. BTAUNT5.SoundId = "http://www.roblox.com/asset/?id=1470848774"
  1302. BTAUNT5.Volume = 5
  1303. BTAUNT5.Pitch = 1
  1304. BTAUNT5.Looped = true
  1305.  
  1306. TEST = Instance.new("Sound", tors)
  1307. TEST.SoundId = "http://www.roblox.com/asset/?id=636494529"
  1308. TEST.Volume = 25
  1309. TEST.Pitch = 1
  1310. TEST.Looped = false
  1311. -------------------------------------------------------
  1312. --End Effect Function--
  1313. -------------------------------------------------------
  1314.  
  1315. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  1316. local NEWMESH = IT(MESH)
  1317. if MESH == "SpecialMesh" then
  1318. NEWMESH.MeshType = MESHTYPE
  1319. if MESHID ~= "nil" and MESHID ~= "" then
  1320. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  1321. end
  1322. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  1323. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  1324. end
  1325. end
  1326. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  1327. NEWMESH.Scale = SCALE
  1328. NEWMESH.Parent = PARENT
  1329. return NEWMESH
  1330. end
  1331.  
  1332. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  1333. local NEWPART = IT("Part")
  1334. NEWPART.formFactor = FORMFACTOR
  1335. NEWPART.Reflectance = REFLECTANCE
  1336. NEWPART.Transparency = TRANSPARENCY
  1337. NEWPART.CanCollide = false
  1338. NEWPART.Locked = true
  1339. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  1340. NEWPART.Name = NAME
  1341. NEWPART.Size = SIZE
  1342. NEWPART.Position = Torso.Position
  1343. NEWPART.Material = MATERIAL
  1344. NEWPART:BreakJoints()
  1345. NEWPART.Parent = PARENT
  1346. return NEWPART
  1347. end
  1348.  
  1349. function MakeForm(PART,TYPE)
  1350. local MSH = nil
  1351. if TYPE == "Cyl" then
  1352. MSH = IT("CylinderMesh",PART)
  1353. elseif TYPE == "Ball" then
  1354. MSH = IT("SpecialMesh",PART)
  1355. MSH.MeshType = "Sphere"
  1356. elseif TYPE == "Wedge" then
  1357. MSH = IT("SpecialMesh",PART)
  1358. MSH.MeshType = "Wedge"
  1359. elseif TYPE == "Block" then
  1360. MSH = IT("SpecialMesh",PART)
  1361. MSH.MeshType = "Brick"
  1362. end
  1363. return MSH
  1364. end
  1365.  
  1366. function Cso(ID, PARENT, VOLUME, PITCH)
  1367. local NSound = nil
  1368. coroutine.resume(coroutine.create(function()
  1369. NSound = IT("Sound", PARENT)
  1370. NSound.Volume = VOLUME
  1371. NSound.Pitch = PITCH
  1372. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1373. swait()
  1374. NSound:play()
  1375. game:GetService("Debris"):AddItem(NSound, 50)
  1376. end))
  1377. return NSound
  1378. end
  1379. function CameraEnshaking(Length, Intensity)
  1380. coroutine.resume(coroutine.create(function()
  1381. local intensity = 1 * Intensity
  1382. local rotM = 0.01 * Intensity
  1383. for i = 0, Length, 0.1 do
  1384. swait()
  1385. intensity = intensity - 0.05 * Intensity / Length
  1386. rotM = rotM - 5.0E-4 * Intensity / Length
  1387. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1388. 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)
  1389. end
  1390. hum.CameraOffset = Vector3.new(0, 0, 0)
  1391. end))
  1392. end
  1393.  
  1394.  
  1395. function Sink(position,radius)
  1396. for i,v in ipairs(workspace:GetChildren()) do
  1397. if v:FindFirstChild("Hit2By"..plr.Name) == nil then
  1398. local body = v:GetChildren()
  1399. for part = 1, #body do
  1400. if(v:FindFirstChild("Hit2By"..plr.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= char) then
  1401. if(body[part].Position - position).Magnitude < radius then
  1402. if v.ClassName == "Model" then
  1403. v:FindFirstChildOfClass("Humanoid").Name = "Humanoid"
  1404. if v:FindFirstChild("Humanoid") then
  1405. local defence = Instance.new("BoolValue",v)
  1406. defence.Name = ("Hit2By"..plr.Name)
  1407. if v.Humanoid.Health ~= 0 then
  1408. local TORS = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  1409. if TORS ~= nil then
  1410. local HITFLOOR2, HITPOS2 = Raycast(TORS.Position, (CF(TORS.Position, TORS.Position + Vector3.new(0, -1, 0))).lookVector, 25 * TORS.Size.Y/2, v)
  1411. coroutine.resume(coroutine.create(function()
  1412. if HITFLOOR2 ~= nil then
  1413. TORS.Anchored = true
  1414. local Hole2 = CreatePart(3, EffectModel, "Neon", 0, 0, "Really black", "Hole", Vector3.new(TORS.Size.X*4,0,TORS.Size.X*4))
  1415. Hole2.Color = Color3.new(0,0,0)
  1416. local MESH = MakeForm(Hole2,"Cyl")
  1417. MESH.Scale = Vector3.new(0,1,0)
  1418. Hole2.CFrame = CF(HITPOS2)
  1419. for i = 1, 10 do
  1420. swait()
  1421. MESH.Scale = MESH.Scale + Vector3.new(0.1,0,0.1)
  1422. end
  1423. --Cso("160440683", v:FindFirstChild("Head"), 10, .8)
  1424. Cso("154955269", v:FindFirstChild("Head"), 10, 1)
  1425. repeat
  1426. swait()
  1427. TORS.CFrame = TORS.CFrame * CF(0,-0.1,0)
  1428. --MESH.Scale = MESH.Scale + Vector3.new(0,1.6,0)
  1429. until TORS.Position.Y<position.Y-4
  1430. v:remove()
  1431. for i = 1, 10 do
  1432. swait()
  1433. MESH.Scale = MESH.Scale - Vector3.new(0.1,0,0.1)
  1434. end
  1435. Hole2:remove()
  1436. end
  1437. end))
  1438. end
  1439. end
  1440. end
  1441. end
  1442. --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1443. end
  1444. end
  1445. end
  1446. end
  1447. end
  1448. end
  1449. function Trail(Part)
  1450. local TRAIL = Part:Clone()
  1451. TRAIL.CanCollide = false
  1452. TRAIL.Anchored = true
  1453. TRAIL.Parent = EffectModel
  1454. TRAIL.Name = "Trail"
  1455. local TRANS = Part.Transparency
  1456. coroutine.resume(coroutine.create(function()
  1457. for i = 1, 20 do
  1458. swait()
  1459. TRAIL.Transparency = TRAIL.Transparency + ((1-TRANS)/20)
  1460. end
  1461. TRAIL:remove()
  1462. end))
  1463. end
  1464. function getRegion(point,range,ignore)
  1465. return workspace:FindPartsInRegion3WithIgnoreList(Region3.new(point-Vector3.new(1,1,1)*range/2,point+Vector3.new(1,1,1)*range/2),ignore,100)
  1466. end
  1467.  
  1468. function GetTorso(char)
  1469. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  1470. end
  1471.  
  1472. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  1473.  
  1474.  
  1475. function CreateSound(ID, PARENT, VOLUME, PITCH)
  1476. local NSound = nil
  1477. coroutine.resume(coroutine.create(function()
  1478. NSound = Instance.new("Sound", PARENT)
  1479. NSound.Volume = VOLUME
  1480. NSound.Pitch = PITCH
  1481. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1482. swait()
  1483. NSound:play()
  1484. game:GetService("Debris"):AddItem(NSound, 10)
  1485. end))
  1486. return NSound
  1487. end
  1488.  
  1489. -------------------------------------------------------
  1490. --End Important Functions--
  1491. -------------------------------------------------------
  1492.  
  1493.  
  1494.  
  1495.  
  1496.  
  1497. -------------------------------------------------------
  1498. --Start Customization--
  1499. -------------------------------------------------------
  1500. local Player_Size = 1
  1501. if Player_Size ~= 1 then
  1502. root.Size = root.Size * Player_Size
  1503. tors.Size = tors.Size * Player_Size
  1504. hed.Size = hed.Size * Player_Size
  1505. ra.Size = ra.Size * Player_Size
  1506. la.Size = la.Size * Player_Size
  1507. rl.Size = rl.Size * Player_Size
  1508. ll.Size = ll.Size * Player_Size
  1509. ----------------------------------------------------------------------------------
  1510. rootj.Parent = root
  1511. neck.Parent = tors
  1512. RW.Parent = tors
  1513. LW.Parent = tors
  1514. RH.Parent = HumanoidRootPart
  1515. LH.Parent = HumanoidRootPart
  1516. ----------------------------------------------------------------------------------
  1517. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1518. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1519. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1520. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1521. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1522. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1523. ----------------------------------------------------------------------------------
  1524. 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))
  1525. 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))
  1526. 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))
  1527. 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))
  1528. --hat.Parent = Character
  1529. end
  1530. ----------------------------------------------------------------------------------
  1531. ----------------------------------------------------------------------------------
  1532. local equipped = false
  1533. local idle = 0
  1534. local change = 1
  1535. local val = 0
  1536. local toim = 0
  1537. local idleanim = 0.4
  1538. local sine = 0
  1539. local Sit = 1
  1540. ----------------------------------------------------------------------------------
  1541. hum.WalkSpeed = 24
  1542. hum.JumpPower = 57
  1543. hum.Animator.Parent = nil
  1544. ----------------------------------------------------------------------------------
  1545.  
  1546.  
  1547.  
  1548. -------------------------------------------------------
  1549. --End Customization--
  1550. -------------------------------------------------------
  1551.  
  1552. --[[local naeeym2 = Instance.new("BillboardGui",char)
  1553. naeeym2.AlwaysOnTop = true
  1554. naeeym2.Size = UDim2.new(5,35,2,15)
  1555. naeeym2.StudsOffset = Vector3.new(0, 3.5, 0)
  1556. naeeym2.Adornee = hed
  1557. naeeym2.Name = "Name"
  1558. --naeeym2.PlayerToHideFrom = Player
  1559. local tecks2 = Instance.new("TextLabel",naeeym2)
  1560. tecks2.BackgroundTransparency = 1
  1561. tecks2.TextScaled = true
  1562. tecks2.BorderSizePixel = 0
  1563. tecks2.Text = "Fight Me"
  1564. tecks2.Font = Enum.Font.Bodoni
  1565. tecks2.TextSize = 30
  1566. tecks2.TextStrokeTransparency = 0
  1567. tecks2.TextColor3 = Color3.new(0, 0, 0)
  1568. tecks2.TextStrokeColor3 = Color3.new(1, 1, 1)
  1569. tecks2.Size = UDim2.new(1,0,0.5,0)
  1570. tecks2.Parent = naeeym2]]
  1571. ----------------------------------------------------------------------------------
  1572. local AddInstance = function(Object, ...)
  1573. local Obj = Instance.new(Object)
  1574. for i,v in next,(...) do
  1575. Obj[i] = v
  1576. end
  1577. return Obj
  1578. end
  1579. ----------------------------------------------------
  1580. -------------------------------------------------------
  1581.  
  1582. -------------------------------------------------------
  1583. --Start Attacks N Stuff--
  1584. -------------------------------------------------------
  1585.  
  1586. function createrotatingpart(point,offset,obj,speed)
  1587.  
  1588. --local Point = CFrame.new(0,10,0) -- The point the object will rotate around
  1589. --local Offset = CFrame.new(0,0,20) -- the offset of the part (distance from it)
  1590. local Point = point
  1591. local Offset = offset
  1592. local speed = speed or 1
  1593. local Object = obj
  1594. Object.Anchored = true
  1595. coroutine.resume(coroutine.create(function()
  1596. while true do
  1597.  
  1598. -- Each iteration, we're making the Object's CFrame equal to the Point's CFrame, multiplied by the rotational CFrame, then again multiplied by the offset.
  1599.  
  1600. -- "math.rad" simply converts it's numeric argument to radians.
  1601.  
  1602. for i = 1,360,speed do
  1603. Object.CFrame = Point * CFrame.Angles(0,math.rad(i),0) * Offset
  1604. wait()
  1605. end
  1606. end
  1607. end))
  1608. end
  1609. function Dash()
  1610. attack = true
  1611. CreateSound("299058146", Head, 10, 2)
  1612. for i = 0, 5, 0.1 do
  1613. swait()
  1614. local ADNum = 1
  1615. HatWeld.C1 = clerp(HatWeld.C1, CF(0,-0.3* Player_Size,0) * angles(Rad(math.random(-20,20)), Rad(math.random(-20,20)), Rad(math.random(-20,20))), 0.35)
  1616. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.2* Cos(sine / 8 +ADNum* math.cos(sine / 8*2))* Player_Size) * angles(Rad(30) + Rad(math.random(-20,20)), Rad(0 + 2 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0)), 0.35)
  1617. RH.C0 = clerp(RH.C0, CF(0.5* Player_Size, -1 * Player_Size - 0 * Player_Size * Cos(sine / 8 +ADNum* math.cos(sine / 8*2)), -0.2 * Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-4.5 + 0 * Sin(sine / 40)), Rad(0), Rad(0 - 1.5 * Sin(sine / 40))), 0.35)
  1618. LH.C0 = clerp(LH.C0, CF(-0.5* Player_Size, -1 * Player_Size - 0 * Player_Size * Cos(sine / 8 +ADNum* math.cos(sine / 8*2)), -0.2 * Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-4.5 - 0 * Sin(sine / 40)), Rad(0), Rad(0 + 2.5 * Sin(sine / 40))), 0.35)
  1619. neck.C0 = clerp(tors.Neck.C0, necko* CF(0 * Cos(sine / 25), 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-30 - 2.5 * Sin(sine / 20)), Rad(math.random(-20,20)), Rad(0)), 0.35)
  1620.  
  1621. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.55 + 0.05 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))* Player_Size, 0.6* Player_Size) * angles(Rad(-20), Rad(0 + 0 * Sin(sine / 10)), Rad(1 + 5 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2)))), 0.35)
  1622. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.55 + 0.05 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))* Player_Size, 0.6* Player_Size) * angles(Rad(-20), Rad(0 + 0 * Sin(sine / 10)), Rad(-1 + -5 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2)))), 0.35)
  1623. end
  1624. CreateSound("2854651458", Head, 10, 1)
  1625. CreateSound("2854651458", Head, 10, 0.9)
  1626. local Bod = Instance.new("BodyPosition",RootPart)
  1627. Bod.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1628. Bod.Position = RootPart.CFrame*CFrame.new(0,0,-250).p
  1629. for i = 0, 5, 0.1 do
  1630. swait()
  1631. local ADNum = 1
  1632. HatWeld.C1 = clerp(HatWeld.C1, CF(0,-0.3* Player_Size,0) * angles(Rad(math.random(-20,20)), Rad(math.random(-20,20)), Rad(math.random(-20,20))), 0.35)
  1633. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.2* Cos(sine / 8 +ADNum* math.cos(sine / 8*2))* Player_Size) * angles(Rad(90) + Rad(math.random(-20,20)), Rad(0 + 2 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0)), 0.35)
  1634. RH.C0 = clerp(RH.C0, CF(0.5* Player_Size, -1 * Player_Size - 0 * Player_Size * Cos(sine / 8 +ADNum* math.cos(sine / 8*2)), -0.2 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(-14.5 + 0 * Sin(sine / 40)), Rad(0), Rad(-90 - 1.5 * Sin(sine / 40))), 0.35)
  1635. LH.C0 = clerp(LH.C0, CF(-0.5* Player_Size, -1 * Player_Size - 0 * Player_Size * Cos(sine / 8 +ADNum* math.cos(sine / 8*2)), -0.5 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(-14.5 - 0 * Sin(sine / 40)), Rad(0), Rad(90 + 2.5 * Sin(sine / 40))), 0.35)
  1636. neck.C0 = clerp(tors.Neck.C0, necko* CF(0 * Cos(sine / 25), 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-50 - 2.5 * Sin(sine / 20)), Rad(math.random(-20,20)), Rad(0)), 0.35)
  1637.  
  1638. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.55 + 0.05 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))* Player_Size, 0.6* Player_Size) * angles(Rad(-20), Rad(0 + 0 * Sin(sine / 10)), Rad(1 + 5 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2)))), 0.35)
  1639. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.55 + 0.05 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))* Player_Size, 0.6* Player_Size) * angles(Rad(-20), Rad(0 + 0 * Sin(sine / 10)), Rad(-1 + -5 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2)))), 0.35)
  1640. end
  1641. Bod:Remove()
  1642. attack = false
  1643. end
  1644.  
  1645. function KickBoom()
  1646.  
  1647. local Sound = Instance.new("Sound",Character.Torso)--136847657
  1648. Sound.SoundId = "rbxassetid://142070127"
  1649. Sound.Pitch = 1
  1650. Sound.Looped = false
  1651. Sound.Volume = 5
  1652. Sound:play()
  1653. local Sound = Instance.new("Sound",Character.Torso)--136847657
  1654. Sound.SoundId = "rbxassetid://169628396"
  1655. Sound.Pitch = 1
  1656. Sound.Looped = false
  1657. Sound.Volume = 5
  1658. Sound:play()
  1659. local effspwn = Instance.new("Part")
  1660. local model = Instance.new("Model")
  1661. game.Debris:AddItem(model, 20)
  1662. model.Name = "smasheffects"
  1663. model.Parent = Character
  1664. effspwn.Name = "spwnr"
  1665. effspwn.Size = Vector3.new(1, 1, 1)
  1666. effspwn.Anchored = true
  1667. effspwn.CanCollide = false
  1668. effspwn.Transparency = 1
  1669. effspwn.CFrame = Head.CFrame * CFrame.Angles(math.rad(180), 0, 0)
  1670. effspwn.Parent = model
  1671.  
  1672.  
  1673. for i = 1, 15 do
  1674. local gtrace = Instance.new("Part",game.Workspace)
  1675. gtrace.BrickColor = BrickColor.new("Grey")
  1676. gtrace.Material = "Slate"
  1677. gtrace.Size = Vector3.new(8,8,8)
  1678. gtrace.Anchored = true
  1679. gtrace.CanCollide = true
  1680. gtrace.CFrame = (Character.HumanoidRootPart.CFrame + Vector3.new(math.random(-20,20),-6,math.random(-20,20))) * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(459)),math.random(0,math.rad(459)),math.random(0,math.rad(459)))
  1681. local gdisp = coroutine.wrap(function()
  1682. wait(5)
  1683. for i = 1, 9 do
  1684. wait(.1)
  1685. gtrace.Transparency = gtrace.Transparency + .1
  1686. end
  1687. gtrace:Destroy()
  1688. end)
  1689. gdisp()
  1690. end
  1691.  
  1692. local H33 = Instance.new("Part",Character)
  1693. H33.Size = Vector3.new(1,1,1)
  1694. H33.BrickColor = BrickColor.new("White")
  1695. H33.CanCollide = false
  1696. H33.Anchored = true
  1697. H33.CFrame = Character.Torso.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(1.55,0,0)
  1698. local H233 = Instance.new("SpecialMesh",H33)
  1699. H233.MeshId = "rbxassetid://3270017"
  1700. local H333 = Instance.new("Part",Character)
  1701. H333.Size = Vector3.new(1,1,1)
  1702. H333.BrickColor = BrickColor.new("White")
  1703. H333.CanCollide = false
  1704. H333.Anchored = true
  1705. H333.CFrame = Character.Torso.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(0,1.55,0)
  1706. local H2333 = Instance.new("SpecialMesh",H333)
  1707. H2333.MeshId = "rbxassetid://3270017"
  1708. local H4 = Instance.new("Part",Character)
  1709. H4.Size = Vector3.new(1,1,1)
  1710. H4.BrickColor = BrickColor.new("White")
  1711. H4.CanCollide = false
  1712. H4.Anchored = true
  1713. H4.CFrame = Character.Torso.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(0,0,1.75)
  1714. local H24 = Instance.new("SpecialMesh",H4)
  1715. H24.MeshId = "rbxassetid://3270017"
  1716. coroutine.resume(coroutine.create(function()
  1717. for i = 1,200 do
  1718. H233.Scale = H233.Scale + Vector3.new(16,16,16)
  1719. H33.Transparency = H33.Transparency + 0.02
  1720. H2333.Scale = H2333.Scale + Vector3.new(17,17,17)
  1721. H333.Transparency = H333.Transparency + 0.02
  1722. H24.Scale = H24.Scale + Vector3.new(17,17,17)
  1723. H4.Transparency = H4.Transparency + 0.02
  1724. wait(0.00000000001)
  1725. end
  1726. end))
  1727.  
  1728. coroutine.resume(coroutine.create(function()
  1729. local shok = Instance.new("Part")
  1730. shok.Name = "shock3"
  1731. shok.BrickColor = BrickColor.new("Really red")
  1732. shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
  1733. shok.Size = Vector3.new(1, 1, 1)
  1734. shok.Anchored = true
  1735. shok.Material = "Neon"
  1736. shok.Transparency = 0.35
  1737. shok.CanCollide = false
  1738. shok.Parent = model
  1739. game.Debris:AddItem(shok, 12)
  1740. local mesh = Instance.new("SpecialMesh")
  1741. mesh.MeshType = "FileMesh"
  1742. mesh.MeshId = "rbxassetid://"
  1743. mesh.Scale = Vector3.new(1, 1, 1)
  1744. mesh.Parent = shok
  1745. for e = 1, 15 do
  1746. wait()
  1747. mesh.Scale = mesh.Scale + Vector3.new(1, 2.6, 1)
  1748. shok.Transparency = shok.Transparency + 0.004
  1749. shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
  1750. shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
  1751. end
  1752. for e = 1, 16 do
  1753. wait()
  1754. mesh.Scale = mesh.Scale + Vector3.new(1, 2, 1)
  1755. shok.Transparency = shok.Transparency + 0.004
  1756. shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
  1757. shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
  1758. end
  1759. for e = 1, 12 do
  1760. wait()
  1761. mesh.Scale = mesh.Scale + Vector3.new(1, 2, 1)
  1762. shok.Transparency = shok.Transparency + 0.06
  1763. shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
  1764. shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
  1765. end
  1766. end))
  1767.  
  1768. local Grab = Instance.new("Part", tors)
  1769. Grab.Size = Vector3.new(3.9,5,3.9)
  1770. Grab.CanCollide = false
  1771. Grab.Anchored=true
  1772. Grab.CFrame = Head.CFrame
  1773. Grab.BrickColor = BrickColor.new("Deep orange")
  1774. Grab.Transparency = 1
  1775. --[[
  1776. local Grabo = Instance.new("Weld",Grab)
  1777. Grabo.Part0 = hed
  1778. Grabo.Part1 = Grab
  1779. Grabo.C0 = CFrame.new(0,-1.5,0)
  1780. ]]
  1781.  
  1782.  
  1783. local Smoke = Instance.new('ParticleEmitter')
  1784. Smoke.Name = "Aura"
  1785. Smoke.Texture = "rbxassetid://275871881"
  1786. Smoke.Parent = Grab
  1787. Smoke.VelocitySpread = 120
  1788. Smoke.LightEmission = 1
  1789. Smoke.Transparency = NumberSequence.new(0.3,1)
  1790. Smoke.Color = ColorSequence.new(Color3.fromRGB(215, 197, 154))
  1791. Smoke.Size = NumberSequence.new(0,15)
  1792. Smoke.LockedToPart = false
  1793. Smoke.Lifetime = NumberRange.new(2)
  1794. Smoke.Rate = 0
  1795. Smoke.Speed = NumberRange.new(70)
  1796. Smoke.Rotation = NumberRange.new(-360,360)
  1797. Smoke.EmissionDirection = "Left"
  1798. Smoke.ZOffset = 0
  1799. Smoke.Acceleration = Vector3.new(0,-8.5,0)
  1800. Smoke.Drag = 0.6
  1801. createrotatingpart(char.HumanoidRootPart.CFrame,CFrame.new(0,0,0),Grab,25)
  1802.  
  1803. local Smoke2 = Instance.new('ParticleEmitter')
  1804. Smoke2.Name = "Aura"
  1805. Smoke2.VelocitySpread = 120
  1806. Smoke2.Texture = "rbxassetid://275871881"
  1807. Smoke2.Parent = Grab
  1808. Smoke2.LightEmission = 1
  1809. Smoke2.Transparency = NumberSequence.new(0.3,1)
  1810. Smoke2.Color = ColorSequence.new(Color3.fromRGB(215, 197, 154))
  1811. Smoke2.Size = NumberSequence.new(0,15)
  1812. Smoke2.LockedToPart = false
  1813. Smoke2.Lifetime = NumberRange.new(2)
  1814. Smoke2.Rate = 0
  1815. Smoke2.Speed = NumberRange.new(70)
  1816. Smoke2.Rotation = NumberRange.new(-360,360)
  1817. Smoke2.EmissionDirection = "Right"
  1818. Smoke2.ZOffset = 0
  1819. Smoke2.Acceleration = Vector3.new(0,-8.5,0)
  1820. Smoke2.Drag = 0.6
  1821. local Smoke3 = Instance.new('ParticleEmitter')
  1822. Smoke3.Name = "Aura"
  1823. Smoke3.VelocitySpread = 120
  1824. Smoke3.Texture = "rbxassetid://275871881"
  1825. Smoke3.Parent = Grab
  1826. Smoke3.LightEmission = 1
  1827. Smoke3.Transparency = NumberSequence.new(0.3,1)
  1828. Smoke3.Color = ColorSequence.new(Color3.fromRGB(215, 197, 154))
  1829. Smoke3.Size = NumberSequence.new(0,15)
  1830. Smoke3.LockedToPart = false
  1831. Smoke3.Lifetime = NumberRange.new(2)
  1832. Smoke3.Rate = 0
  1833. Smoke3.Speed = NumberRange.new(70)
  1834. Smoke3.Rotation = NumberRange.new(-360,360)
  1835. Smoke3.EmissionDirection = "Front"
  1836. Smoke3.ZOffset = 0
  1837. Smoke3.Acceleration = Vector3.new(0,-8.5,0)
  1838. Smoke3.Drag = 0.6
  1839. local Smoke4 = Instance.new('ParticleEmitter')
  1840. Smoke4.Name = "Aura"
  1841. Smoke4.VelocitySpread = 120
  1842. Smoke4.Texture = "rbxassetid://275871881"
  1843. Smoke4.Parent = Grab
  1844. Smoke4.LightEmission = 1
  1845. Smoke4.Transparency = NumberSequence.new(0.3,1)
  1846. Smoke4.Color = ColorSequence.new(Color3.fromRGB(215, 197, 154))
  1847. Smoke4.Size = NumberSequence.new(0,15)
  1848. Smoke4.LockedToPart = false
  1849. Smoke4.Lifetime = NumberRange.new(2)
  1850. Smoke4.Rate = 0
  1851. Smoke4.Speed = NumberRange.new(70)
  1852. Smoke4.Rotation = NumberRange.new(-360,360)
  1853. Smoke4.EmissionDirection = "Back"
  1854. Smoke4.ZOffset = 0
  1855. Smoke4.Drag = 0.6
  1856. Smoke4.Acceleration = Vector3.new(0,-8.5,0)
  1857. Smoke.Rate = 500
  1858. Smoke2.Rate = 500
  1859. Smoke3.Rate = 500
  1860. Smoke4.Rate = 500
  1861. wait(0.1)
  1862.  
  1863. Smoke.Rate = 0
  1864. Smoke2.Rate = 0
  1865. Smoke3.Rate = 0
  1866. Smoke4.Rate = 0
  1867. end
  1868.  
  1869.  
  1870.  
  1871. -------------------------------------------------------
  1872. --End Attacks N Stuff--
  1873. -------------------------------------------------------
  1874.  
  1875.  
  1876.  
  1877.  
  1878.  
  1879. -------------------------------------------------------
  1880. --Start Damage Function--
  1881. -------------------------------------------------------
  1882.  
  1883.  
  1884. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1885. if hit.Parent == nil then
  1886. return
  1887. end
  1888. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1889. for _, v in pairs(hit.Parent:children()) do
  1890. if v:IsA("Humanoid") then
  1891. h = v
  1892. end
  1893. end
  1894. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  1895.  
  1896. hit.Parent:FindFirstChild("Head"):BreakJoints()
  1897. end
  1898.  
  1899. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1900. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  1901. if hit.Parent.DebounceHit.Value == true then
  1902. return
  1903. end
  1904. end
  1905. if insta == true then
  1906. hit.Parent:FindFirstChild("Head"):BreakJoints()
  1907. end
  1908. local c = Create("ObjectValue"){
  1909. Name = "creator",
  1910. Value = game:service("Players").LocalPlayer,
  1911. Parent = h,
  1912. }
  1913. game:GetService("Debris"):AddItem(c, .5)
  1914. if HitSound ~= nil and HitPitch ~= nil then
  1915. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1916. end
  1917. local Damage = math.random(minim, maxim)
  1918. local blocked = false
  1919. local block = hit.Parent:findFirstChild("Block")
  1920. if block ~= nil then
  1921. if block.className == "IntValue" then
  1922. if block.Value > 0 then
  1923. blocked = true
  1924. block.Value = block.Value - 1
  1925. print(block.Value)
  1926. end
  1927. end
  1928. end
  1929. if blocked == false then
  1930. h.Health = h.Health - Damage
  1931. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  1932. else
  1933. h.Health = h.Health - (Damage / 2)
  1934. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  1935. end
  1936. if Type == "Knockdown" then
  1937. local hum = hit.Parent.Humanoid
  1938. hum.PlatformStand = true
  1939. coroutine.resume(coroutine.create(function(HHumanoid)
  1940. swait(1)
  1941. HHumanoid.PlatformStand = false
  1942. end), hum)
  1943. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  1944. local bodvol = Create("BodyVelocity"){
  1945. velocity = angle * knockback,
  1946. P = 5000,
  1947. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1948. Parent = hit,
  1949. }
  1950. local rl = Create("BodyAngularVelocity"){
  1951. P = 3000,
  1952. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1953. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1954. Parent = hit,
  1955. }
  1956. game:GetService("Debris"):AddItem(bodvol, .5)
  1957. game:GetService("Debris"):AddItem(rl, .5)
  1958. elseif Type == "Normal" then
  1959. local vp = Create("BodyVelocity"){
  1960. P = 500,
  1961. maxForce = Vector3.new(math.huge, 0, math.huge),
  1962. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  1963. }
  1964. if knockback > 0 then
  1965. vp.Parent = hit.Parent.Torso
  1966. end
  1967. game:GetService("Debris"):AddItem(vp, .5)
  1968. elseif Type == "Up" then
  1969. local bodyVelocity = Create("BodyVelocity"){
  1970. velocity = Vector3.new(0, 20, 0),
  1971. P = 5000,
  1972. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1973. Parent = hit,
  1974. }
  1975. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  1976. elseif Type == "DarkUp" then
  1977. coroutine.resume(coroutine.create(function()
  1978. for i = 0, 1, 0.1 do
  1979. swait()
  1980. Effects.Block.Create(BrickColor.new("Royal purple"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  1981. end
  1982. end))
  1983. local bodyVelocity = Create("BodyVelocity"){
  1984. velocity = Vector3.new(0, 20, 0),
  1985. P = 5000,
  1986. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1987. Parent = hit,
  1988. }
  1989. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1990. elseif Type == "Snare" then
  1991. local bp = Create("BodyPosition"){
  1992. P = 2000,
  1993. D = 100,
  1994. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1995. position = hit.Parent.Torso.Position,
  1996. Parent = hit.Parent.Torso,
  1997. }
  1998. game:GetService("Debris"):AddItem(bp, 1)
  1999. elseif Type == "Freeze" then
  2000. local BodPos = Create("BodyPosition"){
  2001. P = 50000,
  2002. D = 1000,
  2003. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2004. position = hit.Parent.Torso.Position,
  2005. Parent = hit.Parent.Torso,
  2006. }
  2007. local BodGy = Create("BodyGyro") {
  2008. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  2009. P = 20e+003,
  2010. Parent = hit.Parent.Torso,
  2011. cframe = hit.Parent.Torso.CFrame,
  2012. }
  2013. hit.Parent.Torso.Anchored = true
  2014. coroutine.resume(coroutine.create(function(Part)
  2015. swait(1.5)
  2016. Part.Anchored = false
  2017. end), hit.Parent.Torso)
  2018. game:GetService("Debris"):AddItem(BodPos, 3)
  2019. game:GetService("Debris"):AddItem(BodGy, 3)
  2020. end
  2021. local debounce = Create("BoolValue"){
  2022. Name = "DebounceHit",
  2023. Parent = hit.Parent,
  2024. Value = true,
  2025. }
  2026. game:GetService("Debris"):AddItem(debounce, Delay)
  2027. c = Create("ObjectValue"){
  2028. Name = "creator",
  2029. Value = Player,
  2030. Parent = h,
  2031. }
  2032. game:GetService("Debris"):AddItem(c, .5)
  2033. end
  2034. end
  2035.  
  2036. function damage(range,mindam,maxdam,pos)
  2037. for i,v in ipairs(workspace:GetChildren()) do
  2038. if v:IsA("Model") then
  2039. if v.Name ~= Player.Name then
  2040. if v:FindFirstChildOfClass("Humanoid") then
  2041. if v:FindFirstChild("Head") then
  2042. if (v:FindFirstChild("Head").Position - pos).magnitude < 10 then
  2043. if v:FindFirstChildOfClass("Humanoid").Health > 5000 then v:FindFirstChildOfClass("Humanoid").Health = 0 else
  2044. v:FindFirstChildOfClass("Humanoid").Health = v:FindFirstChildOfClass("Humanoid").Health - math.random(mindam,maxdam)
  2045. end
  2046. end
  2047. end
  2048. end
  2049. end
  2050. end
  2051. end
  2052. end
  2053. -------------------------------------------------------
  2054. --End Damage Function--
  2055. -------------------------------------------------------
  2056.  
  2057. -------------------------------------------------------
  2058. --Start Animations--
  2059. -------------------------------------------------------
  2060. print("By XandersAltAccount1 [Credits To Anime_fivers for the face ^-^]")
  2061. while true do
  2062. swait()
  2063. sine = sine + change
  2064. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  2065. local Walking = (math.abs(root.Velocity.x) > 1 or math.abs(root.Velocity.z) > 1)
  2066. local State = (hum.PlatformStand and 'Paralyzed' or hum.Sit and 'Sit' or Landed and 'Land' or not hitfloor and root.Velocity.y < -1 and "Fall" or not hitfloor and root.Velocity.y > 1 and "Jump" or hitfloor and Walking and "Walk" or hitfloor and "Idle")
  2067. local velderp = root.Velocity.y
  2068. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  2069. if equipped == true or equipped == false then
  2070. if attack == false then
  2071. idle = idle + 1
  2072. else
  2073. idle = 0
  2074. end
  2075. if 1 < root.Velocity.y and hitfloor == nil then
  2076. Anim = "Jump"
  2077. change = 0.6
  2078. if attack == false then
  2079. local ADNum = 1
  2080.  
  2081. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1* Player_Size) * angles(Rad(20 * Sin(sine / 4)), Rad(5 * Sin(sine / 8)), Rad(40 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2)))), 0.35)
  2082. RH.C0 = clerp(RH.C0, CF(0.5 + 0.2 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))* Player_Size, -1 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-4.5 + 10 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0), Rad(0)), 0.35)
  2083. LH.C0 = clerp(LH.C0, CF(-0.5 + 0.2 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))* Player_Size, -1 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-4.5 - 10 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0), Rad(0)), 0.35)
  2084. neck.C0 = clerp(tors.Neck.C0, necko* CF(0 * Cos(sine / 25), 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-20 * Sin(sine / 4)), Rad(0), Rad(-40 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2)))), 0.35)
  2085.  
  2086. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.55* Player_Size, -0.4* Cos(sine / 4 +ADNum* math.cos(sine / 4*2))* Player_Size) * angles(Rad(90 + 20 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0 + 0 * Sin(sine / 10)), Rad(0)), 0.35)
  2087. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.55* Player_Size, -0.4* Cos(sine / 4 +ADNum* math.cos(sine / 4*2))* Player_Size) * angles(Rad(90 + 20 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0 + 0 * Sin(sine / 10)), Rad(0)), 0.35)
  2088. end
  2089. elseif -1 > root.Velocity.y and hitfloor == nil then
  2090. Anim = "Fall"
  2091. change = 0.6
  2092. if attack == false then
  2093. local ADNum = 1
  2094.  
  2095. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1* Player_Size) * angles(Rad(20 * Sin(sine / 4)), Rad(5 * Sin(sine / 8)), Rad(40 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2)))), 0.35)
  2096. RH.C0 = clerp(RH.C0, CF(0.5 + 0.2 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))* Player_Size, -1 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-4.5 + 10 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0), Rad(0)), 0.35)
  2097. LH.C0 = clerp(LH.C0, CF(-0.5 + 0.2 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))* Player_Size, -1 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-4.5 - 10 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0), Rad(0)), 0.35)
  2098. neck.C0 = clerp(tors.Neck.C0, necko* CF(0 * Cos(sine / 25), 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-20 * Sin(sine / 4)), Rad(0), Rad(-40 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2)))), 0.35)
  2099.  
  2100. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.55* Player_Size, -0.4* Cos(sine / 4 +ADNum* math.cos(sine / 4*2))* Player_Size) * angles(Rad(90 + 20 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0 + 0 * Sin(sine / 10)), Rad(0)), 0.35)
  2101. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.55* Player_Size, -0.4* Cos(sine / 4 +ADNum* math.cos(sine / 4*2))* Player_Size) * angles(Rad(90 + 20 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0 + 0 * Sin(sine / 10)), Rad(0)), 0.35)
  2102. end
  2103. elseif (State == "Sit") and hum.Sit then
  2104. change = 0.6
  2105. if attack == false then
  2106. local ADNum = 1
  2107.  
  2108. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1* Player_Size) * angles(Rad(20 * Sin(sine / 4)), Rad(5 * Sin(sine / 8)), Rad(40 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2)))), 0.35)
  2109. RH.C0 = clerp(RH.C0, CF(0.5 + 0.2 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))* Player_Size, -1 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-4.5 + 10 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0), Rad(0)), 0.35)
  2110. LH.C0 = clerp(LH.C0, CF(-0.5 + 0.2 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))* Player_Size, -1 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-4.5 - 10 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0), Rad(0)), 0.35)
  2111. neck.C0 = clerp(tors.Neck.C0, necko* CF(0 * Cos(sine / 25), 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-20 * Sin(sine / 4)), Rad(0), Rad(-40 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2)))), 0.35)
  2112.  
  2113. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.55* Player_Size, -0.4* Cos(sine / 4 +ADNum* math.cos(sine / 4*2))* Player_Size) * angles(Rad(90 + 20 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0 + 0 * Sin(sine / 10)), Rad(0)), 0.35)
  2114. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.55* Player_Size, -0.4* Cos(sine / 4 +ADNum* math.cos(sine / 4*2))* Player_Size) * angles(Rad(90 + 20 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0 + 0 * Sin(sine / 10)), Rad(0)), 0.35)
  2115. end
  2116. elseif (State == "Paralyzed") and hum.PlatformStand then
  2117. change = 0.6
  2118. if attack == false then
  2119. local ADNum = 1
  2120.  
  2121. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1* Player_Size) * angles(Rad(20 * Sin(sine / 4)), Rad(5 * Sin(sine / 8)), Rad(40 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2)))), 0.35)
  2122. RH.C0 = clerp(RH.C0, CF(0.5 + 0.2 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))* Player_Size, -1 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-4.5 + 10 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0), Rad(0)), 0.35)
  2123. LH.C0 = clerp(LH.C0, CF(-0.5 + 0.2 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))* Player_Size, -1 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-4.5 - 10 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0), Rad(0)), 0.35)
  2124. neck.C0 = clerp(tors.Neck.C0, necko* CF(0 * Cos(sine / 25), 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-20 * Sin(sine / 4)), Rad(0), Rad(-40 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2)))), 0.35)
  2125.  
  2126. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.55* Player_Size, -0.4* Cos(sine / 4 +ADNum* math.cos(sine / 4*2))* Player_Size) * angles(Rad(90 + 20 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0 + 0 * Sin(sine / 10)), Rad(0)), 0.35)
  2127. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.55* Player_Size, -0.4* Cos(sine / 4 +ADNum* math.cos(sine / 4*2))* Player_Size) * angles(Rad(90 + 20 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0 + 0 * Sin(sine / 10)), Rad(0)), 0.35)
  2128. end
  2129. elseif torvel < 1 and hitfloor ~= nil then
  2130. Anim = "Idle"
  2131. local sspeed=.6
  2132. change = 0.6
  2133. if attack == false then
  2134. local ADNum = 1
  2135.  
  2136. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1* Player_Size) * angles(Rad(20 * Sin(sine / 4)), Rad(5 * Sin(sine / 8)), Rad(40 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2)))), 0.35)
  2137. RH.C0 = clerp(RH.C0, CF(0.5 + 0.2 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))* Player_Size, -1 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-4.5 + 10 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0), Rad(0)), 0.35)
  2138. LH.C0 = clerp(LH.C0, CF(-0.5 + 0.2 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))* Player_Size, -1 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-4.5 - 10 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0), Rad(0)), 0.35)
  2139. neck.C0 = clerp(tors.Neck.C0, necko* CF(0 * Cos(sine / 25), 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-20 * Sin(sine / 4)), Rad(0), Rad(-40 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2)))), 0.35)
  2140.  
  2141. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.55* Player_Size, -0.4* Cos(sine / 4 +ADNum* math.cos(sine / 4*2))* Player_Size) * angles(Rad(90 + 20 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0 + 0 * Sin(sine / 10)), Rad(0)), 0.35)
  2142. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.55* Player_Size, -0.4* Cos(sine / 4 +ADNum* math.cos(sine / 4*2))* Player_Size) * angles(Rad(90 + 20 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0 + 0 * Sin(sine / 10)), Rad(0)), 0.35)
  2143. end
  2144. elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
  2145. Anim = "Walk"
  2146. change = 0.6
  2147. if attack == false then
  2148. local ADNum = 1
  2149.  
  2150. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1* Player_Size) * angles(Rad(20 * Sin(sine / 4)), Rad(5 * Sin(sine / 8)), Rad(40 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2)))), 0.35)
  2151. RH.C0 = clerp(RH.C0, CF(0.5 + 0.2 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))* Player_Size, -1 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-4.5 + 10 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0), Rad(0)), 0.35)
  2152. LH.C0 = clerp(LH.C0, CF(-0.5 + 0.2 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))* Player_Size, -1 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-4.5 - 10 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0), Rad(0)), 0.35)
  2153. neck.C0 = clerp(tors.Neck.C0, necko* CF(0 * Cos(sine / 25), 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-20 * Sin(sine / 4)), Rad(0), Rad(-40 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2)))), 0.35)
  2154.  
  2155. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.55* Player_Size, -0.4* Cos(sine / 4 +ADNum* math.cos(sine / 4*2))* Player_Size) * angles(Rad(90 + 20 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0 + 0 * Sin(sine / 10)), Rad(0)), 0.35)
  2156. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.55* Player_Size, -0.4* Cos(sine / 4 +ADNum* math.cos(sine / 4*2))* Player_Size) * angles(Rad(90 + 20 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0 + 0 * Sin(sine / 10)), Rad(0)), 0.35)
  2157. end
  2158. elseif torvel >= 25 and hitfloor ~= nil then
  2159. Anim = "Sprint"
  2160. change = 0.6
  2161. if attack == false then
  2162. local ADNum = 1
  2163. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1* Player_Size) * angles(Rad(20 * Sin(sine / 4)), Rad(5 * Sin(sine / 8)), Rad(40 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2)))), 0.35)
  2164. RH.C0 = clerp(RH.C0, CF(0.5 + 0.2 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))* Player_Size, -1 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-4.5 + 10 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0), Rad(0)), 0.35)
  2165. LH.C0 = clerp(LH.C0, CF(-0.5 + 0.2 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))* Player_Size, -1 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-4.5 - 10 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0), Rad(0)), 0.35)
  2166. neck.C0 = clerp(tors.Neck.C0, necko* CF(0 * Cos(sine / 25), 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-20 * Sin(sine / 4)), Rad(0), Rad(-40 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2)))), 0.35)
  2167.  
  2168. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.55* Player_Size, -0.4* Cos(sine / 4 +ADNum* math.cos(sine / 4*2))* Player_Size) * angles(Rad(90 + 20 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0 + 0 * Sin(sine / 10)), Rad(0)), 0.35)
  2169. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.55* Player_Size, -0.4* Cos(sine / 4 +ADNum* math.cos(sine / 4*2))* Player_Size) * angles(Rad(90 + 20 * Cos(sine / 8 +ADNum* math.cos(sine / 8*2))), Rad(0 + 0 * Sin(sine / 10)), Rad(0)), 0.35)
  2170. end
  2171. end
  2172. end
  2173. if 0 < #Effects then
  2174. for e = 1, #Effects do
  2175. if Effects[e] ~= nil then
  2176. local Thing = Effects[e]
  2177. if Thing ~= nil then
  2178. local Part = Thing[1]
  2179. local Mode = Thing[2]
  2180. local Delay = Thing[3]
  2181. local IncX = Thing[4]
  2182. local IncY = Thing[5]
  2183. local IncZ = Thing[6]
  2184. if 1 >= Thing[1].Transparency then
  2185. if Thing[2] == "Block1" then
  2186. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2187. local Mesh = Thing[1].Mesh
  2188. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2189. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2190. elseif Thing[2] == "Block2" then
  2191. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  2192. local Mesh = Thing[7]
  2193. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2194. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2195. elseif Thing[2] == "Block3" then
  2196. 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)
  2197. local Mesh = Thing[7]
  2198. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2199. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2200. elseif Thing[2] == "Cylinder" then
  2201. local Mesh = Thing[1].Mesh
  2202. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2203. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2204. elseif Thing[2] == "Blood" then
  2205. local Mesh = Thing[7]
  2206. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  2207. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2208. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2209. elseif Thing[2] == "Elec" then
  2210. local Mesh = Thing[1].Mesh
  2211. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  2212. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2213. elseif Thing[2] == "Disappear" then
  2214. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2215. elseif Thing[2] == "Shatter" then
  2216. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2217. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2218. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2219. Thing[6] = Thing[6] + Thing[5]
  2220. end
  2221. else
  2222. Part.Parent = nil
  2223. table.remove(Effects, e)
  2224. end
  2225. end
  2226. end
  2227. end
  2228. end
  2229. end
  2230.  
  2231. NAMEMODE2 = Instance.new("BillboardGui",Character)
  2232. NAMEMODE2.AlwaysOnTop = true
  2233. NAMEMODE2.Size = UDim2.new(7,35,3,15)
  2234. NAMEMODE2.StudsOffset = Vector3.new(0,2,0)
  2235. NAMEMODE2.MaxDistance = 10000
  2236. NAMEMODE2.Adornee = Head
  2237. NAMEMODE2.Name = "Name2"
  2238. NAMEMODE = Instance.new("TextBox",NAMEMODE2)
  2239. NAMEMODE.BackgroundTransparency = 1
  2240. NAMEMODE.TextScaled = true
  2241. NAMEMODE.BorderSizePixel = 0
  2242. NAMEMODE.Text = "Anti Universal Owner"
  2243. NAMEMODE.Font = "Arcade"
  2244. NAMEMODE.TextColor3 = Color3.fromRGB(255, 0, 4)
  2245. NAMEMODE.TextStrokeColor3 = Color3.fromRGB(0, 255, 235)
  2246. NAMEMODE.TextSize = 35
  2247. NAMEMODE.TextStrokeTransparency = 0
  2248. NAMEMODE.Size = UDim2.new(1,0,0.5,0)
  2249. NAMEMODE.Parent = NAMEMODE2
  2250. function RandomCaps(str)
  2251. local new = ""
  2252. for i = 1, #str do
  2253. if(math.random(1,2) == 1)then
  2254. new = new .. (str:sub(i,i):upper())
  2255. else
  2256. new = new .. str:sub(i,i)
  2257. end
  2258. end
  2259. return new
  2260. end
  2261. function Hellifytext(name)
  2262. while true do
  2263. for hue = 0, 1, 0.06 do
  2264. name.TextColor3 = Color3.fromRGB(math.random(0,255),0,0)
  2265. name.TextStrokeColor3 = Color3.fromRGB(0,math.random(216, 255),255)
  2266. name.Text = RandomCaps("AFK")
  2267. swait()
  2268. end
  2269. end
  2270. end
  2271. -----------------------------------------------------
Add Comment
Please, Sign In to add comment