Advertisement
SonicrixLP

succmeNUts

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