Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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(10078270331)
- end
- EndingEvent.OnClientEvent:Connect(function(Text)
- EndFrame.Visible = true
- EndFrame.BackToLobby.MouseButton1Click:Connect(function()
- Teleport()
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement