Advertisement
Sungmingamerpro13

EndScript Update (STORY GAME V9.10)

Nov 18th, 2024 (edited)
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.67 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. local function TextAnimate(Text)
  13.     for i = 1,#Text,1 do
  14.         EndFrame.Description.Text = string.sub(Text,1,i)
  15.         wait(0.04)
  16.     end
  17. end
  18.  
  19. EndingEvent.OnClientEvent:Connect(function(Text)
  20.     EndFrame.Visible = true
  21.     TextAnimate(Text)
  22.     for i = 19,0,-1 do
  23.         TimeLabel.Text = i.."s"
  24.         wait(1)
  25.     end
  26.     Teleport()
  27. end)
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement