Advertisement
Sungmingamerpro13

EndScript Type A

Nov 19th, 2024
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.52 KB | None | 0 0
  1. local TeleportService = game:GetService("TeleportService")
  2. local EndingEvent = game.ReplicatedStorage.EndEvent
  3.  
  4. local player = game.Players.LocalPlayer
  5. local EndFrame = player.PlayerGui:WaitForChild("DialogueGui").Ending
  6. local TimeLabel = EndFrame:WaitForChild("TimeFrame").timeLabel
  7.  
  8. local function Teleport()
  9.     TeleportService:Teleport(113095351077605)
  10. end
  11.  
  12. EndingEvent.OnClientEvent:Connect(function(Text)
  13.     EndFrame.Visible = true
  14.     for i = 19,0,-1 do
  15.         TimeLabel.Text = i.."s"
  16.         wait(1)
  17.     end
  18.     Teleport()
  19. end)
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement