Advertisement
valentino2016

Bye Bye Fe

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