Advertisement
saba1517

Untitled

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