CCCPaste

EndingScript

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

local player = game.Players.LocalPlayer
local EndFrame = player.PlayerGui:WaitForChild("DialogueGui").EndFrame

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

EndEvent.OnClientEvent:Connect(function()
EndFrame.Visible = true
Teleport()
end)