Countdown Timer not working

hello, so i was making a timer, i encountered a bug with error massage “attempt to perform arithmetic (mod) on Instance and number”

here’s a script:

while wait() do
	script.Parent.Text = "Time: "..math.floor(script.Parent.Parent.Time%59/60)..":"..script.Parent.Parent.Time%59
end

did i do sommething wrong?

What type of instance is (script.Parent.Parent.Time), if it’s an int value make sure to do (script.Parent.Parent.Time.Value%59/60)

That error means that you’re doing something like (Workspace / 10), which obviously won’t work!

thanks for Solution, Sorry for being stupid sometimes.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.