Advertisement
Sungmingamerpro13

EndingScript

Aug 27th, 2022
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. local TeleportService = game:GetService("TeleportService")
  2. local EndEvent = game.ReplicatedStorage.EndEvent
  3.  
  4. local player = game.Players.LocalPlayer
  5. local EndFrame = player.PlayerGui:WaitForChild("DialogueGui").EndFrame
  6.  
  7. local function Teleport()
  8. TeleportService:Teleport(10078270331)
  9. end
  10.  
  11. EndEvent.OnClientEvent:Connect(function()
  12. EndFrame.Visible = true
  13. Teleport()
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement