Help with a timer script needed

Hello,
I’ve been working on a timer script. The script works fine but i need to make it says minutes : seconds.

game.ReplicatedStorage.Timer.OnServerEvent:Connect(function(Player)
	local changedTeam = BrickColor.new("Bright red")
	local time = 1800
		while wait(1) do
			if time == 0 then
				break
			else
				print(tostring(time))
				time = time - 1
			end
			if time == 0 then
				Player.TeamColor = changedTeam
				Player:LoadCharacter()
				break
				end
		end
	end
end)

Does anyone know how to make it? - Thanks

Try this…

2 Likes

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