CCCPaste

EndScript Update (STORY GAME V9.10)

local TeleportService = game:GetService("TeleportService")
local EndingEvent = game.ReplicatedStorage.EndEvent

local player = game.Players.LocalPlayer
local EndFrame = player.PlayerGui:WaitForChild("DialogueGui").Ending
local TimeLabel = EndFrame:WaitForChild("TimeFrame").timeLabel

local function Teleport()
	TeleportService:Teleport(113095351077605)
end

local function TextAnimate(Text)
	for i = 1,#Text,1 do
		EndFrame.Description.Text = string.sub(Text,1,i)
		wait(0.04)
	end
end

EndingEvent.OnClientEvent:Connect(function(Text)
	EndFrame.Visible = true
	TextAnimate(Text)
	for i = 19,0,-1 do
		TimeLabel.Text = i.."s"
		wait(1)
	end
	Teleport()
end)