Advertisement
pasterultimate22

THE BIG BLACC

Jul 4th, 2018
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.76 KB | None | 0 0
  1. -----------------------
  2. --[[ Name : The Big Bad ]]--
  3. -------------------------------------------------------
  4. --A mistake By Creterisk/makhail07
  5.  
  6. --Discord Creterisk#2958
  7. -------------------------------------------------------
  8. --Everything is Meaningless.....
  9. wait(1 / 60)
  10. local plr = game:service'Players'.LocalPlayer
  11. print('Local User is '..plr.Name)
  12. print('The Big Bad Loaded')
  13. print('I fucking hate this song so much, decided to make fun of it with this cancer.')
  14. local char = plr.Character
  15. local hum = char:FindFirstChildOfClass'Humanoid'
  16. local hed = char.Head
  17. local root = char:FindFirstChild'HumanoidRootPart'
  18. local rootj = root.RootJoint
  19. local tors = char.Torso
  20. local ra = char["Right Arm"]
  21. local la = char["Left Arm"]
  22. local rl = char["Right Leg"]
  23. local ll = char["Left Leg"]
  24. local neck = tors["Neck"]
  25. local mouse = plr:GetMouse()
  26. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  27. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  28. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  29. local maincolor = BrickColor.new("Institutional white")
  30. -------------------------------------------------------
  31. --Start Good Stuff--
  32. -------------------------------------------------------
  33. cam = game.Workspace.CurrentCamera
  34. CF = CFrame.new
  35. angles = CFrame.Angles
  36. attack = false
  37. Euler = CFrame.fromEulerAnglesXYZ
  38. Rad = math.rad
  39. IT = Instance.new
  40. BrickC = BrickColor.new
  41. Cos = math.cos
  42. Acos = math.acos
  43. Sin = math.sin
  44. Asin = math.asin
  45. Abs = math.abs
  46. Mrandom = math.random
  47. Floor = math.floor
  48. -------------------------------------------------------
  49. --End Good Stuff--
  50. -------------------------------------------------------
  51. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  52. RSH, LSH = nil, nil
  53. RW = Instance.new("Weld")
  54. LW = Instance.new("Weld")
  55. RH = tors["Right Hip"]
  56. LH = tors["Left Hip"]
  57. RSH = tors["Right Shoulder"]
  58. LSH = tors["Left Shoulder"]
  59. RSH.Parent = nil
  60. LSH.Parent = nil
  61. RW.Name = "RW"
  62. RW.Part0 = tors
  63. RW.C0 = CF(1.5, 0.5, 0)
  64. RW.C1 = CF(0, 0.5, 0)
  65. RW.Part1 = ra
  66. RW.Parent = tors
  67. LW.Name = "LW"
  68. LW.Part0 = tors
  69. LW.C0 = CF(-1.5, 0.5, 0)
  70. LW.C1 = CF(0, 0.5, 0)
  71. LW.Part1 = la
  72. LW.Parent = tors
  73. Effects = {}
  74. -------------------------------------------------------
  75. --Start HeartBeat--
  76. -------------------------------------------------------
  77. ArtificialHB = Instance.new("BindableEvent", script)
  78. ArtificialHB.Name = "Heartbeat"
  79. script:WaitForChild("Heartbeat")
  80.  
  81. frame = 1 / 60
  82. tf = 0
  83. allowframeloss = false
  84. tossremainder = false
  85.  
  86.  
  87. lastframe = tick()
  88. script.Heartbeat:Fire()
  89.  
  90.  
  91. game:GetService("RunService").Heartbeat:connect(function(s, p)
  92. tf = tf + s
  93. if tf >= frame then
  94. if allowframeloss then
  95. script.Heartbeat:Fire()
  96. lastframe = tick()
  97. else
  98. for i = 1, math.floor(tf / frame) do
  99. script.Heartbeat:Fire()
  100. end
  101. lastframe = tick()
  102. end
  103. if tossremainder then
  104. tf = 0
  105. else
  106. tf = tf - frame * math.floor(tf / frame)
  107. end
  108. end
  109. end)
  110. -------------------------------------------------------
  111. --End HeartBeat--
  112. -------------------------------------------------------
  113.  
  114. -------------------------------------------------------
  115. --Start Important Functions--
  116. -------------------------------------------------------
  117. function swait(num)
  118. if num == 0 or num == nil then
  119. game:service("RunService").Stepped:wait(0)
  120. else
  121. for i = 0, num do
  122. game:service("RunService").Stepped:wait(0)
  123. end
  124. end
  125. end
  126. function thread(f)
  127. coroutine.resume(coroutine.create(f))
  128. end
  129. function clerp(a, b, t)
  130. local qa = {
  131. QuaternionFromCFrame(a)
  132. }
  133. local qb = {
  134. QuaternionFromCFrame(b)
  135. }
  136. local ax, ay, az = a.x, a.y, a.z
  137. local bx, by, bz = b.x, b.y, b.z
  138. local _t = 1 - t
  139. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  140. end
  141. function QuaternionFromCFrame(cf)
  142. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  143. local trace = m00 + m11 + m22
  144. if trace > 0 then
  145. local s = math.sqrt(1 + trace)
  146. local recip = 0.5 / s
  147. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  148. else
  149. local i = 0
  150. if m00 < m11 then
  151. i = 1
  152. end
  153. if m22 > (i == 0 and m00 or m11) then
  154. i = 2
  155. end
  156. if i == 0 then
  157. local s = math.sqrt(m00 - m11 - m22 + 1)
  158. local recip = 0.5 / s
  159. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  160. elseif i == 1 then
  161. local s = math.sqrt(m11 - m22 - m00 + 1)
  162. local recip = 0.5 / s
  163. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  164. elseif i == 2 then
  165. local s = math.sqrt(m22 - m00 - m11 + 1)
  166. local recip = 0.5 / s
  167. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  168. end
  169. end
  170. end
  171. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  172. local xs, ys, zs = x + x, y + y, z + z
  173. local wx, wy, wz = w * xs, w * ys, w * zs
  174. local xx = x * xs
  175. local xy = x * ys
  176. local xz = x * zs
  177. local yy = y * ys
  178. local yz = y * zs
  179. local zz = z * zs
  180. 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))
  181. end
  182. function QuaternionSlerp(a, b, t)
  183. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  184. local startInterp, finishInterp
  185. if cosTheta >= 1.0E-4 then
  186. if 1 - cosTheta > 1.0E-4 then
  187. local theta = math.acos(cosTheta)
  188. local invSinTheta = 1 / Sin(theta)
  189. startInterp = Sin((1 - t) * theta) * invSinTheta
  190. finishInterp = Sin(t * theta) * invSinTheta
  191. else
  192. startInterp = 1 - t
  193. finishInterp = t
  194. end
  195. elseif 1 + cosTheta > 1.0E-4 then
  196. local theta = math.acos(-cosTheta)
  197. local invSinTheta = 1 / Sin(theta)
  198. startInterp = Sin((t - 1) * theta) * invSinTheta
  199. finishInterp = Sin(t * theta) * invSinTheta
  200. else
  201. startInterp = t - 1
  202. finishInterp = t
  203. end
  204. 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
  205. end
  206. function rayCast(Position, Direction, Range, Ignore)
  207. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  208. end
  209. local RbxUtility = LoadLibrary("RbxUtility")
  210. local Create = RbxUtility.Create
  211.  
  212. -------------------------------------------------------
  213. --Start Damage Function--
  214. -------------------------------------------------------
  215. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  216. if hit.Parent == nil then
  217. return
  218. end
  219. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  220. for _, v in pairs(hit.Parent:children()) do
  221. if v:IsA("Humanoid") then
  222. h = v
  223. end
  224. end
  225. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  226.  
  227. hit.Parent:FindFirstChild("Head"):BreakJoints()
  228. end
  229.  
  230. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  231. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  232. if hit.Parent.DebounceHit.Value == true then
  233. return
  234. end
  235. end
  236. if insta == true then
  237. hit.Parent:FindFirstChild("Head"):BreakJoints()
  238. end
  239. local c = Create("ObjectValue"){
  240. Name = "creator",
  241. Value = game:service("Players").LocalPlayer,
  242. Parent = h,
  243. }
  244. game:GetService("Debris"):AddItem(c, .5)
  245. if HitSound ~= nil and HitPitch ~= nil then
  246. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  247. end
  248. local Damage = math.random(minim, maxim)
  249. local blocked = false
  250. local block = hit.Parent:findFirstChild("Block")
  251. if block ~= nil then
  252. if block.className == "IntValue" then
  253. if block.Value > 0 then
  254. blocked = true
  255. block.Value = block.Value - 1
  256. print(block.Value)
  257. end
  258. end
  259. end
  260. if blocked == false then
  261. h.Health = h.Health - Damage
  262. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  263. else
  264. h.Health = h.Health - (Damage / 2)
  265. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  266. end
  267. if Type == "Knockdown" then
  268. local hum = hit.Parent.Humanoid
  269. hum.PlatformStand = true
  270. coroutine.resume(coroutine.create(function(HHumanoid)
  271. swait(1)
  272. HHumanoid.PlatformStand = false
  273. end), hum)
  274. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  275. local bodvol = Create("BodyVelocity"){
  276. velocity = angle * knockback,
  277. P = 5000,
  278. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  279. Parent = hit,
  280. }
  281. local rl = Create("BodyAngularVelocity"){
  282. P = 3000,
  283. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  284. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  285. Parent = hit,
  286. }
  287. game:GetService("Debris"):AddItem(bodvol, .5)
  288. game:GetService("Debris"):AddItem(rl, .5)
  289. elseif Type == "Normal" then
  290. local vp = Create("BodyVelocity"){
  291. P = 500,
  292. maxForce = Vector3.new(math.huge, 0, math.huge),
  293. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  294. }
  295. if knockback > 0 then
  296. vp.Parent = hit.Parent.Torso
  297. end
  298. game:GetService("Debris"):AddItem(vp, .5)
  299. elseif Type == "Up" then
  300. local bodyVelocity = Create("BodyVelocity"){
  301. velocity = Vector3.new(0, 20, 0),
  302. P = 5000,
  303. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  304. Parent = hit,
  305. }
  306. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  307. elseif Type == "DarkUp" then
  308. coroutine.resume(coroutine.create(function()
  309. for i = 0, 1, 0.1 do
  310. swait()
  311. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  312. end
  313. end))
  314. local bodyVelocity = Create("BodyVelocity"){
  315. velocity = Vector3.new(0, 20, 0),
  316. P = 5000,
  317. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  318. Parent = hit,
  319. }
  320. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  321. elseif Type == "Snare" then
  322. local bp = Create("BodyPosition"){
  323. P = 2000,
  324. D = 100,
  325. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  326. position = hit.Parent.Torso.Position,
  327. Parent = hit.Parent.Torso,
  328. }
  329. game:GetService("Debris"):AddItem(bp, 1)
  330. elseif Type == "Freeze" then
  331. local BodPos = Create("BodyPosition"){
  332. P = 50000,
  333. D = 1000,
  334. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  335. position = hit.Parent.Torso.Position,
  336. Parent = hit.Parent.Torso,
  337. }
  338. local BodGy = Create("BodyGyro") {
  339. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  340. P = 20e+003,
  341. Parent = hit.Parent.Torso,
  342. cframe = hit.Parent.Torso.CFrame,
  343. }
  344. hit.Parent.Torso.Anchored = true
  345. coroutine.resume(coroutine.create(function(Part)
  346. swait(1.5)
  347. Part.Anchored = false
  348. end), hit.Parent.Torso)
  349. game:GetService("Debris"):AddItem(BodPos, 3)
  350. game:GetService("Debris"):AddItem(BodGy, 3)
  351. end
  352. local debounce = Create("BoolValue"){
  353. Name = "DebounceHit",
  354. Parent = hit.Parent,
  355. Value = true,
  356. }
  357. game:GetService("Debris"):AddItem(debounce, Delay)
  358. c = Create("ObjectValue"){
  359. Name = "creator",
  360. Value = Player,
  361. Parent = h,
  362. }
  363. game:GetService("Debris"):AddItem(c, .5)
  364. end
  365. end
  366. -------------------------------------------------------
  367. --End Damage Function--
  368. -------------------------------------------------------
  369.  
  370. -------------------------------------------------------
  371. --Start Damage Function Customization--
  372. -------------------------------------------------------
  373. function ShowDamage(Pos, Text, Time, Color)
  374. local Rate = (1 / 30)
  375. local Pos = (Pos or Vector3.new(0, 0, 0))
  376. local Text = (Text or "")
  377. local Time = (Time or 2)
  378. local Color = (Color or Color3.new(1, 0, 1))
  379. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  380. EffectPart.Anchored = true
  381. local BillboardGui = Create("BillboardGui"){
  382. Size = UDim2.new(3, 0, 3, 0),
  383. Adornee = EffectPart,
  384. Parent = EffectPart,
  385. }
  386. local TextLabel = Create("TextLabel"){
  387. BackgroundTransparency = 1,
  388. Size = UDim2.new(1, 0, 1, 0),
  389. Text = Text,
  390. Font = "Bodoni",
  391. TextColor3 = Color,
  392. TextScaled = true,
  393. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  394. Parent = BillboardGui,
  395. }
  396. game.Debris:AddItem(EffectPart, (Time))
  397. EffectPart.Parent = game:GetService("Workspace")
  398. delay(0, function()
  399. local Frames = (Time / Rate)
  400. for Frame = 1, Frames do
  401. wait(Rate)
  402. local Percent = (Frame / Frames)
  403. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  404. TextLabel.TextTransparency = Percent
  405. end
  406. if EffectPart and EffectPart.Parent then
  407. EffectPart:Destroy()
  408. end
  409. end)
  410. end
  411. -------------------------------------------------------
  412. --End Damage Function Customization--
  413. -------------------------------------------------------
  414.  
  415. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  416. for _, c in pairs(workspace:children()) do
  417. local hum = c:findFirstChild("Humanoid")
  418. if hum ~= nil then
  419. local head = c:findFirstChild("Head")
  420. if head ~= nil then
  421. local targ = head.Position - Part.Position
  422. local mag = targ.magnitude
  423. if magni >= mag and c.Name ~= plr.Name then
  424. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  425. end
  426. end
  427. end
  428. end
  429. end
  430.  
  431.  
  432. CFuncs = {
  433. Part = {
  434. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  435. local Part = Create("Part")({
  436. Parent = Parent,
  437. Reflectance = Reflectance,
  438. Transparency = Transparency,
  439. CanCollide = false,
  440. Locked = true,
  441. BrickColor = BrickColor.new(tostring(BColor)),
  442. Name = Name,
  443. Size = Size,
  444. Material = Material
  445. })
  446. RemoveOutlines(Part)
  447. return Part
  448. end
  449. },
  450. Mesh = {
  451. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  452. local Msh = Create(Mesh)({
  453. Parent = Part,
  454. Offset = OffSet,
  455. Scale = Scale
  456. })
  457. if Mesh == "SpecialMesh" then
  458. Msh.MeshType = MeshType
  459. Msh.MeshId = MeshId
  460. end
  461. return Msh
  462. end
  463. },
  464. Mesh = {
  465. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  466. local Msh = Create(Mesh)({
  467. Parent = Part,
  468. Offset = OffSet,
  469. Scale = Scale
  470. })
  471. if Mesh == "SpecialMesh" then
  472. Msh.MeshType = MeshType
  473. Msh.MeshId = MeshId
  474. end
  475. return Msh
  476. end
  477. },
  478. Weld = {
  479. Create = function(Parent, Part0, Part1, C0, C1)
  480. local Weld = Create("Weld")({
  481. Parent = Parent,
  482. Part0 = Part0,
  483. Part1 = Part1,
  484. C0 = C0,
  485. C1 = C1
  486. })
  487. return Weld
  488. end
  489. },
  490. Sound = {
  491. Create = function(id, par, vol, pit)
  492. coroutine.resume(coroutine.create(function()
  493. local S = Create("Sound")({
  494. Volume = vol,
  495. Pitch = pit or 1,
  496. SoundId = id,
  497. Parent = par or workspace
  498. })
  499. wait()
  500. S:play()
  501. game:GetService("Debris"):AddItem(S, 6)
  502. end))
  503. end
  504. },
  505. ParticleEmitter = {
  506. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  507. local fp = Create("ParticleEmitter")({
  508. Parent = Parent,
  509. Color = ColorSequence.new(Color1, Color2),
  510. LightEmission = LightEmission,
  511. Size = Size,
  512. Texture = Texture,
  513. Transparency = Transparency,
  514. ZOffset = ZOffset,
  515. Acceleration = Accel,
  516. Drag = Drag,
  517. LockedToPart = LockedToPart,
  518. VelocityInheritance = VelocityInheritance,
  519. EmissionDirection = EmissionDirection,
  520. Enabled = Enabled,
  521. Lifetime = LifeTime,
  522. Rate = Rate,
  523. Rotation = Rotation,
  524. RotSpeed = RotSpeed,
  525. Speed = Speed,
  526. VelocitySpread = VelocitySpread
  527. })
  528. return fp
  529. end
  530. }
  531. }
  532. function RemoveOutlines(part)
  533. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  534. end
  535. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  536. local Part = Create("Part")({
  537. formFactor = FormFactor,
  538. Parent = Parent,
  539. Reflectance = Reflectance,
  540. Transparency = Transparency,
  541. CanCollide = false,
  542. Locked = true,
  543. BrickColor = BrickColor.new(tostring(BColor)),
  544. Name = Name,
  545. Size = Size,
  546. Material = Material
  547. })
  548. RemoveOutlines(Part)
  549. return Part
  550. end
  551. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  552. local Msh = Create(Mesh)({
  553. Parent = Part,
  554. Offset = OffSet,
  555. Scale = Scale
  556. })
  557. if Mesh == "SpecialMesh" then
  558. Msh.MeshType = MeshType
  559. Msh.MeshId = MeshId
  560. end
  561. return Msh
  562. end
  563. function CreateWeld(Parent, Part0, Part1, C0, C1)
  564. local Weld = Create("Weld")({
  565. Parent = Parent,
  566. Part0 = Part0,
  567. Part1 = Part1,
  568. C0 = C0,
  569. C1 = C1
  570. })
  571. return Weld
  572. end
  573.  
  574.  
  575. -------------------------------------------------------
  576. --Start Effect Function--
  577. -------------------------------------------------------
  578. EffectModel = Instance.new("Model", char)
  579. Effects = {
  580. Block = {
  581. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  582. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  583. prt.Anchored = true
  584. prt.CFrame = cframe
  585. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  586. game:GetService("Debris"):AddItem(prt, 10)
  587. if Type == 1 or Type == nil then
  588. table.insert(Effects, {
  589. prt,
  590. "Block1",
  591. delay,
  592. x3,
  593. y3,
  594. z3,
  595. msh
  596. })
  597. elseif Type == 2 then
  598. table.insert(Effects, {
  599. prt,
  600. "Block2",
  601. delay,
  602. x3,
  603. y3,
  604. z3,
  605. msh
  606. })
  607. else
  608. table.insert(Effects, {
  609. prt,
  610. "Block3",
  611. delay,
  612. x3,
  613. y3,
  614. z3,
  615. msh
  616. })
  617. end
  618. end
  619. },
  620. Sphere = {
  621. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  622. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  623. prt.Anchored = true
  624. prt.CFrame = cframe
  625. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  626. game:GetService("Debris"):AddItem(prt, 10)
  627. table.insert(Effects, {
  628. prt,
  629. "Cylinder",
  630. delay,
  631. x3,
  632. y3,
  633. z3,
  634. msh
  635. })
  636. end
  637. },
  638. Cylinder = {
  639. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  640. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  641. prt.Anchored = true
  642. prt.CFrame = cframe
  643. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  644. game:GetService("Debris"):AddItem(prt, 10)
  645. table.insert(Effects, {
  646. prt,
  647. "Cylinder",
  648. delay,
  649. x3,
  650. y3,
  651. z3,
  652. msh
  653. })
  654. end
  655. },
  656. Wave = {
  657. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  658. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  659. prt.Anchored = true
  660. prt.CFrame = cframe
  661. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  662. game:GetService("Debris"):AddItem(prt, 10)
  663. table.insert(Effects, {
  664. prt,
  665. "Cylinder",
  666. delay,
  667. x3 / 60,
  668. y3 / 60,
  669. z3 / 60,
  670. msh
  671. })
  672. end
  673. },
  674. Ring = {
  675. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  676. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  677. prt.Anchored = true
  678. prt.CFrame = cframe
  679. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  680. game:GetService("Debris"):AddItem(prt, 10)
  681. table.insert(Effects, {
  682. prt,
  683. "Cylinder",
  684. delay,
  685. x3,
  686. y3,
  687. z3,
  688. msh
  689. })
  690. end
  691. },
  692. Break = {
  693. Create = function(brickcolor, cframe, x1, y1, z1)
  694. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  695. prt.Anchored = true
  696. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  697. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  698. local num = math.random(10, 50) / 1000
  699. game:GetService("Debris"):AddItem(prt, 10)
  700. table.insert(Effects, {
  701. prt,
  702. "Shatter",
  703. num,
  704. prt.CFrame,
  705. math.random() - math.random(),
  706. 0,
  707. math.random(50, 100) / 100
  708. })
  709. end
  710. },
  711. Spiral = {
  712. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  713. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  714. prt.Anchored = true
  715. prt.CFrame = cframe
  716. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  717. game:GetService("Debris"):AddItem(prt, 10)
  718. table.insert(Effects, {
  719. prt,
  720. "Cylinder",
  721. delay,
  722. x3,
  723. y3,
  724. z3,
  725. msh
  726. })
  727. end
  728. },
  729. Push = {
  730. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  731. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  732. prt.Anchored = true
  733. prt.CFrame = cframe
  734. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  735. game:GetService("Debris"):AddItem(prt, 10)
  736. table.insert(Effects, {
  737. prt,
  738. "Cylinder",
  739. delay,
  740. x3,
  741. y3,
  742. z3,
  743. msh
  744. })
  745. end
  746. }
  747. }
  748. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  749. local fp = IT("Part")
  750. fp.formFactor = formfactor
  751. fp.Parent = parent
  752. fp.Reflectance = reflectance
  753. fp.Transparency = transparency
  754. fp.CanCollide = false
  755. fp.Locked = true
  756. fp.BrickColor = brickcolor
  757. fp.Name = name
  758. fp.Size = size
  759. fp.Position = tors.Position
  760. RemoveOutlines(fp)
  761. fp.Material = "SmoothPlastic"
  762. fp:BreakJoints()
  763. return fp
  764. end
  765.  
  766. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  767. local mesh = IT(Mesh)
  768. mesh.Parent = part
  769. if Mesh == "SpecialMesh" then
  770. mesh.MeshType = meshtype
  771. if meshid ~= "nil" then
  772. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  773. end
  774. end
  775. mesh.Offset = offset
  776. mesh.Scale = scale
  777. return mesh
  778. end
  779.  
  780. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  781. local type = type
  782. local rng = Instance.new("Part", char)
  783. rng.Anchored = true
  784. rng.BrickColor = color
  785. rng.CanCollide = false
  786. rng.FormFactor = 3
  787. rng.Name = "Ring"
  788. rng.Material = "Neon"
  789. rng.Size = Vector3.new(1, 1, 1)
  790. rng.Transparency = 0
  791. rng.TopSurface = 0
  792. rng.BottomSurface = 0
  793. rng.CFrame = pos
  794. local rngm = Instance.new("SpecialMesh", rng)
  795. rngm.MeshType = MType
  796. rngm.Scale = scale
  797. local scaler2 = 1
  798. if type == "Add" then
  799. scaler2 = 1 * value
  800. elseif type == "Divide" then
  801. scaler2 = 1 / value
  802. end
  803. coroutine.resume(coroutine.create(function()
  804. for i = 0, 10 / bonuspeed, 0.1 do
  805. swait()
  806. if type == "Add" then
  807. scaler2 = scaler2 - 0.01 * value / bonuspeed
  808. elseif type == "Divide" then
  809. scaler2 = scaler2 - 0.01 / value * bonuspeed
  810. end
  811. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  812. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  813. end
  814. rng:Destroy()
  815. end))
  816. end
  817.  
  818. function Eviscerate(dude)
  819. if dude.Name ~= char then
  820. local bgf = IT("BodyGyro", dude.Head)
  821. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  822. local val = IT("BoolValue", dude)
  823. val.Name = "IsHit"
  824. local ds = coroutine.wrap(function()
  825. dude:WaitForChild("Head"):BreakJoints()
  826. wait(0.5)
  827. target = nil
  828. coroutine.resume(coroutine.create(function()
  829. for i, v in pairs(dude:GetChildren()) do
  830. if v:IsA("Accessory") then
  831. v:Destroy()
  832. end
  833. if v:IsA("Humanoid") then
  834. v:Destroy()
  835. end
  836. if v:IsA("CharacterMesh") then
  837. v:Destroy()
  838. end
  839. if v:IsA("Model") then
  840. v:Destroy()
  841. end
  842. if v:IsA("Part") or v:IsA("MeshPart") then
  843. for x, o in pairs(v:GetChildren()) do
  844. if o:IsA("Decal") then
  845. o:Destroy()
  846. end
  847. end
  848. coroutine.resume(coroutine.create(function()
  849. v.Material = "Neon"
  850. v.CanCollide = false
  851. local PartEmmit1 = IT("ParticleEmitter", v)
  852. PartEmmit1.LightEmission = 1
  853. PartEmmit1.Texture = "rbxassetid://284205403"
  854. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  855. PartEmmit1.Rate = 150
  856. PartEmmit1.Lifetime = NumberRange.new(1)
  857. PartEmmit1.Size = NumberSequence.new({
  858. NumberSequenceKeypoint.new(0, 0.75, 0),
  859. NumberSequenceKeypoint.new(1, 0, 0)
  860. })
  861. PartEmmit1.Transparency = NumberSequence.new({
  862. NumberSequenceKeypoint.new(0, 0, 0),
  863. NumberSequenceKeypoint.new(1, 1, 0)
  864. })
  865. PartEmmit1.Speed = NumberRange.new(0, 0)
  866. PartEmmit1.VelocitySpread = 30000
  867. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  868. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  869. local BodPoss = IT("BodyPosition", v)
  870. BodPoss.P = 3000
  871. BodPoss.D = 1000
  872. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  873. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  874. v.Color = maincolor.Color
  875. coroutine.resume(coroutine.create(function()
  876. for i = 0, 49 do
  877. swait(1)
  878. v.Transparency = v.Transparency + 0.08
  879. end
  880. wait(0.5)
  881. PartEmmit1.Enabled = false
  882. wait(3)
  883. v:Destroy()
  884. dude:Destroy()
  885. end))
  886. end))
  887. end
  888. end
  889. end))
  890. end)
  891. ds()
  892. end
  893. end
  894.  
  895. function FindNearestHead(Position, Distance, SinglePlayer)
  896. if SinglePlayer then
  897. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  898. end
  899. local List = {}
  900. for i, v in pairs(workspace:GetChildren()) do
  901. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  902. table.insert(List, v)
  903. end
  904. end
  905. return List
  906. end
  907.  
  908. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  909. local type = type
  910. local rng = Instance.new("Part", char)
  911. rng.Anchored = true
  912. rng.BrickColor = color
  913. rng.CanCollide = false
  914. rng.FormFactor = 3
  915. rng.Name = "Ring"
  916. rng.Material = "Neon"
  917. rng.Size = Vector3.new(1, 1, 1)
  918. rng.Transparency = 0
  919. rng.TopSurface = 0
  920. rng.BottomSurface = 0
  921. rng.CFrame = pos
  922. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  923. local rngm = Instance.new("SpecialMesh", rng)
  924. rngm.MeshType = MType
  925. rngm.Scale = Vector3.new(x1, y1, z1)
  926. local scaler2 = 1
  927. local speeder = FastSpeed
  928. if type == "Add" then
  929. scaler2 = 1 * value
  930. elseif type == "Divide" then
  931. scaler2 = 1 / value
  932. end
  933. coroutine.resume(coroutine.create(function()
  934. for i = 0, 10 / bonuspeed, 0.1 do
  935. swait()
  936. if type == "Add" then
  937. scaler2 = scaler2 - 0.01 * value / bonuspeed
  938. elseif type == "Divide" then
  939. scaler2 = scaler2 - 0.01 / value * bonuspeed
  940. end
  941. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  942. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  943. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  944. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  945. end
  946. rng:Destroy()
  947. end))
  948. end
  949.  
  950. function SoulSteal(dude)
  951. if dude.Name ~= char then
  952. local bgf = IT("BodyGyro", dude.Head)
  953. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  954. local val = IT("BoolValue", dude)
  955. val.Name = "IsHit"
  956. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  957. local soulst = coroutine.wrap(function()
  958. local soul = Instance.new("Part",dude)
  959. soul.Size = Vector3.new(1,1,1)
  960. soul.CanCollide = false
  961. soul.Anchored = false
  962. soul.Position = torso.Position
  963. soul.Transparency = 1
  964. local PartEmmit1 = IT("ParticleEmitter", soul)
  965. PartEmmit1.LightEmission = 1
  966. PartEmmit1.Texture = "rbxassetid://569507414"
  967. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  968. PartEmmit1.Rate = 250
  969. PartEmmit1.Lifetime = NumberRange.new(1.6)
  970. PartEmmit1.Size = NumberSequence.new({
  971. NumberSequenceKeypoint.new(0, 1, 0),
  972. NumberSequenceKeypoint.new(1, 0, 0)
  973. })
  974. PartEmmit1.Transparency = NumberSequence.new({
  975. NumberSequenceKeypoint.new(0, 0, 0),
  976. NumberSequenceKeypoint.new(1, 1, 0)
  977. })
  978. PartEmmit1.Speed = NumberRange.new(0, 0)
  979. PartEmmit1.VelocitySpread = 30000
  980. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  981. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  982. local BodPoss = IT("BodyPosition", soul)
  983. BodPoss.P = 3000
  984. BodPoss.D = 1000
  985. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  986. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  987. wait(1.6)
  988. soul.Touched:connect(function(hit)
  989. if hit.Parent == char then
  990. soul:Destroy()
  991. end
  992. end)
  993. wait(1.2)
  994. while soul do
  995. swait()
  996. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  997. BodPoss.Position = tors.Position
  998. end
  999. end)
  1000. soulst()
  1001. end
  1002. end
  1003. function FaceMouse()
  1004. local Cam = workspace.CurrentCamera
  1005. return {
  1006. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1007. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1008. }
  1009. end
  1010. -------------------------------------------------------
  1011. --End Effect Function--
  1012. -------------------------------------------------------
  1013. function Cso(ID, PARENT, VOLUME, PITCH)
  1014. local NSound = nil
  1015. coroutine.resume(coroutine.create(function()
  1016. NSound = IT("Sound", PARENT)
  1017. NSound.Volume = VOLUME
  1018. NSound.Pitch = PITCH
  1019. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1020. swait()
  1021. NSound:play()
  1022. game:GetService("Debris"):AddItem(NSound, 10)
  1023. end))
  1024. return NSound
  1025. end
  1026. function CameraEnshaking(Length, Intensity)
  1027. coroutine.resume(coroutine.create(function()
  1028. local intensity = 1 * Intensity
  1029. local rotM = 0.01 * Intensity
  1030. for i = 0, Length, 0.1 do
  1031. swait()
  1032. intensity = intensity - 0.05 * Intensity / Length
  1033. rotM = rotM - 5.0E-4 * Intensity / Length
  1034. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1035. 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)
  1036. end
  1037. hum.CameraOffset = Vector3.new(0, 0, 0)
  1038. end))
  1039. end
  1040. NewInstance = function(instance,parent,properties)
  1041. local inst = Instance.new(instance)
  1042. inst.Parent = parent
  1043. if(properties)then
  1044. for i,v in next, properties do
  1045. pcall(function() inst[i] = v end)
  1046. end
  1047. end
  1048. return inst;
  1049. end
  1050.  
  1051. -------------------------------------------------------
  1052. --End Important Functions--
  1053. -------------------------------------------------------
  1054.  
  1055.  
  1056. -------------------------------------------------------
  1057. --Start Customization--
  1058. -------------------------------------------------------
  1059. local Player_Size = 5
  1060. if Player_Size ~= 1 then
  1061. root.Size = root.Size * Player_Size
  1062. tors.Size = tors.Size * Player_Size
  1063. hed.Size = hed.Size * Player_Size
  1064. ra.Size = ra.Size * Player_Size
  1065. la.Size = la.Size * Player_Size
  1066. rl.Size = rl.Size * Player_Size
  1067. ll.Size = ll.Size * Player_Size
  1068. ----------------------------------------------------------------------------------
  1069. rootj.Parent = root
  1070. neck.Parent = tors
  1071. RW.Parent = tors
  1072. LW.Parent = tors
  1073. RH.Parent = tors
  1074. LH.Parent = tors
  1075. ----------------------------------------------------------------------------------
  1076. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1077. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1078. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1079. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1080. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1081. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1082. ----------------------------------------------------------------------------------
  1083. 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))
  1084. 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))
  1085. 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))
  1086. 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))
  1087. --hat.Parent = Character
  1088. end
  1089. ----------------------------------------------------------------------------------
  1090. local SONG = 183142252
  1091. local SONG2 = 0
  1092. local Music = Instance.new("Sound",tors)
  1093. Music.Volume = 2.5
  1094. Music.Looped = true
  1095. Music.Pitch = 1 --Pitcher
  1096. ----------------------------------------------------------------------------------
  1097. local equipped = false
  1098. local idle = 0
  1099. local change = 1
  1100. local val = 0
  1101. local toim = 0
  1102. local idleanim = 0.4
  1103. local sine = 0
  1104. local Sit = 1
  1105. local WasAir = false
  1106. local InAir = false
  1107. local LandTick = 0
  1108. ----------------------------------------------------------------------------------
  1109. hum.WalkSpeed = 16
  1110. hum.JumpPower = 55
  1111. hum.Animator.Parent = nil
  1112. ----------------------------------------------------------------------------------
  1113. local naeeym2 = Instance.new("BillboardGui",char)
  1114. naeeym2.AlwaysOnTop = true
  1115. naeeym2.Size = UDim2.new(5,35,2,35)
  1116. naeeym2.StudsOffset = Vector3.new(0, 4.5, 0)
  1117. naeeym2.Adornee = hed
  1118. naeeym2.Name = "Name"
  1119. local tecks2 = Instance.new("TextLabel",naeeym2)
  1120. tecks2.BackgroundTransparency = 1
  1121. tecks2.TextScaled = true
  1122. tecks2.BorderSizePixel = 0
  1123. tecks2.Text = "The Big Black"
  1124. tecks2.Font = "Fantasy"
  1125. tecks2.TextSize = 30
  1126. tecks2.TextStrokeTransparency = 0
  1127. tecks2.TextColor3 = Color3.fromRGB(0, 0, 0)
  1128. tecks2.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
  1129. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  1130. tecks2.Parent = naeeym2
  1131. -------------------------------------------------------
  1132. --End Customization--
  1133. -------------------------------------------------------
  1134.  
  1135.  
  1136. -------------------------------------------------------
  1137. --Start Attacks N Stuff--
  1138. -------------------------------------------------------
  1139.  
  1140. -------------------------------------------------------
  1141. --End Attacks N Stuff--
  1142. -------------------------------------------------------
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152. -------------------------------------------------------
  1153. --Start Animations--
  1154. -------------------------------------------------------
  1155. print("By Makhail07")
  1156. while true do
  1157. swait()
  1158. sine = sine + change
  1159. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1160. local velderp = root.Velocity.y
  1161. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  1162. if equipped == true or equipped == false then
  1163. if attack == false then
  1164. idle = idle + 1
  1165. else
  1166. idle = 0
  1167. end
  1168. local Landed = false
  1169. if(hitfloor)then
  1170. WasAir = false
  1171. else
  1172. WasAir = true
  1173. end
  1174. if(WasAir == false)then
  1175. if(InAir == true)then
  1176. LandTick = time()
  1177. Landed = true
  1178. end
  1179. end
  1180. if(time()-LandTick < .3)then
  1181. Landed = true
  1182. end
  1183. if(hitfloor)then
  1184. InAir = false
  1185. else
  1186. InAir = true
  1187. end
  1188. local Walking = (math.abs(root.Velocity.x) > 1 or math.abs(root.Velocity.z) > 1)
  1189. 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")
  1190. if(State == 'Jump')then
  1191. hum.WalkSpeed = 34
  1192. hum.JumpPower = 90
  1193. if attack == false then
  1194. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.1)
  1195. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(Mrandom(-45, 45)), Rad(Mrandom(-45, 45))), 0.1)
  1196. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(85), Rad(0)) * angles(Rad(-5), Rad(Mrandom(-15, 15)), Rad(20)), 0.1)
  1197. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-5), Rad(Mrandom(-15, 15)), Rad(-20)), 0.1)
  1198. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.8* Player_Size + 0.01 * Sin(sine / 20)* Player_Size, -0.6* Player_Size) * angles(Rad(165), Rad(Mrandom(-15, 15)), Rad(-50)), 0.1)
  1199. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.8* Player_Size + 0.01 * Sin(sine / 20)* Player_Size, -0.6* Player_Size) * angles(Rad(165), Rad(Mrandom(-15, 15)), Rad(50)), 0.1)
  1200. end
  1201. elseif(State == 'Fall')then
  1202. if attack == false then
  1203. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.1)
  1204. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(Mrandom(-45, 45)), Rad(Mrandom(-45, 45))), 0.1)
  1205. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(85), Rad(0)) * angles(Rad(-5), Rad(Mrandom(-15, 15)), Rad(20)), 0.1)
  1206. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-5), Rad(Mrandom(-15, 15)), Rad(-20)), 0.1)
  1207. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.8* Player_Size + 0.01 * Sin(sine / 20)* Player_Size, -0.6* Player_Size) * angles(Rad(165), Rad(Mrandom(-15, 15)), Rad(-50)), 0.1)
  1208. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.8* Player_Size + 0.01 * Sin(sine / 20)* Player_Size, -0.6* Player_Size) * angles(Rad(165), Rad(Mrandom(-15, 15)), Rad(50)), 0.1)
  1209. end
  1210. elseif(State == 'Land')then
  1211. if attack == false then
  1212. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.1)
  1213. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(Mrandom(-45, 45)), Rad(Mrandom(-45, 45))), 0.1)
  1214. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(85), Rad(0)) * angles(Rad(-5), Rad(Mrandom(-15, 15)), Rad(20)), 0.1)
  1215. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-5), Rad(Mrandom(-15, 15)), Rad(-20)), 0.1)
  1216. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.8* Player_Size + 0.01 * Sin(sine / 20)* Player_Size, -0.6* Player_Size) * angles(Rad(165), Rad(Mrandom(-15, 15)), Rad(-50)), 0.1)
  1217. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.8* Player_Size + 0.01 * Sin(sine / 20)* Player_Size, -0.6* Player_Size) * angles(Rad(165), Rad(Mrandom(-15, 15)), Rad(50)), 0.1)
  1218. end
  1219. elseif(State == 'Idle')then
  1220. change = 1
  1221. if attack == false then
  1222. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.1)
  1223. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(Mrandom(-45, 45)), Rad(Mrandom(-45, 45))), 0.1)
  1224. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(85), Rad(0)) * angles(Rad(-5), Rad(Mrandom(-15, 15)), Rad(20)), 0.1)
  1225. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-5), Rad(Mrandom(-15, 15)), Rad(-20)), 0.1)
  1226. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.8* Player_Size + 0.01 * Sin(sine / 20)* Player_Size, -0.6* Player_Size) * angles(Rad(165), Rad(Mrandom(-15, 15)), Rad(-50)), 0.1)
  1227. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.8* Player_Size + 0.01 * Sin(sine / 20)* Player_Size, -0.6* Player_Size) * angles(Rad(165), Rad(Mrandom(-15, 15)), Rad(50)), 0.1)
  1228. end
  1229. elseif(State == 'Walk')then
  1230. change = 1
  1231. hum.WalkSpeed = 16
  1232. hum.JumpPower = 55
  1233. if attack == false then
  1234. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.4* Player_Size * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.1)
  1235. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  1236. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(-20)), 0.1)
  1237. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(20)), 0.1)
  1238. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.8* Player_Size + 0.01 * Sin(sine / 20)* Player_Size, -0.6* Player_Size) * angles(Rad(165), Rad(0), Rad(-50)), 0.1)
  1239. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.8* Player_Size + 0.01 * Sin(sine / 20)* Player_Size, -0.6* Player_Size) * angles(Rad(165), Rad(0), Rad(50)), 0.1)
  1240. end
  1241. end
  1242. end
  1243. for _, c in pairs(char:GetChildren()) do
  1244. if c.ClassName == "Part" and c.Name ~= "Detail" then
  1245. c.Color = Color3.new(0,0,0)
  1246. if c:FindFirstChildOfClass("ParticleEmitter") then
  1247. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1248. end
  1249. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1250. c:remove()
  1251. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1252. c:remove()
  1253. end
  1254. end
  1255. Music.SoundId = "rbxassetid://"..SONG
  1256. Music.Looped = true
  1257. Music.Pitch = 1
  1258. Music.Volume = 3
  1259. Music.Parent = char
  1260. Music:Resume()
  1261. if 0 < #Effects then
  1262. for e = 1, #Effects do
  1263. if Effects[e] ~= nil then
  1264. local Thing = Effects[e]
  1265. if Thing ~= nil then
  1266. local Part = Thing[1]
  1267. local Mode = Thing[2]
  1268. local Delay = Thing[3]
  1269. local IncX = Thing[4]
  1270. local IncY = Thing[5]
  1271. local IncZ = Thing[6]
  1272. if 1 >= Thing[1].Transparency then
  1273. if Thing[2] == "Block1" then
  1274. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1275. local Mesh = Thing[1].Mesh
  1276. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1277. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1278. elseif Thing[2] == "Block2" then
  1279. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1280. local Mesh = Thing[7]
  1281. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1282. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1283. elseif Thing[2] == "Block3" then
  1284. 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)
  1285. local Mesh = Thing[7]
  1286. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1287. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1288. elseif Thing[2] == "Cylinder" then
  1289. local Mesh = Thing[1].Mesh
  1290. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1291. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1292. elseif Thing[2] == "Blood" then
  1293. local Mesh = Thing[7]
  1294. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1295. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1296. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1297. elseif Thing[2] == "Elec" then
  1298. local Mesh = Thing[1].Mesh
  1299. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1300. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1301. elseif Thing[2] == "Disappear" then
  1302. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1303. elseif Thing[2] == "Shatter" then
  1304. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1305. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1306. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1307. Thing[6] = Thing[6] + Thing[5]
  1308. end
  1309. else
  1310. Part.Parent = nil
  1311. table.remove(Effects, e)
  1312. end
  1313. end
  1314. end
  1315. end
  1316. end
  1317. end
  1318. -------------------------------------------------------
  1319. --End Animations And Script--
  1320. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement