You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I want to Change text to Text -1 every second -
What is the issue? Include screenshots / videos if possible!
attempt to compare number < string
, I understand why this error occurs but Have no I idea how to fix it
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local Gui = script.Parent
local Frame = Gui:WaitForChild("Frame")
local Menoloka= require(game:GetService("ReplicatedStorage"):WaitForChild("Menoloka")
for i , v in pairs(Frame:GetDescendants()) do
if v:IsA("TextLabel") then
v.Text = Menoloka[v.Name]["TimeThing"]
while v.Text >0 do
v.Text = v.Text - 1
task.wait(1)
end
end
end