daily pastebin goal
85%
SHARE
TWEET

big oof

a guest Jan 11th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Decompiled with Visenya | https://targaryentech.com
  2. local module = {}
  3. local Util = require(game.ReplicatedStorage.GlobalModules:FindFirstChild("Utilities"))
  4. local player = game.Players.LocalPlayer
  5. local SpinPurchase
  6. repeat
  7.   wait()
  8. until player.Character
  9. player.Character:WaitForChild("HumanoidRootPart")
  10. player.Character.HumanoidRootPart.Anchored = true
  11. player.Character.HumanoidRootPart.CFrame = workspace.SpawnPoint.CFrame
  12. player.Character:WaitForChild("Humanoid").WalkSpeed = 0
  13. player.Character.Humanoid.MaxSlopeAngle = 0
  14. local Active = false
  15. local cam = workspace.CurrentCamera
  16. local function Darken()
  17.   player.PlayerGui.GUIS.Cover.Visible = true
  18.   for i = 1, 0, -0.1 do
  19.     player.PlayerGui.GUIS.Cover.BackgroundTransparency = i
  20.     wait()
  21.   end
  22. end
  23. local function Lighten()
  24.   for i = 0, 1, 0.1 do
  25.     player.PlayerGui.GUIS.Cover.BackgroundTransparency = i
  26.     wait()
  27.   end
  28.   player.PlayerGui.GUIS.Cover.BackgroundTransparency = 1
  29.   player.PlayerGui.GUIS.Cover.Visible = false
  30. end
  31. local EmptyTable = {}
  32. local FaceIds = {}
  33. local Clothing
  34. Clothing = game.ReplicatedStorage.Bridge.Function:InvokeServer("GuiDataPull").Clothing
  35. local LastCloth = 0
  36. local Folder = Instance.new("Folder")
  37. Folder.Name = "Clothing"
  38. Folder.Parent = player.Character
  39. player.Character.Head.face:Destroy()
  40. local Temp = {
  41.   Face = 1,
  42.   Hair = 1,
  43.   Accessory = 1,
  44.   Outfit = 1,
  45.   AcColor = "Really black",
  46.   HairColor = "Really white",
  47.   PrimaryOutfitColor = "Really black",
  48.   SecondaryOutfitColor = "Really black",
  49.   Clan = "None",
  50.   Magic = "Fire",
  51.   WeaponColors = {
  52.     Primary = "Really black",
  53.     Secondary = "Really white",
  54.     Tertiary = "Really black"
  55.   },
  56.   Weapon = "GreatSword"
  57. }
  58. if Clothing == nil then
  59.   Clothing = {
  60.     Face = 1,
  61.     Hair = 1,
  62.     Accessory = 1,
  63.     Outfit = 1,
  64.     AcColor = "Really black",
  65.     HairColor = "Really white",
  66.     PrimaryOutfitColor = "Really black",
  67.     SecondaryOutfitColor = "Really black",
  68.     Clan = "None",
  69.     Magic = "Fire",
  70.     WeaponColors = {
  71.       Primary = "Really black",
  72.       Secondary = "Really white",
  73.       Tertiary = "Really black"
  74.     },
  75.     Weapon = "GreatSword"
  76.   }
  77. end
  78. for i, v in pairs(Temp) do
  79.   if Clothing[i] == nil then
  80.     Clothing[i] = v
  81.     print("adding " .. i .. " to the user's data")
  82.   end
  83. end
  84. local function UpdateChar()
  85.   if FaceIds[Clothing.Face] ~= nil then
  86.     player.Character.Head.face.Texture = FaceIds[Clothing.Face]
  87.   end
  88.   if player.Character.Clothing:FindFirstChild("Accessory") then
  89.     player.Character.Clothing:FindFirstChild("Accessory"):Destroy()
  90.   end
  91.   if player.Character.Clothing:FindFirstChild("Hair") then
  92.     player.Character.Clothing.Hair:Destroy()
  93.   end
  94.   if game.ReplicatedStorage.Objects.Accessory:FindFirstChild(tostring(Clothing.Accessory)) then
  95.     local Ac = game.ReplicatedStorage.Objects.Accessory:FindFirstChild(tostring(Clothing.Accessory)):Clone()
  96.     Ac.Name = "Accessory"
  97.     Ac.Parent = player.Character.Clothing
  98.     Ac:GetChildren()[1].Part1 = player.Character:FindFirstChild(Ac:GetChildren()[1].Name)
  99.     Ac.Color = BrickColor.new(Clothing.AcColor).Color
  100.   end
  101.   if game.ReplicatedStorage.Objects.Hairs:FindFirstChild(tostring("H" .. Clothing.Hair)) then
  102.     local Ac = game.ReplicatedStorage.Objects.Hairs:FindFirstChild(tostring("H" .. Clothing.Hair)):Clone()
  103.     Ac.Hair:GetChildren()[1].Part1 = player.Character:FindFirstChild(Ac.Hair:GetChildren()[1].Name)
  104.     Ac.Hair.Color = BrickColor.new(Clothing.HairColor).Color
  105.     Ac.Hair.Parent = player.Character.Clothing
  106.   end
  107.   if Clothing.Weapon ~= nil then
  108.     if player.Character:FindFirstChild("Weapon") then
  109.       player.Character.Weapon:Destroy()
  110.     end
  111.     if Clothing.Weapon == "GreatSword" then
  112.       Clothing.Weapon = "Starter GreatSword"
  113.     elseif Clothing.Weapon == "Axe" then
  114.       Clothing.Weapon = "Starter Axe"
  115.     elseif Clothing.Weapon == "SwordAndShield" then
  116.       Clothing.Weapon = "Starter SwordAndShield"
  117.     end
  118.     if game.ReplicatedStorage.Objects.Weapons:FindFirstChild(Clothing.Weapon) ~= nil then
  119.       local wepMod = game.ReplicatedStorage.Objects.Weapons:FindFirstChild(Clothing.Weapon):Clone()
  120.       if wepMod ~= nil then
  121.         wepMod.Parent = player.Character
  122.         for i, v in pairs(wepMod:GetChildren()) do
  123.           local w = Instance.new("Weld")
  124.           w.Part0 = v.PrimaryPart
  125.           w.Part1 = player.Character:FindFirstChild(v.PrimaryPart.Name)
  126.           w.Parent = w.Part0
  127.         end
  128.       end
  129.       wepMod.Name = "Weapon"
  130.     end
  131.   end
  132.   if LastCloth ~= Clothing.Outfit then
  133.     LastCloth = Clothing.Outfit
  134.     if player.Character.Clothing:FindFirstChild("Outfit") then
  135.       player.Character.Clothing:FindFirstChild("Outfit"):Destroy()
  136.     end
  137.     local outfit = game.ReplicatedStorage.Objects.Outfits:FindFirstChild(Clothing.Outfit):Clone()
  138.     local outFold = Instance.new("Folder", Folder)
  139.     outFold.Name = "Outfit"
  140.     for i, v in pairs(outfit:GetChildren()) do
  141.       if v:IsA("Model") then
  142.         local w = Instance.new("Weld")
  143.         w.Part0 = v.PrimaryPart
  144.         w.Part1 = player.Character:FindFirstChild(v.Name)
  145.         w.Parent = w.Part0
  146.       else
  147.         v:Destroy()
  148.       end
  149.     end
  150.     outfit.Parent = outFold
  151.   end
  152.   if Folder:FindFirstChild("Outfit") then
  153.     for i, v in pairs(Folder.Outfit:GetChildren()) do
  154.       for _, x in pairs(v:GetChildren()) do
  155.         for _, z in pairs(x:GetChildren()) do
  156.           if z.Name == "Primary" and Clothing.PrimaryOutfitColor ~= nil then
  157.             z.Color = BrickColor.new(Clothing.PrimaryOutfitColor).Color
  158.           end
  159.           if z.Name == "Secondary" and Clothing.SecondaryOutfitColor ~= nil then
  160.             z.Color = BrickColor.new(Clothing.SecondaryOutfitColor).Color
  161.           end
  162.         end
  163.       end
  164.     end
  165.   end
  166. end
  167. cam.CameraType = "Custom"
  168. local SendingCall
  169. function module.Verify(reset)
  170.   local CurrentStance = SendingCall
  171.   if reset == true then
  172.     SendingCall = nil
  173.   end
  174.   return CurrentStance
  175. end
  176. function module.IntializeClient(player)
  177.   local Hud = player.PlayerGui:WaitForChild("GUIS")
  178.   local CC = Hud.CC
  179.   local currentOption, currentOpInst
  180.   local MainMenu = player.PlayerGui:WaitForChild("Main menu")
  181.   local play
  182.   local sound = MainMenu.Hover
  183.   Hud.Cover.Visible = true
  184.   Hud.Cover.BackgroundTransparency = 0
  185.   repeat
  186.     wait()
  187.   until player.Character
  188.   Lighten()
  189.   MainMenu.Music:Play()
  190.   wait(3)
  191.   MainMenu["Intro Screen"].Visible = false
  192.   local SelOpt
  193.   for i, v in pairs(MainMenu["Buttons (HOVERED)"]:GetChildren()) do
  194.     v.MouseEnter:connect(function()
  195.       sound:Stop()
  196.       sound:Play()
  197.       v.ImageTransparency = 0
  198.     end)
  199.     v.MouseButton1Down:connect(function()
  200.       SelOpt = v.Name
  201.     end)
  202.     v.MouseLeave:connect(function()
  203.       v.ImageTransparency = 1
  204.     end)
  205.   end
  206.   for i = 1, #CC.Frames.FacesFrame.Scroll:GetChildren() do
  207.     if CC.Frames.FacesFrame.Scroll:FindFirstChild(tostring(i)) then
  208.       table.insert(FaceIds, CC.Frames.FacesFrame.Scroll:FindFirstChild(tostring(i)).ImageLabel.ImageLabel.Image)
  209.     end
  210.   end
  211.   repeat
  212.     wait()
  213.     if SelOpt == "Credit's" then
  214.       wait(0.5)
  215.       SelOpt = nil
  216.     end
  217.     if SelOpt == "Edit Character" then
  218.       player.Character.HumanoidRootPart.Anchored = false
  219.       Darken()
  220.       wait(1)
  221.       MainMenu.Enabled = false
  222.       CC.Visible = true
  223.       Lighten()
  224.       Hud.Cover.Visible = false
  225.       Lighten()
  226.       do
  227.         local DoneCC = false
  228.         for i, v in pairs(CC.ButtonFrame.Scroll:GetChildren()) do
  229.           v.MouseButton1Down:connect(function()
  230.             if currentOption == v.Name then
  231.               currentOption = nil
  232.             else
  233.               currentOption = v.Name
  234.             end
  235.           end)
  236.         end
  237.         local Ratez = {
  238.           Demon = 2.5,
  239.           Giant = 50,
  240.           Fairy = 10,
  241.           Lightning = 30,
  242.           Ice = 25,
  243.           Human = 80,
  244.           Fire = 60,
  245.           SunShine = 0.8,
  246.           Goddess = 1
  247.         }
  248.         if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, 4947532) then
  249.           Ratez.SunShine = 2
  250.         end
  251.         local function Rates(Race, delta)
  252.           local Ran = math.random(1, 100)
  253.           delta = delta or 0
  254.           local Val = Ratez[Race] + delta
  255.           return Ran < Val
  256.         end
  257.         for i, v in pairs(CC.Frames.FacesFrame.Scroll:GetChildren()) do
  258.           if v:IsA("ImageButton") then
  259.             v.ImageLabel.ImageLabel.MouseButton1Down:connect(function()
  260.               Clothing.Face = tonumber(v.Name)
  261.               UpdateChar()
  262.             end)
  263.           end
  264.         end
  265.         for i, v in pairs(CC.Frames.AccessoriesFrame.Scroll:GetChildren()) do
  266.           if v:IsA("ImageButton") then
  267.             v.ImageLabel.MouseButton1Down:connect(function()
  268.               Clothing.Accessory = tonumber(v.Name)
  269.               UpdateChar()
  270.             end)
  271.           end
  272.         end
  273.         for i, v in pairs(CC.Frames.AccessoriesFrame.Colors:GetChildren()) do
  274.           if v:IsA("ImageButton") then
  275.             v.MouseButton1Down:connect(function()
  276.               Clothing.AcColor = v.BackgroundColor3
  277.               UpdateChar()
  278.             end)
  279.           end
  280.         end
  281.         for i, v in pairs(CC.Frames.WeaponsFrame.WeaponsFrame:GetChildren()) do
  282.           if v:IsA("ImageButton") then
  283.             v.MouseButton1Down:connect(function()
  284.               Clothing.Weapon = v.Name
  285.               UpdateChar()
  286.             end)
  287.           end
  288.         end
  289.         for i, v in pairs(CC.Frames.WeaponsFrame.DetailsColor["Detail 1"].DetailColor:GetChildren()) do
  290.           if v:IsA("ImageButton") then
  291.             v.MouseButton1Down:connect(function()
  292.               Clothing.WeaponColors.Primary = v.BackgroundColor3
  293.               UpdateChar()
  294.             end)
  295.           end
  296.         end
  297.         for i, v in pairs(CC.Frames.WeaponsFrame.DetailsColor["Detail 2"].DetailColor:GetChildren()) do
  298.           if v:IsA("ImageButton") then
  299.             v.MouseButton1Down:connect(function()
  300.               Clothing.WeaponColors.Secondary = v.BackgroundColor3
  301.               UpdateChar()
  302.             end)
  303.           end
  304.         end
  305.         for i, v in pairs(CC.Frames.WeaponsFrame.DetailsColor["Detail 3"].DetailColor:GetChildren()) do
  306.           if v:IsA("ImageButton") then
  307.             v.MouseButton1Down:connect(function()
  308.               Clothing.WeaponColors.Tertiary = v.BackgroundColor3
  309.               UpdateChar()
  310.             end)
  311.           end
  312.         end
  313.         for i, v in pairs(CC.Frames.HairsFrame.Scroll:GetChildren()) do
  314.           if v:IsA("ImageButton") then
  315.             v.ImageLabel.MouseButton1Down:connect(function()
  316.               Clothing.Hair = tonumber(v.Name)
  317.               UpdateChar()
  318.             end)
  319.           end
  320.         end
  321.         for i, v in pairs(CC.Frames.HairsFrame.Colors:GetChildren()) do
  322.           if v:IsA("ImageButton") then
  323.             v.MouseButton1Down:connect(function()
  324.               Clothing.HairColor = v.BackgroundColor3
  325.               UpdateChar()
  326.             end)
  327.           end
  328.         end
  329.         local primColor, SecColor
  330.         for i, v in pairs(CC.Frames.OutfitsFrame.Scroll:GetChildren()) do
  331.           if v:IsA("ImageButton") then
  332.             v.ImageLabel.MouseButton1Down:connect(function()
  333.               Clothing.Outfit = tonumber(v.Name)
  334.               UpdateChar()
  335.             end)
  336.           end
  337.         end
  338.         for i, v in pairs(CC.Frames.OutfitsFrame.Primary:GetChildren()) do
  339.           if v:IsA("ImageButton") then
  340.             v.MouseButton1Down:connect(function()
  341.               Clothing.PrimaryOutfitColor = v.BackgroundColor3
  342.               UpdateChar()
  343.             end)
  344.           end
  345.         end
  346.         for i, v in pairs(CC.Frames.OutfitsFrame.Secondary:GetChildren()) do
  347.           if v:IsA("ImageButton") then
  348.             v.MouseButton1Down:connect(function()
  349.               Clothing.SecondaryOutfitColor = v.BackgroundColor3
  350.               UpdateChar()
  351.             end)
  352.           end
  353.         end
  354.         local spinning = false
  355.         local Clans = {
  356.           "Human",
  357.           "Giant",
  358.           "Demon",
  359.           "Fairy",
  360.           "Goddess"
  361.         }
  362.         local ids = {
  363.           None = 1398743892,
  364.           Demon = 1424804472,
  365.           Goddess = 2613729443,
  366.           Giant = 1424815372,
  367.           Fairy = 1424815568,
  368.           Human = 1424815719
  369.         }
  370.         local Info = game.ReplicatedStorage.Bridge.Function:InvokeServer("GuiDataPull")
  371.         CC.Frames.ClansFrame.ClanName.TextButton.Text = Info.Race
  372.         CC.Frames.ClansFrame.ClanImage.Image = "rbxassetid://" .. ids[Info.Race]
  373.         CC.Frames.MagicFrame.MagicName.TextButton.Text = Info.Magic
  374.         Clothing.Clan = Info.Race
  375.         Clothing.Magic = Info.Magic
  376.         local function UpdateSpins()
  377.           local racespin = game.ReplicatedStorage.Bridge.Function:InvokeServer("GetSpins", "Race")
  378.           local magicspin = game.ReplicatedStorage.Bridge.Function:InvokeServer("GetSpins", "Magic")
  379.           if racespin < 0 then
  380.             racespin = 0
  381.           end
  382.           if magicspin < 0 then
  383.             magicspin = 0
  384.           end
  385.           CC.Frames.ClansFrame.Spins.Amnt.Text = racespin
  386.           CC.Frames.MagicFrame.Spins.Amnt.Text = magicspin
  387.           local Gold = game.ReplicatedStorage.Bridge.Function:InvokeServer("GuiDataPull").Gold
  388.           CC.Frames.ClansFrame.Gold["AMOUNT OF GOLD"].Text = tostring(Gold)
  389.           CC.Frames.MagicFrame.Gold["AMOUNT OF GOLD"].Text = tostring(Gold)
  390.         end
  391.         CC.Frames.ClansFrame.ClanName.TextButton.Text = Clothing.Clan
  392.         for i = 1, 3 do
  393.           CC.Frames.ClansFrame.ClanImage.Image = "rbxassetid://" .. ids[Clothing.Clan]
  394.           wait()
  395.         end
  396.         CC.Frames.MagicFrame.MagicName.TextButton.Text = Clothing.Magic
  397.         UpdateSpins()
  398.         function module.UpdateSpin()
  399.           UpdateSpins()
  400.         end
  401.         local spinning = false
  402.         local hold = false
  403.         local Magic = {
  404.           "SunShine",
  405.           "Fire",
  406.           "Lightning",
  407.           "Ice",
  408.           "Counter",
  409.           "Explosion"
  410.         }
  411.         CC.Frames.ClansFrame.Spin.MouseButton1Down:connect(function()
  412.           if hold == false then
  413.             hold = true
  414.             local Gold = game.ReplicatedStorage.Bridge.Function:InvokeServer("GetGold")
  415.             if spinning == false and Gold >= 15000 then
  416.               local goal = game.ReplicatedStorage.Bridge.Function:InvokeServer("SpinRace", {Gold = true})
  417.               print("client goal is " .. goal)
  418.               UpdateSpins()
  419.               Clothing.Clan = goal
  420.               for i = 1, 25 do
  421.                 local op = Clans[math.random(1, #Clans)]
  422.                 CC.Frames.ClansFrame.ClanName.TextButton.Text = Clans[math.random(1, #Clans)]
  423.                 CC.Frames.ClansFrame.ClanImage.Image = "rbxassetid://" .. ids[op]
  424.                 wait(0.1)
  425.               end
  426.               CC.Frames.ClansFrame.ClanName.TextButton.Text = goal
  427.               for i = 1, 3 do
  428.                 CC.Frames.ClansFrame.ClanImage.Image = "rbxassetid://" .. ids[goal]
  429.                 wait()
  430.               end
  431.               UpdateChar()
  432.               spinning = false
  433.             end
  434.             hold = false
  435.           end
  436.         end)
  437.         CC.Frames.MagicFrame.ROLL.MouseButton1Down:connect(function()
  438.           if hold == false then
  439.             hold = true
  440.             local Gold = game.ReplicatedStorage.Bridge.Function:InvokeServer("GetGold")
  441.             if spinning == false and Gold >= 15000 then
  442.               local goal = game.ReplicatedStorage.Bridge.Function:InvokeServer("SpinMagic", {Gold = true})
  443.               UpdateSpins()
  444.               for i = 1, 25 do
  445.                 CC.Frames.MagicFrame.MagicName.TextButton.Text = Magic[math.random(1, #Magic)]
  446.                 wait(0.1)
  447.               end
  448.               CC.Frames.MagicFrame.MagicName.TextButton.Text = goal
  449.               UpdateChar()
  450.               spinning = false
  451.             end
  452.             hold = false
  453.           end
  454.         end)
  455.         CC.Frames.ClansFrame.ROLL.MouseButton1Down:connect(function()
  456.           if hold == false then
  457.             hold = true
  458.             local Spins = game.ReplicatedStorage.Bridge.Function:InvokeServer("GetSpins", "Race")
  459.             if Spins <= 0 then
  460.               game:GetService("MarketplaceService"):PromptProductPurchase(player, 414460636)
  461.             end
  462.             Spins = game.ReplicatedStorage.Bridge.Function:InvokeServer("GetSpins", "Race")
  463.             if spinning == false and Spins > 0 then
  464.               local Args = {Type = "Race"}
  465.               UpdateSpins()
  466.               spinning = true
  467.               local goal = game.ReplicatedStorage.Bridge.Function:InvokeServer("SpinRace", {Gold = nil})
  468.               UpdateSpins()
  469.               Clothing.Clan = goal
  470.               for i = 1, 25 do
  471.                 local op = Clans[math.random(1, #Clans)]
  472.                 CC.Frames.ClansFrame.ClanName.TextButton.Text = Clans[math.random(1, #Clans)]
  473.                 CC.Frames.ClansFrame.ClanImage.Image = "rbxassetid://" .. ids[op]
  474.                 wait(0.1)
  475.               end
  476.               CC.Frames.ClansFrame.ClanName.TextButton.Text = goal
  477.               print("client goal is " .. goal)
  478.               for i = 1, 3 do
  479.                 CC.Frames.ClansFrame.ClanImage.Image = "rbxassetid://" .. ids[goal]
  480.                 wait()
  481.               end
  482.               UpdateChar()
  483.               spinning = false
  484.             end
  485.             hold = false
  486.           end
  487.         end)
  488.         local spinning = false
  489.         local Magic = {
  490.           "SunShine",
  491.           "Fire",
  492.           "Lightning",
  493.           "Ice"
  494.         }
  495.         CC.Frames.MagicFrame.Spin.MouseButton1Down:connect(function()
  496.           if hold == false then
  497.             hold = true
  498.             local Spins = game.ReplicatedStorage.Bridge.Function:InvokeServer("GetSpins", "Magic")
  499.             if Spins <= 0 then
  500.               game:GetService("MarketplaceService"):PromptProductPurchase(player, 308998618)
  501.             end
  502.             Spins = game.ReplicatedStorage.Bridge.Function:InvokeServer("GetSpins", "Magic")
  503.             if spinning == false and Spins > 0 and Clothing.Clan == "Human" then
  504.               local Args = {Gold = nil}
  505.               local goal = game.ReplicatedStorage.Bridge.Function:InvokeServer("SpinMagic", Args)
  506.               UpdateSpins()
  507.               Clothing.Magic = goal
  508.               for i = 1, 25 do
  509.                 local op = Magic[math.random(1, #Magic)]
  510.                 CC.Frames.MagicFrame.MagicName.TextButton.Text = Magic[math.random(1, #Magic)]
  511.                 wait(0.1)
  512.               end
  513.               CC.Frames.MagicFrame.MagicName.TextButton.Text = goal
  514.               UpdateChar()
  515.               spinning = false
  516.             end
  517.             hold = false
  518.           end
  519.         end)
  520.         UpdateChar()
  521.         DoneCC = false
  522.         CC.Play.Button.MouseButton1Down:connect(function()
  523.           repeat
  524.             wait()
  525.           until spinning == false
  526.           DoneCC = true
  527.         end)
  528.         repeat
  529.           if currentOption ~= nil then
  530.             for i, v in pairs(CC.Frames:GetChildren()) do
  531.               if v.Name == currentOption .. "Frame" then
  532.                 v.Visible = true
  533.               else
  534.                 v.Visible = false
  535.               end
  536.             end
  537.           else
  538.             for i, v in pairs(CC.Frames:GetChildren()) do
  539.               v.Visible = false
  540.             end
  541.           end
  542.           wait()
  543.           CC.Play.MouseButton1Down:connect(function()
  544.             DoneCC = true
  545.           end)
  546.         until DoneCC == true
  547.         game.ReplicatedStorage.Bridge.Event:FireServer("WriteClothing", Clothing)
  548.         Darken()
  549.         wait(1)
  550.         CC.Visible = false
  551.         MainMenu.Enabled = true
  552.         Lighten()
  553.         SelOpt = nil
  554.       end
  555.     end
  556.   until SelOpt == "Play" and game.ReplicatedStorage.Bridge.Function:InvokeServer("CanPlay") == true
  557.   MainMenu.Music:Stop()
  558.   MainMenu.Enabled = false
  559.   local function TUT()
  560.     player.Character.HumanoidRootPart.Anchored = true
  561.     Darken()
  562.     local Anim = Util.CreateAnimation(2068351977, player.Character.Humanoid)
  563.     Anim:Play()
  564.     local Engine = require(script.CinematicEngine)
  565.     Engine.CreateCinematic(player)
  566.     local BottomBar = player.PlayerGui.GUIS.Bottom
  567.     local DialogueTextSlot = Instance.new("TextLabel")
  568.     DialogueTextSlot.TextColor3 = Color3.fromRGB(255, 255, 255)
  569.     DialogueTextSlot.BackgroundTransparency = 1
  570.     DialogueTextSlot.Size = UDim2.new(0.6, 0, 1, 0)
  571.     DialogueTextSlot.Position = UDim2.new(0.35, 0, -0.05, 0)
  572.     DialogueTextSlot.Parent = BottomBar
  573.     DialogueTextSlot.TextScaled = true
  574.     DialogueTextSlot.TextXAlignment = Enum.TextXAlignment.Center
  575.     DialogueTextSlot.TextYAlignment = Enum.TextYAlignment.Center
  576.     DialogueTextSlot.FontSize = Enum.FontSize.Size24
  577.     DialogueTextSlot.ZIndex = 3
  578.     DialogueTextSlot.Text = ""
  579.     DialogueTextSlot.Name = "TextSpace"
  580.     local CutsceneEngine = require(script.CinematicEngine)
  581.     Lighten()
  582.     local Bottom = player.PlayerGui.GUIS.Bottom
  583.     local Top = player.PlayerGui.GUIS.Top
  584.     Top.Position = UDim2.new(0, 0, 0, 0)
  585.     Top.Size = UDim2.new(1, 0, 0.5, 0)
  586.     Bottom.Size = UDim2.new(1, 0, 0.5, 0)
  587.     Bottom.Position = UDim2.new(0, 0, 0.5, 0)
  588.     Bottom.TextSpace.Position = UDim2.new(0.15, 0, 0.25, 0)
  589.     local Args = {}
  590.     Args.QuickFill = false
  591.     CutsceneEngine.WriteDialogue("Press space to begin", Args)
  592.     repeat
  593.       wait()
  594.     until game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.Space)
  595.     Darken()
  596.     player.Character.HumanoidRootPart.Anchored = true
  597.     player.Character.HumanoidRootPart.CFrame = workspace["Where player is laying down"].CFrame
  598.     cam.CameraType = "Scriptable"
  599.     wait(0.5)
  600.     cam.CFrame = player.Character.Head.CFrame * CFrame.new(0, 0, -1.5)
  601.     CutsceneEngine.WriteDialogue("  ", Args)
  602.     Lighten()
  603.     for i = 0, 3 do
  604.       Top:TweenPosition(UDim2.new(0, 0, -tonumber("." .. i), 0), "Out", "Quad", 0.75, false)
  605.       Bottom:TweenPosition(UDim2.new(0, 0, 0.5 + tonumber("." .. i), 0), "Out", "Quad", 0.75, false)
  606.       wait(1)
  607.       Top:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Quad", 0.75, false)
  608.       Bottom:TweenPosition(UDim2.new(0, 0, 0.5, 0), "Out", "Quad", 0.75, false)
  609.       wait(1)
  610.     end
  611.     game.Lighting.Blur.Size = 0
  612.     Bottom:TweenPosition(UDim2.new(0, 0, 0.85, 0), "Out", "Quad", 1, false)
  613.     Top:TweenPosition(UDim2.new(0, 0, -0.3, -36), "Out", "Quad", 1, false)
  614.     cam:Interpolate(player.Character.Head.CFrame * CFrame.new(0, 0, -5), player.Character.Head.CFrame, 1.5)
  615.     wait(1.7)
  616.     local hum = player.Character.Humanoid
  617.     Top.Position = UDim2.new(0, 0, 0, -36)
  618.     Top.Size = UDim2.new(1, 0, 0.15, 0)
  619.     Bottom.Size = UDim2.new(1, 0, 0.15, 0)
  620.     DialogueTextSlot.Position = UDim2.new(0.15, 0, -0.05, 0)
  621.     CutsceneEngine.WriteDialogue("Meliodas......", Args)
  622.     wait(1.5)
  623.     Anim:Stop()
  624.     local Anim = Util.CreateAnimation(2068383591, player.Character.Humanoid)
  625.     Anim:Play()
  626.     wait(0.25)
  627.     cam:Interpolate(player.Character.Head.CFrame * CFrame.new(0, 3, -8), player.Character.Head.CFrame, 1.5)
  628.     CutsceneEngine.WriteDialogue("The most powerful ex holy knight and the leader of the seven deadly sins...", Args)
  629.     wait(1.7)
  630.     CutsceneEngine.WriteDialogue("One Day......", Args)
  631.     wait(0.5)
  632.     CutsceneEngine.WriteDialogue("One Day I will surpass him!", Args)
  633.     Anim:Stop()
  634.     cam:Interpolate(player.Character.HumanoidRootPart.CFrame * CFrame.new(5, 0, -10), player.Character.Head.CFrame, 3)
  635.     local Anim = Util.CreateAnimation(2068753565, player.Character.Humanoid)
  636.     Anim:Play()
  637.     wait(3.2)
  638.     cam:Interpolate(player.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, -10), player.Character.Head.CFrame, 0.5)
  639.     player.Character.HumanoidRootPart.Anchored = false
  640.     player.Character.Humanoid.WalkSpeed = 16
  641.     player.Character.Humanoid.MaxSlopeAngle = 89
  642.     wait(0.7)
  643.     Darken()
  644.     CutsceneEngine.WriteDialogue("  ", Args)
  645.     Darken()
  646.     repeat
  647.       wait()
  648.       player.Character.Humanoid:MoveTo(workspace.walkStop.CFrame.p)
  649.     until 3 >= (player.Character.HumanoidRootPart.CFrame.p - workspace.walkStop.CFrame.p).magnitude
  650.     wait(3)
  651.     Lighten()
  652.     cam.CFrame = workspace.DoorCamPoint.CFrame
  653.     player.Character.HumanoidRootPart.CFrame = workspace.Start.CFrame * CFrame.new(0, 1.5, 0)
  654.     local anim = Util.CreateAnimation(2070596437, workspace.Bartender.Humanoid)
  655.     anim:Play()
  656.     for i, v in pairs(workspace.BarPeople:GetChildren()) do
  657.       if v:FindFirstChild("Humanoid") then
  658.         if v.Name == "Bill" then
  659.           local Anim = Util.CreateAnimation(2070485124, v.Humanoid)
  660.           Anim:Play()
  661.         else
  662.           local Anim = Util.CreateAnimation(2070457766, v.Humanoid)
  663.           Anim:Play()
  664.         end
  665.       end
  666.     end
  667.     Lighten()
  668.     for i = 0, 1, 0.1 do
  669.       workspace.Door.CFrame = workspace.Door.CFrame:lerp(workspace.DoorGoal.CFrame, i)
  670.       wait()
  671.     end
  672.     player.Character.HumanoidRootPart.CFrame = workspace.Start.CFrame * CFrame.new(0, 2, 0)
  673.     player.Character.HumanoidRootPart.Anchored = false
  674.     player.Character.Humanoid.WalkSpeed = 16
  675.     repeat
  676.       wait()
  677.       player.Character.Humanoid:MoveTo(workspace.End.CFrame.p)
  678.     until 3 >= (player.Character.HumanoidRootPart.CFrame.p - workspace.End.CFrame.p).magnitude
  679.     cam:Interpolate(workspace.DoorCamPoint.CFrame, workspace.Bartender.Head.CFrame, 0.5)
  680.     wait(0.7)
  681.     cam:Interpolate(workspace.DoorCamPoint.CFrame, workspace.BarPeople.Bill.Head.CFrame, 3)
  682.     wait(3.2)
  683.     cam:Interpolate(workspace.DoorCamPoint.CFrame, workspace.Poster.CFrame, 1)
  684.     wait(1.5)
  685.     cam:Interpolate(workspace.BoardCam.CFrame, workspace.Poster.CFrame, 3)
  686.     repeat
  687.       wait()
  688.       player.Character.Humanoid:MoveTo(workspace.PostEnd.CFrame.p)
  689.     until 3 >= (player.Character.HumanoidRootPart.CFrame.p - workspace.PostEnd.CFrame.p).magnitude
  690.     local hum = player.Character.Humanoid
  691.     hum.WalkSpeed = 0
  692.     hum.MaxSlopeAngle = 0
  693.     player.Character.HumanoidRootPart.Anchored = true
  694.     wait(3.2)
  695.     CutsceneEngine.WriteDialogue("Everywhere i look or go im reminded of you Meliodas.. , There is no escaping you is there..?", Args)
  696.     wait(2)
  697.     workspace.Meliodas.HumanoidRootPart.CFrame = workspace.MeliodasStop.CFrame * CFrame.new(0, 2, 0)
  698.     local Anim = Util.CreateAnimation(2090729097, workspace.Meliodas.Humanoid)
  699.     Anim:Play()
  700.     CutsceneEngine.WriteDialogue("Heh kid you're pretty funny, Meet me down at the plains under the huge pig, I\226\128\153ll let you in on a little secret.", Args)
  701.     wait(3)
  702.     CutsceneEngine.WriteDialogue("   ", Args)
  703.     Darken()
  704.     Anim:Stop()
  705.     workspace.Meliodas.HumanoidRootPart.CFrame = workspace.MeliodasTut.CFrame * CFrame.new(0, 2, 0)
  706.     local Anim = Util.CreateAnimation(2090725929, workspace.Meliodas.Humanoid)
  707.     Anim:Play()
  708.     cam:Interpolate(workspace.TutCam0.CFrame, workspace.TutCam0.CFrame * CFrame.new(0, 0, -10), 0.1)
  709.     cam:Interpolate(workspace.TutCam.CFrame, workspace.TutCam.CFrame * CFrame.new(0, 0, -10), 0.5)
  710.     wait(1.5)
  711.     player.Character.HumanoidRootPart.Anchored = false
  712.     Lighten()
  713.     player.Character.HumanoidRootPart.CFrame = workspace.TutStart.CFrame * CFrame.new(0, 3, 0)
  714.     hum.WalkSpeed = 16
  715.     player.Character.Humanoid.MaxSlopeAngle = 89
  716.     repeat
  717.       wait()
  718.       player.Character.Humanoid:MoveTo(workspace.MeliodasTut.CFrame.p)
  719.     until (player.Character.HumanoidRootPart.CFrame.p - workspace.MeliodasTut.CFrame.p).magnitude <= 6
  720.     hum.WalkSpeed = 0
  721.     hum.MaxSlopeAngle = 0
  722.     CutsceneEngine.WriteDialogue("So what'd you have me come down here for ..?.", Args)
  723.     cam:Interpolate(player.Character.HumanoidRootPart.CFrame * CFrame.new(5, 2, 3), workspace.Meliodas.Head.CFrame, 1.5)
  724.     wait(1.5)
  725.     local goal = workspace.Meliodas.HumanoidRootPart.CFrame * CFrame.Angles(0, math.rad(180), 0)
  726.     for i = 0, 1, 0.1 do
  727.       workspace.Meliodas.HumanoidRootPart.CFrame = workspace.Meliodas.HumanoidRootPart.CFrame:lerp(goal, i)
  728.       wait()
  729.     end
  730.     Anim:Stop()
  731.     CutsceneEngine.WriteDialogue("Well kid, you want to surpass me dont you?", Args)
  732.     wait(2)
  733.     cam:Interpolate(workspace.Meliodas.HumanoidRootPart.CFrame * CFrame.new(5, 2, 3), player.Character.Head.CFrame, 1.5)
  734.     wait(1.5)
  735.     CutsceneEngine.WriteDialogue("What.. ,I want to surpass Meliodas the leader of the seven deadly sins, not some random bartender.", Args)
  736.     cam:Interpolate(player.Character.HumanoidRootPart.CFrame * CFrame.new(5, 2, 3), workspace.Meliodas.Head.CFrame, 1.5)
  737.     wait(1.5)
  738.     workspace.Meliodas.Shirt.ShirtTemplate = "rbxassetid://1306667113"
  739.     script.Decal:Clone().Parent = workspace.Meliodas.UpperTorso
  740.     local goal = workspace.Meliodas.HumanoidRootPart.CFrame * CFrame.Angles(0, math.rad(180), 0)
  741.     for i = 0, 1, 0.1 do
  742.       workspace.Meliodas.HumanoidRootPart.CFrame = workspace.Meliodas.HumanoidRootPart.CFrame:lerp(goal, i)
  743.       wait()
  744.     end
  745.     wait(1.5)
  746.     local goal = workspace.Meliodas.HumanoidRootPart.CFrame * CFrame.Angles(0, math.rad(180), 0)
  747.     for i = 0, 1, 0.1 do
  748.       workspace.Meliodas.HumanoidRootPart.CFrame = workspace.Meliodas.HumanoidRootPart.CFrame:lerp(goal, i)
  749.       wait()
  750.     end
  751.     wait(2)
  752.     cam:Interpolate(player.Character.HumanoidRootPart.CFrame * CFrame.new(5, 2, 3), workspace.Meliodas.Head.CFrame, 1.5)
  753.     wait(1.5)
  754.     CutsceneEngine.WriteDialogue("I am meliodas..", Args)
  755.     wait(2)
  756.     cam:Interpolate(workspace.Meliodas.HumanoidRootPart.CFrame * CFrame.new(5, 2, 3), player.Character.Head.CFrame, 1.5)
  757.     wait(1.5)
  758.     CutsceneEngine.WriteDialogue("What.... I can't believe it's actually you", Args)
  759.     wait(2)
  760.     cam:Interpolate(player.Character.HumanoidRootPart.CFrame * CFrame.new(5, 2, 3), workspace.Meliodas.Head.CFrame, 1.5)
  761.     wait(1.5)
  762.     CutsceneEngine.WriteDialogue("Go meet King Bartra in the kingdom of Liones", Args)
  763.     wait(1)
  764.     game.ReplicatedStorage.Bridge.Event:FireServer("FinishTut")
  765.     Darken()
  766.   end
  767.   local id
  768.   UpdateChar()
  769.   if game.ReplicatedStorage.Bridge.Function:InvokeServer("DoneTut") == false then
  770.     TUT()
  771.     game.ReplicatedStorage.Bridge.Event:FireServer("FinishTut")
  772.     id = 2235562927
  773.   end
  774.   if game.ReplicatedStorage.Bridge.Function:InvokeServer("IsNew") then
  775.     id = 2235562927
  776.   end
  777.   Darken()
  778.   game.ReplicatedStorage.Bridge.Event:FireServer("Teleport", id)
  779. end
  780. return module
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top