LynXS_

Untitled

Jun 10th, 2024
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. -- Get references to the GUI elements
  2. local screenGui = script.Parent
  3. local frame = screenGui:WaitForChild("Frame")
  4. local countdownLabel = frame:WaitForChild("CountdownLabel")
  5. local skidderLabel = frame:WaitForChild("SkidderLabel")
  6.  
  7. -- Configure the Frame
  8. frame.Size = UDim2.new(1, 0, 1, 0)
  9. frame.BackgroundColor3 = Color3.new(0, 0, 0) -- Black color
  10.  
  11. -- Configure the CountdownLabel
  12. countdownLabel.Size = UDim2.new(1, 0, 0.5, 0)
  13. countdownLabel.Position = UDim2.new(0, 0, 0.5, 0)
  14. countdownLabel.TextColor3 = Color3.new(1, 1, 1) -- White color
  15. countdownLabel.TextScaled = true
  16. countdownLabel.BackgroundTransparency = 1
  17.  
  18. -- Configure the SkidderLabel
  19. skidderLabel.Size = UDim2.new(1, 0, 0.5, 0)
  20. skidderLabel.Position = UDim2.new(0, 0, 0, 0)
  21. skidderLabel.Text = "Skidder Detected!"
  22. skidderLabel.TextColor3 = Color3.new(1, 1, 1) -- White color
  23. skidderLabel.TextScaled = true
  24. skidderLabel.Font = Enum.Font.SourceSansBold
  25. skidderLabel.BackgroundTransparency = 1
  26.  
  27. -- Countdown logic
  28. local countdown = 10
  29.  
  30. -- Function to update the countdown
  31. local function updateCountdown()
  32. for i = countdown, 1, -1 do
  33. countdownLabel.Text = tostring(i)
  34. wait(1) -- Wait for 1 second
  35. end
  36. countdownLabel.Text = "" -- Clear the text after the countdown
  37. print("Ended") -- Print "Ended" after the countdown
  38. end
  39.  
  40. -- Start the countdown when the script runs
  41. updateCountdown()
  42.  
Add Comment
Please, Sign In to add comment