Advertisement
Guest User

Untitled

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