Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Get references to the GUI elements
- local screenGui = script.Parent
- local frame = screenGui:WaitForChild("Frame")
- local countdownLabel = frame:WaitForChild("CountdownLabel")
- local skidderLabel = frame:WaitForChild("SkidderLabel")
- -- Configure the Frame
- frame.Size = UDim2.new(1, 0, 1, 0)
- frame.BackgroundColor3 = Color3.new(0, 0, 0) -- Black color
- -- Configure the CountdownLabel
- countdownLabel.Size = UDim2.new(1, 0, 0.5, 0)
- countdownLabel.Position = UDim2.new(0, 0, 0.5, 0)
- countdownLabel.TextColor3 = Color3.new(1, 1, 1) -- White color
- countdownLabel.TextScaled = true
- countdownLabel.BackgroundTransparency = 1
- -- Configure the SkidderLabel
- skidderLabel.Size = UDim2.new(1, 0, 0.5, 0)
- skidderLabel.Position = UDim2.new(0, 0, 0, 0)
- skidderLabel.Text = "Skidder Detected!"
- skidderLabel.TextColor3 = Color3.new(1, 1, 1) -- White color
- skidderLabel.TextScaled = true
- skidderLabel.Font = Enum.Font.SourceSansBold
- skidderLabel.BackgroundTransparency = 1
- -- Countdown logic
- local countdown = 10
- -- Function to update the countdown
- local function updateCountdown()
- for i = countdown, 1, -1 do
- countdownLabel.Text = tostring(i)
- wait(1) -- Wait for 1 second
- end
- countdownLabel.Text = "" -- Clear the text after the countdown
- print("Ended") -- Print "Ended" after the countdown
- end
- -- Start the countdown when the script runs
- updateCountdown()
Add Comment
Please, Sign In to add comment