Advertisement
Guest User

eeeeeee

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