Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 59.37 KB | None | 0 0
  1. -----------------------
  2. --Bye Bye--
  3. -------------------------------------------------------
  4. --A script By makhail07
  5.  
  6. --edited by ApatheticKoala
  7.  
  8. --Probably my most brutal script yet :joy:
  9.  
  10. --Discord Creterisk#2958
  11. --Discord Server discord.gg/r7mfmPa self advertisement ftw
  12. -------------------------------------------------------
  13.  
  14. local FavIDs = {
  15. 340106355, --Nefl Crystals
  16. 927529620, --Dimension
  17. 876981900, --Fantasy
  18. 398987889, --Ordinary Days
  19. 1117396305, --Oh wait, it's you.
  20. 885996042, --Action Winter Journey
  21. 919231299, --Sprawling Idiot Effigy
  22. 743466274, --Good Day Sunshine
  23. 727411183, --Knife Fight
  24. 1402748531, --The Earth Is Counting On You!
  25. 595230126 --Robot Language
  26. }
  27.  
  28.  
  29.  
  30. --The reality of my life isn't real but a Universe -makhail07
  31. wait()
  32. local plr = game:service'Players'.LocalPlayer
  33. print('Local User is '..plr.Name)
  34. local char = plr.Character
  35. local hum = char.Humanoid
  36. local ra = char["Right Arm"]
  37. local la= char["Left Arm"]
  38. local rl= char["Right Leg"]
  39. local ll = char["Left Leg"]
  40. local hed = char.Head
  41. local root = char.HumanoidRootPart
  42. local rootj = root.RootJoint
  43. local tors = char.Torso
  44. local mouse = plr:GetMouse()
  45. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  46. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  47. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  48.  
  49.  
  50. -------------------------------------------------------
  51. --Start Good Stuff--
  52. -------------------------------------------------------
  53. CF = CFrame.new
  54. angles = CFrame.Angles
  55. attack = false
  56. Euler = CFrame.fromEulerAnglesXYZ
  57. Rad = math.rad
  58. IT = Instance.new
  59. BrickC = BrickColor.new
  60. Cos = math.cos
  61. Acos = math.acos
  62. Sin = math.sin
  63. Asin = math.asin
  64. Abs = math.abs
  65. Mrandom = math.random
  66. Floor = math.floor
  67. -------------------------------------------------------
  68. --End Good Stuff--
  69. -------------------------------------------------------
  70. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  71. RSH, LSH = nil, nil
  72. RW = Instance.new("Weld")
  73. LW = Instance.new("Weld")
  74. RH = tors["Right Hip"]
  75. LH = tors["Left Hip"]
  76. RSH = tors["Right Shoulder"]
  77. LSH = tors["Left Shoulder"]
  78. RSH.Parent = nil
  79. LSH.Parent = nil
  80. RW.Name = "RW"
  81. RW.Part0 = tors
  82. RW.C0 = CF(1.5, 0.5, 0)
  83. RW.C1 = CF(0, 0.5, 0)
  84. RW.Part1 = ra
  85. RW.Parent = tors
  86. LW.Name = "LW"
  87. LW.Part0 = tors
  88. LW.C0 = CF(-1.5, 0.5, 0)
  89. LW.C1 = CF(0, 0.5, 0)
  90. LW.Part1 = la
  91. LW.Parent = tors
  92. Effects = {}
  93.  
  94. -------------------------------------------------------
  95. --Start HeartBeat--
  96. -------------------------------------------------------
  97. ArtificialHB = Instance.new("BindableEvent", script)
  98. ArtificialHB.Name = "Heartbeat"
  99. script:WaitForChild("Heartbeat")
  100.  
  101. frame = 1 / 60
  102. tf = 0
  103. allowframeloss = false
  104. tossremainder = false
  105.  
  106.  
  107. lastframe = tick()
  108. script.Heartbeat:Fire()
  109.  
  110.  
  111. game:GetService("RunService").Heartbeat:connect(function(s, p)
  112. tf = tf + s
  113. if tf >= frame then
  114. if allowframeloss then
  115. script.Heartbeat:Fire()
  116. lastframe = tick()
  117. else
  118. for i = 1, math.floor(tf / frame) do
  119. script.Heartbeat:Fire()
  120. end
  121. lastframe = tick()
  122. end
  123. if tossremainder then
  124. tf = 0
  125. else
  126. tf = tf - frame * math.floor(tf / frame)
  127. end
  128. end
  129. end)
  130. -------------------------------------------------------
  131. --End HeartBeat--
  132. -------------------------------------------------------
  133.  
  134. -------------------------------------------------------
  135. --Start Important Functions--
  136. -------------------------------------------------------
  137. function swait(num)
  138. if num == 0 or num == nil then
  139. game:service("RunService").Stepped:wait(0)
  140. else
  141. for i = 0, num do
  142. game:service("RunService").Stepped:wait(0)
  143. end
  144. end
  145. end
  146. function thread(f)
  147. coroutine.resume(coroutine.create(f))
  148. end
  149. function clerp(a, b, t)
  150. local qa = {
  151. QuaternionFromCFrame(a)
  152. }
  153. local qb = {
  154. QuaternionFromCFrame(b)
  155. }
  156. local ax, ay, az = a.x, a.y, a.z
  157. local bx, by, bz = b.x, b.y, b.z
  158. local _t = 1 - t
  159. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  160. end
  161. function QuaternionFromCFrame(cf)
  162. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  163. local trace = m00 + m11 + m22
  164. if trace > 0 then
  165. local s = math.sqrt(1 + trace)
  166. local recip = 0.5 / s
  167. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  168. else
  169. local i = 0
  170. if m00 < m11 then
  171. i = 1
  172. end
  173. if m22 > (i == 0 and m00 or m11) then
  174. i = 2
  175. end
  176. if i == 0 then
  177. local s = math.sqrt(m00 - m11 - m22 + 1)
  178. local recip = 0.5 / s
  179. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  180. elseif i == 1 then
  181. local s = math.sqrt(m11 - m22 - m00 + 1)
  182. local recip = 0.5 / s
  183. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  184. elseif i == 2 then
  185. local s = math.sqrt(m22 - m00 - m11 + 1)
  186. local recip = 0.5 / s
  187. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  188. end
  189. end
  190. end
  191. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  192. local xs, ys, zs = x + x, y + y, z + z
  193. local wx, wy, wz = w * xs, w * ys, w * zs
  194. local xx = x * xs
  195. local xy = x * ys
  196. local xz = x * zs
  197. local yy = y * ys
  198. local yz = y * zs
  199. local zz = z * zs
  200. 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))
  201. end
  202. function QuaternionSlerp(a, b, t)
  203. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  204. local startInterp, finishInterp
  205. if cosTheta >= 1.0E-4 then
  206. if 1 - cosTheta > 1.0E-4 then
  207. local theta = math.acos(cosTheta)
  208. local invSinTheta = 1 / Sin(theta)
  209. startInterp = Sin((1 - t) * theta) * invSinTheta
  210. finishInterp = Sin(t * theta) * invSinTheta
  211. else
  212. startInterp = 1 - t
  213. finishInterp = t
  214. end
  215. elseif 1 + cosTheta > 1.0E-4 then
  216. local theta = math.acos(-cosTheta)
  217. local invSinTheta = 1 / Sin(theta)
  218. startInterp = Sin((t - 1) * theta) * invSinTheta
  219. finishInterp = Sin(t * theta) * invSinTheta
  220. else
  221. startInterp = t - 1
  222. finishInterp = t
  223. end
  224. 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
  225. end
  226. function rayCast(Position, Direction, Range, Ignore)
  227. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  228. end
  229. local RbxUtility = LoadLibrary("RbxUtility")
  230. local Create = RbxUtility.Create
  231.  
  232. -------------------------------------------------------
  233. --Start Damage Function--
  234. -------------------------------------------------------
  235. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  236. if hit.Parent == nil then
  237. return
  238. end
  239. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  240. for _, v in pairs(hit.Parent:children()) do
  241. if v:IsA("Humanoid") then
  242. h = v
  243. end
  244. end
  245. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  246.  
  247. hit.Parent:FindFirstChild("Head"):BreakJoints()
  248. end
  249.  
  250. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  251. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  252. if hit.Parent.DebounceHit.Value == true then
  253. return
  254. end
  255. end
  256. if insta == true then
  257. hit.Parent:FindFirstChild("Head"):BreakJoints()
  258. end
  259. local c = Create("ObjectValue"){
  260. Name = "creator",
  261. Value = game:service("Players").LocalPlayer,
  262. Parent = h,
  263. }
  264. game:GetService("Debris"):AddItem(c, .5)
  265. if HitSound ~= nil and HitPitch ~= nil then
  266. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  267. end
  268. local Damage = math.random(minim, maxim)
  269. local blocked = false
  270. local block = hit.Parent:findFirstChild("Block")
  271. if block ~= nil then
  272. if block.className == "IntValue" then
  273. if block.Value > 0 then
  274. blocked = true
  275. block.Value = block.Value - 1
  276. print(block.Value)
  277. end
  278. end
  279. end
  280. if blocked == false then
  281. h.Health = h.Health - Damage
  282. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  283. else
  284. h.Health = h.Health - (Damage / 2)
  285. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  286. end
  287. if Type == "Knockdown" then
  288. local hum = hit.Parent.Humanoid
  289. hum.PlatformStand = true
  290. coroutine.resume(coroutine.create(function(HHumanoid)
  291. swait(1)
  292. HHumanoid.PlatformStand = false
  293. end), hum)
  294. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  295. local bodvol = Create("BodyVelocity"){
  296. velocity = angle * knockback,
  297. P = 5000,
  298. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  299. Parent = hit,
  300. }
  301. local rl = Create("BodyAngularVelocity"){
  302. P = 3000,
  303. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  304. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  305. Parent = hit,
  306. }
  307. game:GetService("Debris"):AddItem(bodvol, .5)
  308. game:GetService("Debris"):AddItem(rl, .5)
  309. elseif Type == "Normal" then
  310. local vp = Create("BodyVelocity"){
  311. P = 500,
  312. maxForce = Vector3.new(math.huge, 0, math.huge),
  313. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  314. }
  315. if knockback > 0 then
  316. vp.Parent = hit.Parent.Torso
  317. end
  318. game:GetService("Debris"):AddItem(vp, .5)
  319. elseif Type == "Up" then
  320. local bodyVelocity = Create("BodyVelocity"){
  321. velocity = Vector3.new(0, 20, 0),
  322. P = 5000,
  323. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  324. Parent = hit,
  325. }
  326. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  327. elseif Type == "DarkUp" then
  328. coroutine.resume(coroutine.create(function()
  329. for i = 0, 1, 0.1 do
  330. swait()
  331. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  332. end
  333. end))
  334. local bodyVelocity = Create("BodyVelocity"){
  335. velocity = Vector3.new(0, 20, 0),
  336. P = 5000,
  337. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  338. Parent = hit,
  339. }
  340. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  341. elseif Type == "Snare" then
  342. local bp = Create("BodyPosition"){
  343. P = 2000,
  344. D = 100,
  345. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  346. position = hit.Parent.Torso.Position,
  347. Parent = hit.Parent.Torso,
  348. }
  349. game:GetService("Debris"):AddItem(bp, 1)
  350. elseif Type == "Freeze" then
  351. local BodPos = Create("BodyPosition"){
  352. P = 50000,
  353. D = 1000,
  354. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  355. position = hit.Parent.Torso.Position,
  356. Parent = hit.Parent.Torso,
  357. }
  358. local BodGy = Create("BodyGyro") {
  359. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  360. P = 20e+003,
  361. Parent = hit.Parent.Torso,
  362. cframe = hit.Parent.Torso.CFrame,
  363. }
  364. hit.Parent.Torso.Anchored = true
  365. coroutine.resume(coroutine.create(function(Part)
  366. swait(1.5)
  367. Part.Anchored = false
  368. end), hit.Parent.Torso)
  369. game:GetService("Debris"):AddItem(BodPos, 3)
  370. game:GetService("Debris"):AddItem(BodGy, 3)
  371. end
  372. local debounce = Create("BoolValue"){
  373. Name = "DebounceHit",
  374. Parent = hit.Parent,
  375. Value = true,
  376. }
  377. game:GetService("Debris"):AddItem(debounce, Delay)
  378. c = Create("ObjectValue"){
  379. Name = "creator",
  380. Value = Player,
  381. Parent = h,
  382. }
  383. game:GetService("Debris"):AddItem(c, .5)
  384. end
  385. end
  386. -------------------------------------------------------
  387. --End Damage Function--
  388. -------------------------------------------------------
  389.  
  390. -------------------------------------------------------
  391. --Start Damage Function Customization--
  392. -------------------------------------------------------
  393. function ShowDamage(Pos, Text, Time, Color)
  394. local Rate = (1 / 30)
  395. local Pos = (Pos or Vector3.new(0, 0, 0))
  396. local Text = (Text or "")
  397. local Time = (Time or 2)
  398. local Color = (Color or Color3.new(1, 0, 1))
  399. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  400. EffectPart.Anchored = true
  401. local BillboardGui = Create("BillboardGui"){
  402. Size = UDim2.new(3, 0, 3, 0),
  403. Adornee = EffectPart,
  404. Parent = EffectPart,
  405. }
  406. local TextLabel = Create("TextLabel"){
  407. BackgroundTransparency = 1,
  408. Size = UDim2.new(1, 0, 1, 0),
  409. Text = Text,
  410. Font = "Bodoni",
  411. TextColor3 = Color,
  412. TextScaled = true,
  413. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  414. Parent = BillboardGui,
  415. }
  416. game.Debris:AddItem(EffectPart, (Time))
  417. EffectPart.Parent = game:GetService("Workspace")
  418. delay(0, function()
  419. local Frames = (Time / Rate)
  420. for Frame = 1, Frames do
  421. wait(Rate)
  422. local Percent = (Frame / Frames)
  423. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  424. TextLabel.TextTransparency = Percent
  425. end
  426. if EffectPart and EffectPart.Parent then
  427. EffectPart:Destroy()
  428. end
  429. end)
  430. end
  431. -------------------------------------------------------
  432. --End Damage Function Customization--
  433. -------------------------------------------------------
  434.  
  435. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  436. for _, c in pairs(workspace:children()) do
  437. local hum = c:findFirstChild("Humanoid")
  438. if hum ~= nil then
  439. local head = c:findFirstChild("Head")
  440. if head ~= nil then
  441. local targ = head.Position - Part.Position
  442. local mag = targ.magnitude
  443. if magni >= mag and c.Name ~= plr.Name then
  444. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  445. end
  446. end
  447. end
  448. end
  449. end
  450.  
  451.  
  452. CFuncs = {
  453. Part = {
  454. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  455. local Part = Create("Part")({
  456. Parent = Parent,
  457. Reflectance = Reflectance,
  458. Transparency = Transparency,
  459. CanCollide = false,
  460. Locked = true,
  461. BrickColor = BrickColor.new(tostring(BColor)),
  462. Name = Name,
  463. Size = Size,
  464. Material = Material
  465. })
  466. RemoveOutlines(Part)
  467. return Part
  468. end
  469. },
  470. Mesh = {
  471. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  472. local Msh = Create(Mesh)({
  473. Parent = Part,
  474. Offset = OffSet,
  475. Scale = Scale
  476. })
  477. if Mesh == "SpecialMesh" then
  478. Msh.MeshType = MeshType
  479. Msh.MeshId = MeshId
  480. end
  481. return Msh
  482. end
  483. },
  484. Mesh = {
  485. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  486. local Msh = Create(Mesh)({
  487. Parent = Part,
  488. Offset = OffSet,
  489. Scale = Scale
  490. })
  491. if Mesh == "SpecialMesh" then
  492. Msh.MeshType = MeshType
  493. Msh.MeshId = MeshId
  494. end
  495. return Msh
  496. end
  497. },
  498. Weld = {
  499. Create = function(Parent, Part0, Part1, C0, C1)
  500. local Weld = Create("Weld")({
  501. Parent = Parent,
  502. Part0 = Part0,
  503. Part1 = Part1,
  504. C0 = C0,
  505. C1 = C1
  506. })
  507. return Weld
  508. end
  509. },
  510. Sound = {
  511. Create = function(id, par, vol, pit)
  512. coroutine.resume(coroutine.create(function()
  513. local S = Create("Sound")({
  514. Volume = vol,
  515. Pitch = pit or 1,
  516. SoundId = id,
  517. Parent = par or workspace
  518. })
  519. wait()
  520. S:play()
  521. game:GetService("Debris"):AddItem(S, 6)
  522. end))
  523. end
  524. },
  525. ParticleEmitter = {
  526. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  527. local fp = Create("ParticleEmitter")({
  528. Parent = Parent,
  529. Color = ColorSequence.new(Color1, Color2),
  530. LightEmission = LightEmission,
  531. Size = Size,
  532. Texture = Texture,
  533. Transparency = Transparency,
  534. ZOffset = ZOffset,
  535. Acceleration = Accel,
  536. Drag = Drag,
  537. LockedToPart = LockedToPart,
  538. VelocityInheritance = VelocityInheritance,
  539. EmissionDirection = EmissionDirection,
  540. Enabled = Enabled,
  541. Lifetime = LifeTime,
  542. Rate = Rate,
  543. Rotation = Rotation,
  544. RotSpeed = RotSpeed,
  545. Speed = Speed,
  546. VelocitySpread = VelocitySpread
  547. })
  548. return fp
  549. end
  550. }
  551. }
  552. function RemoveOutlines(part)
  553. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  554. end
  555. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  556. local Part = Create("Part")({
  557. formFactor = FormFactor,
  558. Parent = Parent,
  559. Reflectance = Reflectance,
  560. Transparency = Transparency,
  561. CanCollide = false,
  562. Locked = true,
  563. BrickColor = BrickColor.new(tostring(BColor)),
  564. Name = Name,
  565. Size = Size,
  566. Material = Material
  567. })
  568. RemoveOutlines(Part)
  569. return Part
  570. end
  571. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  572. local Msh = Create(Mesh)({
  573. Parent = Part,
  574. Offset = OffSet,
  575. Scale = Scale
  576. })
  577. if Mesh == "SpecialMesh" then
  578. Msh.MeshType = MeshType
  579. Msh.MeshId = MeshId
  580. end
  581. return Msh
  582. end
  583. function CreateWeld(Parent, Part0, Part1, C0, C1)
  584. local Weld = Create("Weld")({
  585. Parent = Parent,
  586. Part0 = Part0,
  587. Part1 = Part1,
  588. C0 = C0,
  589. C1 = C1
  590. })
  591. return Weld
  592. end
  593.  
  594.  
  595. -------------------------------------------------------
  596. --Start Effect Function--
  597. -------------------------------------------------------
  598. EffectModel = Instance.new("Model", char)
  599. Effects = {
  600. Block = {
  601. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  602. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  603. prt.Anchored = true
  604. prt.CFrame = cframe
  605. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  606. game:GetService("Debris"):AddItem(prt, 10)
  607. if Type == 1 or Type == nil then
  608. table.insert(Effects, {
  609. prt,
  610. "Block1",
  611. delay,
  612. x3,
  613. y3,
  614. z3,
  615. msh
  616. })
  617. elseif Type == 2 then
  618. table.insert(Effects, {
  619. prt,
  620. "Block2",
  621. delay,
  622. x3,
  623. y3,
  624. z3,
  625. msh
  626. })
  627. else
  628. table.insert(Effects, {
  629. prt,
  630. "Block3",
  631. delay,
  632. x3,
  633. y3,
  634. z3,
  635. msh
  636. })
  637. end
  638. end
  639. },
  640. Sphere = {
  641. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  642. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  643. prt.Anchored = true
  644. prt.CFrame = cframe
  645. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  646. game:GetService("Debris"):AddItem(prt, 10)
  647. table.insert(Effects, {
  648. prt,
  649. "Cylinder",
  650. delay,
  651. x3,
  652. y3,
  653. z3,
  654. msh
  655. })
  656. end
  657. },
  658. Cylinder = {
  659. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  660. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  661. prt.Anchored = true
  662. prt.CFrame = cframe
  663. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  664. game:GetService("Debris"):AddItem(prt, 10)
  665. table.insert(Effects, {
  666. prt,
  667. "Cylinder",
  668. delay,
  669. x3,
  670. y3,
  671. z3,
  672. msh
  673. })
  674. end
  675. },
  676. Wave = {
  677. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  678. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  679. prt.Anchored = true
  680. prt.CFrame = cframe
  681. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  682. game:GetService("Debris"):AddItem(prt, 10)
  683. table.insert(Effects, {
  684. prt,
  685. "Cylinder",
  686. delay,
  687. x3 / 60,
  688. y3 / 60,
  689. z3 / 60,
  690. msh
  691. })
  692. end
  693. },
  694. Ring = {
  695. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  696. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  697. prt.Anchored = true
  698. prt.CFrame = cframe
  699. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  700. game:GetService("Debris"):AddItem(prt, 10)
  701. table.insert(Effects, {
  702. prt,
  703. "Cylinder",
  704. delay,
  705. x3,
  706. y3,
  707. z3,
  708. msh
  709. })
  710. end
  711. },
  712. Break = {
  713. Create = function(brickcolor, cframe, x1, y1, z1)
  714. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  715. prt.Anchored = true
  716. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  717. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  718. local num = math.random(10, 50) / 1000
  719. game:GetService("Debris"):AddItem(prt, 10)
  720. table.insert(Effects, {
  721. prt,
  722. "Shatter",
  723. num,
  724. prt.CFrame,
  725. math.random() - math.random(),
  726. 0,
  727. math.random(50, 100) / 100
  728. })
  729. end
  730. },
  731. Spiral = {
  732. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  733. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  734. prt.Anchored = true
  735. prt.CFrame = cframe
  736. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  737. game:GetService("Debris"):AddItem(prt, 10)
  738. table.insert(Effects, {
  739. prt,
  740. "Cylinder",
  741. delay,
  742. x3,
  743. y3,
  744. z3,
  745. msh
  746. })
  747. end
  748. },
  749. Push = {
  750. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  751. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  752. prt.Anchored = true
  753. prt.CFrame = cframe
  754. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  755. game:GetService("Debris"):AddItem(prt, 10)
  756. table.insert(Effects, {
  757. prt,
  758. "Cylinder",
  759. delay,
  760. x3,
  761. y3,
  762. z3,
  763. msh
  764. })
  765. end
  766. }
  767. }
  768. -------------------------------------------------------
  769. --End Effect Function--
  770. -------------------------------------------------------
  771.  
  772. function CreateSound(ID, PARENT, VOLUME, PITCH)
  773. local NSound = nil
  774. coroutine.resume(coroutine.create(function()
  775. NSound = Instance.new("Sound", PARENT)
  776. NSound.Volume = VOLUME
  777. NSound.Pitch = PITCH
  778. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  779. swait()
  780. NSound:play()
  781. game:GetService("Debris"):AddItem(NSound, 10)
  782. end))
  783. return NSound
  784. end
  785.  
  786. -------------------------------------------------------
  787. --Start Kyu's shitty stuff--
  788. -------------------------------------------------------
  789.  
  790. function ragdoll(model)
  791. local char = model
  792. torso = char.HumanoidRootPart
  793. torso2 = char.Torso
  794. LW.Parent = nil
  795. RW.Parent = nil
  796. LH.Parent = nil
  797. RH.Parent = nil
  798. if hum ~= nil then
  799. hum.PlatformStand = true
  800. end
  801.  
  802. local Head = char:FindFirstChild("Head")
  803. if Head then
  804. local Neck = Instance.new("Weld")
  805. Neck.Name = "Neck"
  806. Neck.Part0 = torso
  807. Neck.Part1 = Head
  808. Neck.C0 = CFrame.new(0, 1.5, 0)
  809. Neck.C1 = CFrame.new()
  810. Neck.Parent = torso
  811. end
  812. local Limb = char:FindFirstChild("Right Arm")
  813. if Limb then
  814.  
  815. Limb.CFrame = torso.CFrame * CFrame.new(1.5, 0, 0)
  816. local Joint = Instance.new("Glue")
  817. Joint.Name = "RightShoulder"
  818. Joint.Part0 = torso
  819. Joint.Part1 = Limb
  820. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  821. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  822. Joint.Parent = torso
  823.  
  824. local B = Instance.new("Part")
  825. B.TopSurface = 0
  826. B.BottomSurface = 0
  827. B.formFactor = "Symmetric"
  828. B.Size = Vector3.new(1, 1, 1)
  829. B.Transparency = 1
  830. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  831. B.Parent = char
  832. local W = Instance.new("Weld")
  833. W.Part0 = Limb
  834. W.Part1 = B
  835. W.C0 = CFrame.new(0, -0.5, 0)
  836. W.Parent = Limb
  837.  
  838. end
  839. local Limb = char:FindFirstChild("Left Arm")
  840. if Limb then
  841.  
  842. Limb.CFrame = torso.CFrame * CFrame.new(-1.5, 0, 0)
  843. local Joint = Instance.new("Glue")
  844. Joint.Name = "LeftShoulder"
  845. Joint.Part0 = torso
  846. Joint.Part1 = Limb
  847. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  848. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  849. Joint.Parent = torso
  850.  
  851. local B = Instance.new("Part")
  852. B.TopSurface = 0
  853. B.BottomSurface = 0
  854. B.formFactor = "Symmetric"
  855. B.Size = Vector3.new(1, 1, 1)
  856. B.Transparency = 1
  857. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  858. B.Parent = char
  859. local W = Instance.new("Weld")
  860. W.Part0 = Limb
  861. W.Part1 = B
  862. W.C0 = CFrame.new(0, -0.5, 0)
  863. W.Parent = Limb
  864.  
  865. end
  866. local Limb = char:FindFirstChild("Right Leg")
  867. if Limb then
  868.  
  869. Limb.CFrame = torso.CFrame * CFrame.new(0.5, -2, 0)
  870. local Joint = Instance.new("Glue")
  871. Joint.Name = "RightHip"
  872. Joint.Part0 = torso
  873. Joint.Part1 = Limb
  874. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  875. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  876. Joint.Parent = torso
  877.  
  878. local B = Instance.new("Part")
  879. B.TopSurface = 0
  880. B.BottomSurface = 0
  881. B.formFactor = "Symmetric"
  882. B.Size = Vector3.new(1, 1, 1)
  883. B.Transparency = 1
  884. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  885. B.Parent = char
  886. local W = Instance.new("Weld")
  887. W.Part0 = Limb
  888. W.Part1 = B
  889. W.C0 = CFrame.new(0, -0.5, 0)
  890. W.Parent = Limb
  891.  
  892. end
  893. local Limb = char:FindFirstChild("Left Leg")
  894. if Limb then
  895.  
  896. Limb.CFrame = torso.CFrame * CFrame.new(-0.5, -2, 0)
  897. local Joint = Instance.new("Glue")
  898. Joint.Name = "LeftHip"
  899. Joint.Part0 = torso
  900. Joint.Part1 = Limb
  901. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  902. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  903. Joint.Parent = torso
  904.  
  905. local B = Instance.new("Part")
  906. B.TopSurface = 0
  907. B.BottomSurface = 0
  908. B.formFactor = "Symmetric"
  909. B.Size = Vector3.new(1, 1, 1)
  910. B.Transparency = 1
  911. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  912. B.Parent = char
  913. local W = Instance.new("Weld")
  914. W.Part0 = Limb
  915. W.Part1 = B
  916. W.C0 = CFrame.new(0, -0.5, 0)
  917. W.Parent = Limb
  918.  
  919. end
  920. --[
  921. local Bar = Instance.new("Part")
  922. Bar.TopSurface = 0
  923. Bar.BottomSurface = 0
  924. Bar.formFactor = "Symmetric"
  925. Bar.Size = Vector3.new(1, 1, 1)
  926. Bar.Transparency = 1
  927. Bar.CFrame = torso.CFrame * CFrame.new(0, 0.5, 0)
  928. Bar.Parent = char
  929. local Weld = Instance.new("Weld")
  930. Weld.Part0 = torso
  931. Weld.Part1 = Bar
  932. Weld.C0 = CFrame.new(0, 0.5, 0)
  933. Weld.Parent = torso
  934. --]]
  935.  
  936. torso.CFrame = CFrame.new(torso.Position)*CFrame.Angles(math.rad(20),math.rad(torso.Orientation.Y),math.rad(torso.Orientation.Z))
  937.  
  938. end
  939.  
  940. -------------------------------------------------------
  941. --End Kyu's shitty stuff--
  942. -------------------------------------------------------
  943.  
  944. function New(Object, Parent, Name, Data)
  945. local Object = Instance.new(Object)
  946. for Index, Value in pairs(Data or {}) do
  947. Object[Index] = Value
  948. end
  949. Object.Parent = Parent
  950. Object.Name = Name
  951. return Object
  952. end
  953.  
  954. local Blood1 = Create("ParticleEmitter")({
  955. Color = ColorSequence.new(Color3.new(0.7, 0, 0), Color3.new(0.1, 0, 0)),
  956. Transparency = NumberSequence.new(0.1, 1),
  957. Size = NumberSequence.new(0.5, 0),
  958. Texture = "rbxassetid://602578593",
  959. Lifetime = NumberRange.new(0.8),
  960. Rate = 255,
  961. VelocitySpread = 40,
  962. Rotation = NumberRange.new(100),
  963. Speed = NumberRange.new(5),
  964. LightEmission = 0,
  965. LockedToPart = false,
  966. Acceleration = Vector3.new(0, -10, 0),
  967. EmissionDirection = "Bottom"
  968. })
  969.  
  970. FHead = New("Part",char,"FHead",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  971. Mesh = New("SpecialMesh",FHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),})
  972. Weld = New("Weld",FHead,"mot",{Part0 = FHead,Part1 = char.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  973. FHead.CanCollide = false
  974.  
  975. -------------------------------------------------------
  976. --End Important Functions--
  977. -------------------------------------------------------
  978.  
  979.  
  980. -------------------------------------------------------
  981. --Start Music Option--
  982. -------------------------------------------------------
  983. local Music = Instance.new("Sound",tors)
  984. Music.Volume = 2.5
  985. Music.SoundId = "rbxassetid://1504604335"
  986. Music.Looped = true
  987. Music.Pitch = 1 --Pitcher
  988. Music:Play()
  989. -------------------------------------------------------
  990. --End Music Option--
  991. -------------------------------------------------------
  992.  
  993.  
  994. -------------------------------------------------------
  995. --Start Attacks N Stuff--
  996. -------------------------------------------------------
  997.  
  998.  
  999.  
  1000.  
  1001. local sine=0
  1002. function ByeBye()
  1003. local target = nil
  1004. local targettorso = nil
  1005. if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  1006. if mouse.Target.Parent.Humanoid.PlatformStand == false then
  1007. target = mouse.Target.Parent.Humanoid
  1008. targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso")
  1009. targethead = mouse.Target.Parent:FindFirstChild("Head")
  1010. end
  1011. end
  1012. if target ~= nil then
  1013. targettorso.Anchored = true
  1014. attack = true
  1015. hum.WalkSpeed = 0
  1016. root.CFrame = targettorso.CFrame * CF(0,0,2)
  1017. for i = 0,4.2,0.1 do
  1018. swait()
  1019. 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)
  1020. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1021. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1022. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1023. RW.C0 = clerp(RW.C0, CF(1.1, 0.7 + 0.05 * Sin(sine / 30), -.6 + 0.025 * Cos(sine / 20)) * angles(Rad(115), Rad(0), Rad(-15)), 0.1)
  1024. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(-25)), 0.1)
  1025. end
  1026. local bloody = Instance.new("ParticleEmitter",targettorso)
  1027. bloody.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  1028. bloody.LightEmission = .1
  1029. bloody.Size = NumberSequence.new(0.5, 0)
  1030. bloody.Texture = "http://www.roblox.com/asset/?ID=602578593"
  1031. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  1032. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1033. bloody.Transparency = bbb
  1034. bloody.Size = aaa
  1035. bloody.ZOffset = -.9
  1036. bloody.Acceleration = Vector3.new(0, -5, 0)
  1037. bloody.LockedToPart = false
  1038. bloody.Lifetime = NumberRange.new(0.8)
  1039. bloody.Rate = 255
  1040. bloody.Rotation = NumberRange.new(-100, 100)
  1041. bloody.RotSpeed = NumberRange.new(-100, 100)
  1042. bloody.Speed = NumberRange.new(6)
  1043. bloody.VelocitySpread = 0
  1044. bloody.Enabled=true
  1045. targethead:Remove()
  1046. CreateSound("429400881", targettorso, 5, .8)
  1047. CreateSound("1093102664", targettorso, 10, 1)
  1048. for i = 0,6.2,0.1 do
  1049. swait()
  1050. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(110)), 0.15)
  1051. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-110)), 0.3)
  1052. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1053. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1054. RW.C0 = clerp(RW.C0, CF(1.3, 0.7 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(100), Rad(0), Rad(-15)), 0.1)
  1055. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  1056. end
  1057. targettorso.Anchored = false
  1058. attack = false
  1059. hum.WalkSpeed = 16
  1060. root.CFrame = targettorso.CFrame * CF(0,0,3)
  1061. end
  1062. end
  1063.  
  1064.  
  1065. function Sayonara()
  1066. local target = nil
  1067. local targettorso = nil
  1068. if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  1069. if mouse.Target.Parent.Humanoid.PlatformStand == false then
  1070. target = mouse.Target.Parent.Humanoid
  1071. targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso")
  1072. targethead = mouse.Target.Parent:FindFirstChild("Head")
  1073. targetrightarm = mouse.Target.Parent:FindFirstChild("Right Arm")
  1074. targetleftarm = mouse.Target.Parent:FindFirstChild("Left Arm")
  1075. end
  1076. end
  1077. if target ~= nil then
  1078. targettorso.Anchored = true
  1079. attack = true
  1080. hum.WalkSpeed = 0
  1081. root.CFrame = targettorso.CFrame * CF(0,0,2.4)
  1082. for i = 0,6.2,0.1 do
  1083. swait()
  1084. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.15)
  1085. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(10), Rad(0)), 0.3)
  1086. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(10)), 0.15)
  1087. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-10)), 0.15)
  1088. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(10)), 0.1)
  1089. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(-10)), 0.1)
  1090. end
  1091. do
  1092. CreateSound("429400881", targettorso, 5, 1)
  1093. local ModelArm02 = New("Model", char, "Arm", {})
  1094. local ModelArm03 = New("Model", char, "Arm", {})
  1095. local Humanoid02 = New("Humanoid", ModelArm02, "Humanoid", {})
  1096. local Humanoid03 = New("Humanoid", ModelArm03, "Humanoid", {})
  1097. local Arm02 = targetleftarm:Clone()
  1098. local Arm03 = targetrightarm:Clone()
  1099. targetleftarm.Transparency = 1
  1100. targetrightarm.Transparency = 1
  1101. Arm02.Parent = ModelArm02
  1102. Arm03.Parent = ModelArm03
  1103. for i, v in pairs(Arm02:GetChildren()) do
  1104. v:Destroy()
  1105. end
  1106. for i, v in pairs(Arm03:GetChildren()) do
  1107. v:Destroy()
  1108. end
  1109. local weldArm02 = Instance.new("Weld")
  1110. weldArm02.Parent = Arm02
  1111. weldArm02.Part0 = targetleftarm
  1112. weldArm02.Part1 = Arm02
  1113. weldArm02.C1 = CFrame.new(0, 0, 0)
  1114. local weldArm03 = Instance.new("Weld")
  1115. weldArm03.Parent = Arm03
  1116. weldArm03.Part0 = targetrightarm
  1117. weldArm03.Part1 = Arm03
  1118. weldArm03.C1 = CFrame.new(0, 0, 0)
  1119. for i, v in pairs(target:GetChildren()) do
  1120. if v:IsA("Shirt") then
  1121. v:clone().Parent = ModelArm02
  1122. end
  1123. end
  1124. for i, v in pairs(target:GetChildren()) do
  1125. if v:IsA("Shirt") then
  1126. v:clone().Parent = ModelArm03
  1127. end
  1128. end
  1129. weldArm02.Part0 = la
  1130. weldArm02.C1 = CFrame.new(0, 0, 1.2) * angles(math.rad(90), math.rad(0), math.rad(0))
  1131. weldArm03.Part0 = ra
  1132. weldArm03.C1 = CFrame.new(0, 0, 1.2) * angles(math.rad(90), math.rad(0), math.rad(0))
  1133. local BE1 = Blood1:Clone()
  1134. BE1.Parent = targetleftarm
  1135. game:GetService("Debris"):AddItem(BE1, 3)
  1136. BE1.Rate = 255
  1137. local BE2 = Blood1:Clone()
  1138. BE2.Parent = targetrightarm
  1139. game:GetService("Debris"):AddItem(BE2, 3)
  1140. BE2.Rate = 255
  1141. for i = 0,6.2,0.1 do
  1142. swait()
  1143. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-10), Rad(0), Rad(0)), 0.15)
  1144. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1145. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(-10)), 0.15)
  1146. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(10)), 0.15)
  1147. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), .6 + 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(15)), 0.1)
  1148. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), .6 + 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(-15)), 0.1)
  1149. end
  1150. for i = 0,6.2,0.1 do
  1151. swait()
  1152. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15)
  1153. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1154. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(-20)), 0.15)
  1155. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15)
  1156. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(0), Rad(15)), 0.1)
  1157. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(0), Rad(-15)), 0.1)
  1158. end
  1159. CreateSound("541909763", targettorso, 5, .8)
  1160. weldArm02:Destroy()
  1161. Arm02.CanCollide = true
  1162. weldArm03:Destroy()
  1163. Arm03.CanCollide = true
  1164. local bodyVelocity2 = Create("BodyVelocity")({
  1165. velocity = Vector3.new(0, 10, 0) + root.CFrame.lookVector * 50,
  1166. P = 5000,
  1167. maxForce = Vector3.new(8000, 8000, 8000),
  1168. Parent = Arm02
  1169. })
  1170. local bodyVelocity3 = Create("BodyVelocity")({
  1171. velocity = Vector3.new(0, 10, 0) + root.CFrame.lookVector * 50,
  1172. P = 5000,
  1173. maxForce = Vector3.new(8000, 8000, 8000),
  1174. Parent = Arm03
  1175. })
  1176. game:GetService("Debris"):AddItem(bodyVelocity2, 0.05)
  1177. game:GetService("Debris"):AddItem(bodyVelocity3, 0.05)
  1178. for i = 0,6.2,0.1 do
  1179. swait()
  1180. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15)
  1181. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1182. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(35)), 0.15)
  1183. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-20)), 0.15)
  1184. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(95), Rad(0), Rad(15)), 0.1)
  1185. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(95), Rad(0), Rad(-15)), 0.1)
  1186. end
  1187. for i = 0,6.2,0.1 do
  1188. swait()
  1189. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15)
  1190. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1191. RH.C0 = clerp(RH.C0, CF(1, -0.3 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(90)), 0.15)
  1192. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15)
  1193. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(15)), 0.1)
  1194. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(-15)), 0.1)
  1195. end
  1196. targettorso:Remove()
  1197. for i = 0,6.2,0.1 do
  1198. swait()
  1199. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -2.5, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(35), Rad(0), Rad(0)), 0.15)
  1200. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1201. RH.C0 = clerp(RH.C0, CF(1, -0.2 - 0.1 * Cos(sine / 20), -.5 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(90)), 0.15)
  1202. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-35)), 0.15)
  1203. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-55), Rad(0), Rad(15)), 0.1)
  1204. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-55), Rad(0), Rad(-15)), 0.1)
  1205. end
  1206. end
  1207. targettorso.Anchored = false
  1208. attack = false
  1209. hum.WalkSpeed = 16
  1210. root.CFrame = targettorso.CFrame * CF(0,0,3.4)
  1211. end
  1212. end
  1213.  
  1214. function AlohaMyFriend()
  1215. local target = nil
  1216. local targettorso = nil
  1217. if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  1218. if mouse.Target.Parent.Humanoid.PlatformStand == false then
  1219. target = mouse.Target.Parent.Humanoid
  1220. targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso")
  1221. targethead = mouse.Target.Parent:FindFirstChild("Head")
  1222. end
  1223. end
  1224. if target ~= nil then
  1225. targettorso.Anchored = true
  1226. attack = true
  1227. hum.WalkSpeed = 0
  1228. root.CFrame = targettorso.CFrame * CF(0,0,2.6)
  1229. for i = 0,6.2,0.1 do
  1230. swait()
  1231. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(20)), 0.15)
  1232. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-20)), 0.3)
  1233. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1234. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1235. RW.C0 = clerp(RW.C0, CF(1.1, 0.7 + 0.05 * Sin(sine / 30), -.6 + 0.025 * Cos(sine / 20)) * angles(Rad(115), Rad(0), Rad(-15)), 0.1)
  1236. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1)
  1237. end
  1238. local ModelHead01 = New("Model", char, "Head of Decapitated", {})
  1239. local Humanoid01 = New("Humanoid", ModelHead01, "Humanoid", {})
  1240. local Head01 = targethead:Clone()
  1241. targethead.Transparency = 1
  1242. Head01.Parent = ModelHead01
  1243. local weldHead01 = Instance.new("Weld")
  1244. weldHead01.Parent = Head01
  1245. weldHead01.Part0 = targethead
  1246. weldHead01.Part1 = Head01
  1247. weldHead01.C1 = CFrame.new(0, 0, 0)
  1248. targethead.face:Remove()
  1249. weldHead01.Part0 = ra
  1250. weldHead01.C1 = CFrame.new(0, 0, 1.2) * angles(math.rad(90), math.rad(0), math.rad(0))
  1251. local BE1 = Blood1:Clone()
  1252. BE1.Parent = targethead
  1253. game:GetService("Debris"):AddItem(BE1, 3)
  1254. BE1.Rate = 255
  1255. targettorso:BreakJoints()
  1256. CreateSound("314390675", targettorso, 5, .7)
  1257. for i = 0,4.2,0.1 do
  1258. swait()
  1259. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(20)), 0.15)
  1260. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-20)), 0.3)
  1261. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1262. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1263. RW.C0 = clerp(RW.C0, CF(1.1, 0.7 + 0.05 * Sin(sine / 30), -.6 + 0.025 * Cos(sine / 20)) * angles(Rad(145), Rad(0), Rad(-15)), 0.1)
  1264. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1)
  1265. end
  1266. for i = 0,6.2,0.1 do
  1267. swait()
  1268. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-40)), 0.15)
  1269. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(40)), 0.3)
  1270. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1271. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1272. RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(185), Rad(0), Rad(15)), 0.1)
  1273. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(-15)), 0.1)
  1274. end
  1275. CreateSound("541909763", targettorso, 5, .8)
  1276. weldHead01:Destroy()
  1277. Head01.CanCollide = true
  1278. local bodyVelocity2 = Create("BodyVelocity")({
  1279. velocity = Vector3.new(0, 10, 0) + root.CFrame.lookVector * 50,
  1280. P = 5000,
  1281. maxForce = Vector3.new(8000, 8000, 8000),
  1282. Parent = Head01
  1283. })
  1284. game:GetService("Debris"):AddItem(bodyVelocity2, 0.05)
  1285. for i = 0,6.2,0.1 do
  1286. swait()
  1287. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(40)), 0.15)
  1288. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.3)
  1289. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1290. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1291. RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(-15)), 0.1)
  1292. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(-15)), 0.1)
  1293. end
  1294. targettorso.Anchored = false
  1295. attack = false
  1296. hum.WalkSpeed = 16
  1297. root.CFrame = targettorso.CFrame * CF(0,0,3.4)
  1298. end
  1299. end
  1300.  
  1301. function Good_Bye()
  1302. local target = nil
  1303. local targettorso = nil
  1304. if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  1305. if mouse.Target.Parent.Humanoid.PlatformStand == false then
  1306. target = mouse.Target.Parent.Humanoid
  1307. targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso")
  1308. targethead = mouse.Target.Parent:FindFirstChild("Head")
  1309. end
  1310. end
  1311. if target ~= nil then
  1312. targettorso.Anchored = true
  1313. attack = true
  1314. hum.WalkSpeed = 0
  1315. root.CFrame = targettorso.CFrame * CF(0,0,3)
  1316. for i = 0,6.2,0.1 do
  1317. swait()
  1318. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-45)), 0.15)
  1319. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(45)), 0.3)
  1320. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1321. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1322. RW.C0 = clerp(RW.C0, CF(1.3, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(25)), 0.1)
  1323. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1)
  1324. end
  1325. local BloodColor = Color3.new(1, 0, 0)
  1326. local PE1 = Blood1:Clone()
  1327. local PE2 = Blood1:Clone()
  1328. local Heart = Instance.new("Part")
  1329. Heart.Parent = workspace
  1330. Heart.Size = Vector3.new(1, 1, 1)
  1331. Heart.Archivable = true
  1332. Heart.Transparency = 0
  1333. Heart.CanCollide = false
  1334. Heart.BrickColor = BrickColor.new("Really red")
  1335. Heart.Material = "Granite"
  1336. Heart.CanCollide = true
  1337. local weld1Heart = Instance.new("Weld")
  1338. weld1Heart.Parent = ra
  1339. weld1Heart.Part0 = ra
  1340. weld1Heart.Part1 = Heart
  1341. weld1Heart.C1 = CFrame.new(0, 1.3, 0)
  1342. CreateSound("429400881", targettorso, 5, 1)
  1343. CreateSound("131038747", targettorso, 7, 1)
  1344. PE1.Parent = ra
  1345. PE2.Parent = Heart
  1346. game:GetService("Debris"):AddItem(PE1, 3)
  1347. game:GetService("Debris"):AddItem(weld1Heart, 1.5)
  1348. game:GetService("Debris"):AddItem(Heart, 8)
  1349. for i = 0,8,0.1 do
  1350. swait()
  1351. rootj.C0 = clerp(rootj.C0, RootCF * CF(1.2, -2.5, -0.2) * angles(Rad(0), Rad(0), Rad(40)), 0.15)
  1352. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(10), Rad(-45)), 0.3)
  1353. RH.C0 = clerp(RH.C0, CF(1, -0.8, -0.4) * RHCF * angles(Rad(-5), Rad(0), Rad(-20)), 0.15)
  1354. LH.C0 = clerp(LH.C0, CF(-1, -0.8, -0.2) * LHCF * angles(Rad(-5), Rad(0), Rad(56)), 0.15)
  1355. RW.C0 = clerp(RW.C0, CF(1.5, 0.51 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(40)), 0.1)
  1356. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1)
  1357. end
  1358. targettorso:BreakJoints()
  1359. for i = 0,9,0.1 do
  1360. swait()
  1361. 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)
  1362. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(-20)), 0.3)
  1363. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1364. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1365. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(15)), 0.1)
  1366. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1)
  1367. end
  1368. targettorso.Anchored = false
  1369. attack = false
  1370. hum.WalkSpeed = 16
  1371. root.CFrame = targettorso.CFrame * CF(0,0,3.4)
  1372. end
  1373. end
  1374.  
  1375. function Taunt()
  1376. attack = true
  1377. hum.WalkSpeed = 0
  1378. CreateSound("290084602", tors, 10, 1)
  1379. for i = 0,6.2,0.1 do
  1380. swait()
  1381. 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)
  1382. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-30), Rad(0), Rad(0)), 0.3)
  1383. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1384. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1385. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-0), Rad(0), Rad(145)), 0.1)
  1386. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-0), Rad(0), Rad(-145)), 0.1)
  1387. end
  1388. for i = 0,6.2,0.1 do
  1389. swait()
  1390. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15)
  1391. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1392. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15)
  1393. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-20)), 0.15)
  1394. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(15)), 0.1)
  1395. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(-15)), 0.1)
  1396. end
  1397. attack = false
  1398. hum.WalkSpeed = 16
  1399. end
  1400. -------------------------------------------------------
  1401. --End Attacks N Stuff--
  1402. -------------------------------------------------------
  1403. mouse.KeyDown:connect(function(key)
  1404. if attack == false then
  1405. if key == 'e' then
  1406. ByeBye()
  1407. elseif key == 'q' then
  1408. Sayonara()
  1409. elseif key == 'r' then
  1410. AlohaMyFriend()
  1411. elseif key == 'f' then
  1412. Good_Bye()
  1413. elseif key == 't' then
  1414. Taunt()
  1415. end
  1416. end
  1417. end)
  1418.  
  1419.  
  1420.  
  1421.  
  1422.  
  1423.  
  1424. game.Players.PlayerAdded:connect(onPlayerRespawned)
  1425. function onPlayerRespawned(newPlayer)
  1426. wait(1)
  1427. if newPlayer.Name == "ApatheticKoala" then --Change kenman132 to your name.
  1428. gui=Instance.new("BillboardGui")
  1429. gui.Parent=newPlayer.Character.Head
  1430. gui.Adornee=newPlayer.Character.Head
  1431. gui.MaxDistance = 100
  1432. gui.Size=UDim2.new(3,0,3,0)
  1433. gui.StudsOffset=Vector3.new(0.5,2,0)
  1434. text=Instance.new("TextLabel")
  1435. text.Text = ("Worldender")
  1436. text.Font = "Cartoon"
  1437. text.TextColor3 = Color3.new('Red')
  1438. text.Size=UDim2.new(1,0,1,0)
  1439. text.FontSize = 'Size32'
  1440. text.Position=UDim2.new(-0.125,0,-0.25,0)
  1441. text.BackgroundTransparency = 1
  1442. text.Parent=gui
  1443. end
  1444. end
  1445.  
  1446. function onPlayerEntered(newPlayer)
  1447. newPlayer.Changed:connect(function (property)
  1448. if (property == "Character") then
  1449. onPlayerRespawned(newPlayer)
  1450. end
  1451. end)
  1452. end
  1453.  
  1454. game.Players.PlayerAdded:connect(onPlayerEntered)
  1455.  
  1456.  
  1457. -------------------------------------------------------
  1458. --Start Animations--
  1459. -------------------------------------------------------
  1460. local equipped = false
  1461. local idle = 0
  1462. local change = 1
  1463. local val = 0
  1464. local toim = 0
  1465. local idleanim = 0.4
  1466. hum.Animator.Parent = nil
  1467. while true do
  1468. swait()
  1469. sine = sine + change
  1470.  
  1471. Music.Parent = char
  1472. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1473. local velderp = root.Velocity.y
  1474. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  1475. if equipped == true or equipped == false then
  1476. if attack == false then
  1477. idle = idle + 1
  1478. else
  1479. idle = 0
  1480. end
  1481. if 1 < root.Velocity.y and hitfloor == nil then
  1482. Anim = "Jump"
  1483. if attack == false then
  1484. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-10), Rad(0), Rad(0)), 0.3)
  1485. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3)
  1486. RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3)
  1487. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3)
  1488. LH.C0=clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
  1489. RH.C0=clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
  1490. end
  1491. elseif -1 > root.Velocity.y and hitfloor == nil then
  1492. Anim = "Fall"
  1493. if attack == false then
  1494. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(5), Rad(0), Rad(0)), 0.3)
  1495. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.3)
  1496. RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3)
  1497. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3)
  1498. LH.C0 = clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
  1499. RH.C0 = clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
  1500. end
  1501. elseif torvel < 1 and hitfloor ~= nil then
  1502. Anim = "Idle"
  1503. change = 1
  1504. if attack == false then
  1505. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(5), Rad(0), Rad(0)), 0.15)
  1506. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(-10 - 2.5 * Sin(sine/ 20)), Rad(20 * Cos(sine / 20))), 0.3)
  1507. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), -.2 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-3.5), Rad(0), Rad(5)), 0.15)
  1508. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-7), Rad(0), Rad(-5)), 0.15)
  1509. RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.10 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(10 + 5 * Sin(sine/ 20))), 0.1)
  1510. LW.C0 = clerp(LW.C0, CF(-1.4, 0.5 + 0.10 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-10 - 5 * Sin(sine/ 20))), 0.1)
  1511. end
  1512. elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then
  1513. Anim = "Walk"
  1514. change = 1
  1515. if attack == false then
  1516. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(9-2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(10 * Cos(sine / 7))), 0.15)
  1517. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1518. RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 - 35 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1519. LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 + 35 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1520. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(70) * Cos(sine / 7) , Rad(0), Rad(10) - ra.RotVelocity.Y / 75), 0.1)
  1521. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-70) * Cos(sine / 7) , Rad(0) , Rad(-10) + la.RotVelocity.Y / 75), 0.1)
  1522. end
  1523. end
  1524. end
  1525. if 0 < #Effects then
  1526. for e = 1, #Effects do
  1527. if Effects[e] ~= nil then
  1528. local Thing = Effects[e]
  1529. if Thing ~= nil then
  1530. local Part = Thing[1]
  1531. local Mode = Thing[2]
  1532. local Delay = Thing[3]
  1533. local IncX = Thing[4]
  1534. local IncY = Thing[5]
  1535. local IncZ = Thing[6]
  1536. if 1 >= Thing[1].Transparency then
  1537. if Thing[2] == "Block1" then
  1538. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1539. local Mesh = Thing[1].Mesh
  1540. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1541. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1542. elseif Thing[2] == "Block2" then
  1543. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1544. local Mesh = Thing[7]
  1545. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1546. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1547. elseif Thing[2] == "Block3" then
  1548. 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)
  1549. local Mesh = Thing[7]
  1550. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1551. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1552. elseif Thing[2] == "Cylinder" then
  1553. local Mesh = Thing[1].Mesh
  1554. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1555. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1556. elseif Thing[2] == "Blood" then
  1557. local Mesh = Thing[7]
  1558. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1559. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1560. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1561. elseif Thing[2] == "Elec" then
  1562. local Mesh = Thing[1].Mesh
  1563. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1564. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1565. elseif Thing[2] == "Disappear" then
  1566. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1567. elseif Thing[2] == "Shatter" then
  1568. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1569. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1570. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1571. Thing[6] = Thing[6] + Thing[5]
  1572. end
  1573. else
  1574. Part.Parent = nil
  1575. table.remove(Effects, e)
  1576. end
  1577. end
  1578. end
  1579. end
  1580. end
  1581. end
  1582. -------------------------------------------------------
  1583. --End Animations And Script--
  1584. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement