carlosname

Untitled

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