Advertisement
SonicrixLP

Untitled

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