Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Decompiled with Visenya | https://targaryentech.com
- local module = {}
- local Util = require(game.ReplicatedStorage.GlobalModules:FindFirstChild("Utilities"))
- local player = game.Players.LocalPlayer
- local SpinPurchase
- repeat
- wait()
- until player.Character
- player.Character:WaitForChild("HumanoidRootPart")
- player.Character.HumanoidRootPart.Anchored = true
- player.Character.HumanoidRootPart.CFrame = workspace.SpawnPoint.CFrame
- player.Character:WaitForChild("Humanoid").WalkSpeed = 0
- player.Character.Humanoid.MaxSlopeAngle = 0
- local Active = false
- local cam = workspace.CurrentCamera
- local function Darken()
- player.PlayerGui.GUIS.Cover.Visible = true
- for i = 1, 0, -0.1 do
- player.PlayerGui.GUIS.Cover.BackgroundTransparency = i
- wait()
- end
- end
- local function Lighten()
- for i = 0, 1, 0.1 do
- player.PlayerGui.GUIS.Cover.BackgroundTransparency = i
- wait()
- end
- player.PlayerGui.GUIS.Cover.BackgroundTransparency = 1
- player.PlayerGui.GUIS.Cover.Visible = false
- end
- local EmptyTable = {}
- local FaceIds = {}
- local Clothing
- Clothing = game.ReplicatedStorage.Bridge.Function:InvokeServer("GuiDataPull").Clothing
- local LastCloth = 0
- local Folder = Instance.new("Folder")
- Folder.Name = "Clothing"
- Folder.Parent = player.Character
- player.Character.Head.face:Destroy()
- local Temp = {
- Face = 1,
- Hair = 1,
- Accessory = 1,
- Outfit = 1,
- AcColor = "Really black",
- HairColor = "Really white",
- PrimaryOutfitColor = "Really black",
- SecondaryOutfitColor = "Really black",
- Clan = "None",
- Magic = "Fire",
- WeaponColors = {
- Primary = "Really black",
- Secondary = "Really white",
- Tertiary = "Really black"
- },
- Weapon = "GreatSword"
- }
- if Clothing == nil then
- Clothing = {
- Face = 1,
- Hair = 1,
- Accessory = 1,
- Outfit = 1,
- AcColor = "Really black",
- HairColor = "Really white",
- PrimaryOutfitColor = "Really black",
- SecondaryOutfitColor = "Really black",
- Clan = "None",
- Magic = "Fire",
- WeaponColors = {
- Primary = "Really black",
- Secondary = "Really white",
- Tertiary = "Really black"
- },
- Weapon = "GreatSword"
- }
- end
- for i, v in pairs(Temp) do
- if Clothing[i] == nil then
- Clothing[i] = v
- print("adding " .. i .. " to the user's data")
- end
- end
- local function UpdateChar()
- if FaceIds[Clothing.Face] ~= nil then
- player.Character.Head.face.Texture = FaceIds[Clothing.Face]
- end
- if player.Character.Clothing:FindFirstChild("Accessory") then
- player.Character.Clothing:FindFirstChild("Accessory"):Destroy()
- end
- if player.Character.Clothing:FindFirstChild("Hair") then
- player.Character.Clothing.Hair:Destroy()
- end
- if game.ReplicatedStorage.Objects.Accessory:FindFirstChild(tostring(Clothing.Accessory)) then
- local Ac = game.ReplicatedStorage.Objects.Accessory:FindFirstChild(tostring(Clothing.Accessory)):Clone()
- Ac.Name = "Accessory"
- Ac.Parent = player.Character.Clothing
- Ac:GetChildren()[1].Part1 = player.Character:FindFirstChild(Ac:GetChildren()[1].Name)
- Ac.Color = BrickColor.new(Clothing.AcColor).Color
- end
- if game.ReplicatedStorage.Objects.Hairs:FindFirstChild(tostring("H" .. Clothing.Hair)) then
- local Ac = game.ReplicatedStorage.Objects.Hairs:FindFirstChild(tostring("H" .. Clothing.Hair)):Clone()
- Ac.Hair:GetChildren()[1].Part1 = player.Character:FindFirstChild(Ac.Hair:GetChildren()[1].Name)
- Ac.Hair.Color = BrickColor.new(Clothing.HairColor).Color
- Ac.Hair.Parent = player.Character.Clothing
- end
- if Clothing.Weapon ~= nil then
- if player.Character:FindFirstChild("Weapon") then
- player.Character.Weapon:Destroy()
- end
- if Clothing.Weapon == "GreatSword" then
- Clothing.Weapon = "Starter GreatSword"
- elseif Clothing.Weapon == "Axe" then
- Clothing.Weapon = "Starter Axe"
- elseif Clothing.Weapon == "SwordAndShield" then
- Clothing.Weapon = "Starter SwordAndShield"
- end
- if game.ReplicatedStorage.Objects.Weapons:FindFirstChild(Clothing.Weapon) ~= nil then
- local wepMod = game.ReplicatedStorage.Objects.Weapons:FindFirstChild(Clothing.Weapon):Clone()
- if wepMod ~= nil then
- wepMod.Parent = player.Character
- for i, v in pairs(wepMod:GetChildren()) do
- local w = Instance.new("Weld")
- w.Part0 = v.PrimaryPart
- w.Part1 = player.Character:FindFirstChild(v.PrimaryPart.Name)
- w.Parent = w.Part0
- end
- end
- wepMod.Name = "Weapon"
- end
- end
- if LastCloth ~= Clothing.Outfit then
- LastCloth = Clothing.Outfit
- if player.Character.Clothing:FindFirstChild("Outfit") then
- player.Character.Clothing:FindFirstChild("Outfit"):Destroy()
- end
- local outfit = game.ReplicatedStorage.Objects.Outfits:FindFirstChild(Clothing.Outfit):Clone()
- local outFold = Instance.new("Folder", Folder)
- outFold.Name = "Outfit"
- for i, v in pairs(outfit:GetChildren()) do
- if v:IsA("Model") then
- local w = Instance.new("Weld")
- w.Part0 = v.PrimaryPart
- w.Part1 = player.Character:FindFirstChild(v.Name)
- w.Parent = w.Part0
- else
- v:Destroy()
- end
- end
- outfit.Parent = outFold
- end
- if Folder:FindFirstChild("Outfit") then
- for i, v in pairs(Folder.Outfit:GetChildren()) do
- for _, x in pairs(v:GetChildren()) do
- for _, z in pairs(x:GetChildren()) do
- if z.Name == "Primary" and Clothing.PrimaryOutfitColor ~= nil then
- z.Color = BrickColor.new(Clothing.PrimaryOutfitColor).Color
- end
- if z.Name == "Secondary" and Clothing.SecondaryOutfitColor ~= nil then
- z.Color = BrickColor.new(Clothing.SecondaryOutfitColor).Color
- end
- end
- end
- end
- end
- end
- cam.CameraType = "Custom"
- local SendingCall
- function module.Verify(reset)
- local CurrentStance = SendingCall
- if reset == true then
- SendingCall = nil
- end
- return CurrentStance
- end
- function module.IntializeClient(player)
- local Hud = player.PlayerGui:WaitForChild("GUIS")
- local CC = Hud.CC
- local currentOption, currentOpInst
- local MainMenu = player.PlayerGui:WaitForChild("Main menu")
- local play
- local sound = MainMenu.Hover
- Hud.Cover.Visible = true
- Hud.Cover.BackgroundTransparency = 0
- repeat
- wait()
- until player.Character
- Lighten()
- MainMenu.Music:Play()
- wait(3)
- MainMenu["Intro Screen"].Visible = false
- local SelOpt
- for i, v in pairs(MainMenu["Buttons (HOVERED)"]:GetChildren()) do
- v.MouseEnter:connect(function()
- sound:Stop()
- sound:Play()
- v.ImageTransparency = 0
- end)
- v.MouseButton1Down:connect(function()
- SelOpt = v.Name
- end)
- v.MouseLeave:connect(function()
- v.ImageTransparency = 1
- end)
- end
- for i = 1, #CC.Frames.FacesFrame.Scroll:GetChildren() do
- if CC.Frames.FacesFrame.Scroll:FindFirstChild(tostring(i)) then
- table.insert(FaceIds, CC.Frames.FacesFrame.Scroll:FindFirstChild(tostring(i)).ImageLabel.ImageLabel.Image)
- end
- end
- repeat
- wait()
- if SelOpt == "Credit's" then
- wait(0.5)
- SelOpt = nil
- end
- if SelOpt == "Edit Character" then
- player.Character.HumanoidRootPart.Anchored = false
- Darken()
- wait(1)
- MainMenu.Enabled = false
- CC.Visible = true
- Lighten()
- Hud.Cover.Visible = false
- Lighten()
- do
- local DoneCC = false
- for i, v in pairs(CC.ButtonFrame.Scroll:GetChildren()) do
- v.MouseButton1Down:connect(function()
- if currentOption == v.Name then
- currentOption = nil
- else
- currentOption = v.Name
- end
- end)
- end
- local Ratez = {
- Demon = 2.5,
- Giant = 50,
- Fairy = 10,
- Lightning = 30,
- Ice = 25,
- Human = 80,
- Fire = 60,
- SunShine = 0.8,
- Goddess = 1
- }
- if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, 4947532) then
- Ratez.SunShine = 2
- end
- local function Rates(Race, delta)
- local Ran = math.random(1, 100)
- delta = delta or 0
- local Val = Ratez[Race] + delta
- return Ran < Val
- end
- for i, v in pairs(CC.Frames.FacesFrame.Scroll:GetChildren()) do
- if v:IsA("ImageButton") then
- v.ImageLabel.ImageLabel.MouseButton1Down:connect(function()
- Clothing.Face = tonumber(v.Name)
- UpdateChar()
- end)
- end
- end
- for i, v in pairs(CC.Frames.AccessoriesFrame.Scroll:GetChildren()) do
- if v:IsA("ImageButton") then
- v.ImageLabel.MouseButton1Down:connect(function()
- Clothing.Accessory = tonumber(v.Name)
- UpdateChar()
- end)
- end
- end
- for i, v in pairs(CC.Frames.AccessoriesFrame.Colors:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- Clothing.AcColor = v.BackgroundColor3
- UpdateChar()
- end)
- end
- end
- for i, v in pairs(CC.Frames.WeaponsFrame.WeaponsFrame:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- Clothing.Weapon = v.Name
- UpdateChar()
- end)
- end
- end
- for i, v in pairs(CC.Frames.WeaponsFrame.DetailsColor["Detail 1"].DetailColor:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- Clothing.WeaponColors.Primary = v.BackgroundColor3
- UpdateChar()
- end)
- end
- end
- for i, v in pairs(CC.Frames.WeaponsFrame.DetailsColor["Detail 2"].DetailColor:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- Clothing.WeaponColors.Secondary = v.BackgroundColor3
- UpdateChar()
- end)
- end
- end
- for i, v in pairs(CC.Frames.WeaponsFrame.DetailsColor["Detail 3"].DetailColor:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- Clothing.WeaponColors.Tertiary = v.BackgroundColor3
- UpdateChar()
- end)
- end
- end
- for i, v in pairs(CC.Frames.HairsFrame.Scroll:GetChildren()) do
- if v:IsA("ImageButton") then
- v.ImageLabel.MouseButton1Down:connect(function()
- Clothing.Hair = tonumber(v.Name)
- UpdateChar()
- end)
- end
- end
- for i, v in pairs(CC.Frames.HairsFrame.Colors:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- Clothing.HairColor = v.BackgroundColor3
- UpdateChar()
- end)
- end
- end
- local primColor, SecColor
- for i, v in pairs(CC.Frames.OutfitsFrame.Scroll:GetChildren()) do
- if v:IsA("ImageButton") then
- v.ImageLabel.MouseButton1Down:connect(function()
- Clothing.Outfit = tonumber(v.Name)
- UpdateChar()
- end)
- end
- end
- for i, v in pairs(CC.Frames.OutfitsFrame.Primary:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- Clothing.PrimaryOutfitColor = v.BackgroundColor3
- UpdateChar()
- end)
- end
- end
- for i, v in pairs(CC.Frames.OutfitsFrame.Secondary:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- Clothing.SecondaryOutfitColor = v.BackgroundColor3
- UpdateChar()
- end)
- end
- end
- local spinning = false
- local Clans = {
- "Human",
- "Giant",
- "Demon",
- "Fairy",
- "Goddess"
- }
- local ids = {
- None = 1398743892,
- Demon = 1424804472,
- Goddess = 2613729443,
- Giant = 1424815372,
- Fairy = 1424815568,
- Human = 1424815719
- }
- local Info = game.ReplicatedStorage.Bridge.Function:InvokeServer("GuiDataPull")
- CC.Frames.ClansFrame.ClanName.TextButton.Text = Info.Race
- CC.Frames.ClansFrame.ClanImage.Image = "rbxassetid://" .. ids[Info.Race]
- CC.Frames.MagicFrame.MagicName.TextButton.Text = Info.Magic
- Clothing.Clan = Info.Race
- Clothing.Magic = Info.Magic
- local function UpdateSpins()
- local racespin = game.ReplicatedStorage.Bridge.Function:InvokeServer("GetSpins", "Race")
- local magicspin = game.ReplicatedStorage.Bridge.Function:InvokeServer("GetSpins", "Magic")
- if racespin < 0 then
- racespin = 0
- end
- if magicspin < 0 then
- magicspin = 0
- end
- CC.Frames.ClansFrame.Spins.Amnt.Text = racespin
- CC.Frames.MagicFrame.Spins.Amnt.Text = magicspin
- local Gold = game.ReplicatedStorage.Bridge.Function:InvokeServer("GuiDataPull").Gold
- CC.Frames.ClansFrame.Gold["AMOUNT OF GOLD"].Text = tostring(Gold)
- CC.Frames.MagicFrame.Gold["AMOUNT OF GOLD"].Text = tostring(Gold)
- end
- CC.Frames.ClansFrame.ClanName.TextButton.Text = Clothing.Clan
- for i = 1, 3 do
- CC.Frames.ClansFrame.ClanImage.Image = "rbxassetid://" .. ids[Clothing.Clan]
- wait()
- end
- CC.Frames.MagicFrame.MagicName.TextButton.Text = Clothing.Magic
- UpdateSpins()
- function module.UpdateSpin()
- UpdateSpins()
- end
- local spinning = false
- local hold = false
- local Magic = {
- "SunShine",
- "Fire",
- "Lightning",
- "Ice",
- "Counter",
- "Explosion"
- }
- CC.Frames.ClansFrame.Spin.MouseButton1Down:connect(function()
- if hold == false then
- hold = true
- local Gold = game.ReplicatedStorage.Bridge.Function:InvokeServer("GetGold")
- if spinning == false and Gold >= 15000 then
- local goal = game.ReplicatedStorage.Bridge.Function:InvokeServer("SpinRace", {Gold = true})
- print("client goal is " .. goal)
- UpdateSpins()
- Clothing.Clan = goal
- for i = 1, 25 do
- local op = Clans[math.random(1, #Clans)]
- CC.Frames.ClansFrame.ClanName.TextButton.Text = Clans[math.random(1, #Clans)]
- CC.Frames.ClansFrame.ClanImage.Image = "rbxassetid://" .. ids[op]
- wait(0.1)
- end
- CC.Frames.ClansFrame.ClanName.TextButton.Text = goal
- for i = 1, 3 do
- CC.Frames.ClansFrame.ClanImage.Image = "rbxassetid://" .. ids[goal]
- wait()
- end
- UpdateChar()
- spinning = false
- end
- hold = false
- end
- end)
- CC.Frames.MagicFrame.ROLL.MouseButton1Down:connect(function()
- if hold == false then
- hold = true
- local Gold = game.ReplicatedStorage.Bridge.Function:InvokeServer("GetGold")
- if spinning == false and Gold >= 15000 then
- local goal = game.ReplicatedStorage.Bridge.Function:InvokeServer("SpinMagic", {Gold = true})
- UpdateSpins()
- for i = 1, 25 do
- CC.Frames.MagicFrame.MagicName.TextButton.Text = Magic[math.random(1, #Magic)]
- wait(0.1)
- end
- CC.Frames.MagicFrame.MagicName.TextButton.Text = goal
- UpdateChar()
- spinning = false
- end
- hold = false
- end
- end)
- CC.Frames.ClansFrame.ROLL.MouseButton1Down:connect(function()
- if hold == false then
- hold = true
- local Spins = game.ReplicatedStorage.Bridge.Function:InvokeServer("GetSpins", "Race")
- if Spins <= 0 then
- game:GetService("MarketplaceService"):PromptProductPurchase(player, 414460636)
- end
- Spins = game.ReplicatedStorage.Bridge.Function:InvokeServer("GetSpins", "Race")
- if spinning == false and Spins > 0 then
- local Args = {Type = "Race"}
- UpdateSpins()
- spinning = true
- local goal = game.ReplicatedStorage.Bridge.Function:InvokeServer("SpinRace", {Gold = nil})
- UpdateSpins()
- Clothing.Clan = goal
- for i = 1, 25 do
- local op = Clans[math.random(1, #Clans)]
- CC.Frames.ClansFrame.ClanName.TextButton.Text = Clans[math.random(1, #Clans)]
- CC.Frames.ClansFrame.ClanImage.Image = "rbxassetid://" .. ids[op]
- wait(0.1)
- end
- CC.Frames.ClansFrame.ClanName.TextButton.Text = goal
- print("client goal is " .. goal)
- for i = 1, 3 do
- CC.Frames.ClansFrame.ClanImage.Image = "rbxassetid://" .. ids[goal]
- wait()
- end
- UpdateChar()
- spinning = false
- end
- hold = false
- end
- end)
- local spinning = false
- local Magic = {
- "SunShine",
- "Fire",
- "Lightning",
- "Ice"
- }
- CC.Frames.MagicFrame.Spin.MouseButton1Down:connect(function()
- if hold == false then
- hold = true
- local Spins = game.ReplicatedStorage.Bridge.Function:InvokeServer("GetSpins", "Magic")
- if Spins <= 0 then
- game:GetService("MarketplaceService"):PromptProductPurchase(player, 308998618)
- end
- Spins = game.ReplicatedStorage.Bridge.Function:InvokeServer("GetSpins", "Magic")
- if spinning == false and Spins > 0 and Clothing.Clan == "Human" then
- local Args = {Gold = nil}
- local goal = game.ReplicatedStorage.Bridge.Function:InvokeServer("SpinMagic", Args)
- UpdateSpins()
- Clothing.Magic = goal
- for i = 1, 25 do
- local op = Magic[math.random(1, #Magic)]
- CC.Frames.MagicFrame.MagicName.TextButton.Text = Magic[math.random(1, #Magic)]
- wait(0.1)
- end
- CC.Frames.MagicFrame.MagicName.TextButton.Text = goal
- UpdateChar()
- spinning = false
- end
- hold = false
- end
- end)
- UpdateChar()
- DoneCC = false
- CC.Play.Button.MouseButton1Down:connect(function()
- repeat
- wait()
- until spinning == false
- DoneCC = true
- end)
- repeat
- if currentOption ~= nil then
- for i, v in pairs(CC.Frames:GetChildren()) do
- if v.Name == currentOption .. "Frame" then
- v.Visible = true
- else
- v.Visible = false
- end
- end
- else
- for i, v in pairs(CC.Frames:GetChildren()) do
- v.Visible = false
- end
- end
- wait()
- CC.Play.MouseButton1Down:connect(function()
- DoneCC = true
- end)
- until DoneCC == true
- game.ReplicatedStorage.Bridge.Event:FireServer("WriteClothing", Clothing)
- Darken()
- wait(1)
- CC.Visible = false
- MainMenu.Enabled = true
- Lighten()
- SelOpt = nil
- end
- end
- until SelOpt == "Play" and game.ReplicatedStorage.Bridge.Function:InvokeServer("CanPlay") == true
- MainMenu.Music:Stop()
- MainMenu.Enabled = false
- local function TUT()
- player.Character.HumanoidRootPart.Anchored = true
- Darken()
- local Anim = Util.CreateAnimation(2068351977, player.Character.Humanoid)
- Anim:Play()
- local Engine = require(script.CinematicEngine)
- Engine.CreateCinematic(player)
- local BottomBar = player.PlayerGui.GUIS.Bottom
- local DialogueTextSlot = Instance.new("TextLabel")
- DialogueTextSlot.TextColor3 = Color3.fromRGB(255, 255, 255)
- DialogueTextSlot.BackgroundTransparency = 1
- DialogueTextSlot.Size = UDim2.new(0.6, 0, 1, 0)
- DialogueTextSlot.Position = UDim2.new(0.35, 0, -0.05, 0)
- DialogueTextSlot.Parent = BottomBar
- DialogueTextSlot.TextScaled = true
- DialogueTextSlot.TextXAlignment = Enum.TextXAlignment.Center
- DialogueTextSlot.TextYAlignment = Enum.TextYAlignment.Center
- DialogueTextSlot.FontSize = Enum.FontSize.Size24
- DialogueTextSlot.ZIndex = 3
- DialogueTextSlot.Text = ""
- DialogueTextSlot.Name = "TextSpace"
- local CutsceneEngine = require(script.CinematicEngine)
- Lighten()
- local Bottom = player.PlayerGui.GUIS.Bottom
- local Top = player.PlayerGui.GUIS.Top
- Top.Position = UDim2.new(0, 0, 0, 0)
- Top.Size = UDim2.new(1, 0, 0.5, 0)
- Bottom.Size = UDim2.new(1, 0, 0.5, 0)
- Bottom.Position = UDim2.new(0, 0, 0.5, 0)
- Bottom.TextSpace.Position = UDim2.new(0.15, 0, 0.25, 0)
- local Args = {}
- Args.QuickFill = false
- CutsceneEngine.WriteDialogue("Press space to begin", Args)
- repeat
- wait()
- until game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.Space)
- Darken()
- player.Character.HumanoidRootPart.Anchored = true
- player.Character.HumanoidRootPart.CFrame = workspace["Where player is laying down"].CFrame
- cam.CameraType = "Scriptable"
- wait(0.5)
- cam.CFrame = player.Character.Head.CFrame * CFrame.new(0, 0, -1.5)
- CutsceneEngine.WriteDialogue(" ", Args)
- Lighten()
- for i = 0, 3 do
- Top:TweenPosition(UDim2.new(0, 0, -tonumber("." .. i), 0), "Out", "Quad", 0.75, false)
- Bottom:TweenPosition(UDim2.new(0, 0, 0.5 + tonumber("." .. i), 0), "Out", "Quad", 0.75, false)
- wait(1)
- Top:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Quad", 0.75, false)
- Bottom:TweenPosition(UDim2.new(0, 0, 0.5, 0), "Out", "Quad", 0.75, false)
- wait(1)
- end
- game.Lighting.Blur.Size = 0
- Bottom:TweenPosition(UDim2.new(0, 0, 0.85, 0), "Out", "Quad", 1, false)
- Top:TweenPosition(UDim2.new(0, 0, -0.3, -36), "Out", "Quad", 1, false)
- cam:Interpolate(player.Character.Head.CFrame * CFrame.new(0, 0, -5), player.Character.Head.CFrame, 1.5)
- wait(1.7)
- local hum = player.Character.Humanoid
- Top.Position = UDim2.new(0, 0, 0, -36)
- Top.Size = UDim2.new(1, 0, 0.15, 0)
- Bottom.Size = UDim2.new(1, 0, 0.15, 0)
- DialogueTextSlot.Position = UDim2.new(0.15, 0, -0.05, 0)
- CutsceneEngine.WriteDialogue("Meliodas......", Args)
- wait(1.5)
- Anim:Stop()
- local Anim = Util.CreateAnimation(2068383591, player.Character.Humanoid)
- Anim:Play()
- wait(0.25)
- cam:Interpolate(player.Character.Head.CFrame * CFrame.new(0, 3, -8), player.Character.Head.CFrame, 1.5)
- CutsceneEngine.WriteDialogue("The most powerful ex holy knight and the leader of the seven deadly sins...", Args)
- wait(1.7)
- CutsceneEngine.WriteDialogue("One Day......", Args)
- wait(0.5)
- CutsceneEngine.WriteDialogue("One Day I will surpass him!", Args)
- Anim:Stop()
- cam:Interpolate(player.Character.HumanoidRootPart.CFrame * CFrame.new(5, 0, -10), player.Character.Head.CFrame, 3)
- local Anim = Util.CreateAnimation(2068753565, player.Character.Humanoid)
- Anim:Play()
- wait(3.2)
- cam:Interpolate(player.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, -10), player.Character.Head.CFrame, 0.5)
- player.Character.HumanoidRootPart.Anchored = false
- player.Character.Humanoid.WalkSpeed = 16
- player.Character.Humanoid.MaxSlopeAngle = 89
- wait(0.7)
- Darken()
- CutsceneEngine.WriteDialogue(" ", Args)
- Darken()
- repeat
- wait()
- player.Character.Humanoid:MoveTo(workspace.walkStop.CFrame.p)
- until 3 >= (player.Character.HumanoidRootPart.CFrame.p - workspace.walkStop.CFrame.p).magnitude
- wait(3)
- Lighten()
- cam.CFrame = workspace.DoorCamPoint.CFrame
- player.Character.HumanoidRootPart.CFrame = workspace.Start.CFrame * CFrame.new(0, 1.5, 0)
- local anim = Util.CreateAnimation(2070596437, workspace.Bartender.Humanoid)
- anim:Play()
- for i, v in pairs(workspace.BarPeople:GetChildren()) do
- if v:FindFirstChild("Humanoid") then
- if v.Name == "Bill" then
- local Anim = Util.CreateAnimation(2070485124, v.Humanoid)
- Anim:Play()
- else
- local Anim = Util.CreateAnimation(2070457766, v.Humanoid)
- Anim:Play()
- end
- end
- end
- Lighten()
- for i = 0, 1, 0.1 do
- workspace.Door.CFrame = workspace.Door.CFrame:lerp(workspace.DoorGoal.CFrame, i)
- wait()
- end
- player.Character.HumanoidRootPart.CFrame = workspace.Start.CFrame * CFrame.new(0, 2, 0)
- player.Character.HumanoidRootPart.Anchored = false
- player.Character.Humanoid.WalkSpeed = 16
- repeat
- wait()
- player.Character.Humanoid:MoveTo(workspace.End.CFrame.p)
- until 3 >= (player.Character.HumanoidRootPart.CFrame.p - workspace.End.CFrame.p).magnitude
- cam:Interpolate(workspace.DoorCamPoint.CFrame, workspace.Bartender.Head.CFrame, 0.5)
- wait(0.7)
- cam:Interpolate(workspace.DoorCamPoint.CFrame, workspace.BarPeople.Bill.Head.CFrame, 3)
- wait(3.2)
- cam:Interpolate(workspace.DoorCamPoint.CFrame, workspace.Poster.CFrame, 1)
- wait(1.5)
- cam:Interpolate(workspace.BoardCam.CFrame, workspace.Poster.CFrame, 3)
- repeat
- wait()
- player.Character.Humanoid:MoveTo(workspace.PostEnd.CFrame.p)
- until 3 >= (player.Character.HumanoidRootPart.CFrame.p - workspace.PostEnd.CFrame.p).magnitude
- local hum = player.Character.Humanoid
- hum.WalkSpeed = 0
- hum.MaxSlopeAngle = 0
- player.Character.HumanoidRootPart.Anchored = true
- wait(3.2)
- CutsceneEngine.WriteDialogue("Everywhere i look or go im reminded of you Meliodas.. , There is no escaping you is there..?", Args)
- wait(2)
- workspace.Meliodas.HumanoidRootPart.CFrame = workspace.MeliodasStop.CFrame * CFrame.new(0, 2, 0)
- local Anim = Util.CreateAnimation(2090729097, workspace.Meliodas.Humanoid)
- Anim:Play()
- 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)
- wait(3)
- CutsceneEngine.WriteDialogue(" ", Args)
- Darken()
- Anim:Stop()
- workspace.Meliodas.HumanoidRootPart.CFrame = workspace.MeliodasTut.CFrame * CFrame.new(0, 2, 0)
- local Anim = Util.CreateAnimation(2090725929, workspace.Meliodas.Humanoid)
- Anim:Play()
- cam:Interpolate(workspace.TutCam0.CFrame, workspace.TutCam0.CFrame * CFrame.new(0, 0, -10), 0.1)
- cam:Interpolate(workspace.TutCam.CFrame, workspace.TutCam.CFrame * CFrame.new(0, 0, -10), 0.5)
- wait(1.5)
- player.Character.HumanoidRootPart.Anchored = false
- Lighten()
- player.Character.HumanoidRootPart.CFrame = workspace.TutStart.CFrame * CFrame.new(0, 3, 0)
- hum.WalkSpeed = 16
- player.Character.Humanoid.MaxSlopeAngle = 89
- repeat
- wait()
- player.Character.Humanoid:MoveTo(workspace.MeliodasTut.CFrame.p)
- until (player.Character.HumanoidRootPart.CFrame.p - workspace.MeliodasTut.CFrame.p).magnitude <= 6
- hum.WalkSpeed = 0
- hum.MaxSlopeAngle = 0
- CutsceneEngine.WriteDialogue("So what'd you have me come down here for ..?.", Args)
- cam:Interpolate(player.Character.HumanoidRootPart.CFrame * CFrame.new(5, 2, 3), workspace.Meliodas.Head.CFrame, 1.5)
- wait(1.5)
- local goal = workspace.Meliodas.HumanoidRootPart.CFrame * CFrame.Angles(0, math.rad(180), 0)
- for i = 0, 1, 0.1 do
- workspace.Meliodas.HumanoidRootPart.CFrame = workspace.Meliodas.HumanoidRootPart.CFrame:lerp(goal, i)
- wait()
- end
- Anim:Stop()
- CutsceneEngine.WriteDialogue("Well kid, you want to surpass me dont you?", Args)
- wait(2)
- cam:Interpolate(workspace.Meliodas.HumanoidRootPart.CFrame * CFrame.new(5, 2, 3), player.Character.Head.CFrame, 1.5)
- wait(1.5)
- CutsceneEngine.WriteDialogue("What.. ,I want to surpass Meliodas the leader of the seven deadly sins, not some random bartender.", Args)
- cam:Interpolate(player.Character.HumanoidRootPart.CFrame * CFrame.new(5, 2, 3), workspace.Meliodas.Head.CFrame, 1.5)
- wait(1.5)
- workspace.Meliodas.Shirt.ShirtTemplate = "rbxassetid://1306667113"
- script.Decal:Clone().Parent = workspace.Meliodas.UpperTorso
- local goal = workspace.Meliodas.HumanoidRootPart.CFrame * CFrame.Angles(0, math.rad(180), 0)
- for i = 0, 1, 0.1 do
- workspace.Meliodas.HumanoidRootPart.CFrame = workspace.Meliodas.HumanoidRootPart.CFrame:lerp(goal, i)
- wait()
- end
- wait(1.5)
- local goal = workspace.Meliodas.HumanoidRootPart.CFrame * CFrame.Angles(0, math.rad(180), 0)
- for i = 0, 1, 0.1 do
- workspace.Meliodas.HumanoidRootPart.CFrame = workspace.Meliodas.HumanoidRootPart.CFrame:lerp(goal, i)
- wait()
- end
- wait(2)
- cam:Interpolate(player.Character.HumanoidRootPart.CFrame * CFrame.new(5, 2, 3), workspace.Meliodas.Head.CFrame, 1.5)
- wait(1.5)
- CutsceneEngine.WriteDialogue("I am meliodas..", Args)
- wait(2)
- cam:Interpolate(workspace.Meliodas.HumanoidRootPart.CFrame * CFrame.new(5, 2, 3), player.Character.Head.CFrame, 1.5)
- wait(1.5)
- CutsceneEngine.WriteDialogue("What.... I can't believe it's actually you", Args)
- wait(2)
- cam:Interpolate(player.Character.HumanoidRootPart.CFrame * CFrame.new(5, 2, 3), workspace.Meliodas.Head.CFrame, 1.5)
- wait(1.5)
- CutsceneEngine.WriteDialogue("Go meet King Bartra in the kingdom of Liones", Args)
- wait(1)
- game.ReplicatedStorage.Bridge.Event:FireServer("FinishTut")
- Darken()
- end
- local id
- UpdateChar()
- if game.ReplicatedStorage.Bridge.Function:InvokeServer("DoneTut") == false then
- TUT()
- game.ReplicatedStorage.Bridge.Event:FireServer("FinishTut")
- id = 2235562927
- end
- if game.ReplicatedStorage.Bridge.Function:InvokeServer("IsNew") then
- id = 2235562927
- end
- Darken()
- game.ReplicatedStorage.Bridge.Event:FireServer("Teleport", id)
- end
- return module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement