I was patching up the script when I got this error: Text is not a valid member of Localscript. I have no idea what is wrong since I did nothing to the variable or that part of the script. Here is the script so it makes way more sense. ``local timergui = script.Parent
local timertext = script.Parent.Timer
local secondtimertext = script.Parent["2nd Timer"]
local replicatedstorage = game:GetService("ReplicatedStorage")
local variable = replicatedstorage.Timer
local roundEnded = replicatedstorage.RoundEnding
-- Initialize roundEnded and variable values
roundEnded.Value = false
variable.Value = 180
-- Enter the game loop
while game.Workspace do
-- Check if the round has ended
if variable.Value == 0 and not roundEnded.Value then
print("Round Ended")
roundEnded.Value = true
timertext.Text = "Round Ended"
elseif not roundEnded.Value then
-- Update the timer display and decrement the timer
print("work")
timergui.Timer.Text = variable.Value
wait(1)
variable.Value = variable.Value -1
end
wait(0)
end``
By the way the error only occurs when I click play in the output.
** You are now Level 4! **