WishNite

Untitled

Jul 9th, 2022 (edited)
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.21 KB | None | 0 0
  1. func = function(part)
  2.             local CFrameTable = {
  3.                 CassidySpot = CFrame.new(-551.91864, -104.59137, 2612.57056, 0.729159772, -5.48060619e-08, 0.684342861, 8.07524714e-08, 0.999998748, -5.95509064e-09, -0.684343159, 5.9604595e-08, 0.729158878),
  4.                 PlayerSpot = CFrame.new(-551.668762, -104.59137, 2604.87329, -0.83290863, -5.48059305e-08, 0.553407073, -1.26628166e-08, 0.999996245, 7.99753082e-08, -0.553407848, 5.96044565e-08, -0.832907736),
  5.                 LookLeft = CFrame.new(-552.876038, -104.59137, 2614.65063, 0.999999523, -5.48059695e-08, 3.87430191e-07, 5.48060797e-08, 0.999997079, -5.96044956e-08, 3.87430191e-07, 5.96044956e-08, 0.999997437 ),
  6.                 LookRight = CFrame.new(-560.641846, -104.59137, 2603.19775, -7.74860325e-07, -5.48061294e-08, -1, -5.96047158e-08, 1, -5.48060832e-08, 1, 5.96046732e-08, -7.74860382e-07 ),
  7.                 PirateSpot = CFrame.new(-558.21637, -104.591362, 2607.75342, 5.68434189e-14, -5.48061045e-08, -1, -5.96046448e-08, 0.999999583, -5.48061294e-08, 0.999999583, 5.96046448e-08, -5.68434189e-14),
  8.                 CassidyWalk = CFrame.new(  -546.329895, -104.590263, 2608.32568, 1.1368677e-13, -5.48060584e-08, -0.999999583, -5.96046164e-08, 0.999998748, -5.48061045e-08, 0.999999166, 5.9604595e-08, -1.10420116e-13 )
  9.  
  10.             }
  11.             local Cassidy = Cutscene:SetupNPC('Cassidy', CFrameTable.CassidySpot)
  12.             _CF.p.Character.HumanoidRootPart.CFrame = CFrameTable.PlayerSpot
  13.             _CF.ClientDatabase:PDSEvent("Unanchor")
  14.             Util.Halt(.25)
  15.             _CF.Gui:FadeFromBlack()
  16.             Cassidy:Say('Just a single chest? That\'s kinda lame.')
  17.             Cassidy:Rotate()
  18.             Cassidy:Say('I didn\'t properly thank you for dealing with Craig.')
  19.             Cassidy:Say('You can take the contents of this chest. I don\'t mind.')
  20.             Cassidy:Say('Anyway, I\'ll tell the receptionist that you\'ve completed the quest and go back to my home in Graphite Lodge.')
  21.             Cassidy:Say('Opening the chest should be easy -- it\'s not like this ship is haunted or anything.')
  22.             Cassidy:WalkTo(CFrameTable.CassidyWalk,14)
  23.             _CF.Gui:FadeToBlack()
  24.             Cassidy:Destroy()
  25.             Util.Halt(.25)
  26.             _CF.Gui:FadeFromBlack()
  27.             _CF.Lighting:Darken(true)
  28.  
  29.             _CF.Dialogue:SaySimple('...it got dark. Surely this place isn\'t haunted, right?')
  30.             _CF.Sound:Play('Whip')
  31.             Util.Halt(.25)
  32.             _CF.Dialogue:SaySimple('Who dares disturb my final resting spot?',nil,'???')
  33.             _CF.Controls:Rotate(CFrameTable.LookLeft.p)
  34.             Util.Halt(.5)
  35.             _CF.Controls:Rotate(CFrameTable.LookRight.p)
  36.             Util.Halt(.5)
  37.             _CF.Controls:Rotate(CFrameTable.LookLeft.p)
  38.             Util.Halt(.5)
  39.             _CF.Controls:Rotate(CFrameTable.LookRight.p)
  40.             Util.Halt(.5)
  41.             local Pirate = Cutscene:SetupNPC('Ghost Pirate', CFrame.new(0,0,0))
  42.             Pirate:BlueTeleportFade(.25,BrickColor.new('Black'))
  43.             Pirate:Teleport(CFrameTable.PirateSpot)
  44.             for i,v in pairs(Pirate.Model:GetDescendants()) do
  45.                 if v:IsA('BasePart') and v.Name ~= 'HumanoidRootPart' then
  46.                     Tween:PlayTween(v,{Transparency = .5},true,1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out)
  47.                 end
  48.             end
  49.             Util.Halt(1)
  50.             Pirate:Say('You cannot have what\'s inside this chest, you Blankist.')
  51.             Pirate:Rotate()
  52.             _CF.Controls:Rotate(Pirate.hrp.Position)
  53.             _CF.Sound:Play('RecordScratch')
  54.             _CF.Music:Stop()
  55.             Pirate:Say('Wait... I thought you were a follower of Blankism.')
  56.             _CF.Music:Play()
  57.             Pirate:Say('What year is it?')
  58.             _CF.Dialogue:SaySimple('<You tell him the current year.>')
  59.             Pirate:Say('Oh my... My ship, my crew and I were destroyed over 500 years ago by those wretched beings...')
  60.             Pirate:Say('I assume since this island is still standing, those people didn\'t achieve their ultimate goal.')
  61.             Pirate:Say('Knowing this, I can finally be at ease.')
  62.             Pirate:Say('...wait a second! My Doodles are still alive... how?')
  63.             Pirate:Say('I\'m so happy... The thing I miss most from when I was alive was Doodle battling...')
  64.             Pirate:Say('It\'s been literally hundreds of years since my last battle.')
  65.             local point = Pirate:PlayAnim('Point')
  66.             Pirate:Say('You\'re going to give me a good battle! If you win, I\'ll have no more lingering regrets and you can have my treasure chest!')
  67.             point:Stop()
  68.             _CF.Music:PlaySong('MoonlightBattle')
  69.             Pirate:Say('I\'m not taking no for an answer!')
  70.             local BattleEnd, Wipeout = _CF.Battle:TrainerBattle(62, Pirate.Model, function() end)
  71.             local Result = BattleEnd:Wait()
  72.             if Result == true then
  73.             else
  74.                 _CF.InCutscene = nil
  75.                 _CF.Overworld:Toggle(true)
  76.                 _CF.Social.PlayerVisibility(true)
  77.                 _CF.Menu:Invisible()
  78.                 _CF.Wipeout[Wipeout].func()
  79.                 return
  80.             end
  81.             Pirate:Say('Wow... you are quite a battler.')
  82.             Pirate:Say('That battle was satisfying... I have no regrets.')
  83.             Pirate:Say('In this chest behind me is a Doodle.')
  84.             Pirate:Say('You can fight it as many times as you want, but as soon as you capture it, the chest will disappear.')
  85.             Pirate:Say('Good luck. I already released all my Doodles.')
  86.             Pirate:BlueTeleportFade(.5,BrickColor.new('Black'))
  87.             Util.Halt(.25)
  88.             Pirate:Destroy()
  89.             _CF.Dialogue:SaySimple('You can fight the Doodle in the chest when you\'re ready.')
  90.             _CF.Dialogue:SaySimple('Otherwise, you have completed the quest \'Abandoned Pirate Ship\'! Turn it in at the Help Center.')
  91.             _CF.ClientDatabase:PDSEvent("SetSwitch", '59',3)
  92.             _CF.Controls:ToggleWalk(true)
  93.         end
Add Comment
Please, Sign In to add comment