local TeleportService = game:GetService("TeleportService")
local EndingEvent = game.ReplicatedStorage.EndEvent
local player = game.Players.LocalPlayer
local EndFrame = player.PlayerGui:WaitForChild("DialogueGui").Ending
local function Teleport()
TeleportService:Teleport(113095351077605)
end
EndingEvent.OnClientEvent:Connect(function(Text)
EndFrame.Visible = true
wait(5)
Teleport()
end)