Advertisement
Guest User

Exploding Noob Script [Non-Fe]

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