Code:

local puck = game.workspace:WaitForChild("Puck")

while true do
	wait(0.1)
if puck.Anchored == false then
game.ServerStorage.ClockValues.seconds.Value = game.ServerStorage.ClockValues.seconds.Value -1
wait(0.879)
if game.ServerStorage.ClockValues.seconds.Value == 0 then
	game.ServerStorage.ClockValues.seconds.Value = game.ServerStorage.ClockValues.seconds.Value +59
	game.ServerStorage.ClockValues.minutes.Value = game.ServerStorage.ClockValues.minutes.Value -1
end
end
end

4 comments

0

if puck got deleted then the puck variable is useless which then errors.

0

It gets added back tho

0

It's still useless. You have to reassign it

0

Could you make an answer then?