Advertisement
Sungmingamerpro13

TimerScript (LocalScript) (Ponchokings Tutorial)

Mar 2nd, 2025
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.45 KB | None | 0 0
  1. local TimerEvent = game.ReplicatedStorage.TimerEvent
  2.  
  3. local player = game.Players.LocalPlayer
  4. local TimerImage = player.PlayerGui:WaitForChild("DialogueGui").TimerImage
  5.  
  6. local stopTimer = false
  7.  
  8. TimerEvent.OnClientEvent:Connect(function(Time)
  9.     TimerImage.Visible = true
  10.     wait(1)
  11.     repeat
  12.         Time = Time - 1
  13.         TimerImage.TextLabel.Text = Time
  14.         wait(1)
  15.     until Time <= 0 or stopTimer == true
  16.     stopTimer = false
  17.     TimerImage.Visible = false
  18. end)
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement