I am making a caption the flag game but the time always say 05:00 when the game start, I want change the time number like 20:00 or something, how do you change it, an image for example on how it look like
Could you show us the script you are using for handling the timer?
you should be able to just edit it to be 20 minutes instead of 5 minutes.
the first two 0’s should handle the minutes separate from the seconds.
so every 60 seconds that pass reduces the minutes by 1.
again, show us your script and explorer where the script and its handlers are located and people will be able to help more efficiently.
You can just set the text of your TextLabel directly;
local timeText = ... --Path to your TextLabel that displays the time.
timeText.Text = "20:00" -- Sets the "Text" property of the TextLabel to 20:00.
or whenever a function triggers;
local timeText = ... --Path to your TextLabel that displays the time.
local function OnRoundStart() --We will run this function when the round starts. You can name it whatever you want.
timeText.Text = "20:00" --Sets the timers text to 20:00 --You can add any code here you would like, we will run it when the round starts.
end
--bla..bla..bla.. (Any pile of code that you want to execute before the round starts)
OnRoundStart() -- This calls and runs the function that we just created.
If you are going to make this a LocalScript, don’t rely on it since client can manipulate the code, this should just be used for changing the text for the the client side and not to store the time.
You can learn more about Text property of TextLabel’s here:
