How do I place this in a screen GUI I am not sure if this actually does the countdown and how do i connect it to a Screen GUI?
local Time = 150 for i = Time, 0, -1 do Time = i wait(1) end
To make a countdown Gui, you'll need to insert a ScreenGui then insert a Text Label into that. Now you'll need to change the text of the gui like so:
local Time = 150 local gui = script.Parent for i = Time, 0, -1 do Time = i gui.Text = tostring(Time) -- This will change the text to how much time is left wait(1) end
The script will countdown from the desired time (150) in this case, to 0.